![]() |
VR-Forces 4.1.1 Class Documentation
|
Manager for setting up terrain layers in an OpenSceneGraph terrain. More...
Public Member Functions | |
| DtOsgTerrainOverlayManager (DtDe &de, osg::Node *terrain) | |
| ~DtOsgTerrainOverlayManager () | |
| virtual void | setTerrain (osg::Node *terrain) |
| Set root terrain node. | |
| virtual void | setOverlay (DtOsgTerrainOverlayOperation overlay) |
| Add (or replace if extant) selected overlay. | |
| virtual void | clearOverlays () |
| Remove all overlays. | |
| virtual void | removeOverlay (DtTerrainOverlayOperation::OverlayType type) |
| Remove specified overlay. | |
| virtual void | setOverlayScale (DtOsgTerrainOverlayOperation::OverlayType type, const std::vector< double > scale) |
| Set scale of specified overlay. | |
| virtual void | setOverlayOffset (DtOsgTerrainOverlayOperation::OverlayType type, const std::vector< double > offset) |
| Set offset of specified overlay. | |
| virtual void | setWrapMode (DtOsgTerrainOverlayOperation::OverlayType type, int) |
| Set the wrap mode of the overaly. | |
| virtual void | setBlendMode (DtOsgTerrainOverlayOperation::OverlayType type, int) |
| Set the blend mode of the overaly. | |
| virtual void | setRasterLayerPosition (DtOsgTerrainOverlayOperation::OverlayType type, int) |
| Sets the raster layer position in the operations list. | |
| virtual OverlayList | overlays () const |
| Returns list of all active overlays. | |
| virtual std::string | overlayDefinition (DtTerrainOverlayOperation::OverlayType type) const |
| Returns definition of specified overlay. | |
| virtual std::vector< double > | overlayScale (DtTerrainOverlayOperation::OverlayType type) const |
| Returns scale of specified overlay. | |
| virtual std::vector< double > | overlayOffset (DtTerrainOverlayOperation::OverlayType type) const |
| Returns offset of specified overlay. | |
| virtual DtTerrainOverlayOperation | defaultOverlay (DtOsgTerrainOverlayOperation::OverlayType type) |
| Return a reasonable default overlay of the specified type. | |
| virtual DtTerrainOverlayOperation | currentOverlay (DtOsgTerrainOverlayOperation::OverlayType type) |
| Return the current overlay of the specified type. | |
| virtual int | maxTextureUnits () |
| Returns the number of texture units to use when considering raster textures including contour lines and elevations. | |
Protected Member Functions | |
| void | initializeGraph () |
| Set up backup node before enabling any overlays. | |
| void | restoreGraph () |
| Restore scenegraph to pre-initializeGraph() state. | |
| virtual void | applyOverlays (bool reset=true) |
| Apply all active overlays. | |
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 |
Manager for setting up terrain layers in an OpenSceneGraph terrain.
|
private |
| makVrv::DtOsgTerrainOverlayManager::DtOsgTerrainOverlayManager | ( | DtDe & | de, |
| osg::Node * | terrain | ||
| ) |
| makVrv::DtOsgTerrainOverlayManager::~DtOsgTerrainOverlayManager | ( | ) |
|
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 |