![]() |
VR-Forces Developer's Guide
|
A class to manage automatic periodic updating of a breaking wave direction map generated from shapefiles.
Public Member Functions | |
| virtual | ~DtTritonBreakingWavesMapManager () |
| virtual void | setBreakingWavesMapResolution (float metersPerTexel) |
| virtual float | breakingWavesMapResolution () const |
| virtual bool | updateBreakingWaves (unsigned int frameNum, const osg::Vec3 ¤tPosition) |
| virtual const osg::Matrix & | breakingWavesMapMatrix () |
| virtual const osg::Texture2D * | breakingWavesMapTexture () |
| virtual bool | hasBreakingWavesMap () const |
| virtual void | forceUpdate () |
| virtual void | releaseGlObjects () |
Public Attributes | |
| bool | myBreakingWavesMapChangedFlag = true |
Protected Member Functions | |
| DtTritonBreakingWavesMapManager (DtDe &de) | |
| virtual void | setupBreakingWavesMap (void) |
| virtual void | slot_coordinateSystemChanged () |
Protected Attributes | |
| friend | DtTritonBreakingWavesMapManagerCreator |
| osg::Vec3 | myLastBreakingWavesUpdatePos |
| bool | myForceUpdate |
| float | myResolution = 10.0f |
| double | myLastUpdateTime |
| bool | myHasBreakingWaves |
| osg::ref_ptr< osg::Texture2D > | myBreakingWavesMap |
| osg::ref_ptr< osg::Image > | myBreakingWavesImage |
| osg::Matrix | myBreakingWavesMapMatrix |
| int | myBreakingWavesMapDimension |
| makVrv::DtDe & | myDe |
| DtSignalConnectionManager | myConnections |
| DtCoordinateConverter * | myCoordinateConverter = nullptr |
Private Member Functions | |
| DtTritonBreakingWavesMapManager ()=delete | |
| DtTritonBreakingWavesMapManager (const DtTritonBreakingWavesMapManager &other)=delete | |
| DtTritonBreakingWavesMapManager & | operator= (const DtTritonBreakingWavesMapManager &other)=delete |
|
virtual |
Destructor.
|
protected |
Constructor.
|
privatedelete |
not allowed
|
privatedelete |
not allowed
|
privatedelete |
not allowed
|
virtual |
Set the breaking waves map resolution in meters per texel.
|
virtual |
Gets the meters represented by one texel of the breaking waves map.
|
virtual |
Updates the breaking waves map as needed; call once per frame. Returns true if there is a new breaking waves map ready.
|
virtual |
Retrieve the matrix to transform world coordinate to texture coords.
|
virtual |
Retrieve the breaking waves map itself Raw pointer since it is held in a ref pointer in this class.
|
virtual |
Whether a breaking wave map has been generated.
|
virtual |
Force a breaking waves map update on the next frame.
|
virtual |
called by the destructor to clean up the osg ref pointers used by this class
|
protectedvirtual |
Sets up the breaking waves map's resources.
|
protectedvirtual |
slot for when the coordinate system changes
|
protected |
friend class for creating this class
| bool makVrv::DtTritonBreakingWavesMapManager::myBreakingWavesMapChangedFlag = true |
|
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.