![]() |
VR-Forces 4.3.1 Class Documentation
|
A class to manage automatic periodic updating of a breaking wave direction map generated from shapefiles. More...
Public Member Functions | |
| DtTritonBreakingWavesMapManager (makVrv::DtDe &de, DtTritonDrawable *parentDrawable) | |
| virtual | ~DtTritonBreakingWavesMapManager () |
| void | setupBreakingWavesMap (void) |
| Sets up the breaking waves map's resources. | |
| void | setBreakingWavesMapResolution (float resolution) |
| Set the breaking waves map resolution in meters per texel. | |
| float | getBreakingWavesMapResolution () const |
| Gets the meters represented by one texel of the breaking waves map. | |
| bool | updateBreakingWaves (unsigned int frameNum, const osg::Vec3 ¤tPosition, bool isGeocentric) |
| Updates the breaking waves map as needed; call once per frame. | |
| const osg::Matrix & | getBreakingWavesMapMatrix () |
| Retrieve the matrix to transform world coordinate to texture coords. | |
| const osg::ref_ptr < osg::Texture2D > | getBreakingWavesMapTexture () |
| Retrieve the breaking waves map itself. | |
| bool | getHasBreakingWavesMap () const |
| Whether a breaking wave map has been generated. | |
| void | forceUpdate () |
| Force a breaking waves map update on the next frame. | |
Protected Member Functions | |
| void | cleanup () |
Protected Attributes | |
| osg::Vec3 | myLastBreakingWavesUpdatePos |
| bool | myForceUpdate |
| float | myResolution |
| double | myLastUpdateTime |
| bool | myHasBreakingWaves |
| osg::ref_ptr< osg::Texture2D > | myBreakingWavesMap |
| osg::ref_ptr< osg::Image > | myBreakingWavesImage |
| osg::Matrix | myBreakingWavesMapMatrix |
| int | myBreakingWavesMapDimension |
| makVrv::DtDe & | myDe |
| DtTritonDrawable * | myDrawable |
| DtSignalConnectionManager | myConnections |
A class to manage automatic periodic updating of a breaking wave direction map generated from shapefiles.
| makVrv::DtTritonBreakingWavesMapManager::DtTritonBreakingWavesMapManager | ( | makVrv::DtDe & | de, |
| DtTritonDrawable * | parentDrawable | ||
| ) |
|
virtual |
| void makVrv::DtTritonBreakingWavesMapManager::setupBreakingWavesMap | ( | void | ) |
Sets up the breaking waves map's resources.
| void makVrv::DtTritonBreakingWavesMapManager::setBreakingWavesMapResolution | ( | float | resolution | ) |
Set the breaking waves map resolution in meters per texel.
| float makVrv::DtTritonBreakingWavesMapManager::getBreakingWavesMapResolution | ( | ) | const |
Gets the meters represented by one texel of the breaking waves map.
| bool makVrv::DtTritonBreakingWavesMapManager::updateBreakingWaves | ( | unsigned int | frameNum, |
| const osg::Vec3 & | currentPosition, | ||
| bool | isGeocentric | ||
| ) |
Updates the breaking waves map as needed; call once per frame.
Returns true if there is a new breaking waves map ready.
|
inline |
Retrieve the matrix to transform world coordinate to texture coords.
References myBreakingWavesMapMatrix.
|
inline |
Retrieve the breaking waves map itself.
References myBreakingWavesMap.
|
inline |
Whether a breaking wave map has been generated.
References myHasBreakingWaves.
|
inline |
Force a breaking waves map update on the next frame.
References myForceUpdate.
|
protected |
|
protected |
|
protected |
Referenced by forceUpdate().
|
protected |
|
protected |
|
protected |
Referenced by getHasBreakingWavesMap().
|
protected |
Referenced by getBreakingWavesMapTexture().
|
protected |
|
protected |
Referenced by getBreakingWavesMapMatrix().
|
protected |
|
protected |
|
protected |
|
protected |