![]() |
VR-Forces Developer's Guide
|
Manages show/hide of image or model layers by stealth view mode. Will change the optional data in the terrain record such that when the terrain is saved the current layer show/hide state is preserved.

Public Member Functions | |
| DtEarthLayerVisibilityManager (makVrv::DtDe &) | |
| virtual | ~DtEarthLayerVisibilityManager () override |
| virtual void | setImageLayerVisibleForMode (int layer, bool visible, int mode=-1) |
| virtual void | setImageLayerVisibleForMode (const std::string &layerName, bool visible, int mode=-1) |
| virtual void | setModelLayerVisibleForMode (int layer, bool visible, int mode=-1) |
| virtual void | setModelLayerVisibleForMode (const std::string &layerName, bool visible, int mode=-1) |
| virtual std::vector< bool > | imageLayerEnabledStates (int layer) const |
| virtual std::vector< bool > | imageLayerEnabledStates (const std::string &imageLayerName) const |
| virtual bool | imageLayerEnabledState (int layer, int mode) const |
| virtual bool | imageLayerEnabledState (const std::string &imageLayerName, int mode) const |
| virtual std::vector< bool > | modelLayerEnabledStates (int layer) const |
| virtual std::vector< bool > | modelLayerEnabledStates (const std::string &modelLayerName) const |
| virtual bool | modelLayerEnabledState (int layer, int mode) const |
| virtual bool | modelLayerEnabledState (const std::string &modelLayerName, int mode) const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtEarthLayerVisibilityManager & | instance (makVrv::DtDe &de) |
| static void | registerInstance (makVrv::DtDe &, DtEarthLayerVisibilityManager *) |
Protected Types | |
| typedef std::vector < osg::ref_ptr < osgEarth::ImageLayer > > | ImageLayerVector |
| typedef std::vector < osg::ref_ptr < osgEarth::FeatureModelLayer > > | FeatureModelLayerVector |
Protected Member Functions | |
| virtual std::string | imageLayerName (int) const |
| virtual int | indexOfImageLayer (const std::string &) const |
| virtual std::string | modelLayerName (int) const |
| virtual int | indexOfModelLayer (const std::string &) const |
| virtual std::string | nameFromLayer (const std::string &) const |
| virtual void | setLayerVisibilityState (const std::string &name, bool visible, bool curVisible, int mode) const |
| virtual void | setup () |
| virtual void | slot_terrainCleared () |
| virtual std::vector< bool > | visibilityStates (const std::string &layerName) const |
| virtual bool | visibilityState (const std::string &layerName, int mode) const |
| virtual void | onCurrentObserverChanged (makVrv::DtInputDriver *, makVrv::DtObserver *) |
| virtual void | onObserverAboutToBeDestroyed (makVrv::DtInputDriver *, makVrv::DtObserver *) |
| virtual void | onObserverModeChanged (makVrv::DtObserver *, int mode) |
| virtual void | setCurrentObserver (makVrv::DtObserver *) |
| virtual void | setupLayersBasedOnCurrentObserver () |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| makVrv::DtSignalConnectionManager | mySignals |
| osgEarth::MapNode * | myMapNode |
| makVrv::DtObserver * | myCurrentObserver |
| ImageLayerVector | myImageLayers |
| FeatureModelLayerVector | myFeatureModelLayers |
|
protected |
|
protected |
| makVrf::DtEarthLayerVisibilityManager::DtEarthLayerVisibilityManager | ( | makVrv::DtDe & | ) |
CTOR.
|
overridevirtual |
DTOR.
|
static |
Returns DtEarthLayerVisibilityManager of the manager.
|
static |
Register a new manager instance.
|
virtual |
Set image layer visible/hidden for the particular mode. Mode of -1 sets visible/hidden for all modes.
|
virtual |
|
virtual |
Set model layer visible/hidden for the particular mode. Mode of -1 sets visible/hidden for all modes.
|
virtual |
|
virtual |
Gets all enabled states for the particular image layer.
|
virtual |
|
virtual |
Gets the enabled state for the particular mode for the specified image layer.
|
virtual |
|
virtual |
Gets all enabled states for the particular model layer.
|
virtual |
|
virtual |
Gets the enabled state for the particular mode for the specified model layer.
|
virtual |
|
protectedvirtual |
For the given layer, return the internal image layer name.
|
protectedvirtual |
|
protectedvirtual |
For the given layer, return the internal model layer name.
|
protectedvirtual |
|
protectedvirtual |
Returns the name from the given layer. Strips off internal name.
|
protectedvirtual |
Sets the layer visibility state in the terrain record only. If record does not exist fills with default visibility state.
|
protectedvirtual |
Find osgEarth map node.
|
protectedvirtual |
Called when the terrain is closed.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |