VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtPlanarReflection Class Reference

A camera for rendering Triton's planar reflection texture. More...

Inheritance diagram for makVrv::DtPlanarReflection:
Inheritance graph
[legend]

Public Member Functions

 DtPlanarReflection (osg::Camera *mainCamera, DtDe &de)
 CTOR.
osg::Texture2D * getTexture ()
 Retrieve the reflection map texture this camera renders to.
osg::RefMatrix * getTextureProjectionMatrix ()
 Retrieve the matrix used to map this texture to the water surface.
virtual void accept (osg::NodeVisitor &nv)
virtual void enable (bool enabled)
virtual void releaseGLObjects (osg::State *state=0)
void setClipPlane (const osg::Vec4d &v)
bool isRenderToTextureValid ()
void setMirrorMatrix (const osg::Matrix &mirror)

Protected Member Functions

virtual void lodScaleChanged (float lodScale)
osg::Matrixd modifyProjectionMatrix (const osg::Matrix &sceneProjection, const osg::Vec4d &clipPlane) const
virtual ~DtPlanarReflection ()
 DTOR.
void setupColorBufferTexture (int format, int sourceFormat, int sourceType)

Protected Attributes

DtDemyDe
DtSignalConnectionManager myConnections
osg::ref_ptr< osg::Texture2D > myTexture
osg::ref_ptr< osg::Texture2D > myDepthTexture
osg::ref_ptr< osg::RefMatrix > myTextureProjectionMatrix
osg::ref_ptr< osg::Camera > mySceneCamera
osg::Matrix myMirrorMatrix
int myTexFormat
int mySourceFormat
int mySourceType
osg::Vec4d myClipPlane

Detailed Description

A camera for rendering Triton's planar reflection texture.

Constructor & Destructor Documentation

makVrv::DtPlanarReflection::DtPlanarReflection ( osg::Camera *  mainCamera,
DtDe de 
)

CTOR.

virtual makVrv::DtPlanarReflection::~DtPlanarReflection ( )
protectedvirtual

DTOR.

Member Function Documentation

osg::Texture2D* makVrv::DtPlanarReflection::getTexture ( )

Retrieve the reflection map texture this camera renders to.

osg::RefMatrix* makVrv::DtPlanarReflection::getTextureProjectionMatrix ( )

Retrieve the matrix used to map this texture to the water surface.

virtual void makVrv::DtPlanarReflection::accept ( osg::NodeVisitor &  nv)
virtual
virtual void makVrv::DtPlanarReflection::enable ( bool  enabled)
virtual
virtual void makVrv::DtPlanarReflection::releaseGLObjects ( osg::State *  state = 0)
virtual
void makVrv::DtPlanarReflection::setClipPlane ( const osg::Vec4d &  v)
inline

References myClipPlane.

bool makVrv::DtPlanarReflection::isRenderToTextureValid ( )
void makVrv::DtPlanarReflection::setMirrorMatrix ( const osg::Matrix &  mirror)
inline

References myMirrorMatrix.

virtual void makVrv::DtPlanarReflection::lodScaleChanged ( float  lodScale)
protectedvirtual
osg::Matrixd makVrv::DtPlanarReflection::modifyProjectionMatrix ( const osg::Matrix &  sceneProjection,
const osg::Vec4d &  clipPlane 
) const
protected
void makVrv::DtPlanarReflection::setupColorBufferTexture ( int  format,
int  sourceFormat,
int  sourceType 
)
protected

Member Data Documentation

DtDe& makVrv::DtPlanarReflection::myDe
protected
DtSignalConnectionManager makVrv::DtPlanarReflection::myConnections
protected
osg::ref_ptr< osg::Texture2D > makVrv::DtPlanarReflection::myTexture
protected
osg::ref_ptr< osg::Texture2D > makVrv::DtPlanarReflection::myDepthTexture
protected
osg::ref_ptr< osg::RefMatrix > makVrv::DtPlanarReflection::myTextureProjectionMatrix
protected
osg::ref_ptr< osg::Camera > makVrv::DtPlanarReflection::mySceneCamera
protected
osg::Matrix makVrv::DtPlanarReflection::myMirrorMatrix
protected

Referenced by setMirrorMatrix().

int makVrv::DtPlanarReflection::myTexFormat
protected
int makVrv::DtPlanarReflection::mySourceFormat
protected
int makVrv::DtPlanarReflection::mySourceType
protected
osg::Vec4d makVrv::DtPlanarReflection::myClipPlane
protected

Referenced by setClipPlane().


The documentation for this class was generated from the following file:

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)