![]() |
VR-Forces 4.10 Class Documentation
|
A class to manage multiple DtHeightMapManager(s) (one per camera) More...

Public Member Functions | |
| virtual | ~DtHeightMapSuperManager () |
| Destructor. More... | |
| virtual void | setHeightMapResolution (float metersPerTexel) |
| Set the height map resolution for all managers. More... | |
| virtual float | heightMapResolution () const |
| Get the height map resolution that all managers use. More... | |
| virtual void | deleteAllHeightMapManagers () |
| Delete all the height map managers owned by this super manager. More... | |
| virtual int | numHeightMapManagers () const |
| returns how many height map managers are owned by this supter manager More... | |
| virtual bool | flushInvalidCameras () |
| delete any height map managers that are associated with osg cameras that are no longer valid More... | |
| virtual DtHeightMapManager * | getOrCreateHeightMapManager (osg::RenderInfo &renderInfo) |
| get or create a new height map manager based on the current camera for this renderInfo More... | |
| virtual void | addUser () |
| Adds a user to this manager. The user should unregister using removeUser(). More... | |
| virtual void | removeUser () |
| Removes a user from this manager that was previously added with addUser(). More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
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) | |
| Constructor. More... | |
| virtual void | disconnectAllHeightMapManagers (void) |
| Ensures that all height map managers are dicconnected from the scene graph. More... | |
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 | |
| Default Constructor not implemented. More... | |
| DtHeightMapSuperManager (const DtHeightMapSuperManager &other)=delete | |
| Copy Constructor not implemented – Copy Not Allowed. More... | |
| DtHeightMapSuperManager & | operator= (const DtHeightMapSuperManager &other)=delete |
| Assignment Operator Not implemented – Assignment Not Allowed. More... | |
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.
|
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 |