![]() |
VR-Forces 4.3 Class Documentation
|
A class to manage automatic periodic updating of a height map generated from the database dynamically. More...
Public Member Functions | |
| DtTritonHeightMapManager (makVrv::DtDe &de, DtTritonDrawable *parentDrawable) | |
| virtual | ~DtTritonHeightMapManager () |
| void | setupHeightMap (void) |
| Sets up the height map's resources. | |
| void | setHeightMapResolution (float resolution) |
| Set the height map resolution in meters per texel. | |
| float | getHeightMapResolution () const |
| Gets the meters represented by one texel of the height map. | |
| void | setHeightMapTextureSize (int pixels) |
| Set the texture size length and width. | |
| int | heightMapTextureSize () const |
| Get the texture size length and width. | |
| bool | updateHeightCamera (unsigned int frameNum, const osg::Vec3 ¤tPosition, bool isGeocentric) |
| Updates the height map as needed; call once per frame. | |
| void | setHeightCameraAttachment (bool enabled) |
| Attaches or detaches the height map camera from the scene graph. | |
| const osg::Matrix & | getHeightMapMatrix () |
| Retrieve the matrix to transform world coordinate to texture coords. | |
| const osg::ref_ptr < osg::Texture2D > | getHeightMapTexture () |
| Retrieve the height map itself. | |
| void | forceUpdate () |
| Force a height map update on the next frame. | |
Protected Member Functions | |
| void | cleanup () |
Protected Attributes | |
| osg::Vec3 | myLastHeightUpdatePos |
| unsigned int | myHeightUpdateFrame |
| bool | myHeightCameraAttached |
| bool | myForceUpdate |
| float | myResolution |
| bool | mySavedPerfOverlayOn |
| double | myLastUpdateTime |
| osg::ref_ptr< osg::Texture2D > | myHeightMap |
| osg::ref_ptr< osg::Texture2D > | myDepthTexture |
| osg::Matrix | myHeightMapMatrix |
| int | myHeightMapDimension |
| osg::ref_ptr< osg::Camera > | myHeightCamera |
| makVrv::DtDe & | myDe |
| DtTritonDrawable * | myDrawable |
| DtSignalConnectionManager | myConnections |
A class to manage automatic periodic updating of a height map generated from the database dynamically.
| makVrv::DtTritonHeightMapManager::DtTritonHeightMapManager | ( | makVrv::DtDe & | de, |
| DtTritonDrawable * | parentDrawable | ||
| ) |
|
virtual |
| void makVrv::DtTritonHeightMapManager::setupHeightMap | ( | void | ) |
Sets up the height map's resources.
| void makVrv::DtTritonHeightMapManager::setHeightMapResolution | ( | float | resolution | ) |
Set the height map resolution in meters per texel.
| float makVrv::DtTritonHeightMapManager::getHeightMapResolution | ( | ) | const |
Gets the meters represented by one texel of the height map.
| void makVrv::DtTritonHeightMapManager::setHeightMapTextureSize | ( | int | pixels | ) |
Set the texture size length and width.
The pixel value will be
| int makVrv::DtTritonHeightMapManager::heightMapTextureSize | ( | ) | const |
Get the texture size length and width.
| bool makVrv::DtTritonHeightMapManager::updateHeightCamera | ( | unsigned int | frameNum, |
| const osg::Vec3 & | currentPosition, | ||
| bool | isGeocentric | ||
| ) |
Updates the height map as needed; call once per frame.
Returns true if there is a new height map ready.
| void makVrv::DtTritonHeightMapManager::setHeightCameraAttachment | ( | bool | enabled | ) |
Attaches or detaches the height map camera from the scene graph.
|
inline |
Retrieve the matrix to transform world coordinate to texture coords.
References myHeightMapMatrix.
|
inline |
Retrieve the height map itself.
References myHeightMap.
|
inline |
Force a height map update on the next frame.
References myForceUpdate.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by forceUpdate().
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by getHeightMapTexture().
|
protected |
|
protected |
Referenced by getHeightMapMatrix().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |