![]() |
VR-Forces 4.8 Class Documentation
|
A class to manage automatic periodic updating of a height map generated from the database dynamically. More...
Public Member Functions | |
| virtual | ~DtTritonHeightMapManager () |
| destructor More... | |
| virtual void | setTritonCamera (const Triton::Camera *tritonCamera) |
| Set the triton camera that is used by this triton height map manager. More... | |
| virtual const Triton::Camera * | tritonCamera (void) const |
| Get the triton camera that is used by this triton height map manager. More... | |
| virtual void | setupHeightMap (void) |
| Sets up the height map's resources. More... | |
| virtual void | setHeightMapResolution (float resolution) |
| Set the height map resolution in meters per texel. More... | |
| virtual float | heightMapResolution () const |
| Gets the meters represented by one texel of the height map. More... | |
| virtual void | setHeightMapTextureSize (int pixels) |
| Set the texture size length and width. More... | |
| virtual int | heightMapTextureSize () const |
| Get the texture size length and width. More... | |
| virtual bool | updateHeightCamera (unsigned int frameNum, const osg::Vec3 ¤tPosition, bool isGeocentric) |
| Updates the height map as needed; call once per frame. More... | |
| virtual void | setHeightCameraAttachment (bool enabled) |
| Attaches or detaches the height map camera from the scene graph. More... | |
| virtual const osg::Matrix & | heightMapMatrix () const |
| Retrieve the matrix to transform world coordinate to texture coords. More... | |
| virtual const osg::ref_ptr < osg::Texture2D > | heightMapTexture () const |
| Retrieve the height map itself. More... | |
| virtual void | forceUpdate () |
| Force a height map update on the next frame. More... | |
| virtual DtTritonDrawable * | tritonDrawable () |
| get the triton drawable associated with this height map manager More... | |
| virtual osg::Camera * | heightCamera () |
| get the height camera being used by this height map manager More... | |
Protected Member Functions | |
| DtTritonHeightMapManager (DtTritonDrawable *parentDrawable, DtDe &de, osg::View *view) | |
| constructor More... | |
| virtual void | cleanup () |
| clean up this manager, called by the destuctor and the release gl objects for the drawable. More... | |
| virtual void | updateHeightMapMatrix () |
| Helper function for updating the height map matrix. More... | |
| virtual osg::Matrixd | oglRevDepthOrtho (double left, double right, double bottom, double top, double zNear, double zFar) |
| get the reverse depth buffer setup for an orthographic camera. used when reverse z is turned on. More... | |
Protected Attributes | |
| osg::Vec3 | myLastHeightUpdatePos |
| unsigned int | myHeightUpdateFrame |
| bool | myHeightCameraAttached |
| bool | myHeightMapCameraUpdateReady |
| bool | myForceUpdate |
| float | myResolution |
| bool | mySavedPerfOverlayOn |
| double | myLastUpdateTime |
| bool | myShadingRateIsSupported |
| osg::ref_ptr< osg::Texture2D > | myHeightMap |
| osg::ref_ptr< osg::Texture2D > | myDepthTexture |
| osg::Matrix | myHeightMapMatrix |
| int | myHeightMapDimension |
| osg::ref_ptr< osg::Camera > | myHeightCamera |
| DtDe & | myDe |
| DtTritonDrawable * | myDrawable |
| DtSignalConnectionManager | myConnections |
| osg::View * | myOsgView |
| const Triton::Camera * | myTritonCamera |
Private Member Functions | |
| DtTritonHeightMapManager () | |
| Default Constructor not implemented. More... | |
| DtTritonHeightMapManager (const DtTritonHeightMapManager &other) | |
| Copy Constructor not implemented – Copy Not Allowed. More... | |
| DtTritonHeightMapManager & | operator= (const DtTritonHeightMapManager &other) |
| Assignment Operator Not implemented – Assignment Not Allowed. More... | |
Friends | |
| class | DtTritonHeightMapManagerCreator |
A class to manage automatic periodic updating of a height map generated from the database dynamically.
|
virtual |
destructor
|
protected |
constructor
|
private |
Default Constructor not implemented.
|
private |
Copy Constructor not implemented – Copy Not Allowed.
|
private |
Assignment Operator Not implemented – Assignment Not Allowed.
|
virtual |
Set the triton camera that is used by this triton height map manager.
|
virtual |
Get the triton camera that is used by this triton height map manager.
|
virtual |
Sets up the height map's resources.
|
virtual |
Set the height map resolution in meters per texel.
|
virtual |
Gets the meters represented by one texel of the height map.
|
virtual |
Set the texture size length and width.
The pixel value will be
|
virtual |
Get the texture size length and width.
|
virtual |
Updates the height map as needed; call once per frame.
Returns true if there is a new height map ready.
|
virtual |
Attaches or detaches the height map camera from the scene graph.
|
virtual |
Retrieve the matrix to transform world coordinate to texture coords.
|
virtual |
Retrieve the height map itself.
|
virtual |
Force a height map update on the next frame.
|
virtual |
get the triton drawable associated with this height map manager
|
virtual |
get the height camera being used by this height map manager
|
protectedvirtual |
clean up this manager, called by the destuctor and the release gl objects for the drawable.
|
protectedvirtual |
Helper function for updating the height map matrix.
|
protectedvirtual |
get the reverse depth buffer setup for an orthographic camera. used when reverse z is turned on.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |