![]() |
VR-Forces 5.0.3 Developer's Guide
|
A class to manage multiple DtHeightMapManager(s) (one per camera)
In order for heightmaps to be enabled and used, users of this manager should register using addUser(). If there are no active users, then height maps will not be updated. When a user no longer needs height map data, the user should un-register from this manager using removeUser(). See DtTritonDrawable and DtWeatherAreaBlowingSnow for examples of how to register and unregister. Currently, this is a simple reference count.

Public Member Functions | |
| virtual | ~DtHeightMapSuperManager () |
| virtual void | setHeightMapResolution (float metersPerTexel) |
| virtual float | heightMapResolution () const |
| virtual void | deleteAllHeightMapManagers () |
| virtual int | numHeightMapManagers () const |
| virtual bool | flushInvalidCameras () |
| virtual DtHeightMapManager * | getOrCreateHeightMapManager (osg::RenderInfo &renderInfo) |
| virtual void | addUser () |
| virtual void | removeUser () |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtHeightMapSuperManager & | instance (DtDe &de) |
Protected Types | |
| typedef std::map < osg::observer_ptr < osg::Camera > , DtHeightMapManager * > | MapCamerasToHeightMapManagers |
Protected Member Functions | |
| DtHeightMapSuperManager (DtDe &de) | |
| virtual void | disconnectAllHeightMapManagers (void) |
Protected Attributes | |
| DtDe & | myDe |
| MapCamerasToHeightMapManagers | myHeightMapManagerMap |
| float | myHeightMapResolution |
| osg::ref_ptr< osg::Geode > | myHeightMapGeode |
| osg::ref_ptr < makVrv::DtHeightMapDrawable > | myHeightMapDrawable |
| int | myUsers |
Private Member Functions | |
| DtHeightMapSuperManager ()=delete | |
| DtHeightMapSuperManager (const DtHeightMapSuperManager &other)=delete | |
| DtHeightMapSuperManager & | operator= (const DtHeightMapSuperManager &other)=delete |
|
protected |
|
virtual |
Destructor.
|
protected |
Constructor.
|
privatedelete |
Default Constructor not implemented.
|
privatedelete |
Copy Constructor not implemented – Copy Not Allowed.
|
privatedelete |
Assignment Operator Not implemented – Assignment Not Allowed.
|
static |
|
virtual |
Set the height map resolution for all managers.
|
virtual |
Get the height map resolution that all managers use.
|
virtual |
Delete all the height map managers owned by this super manager.
|
virtual |
returns how many height map managers are owned by this supter manager
|
virtual |
delete any height map managers that are associated with osg cameras that are no longer valid
|
virtual |
get or create a new height map manager based on the current camera for this renderInfo
|
virtual |
Adds a user to this manager. The user should unregister using removeUser().
|
virtual |
Removes a user from this manager that was previously added with addUser().
|
protectedvirtual |
Ensures that all height map managers are dicconnected from the scene graph.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |