![]() |
VR-Forces Developer's Guide
|
Manager for setting up terrain layers in an OpenSceneGraph terrain.
Protected Member Functions | |
| void | initializeGraph () |
| void | restoreGraph () |
| virtual void | applyOverlays (bool reset=true) |
Protected Attributes | |
| OverlayList | myOverlays |
| osg::ref_ptr< osg::Node > | myTerrainNode |
| osg::StateSet * | myOriginalState |
| std::vector< std::string > | myOriginalDescriptions |
| DtDe & | myDe |
| bool | myInitializedFlag |
| int | myMaxTextureUnits |
Private Types | |
| typedef std::deque < DtOsgTerrainOverlayOperation > | OverlayList |
|
private |
| makVrv::DtOsgTerrainOverlayManager::DtOsgTerrainOverlayManager | ( | DtDe & | de, |
| osg::Node * | terrain | ||
| ) |
|
virtual |
|
virtual |
Set root terrain node.
|
virtual |
Add (or replace if extant) selected overlay.
|
virtual |
Remove all overlays.
|
virtual |
Remove specified overlay.
|
virtual |
Set scale of specified overlay.
|
virtual |
Set offset of specified overlay.
|
virtual |
Set the wrap mode of the overaly.
|
virtual |
Set the blend mode of the overaly.
|
virtual |
Sets the raster layer position in the operations list.
|
virtual |
Returns list of all active overlays.
|
virtual |
Returns definition of specified overlay.
|
virtual |
Returns scale of specified overlay.
|
virtual |
Returns offset of specified overlay.
|
virtual |
Return a reasonable default overlay of the specified type.
|
virtual |
Return the current overlay of the specified type.
|
virtual |
Returns the number of texture units to use when considering raster textures including contour lines and elevations. This will attempt to (only once) to get this value from the current rendering engine. The value returned will be that value / 2 or 8 (if not found)
|
protected |
Set up backup node before enabling any overlays.
|
protected |
Restore scenegraph to pre-initializeGraph() state.
|
protectedvirtual |
Apply all active overlays.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |