![]() |
VR-Forces 5.0.3 Developer's Guide
|
A class to manage automatic periodic updating of a breaking wave direction map generated from shapefiles.
Public Member Functions | |
| virtual | ~DtTritonBreakingWavesMapManager () |
| void | setupBreakingWavesMap (void) |
| void | setBreakingWavesMapResolution (float resolution) |
| float | getBreakingWavesMapResolution () const |
| bool | updateBreakingWaves (unsigned int frameNum, const osg::Vec3 ¤tPosition, bool isGeocentric) |
| const osg::Matrix & | breakingWavesMapMatrix () |
| const osg::Texture2D * | breakingWavesMapTexture () |
| bool | hasBreakingWavesMap () const |
| void | forceUpdate () |
Protected Member Functions | |
| DtTritonBreakingWavesMapManager (DtDe &de, DtTritonDrawable *tritonDrawable) | |
| void | cleanup () |
| virtual void | slot_coordinateSystemChanged () |
Protected Attributes | |
| friend | DtTritonBreakingWavesMapManagerCreator |
| 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 |
| DtCoordinateConverter * | myCoordinateConverter = nullptr |
Private Member Functions | |
| DtTritonBreakingWavesMapManager () | |
| DtTritonBreakingWavesMapManager (const DtTritonBreakingWavesMapManager &other) | |
| DtTritonBreakingWavesMapManager & | operator= (const DtTritonBreakingWavesMapManager &other) |
|
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.
| 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.
| const osg::Matrix& makVrv::DtTritonBreakingWavesMapManager::breakingWavesMapMatrix | ( | ) |
Retrieve the matrix to transform world coordinate to texture coords.
| const osg::Texture2D* makVrv::DtTritonBreakingWavesMapManager::breakingWavesMapTexture | ( | ) |
Retrieve the breaking waves map itself Raw pointer since it is held in a ref pointer in this class.
| bool makVrv::DtTritonBreakingWavesMapManager::hasBreakingWavesMap | ( | ) | const |
Whether a breaking wave map has been generated.
| void makVrv::DtTritonBreakingWavesMapManager::forceUpdate | ( | ) |
Force a breaking waves map update on the next frame.
|
protected |
called by the destructor to clean up the osg ref pointers used by this class
|
protectedvirtual |
slot for when the coordinate system changes
|
protected |
friend class for creating this class
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
local clone of the current system wide coordinate system converter. for thread safety.