![]() |
VR-Forces 4.8 Class Documentation
|

Public Member Functions | |
| DtSwitchTerrainFeature (DtDynamicTerrainSwitch *switcher, const DtString &stateName, const DtDynamicTerrainSwitchNode::ValueChildMap &valueChildMap, const osg::BoundingSphere &sphere, const boost::shared_ptr< DtDynamicTerrainFeature > &parent) | |
| virtual DtString | description () const |
| Feature description functions Allows feature to describe itself (for a gui mostly). More... | |
| virtual const DtDynamicTerrainFeature * | parentFeature () const |
| virtual void | iterateCommands (const boost::function< void(const DtDynamicTerrainChange &)> &callback, const DtString &key) const |
| virtual const DtDynamicTerrainGeometry * | geometry () const |
| Geometry which represents this feature. More... | |
| virtual const DtDynamicTerrainGeometry * | originalGeometry () const |
| Unprocessed geometry. More... | |
| virtual bool | matches (const DtDynamicTerrainChange &command, bool useOriginalGeometry) const |
| Matching functions. More... | |
| virtual bool | matches (const DtDynamicTerrainGeometry &, bool useOriginalGeometry) const |
| virtual void | changeState (const DtDynamicTerrainChanges &changes) |
| Called by the dynamic terrain system in order to notify a feature that it should change its state. More... | |
| virtual bool | stringValueToState (const DtString &valueName, int &state) const |
| Convert a string value (such as one found in the value field of a change request to the state value of a DtDynamicTerrainSwitchNode to which it corresponds. More... | |
| virtual void | setState (const DtDynamicTerrainChange *command) |
| virtual bool | isInDefaultState () const |
| Is this feature in it's default (i.e. unchanged) state? More... | |
| virtual bool | lastStateWasDefaultState () const |
| Was the previous state the feature was in immediately before the current state the default state? More... | |
Public Member Functions inherited from makVrv::DtDynamicTerrainFeature | |
| DtDynamicTerrainFeature () | |
| Default Constructor. More... | |
| virtual | ~DtDynamicTerrainFeature () |
| Virtual destructor. More... | |
| virtual boost::optional< DtString > | featureAttribute (const DtString &key) const |
| Access attribute values encoded into features. More... | |
| virtual void | iterateCommands (const boost::function< void(const DtDynamicTerrainChange &)> &callback) const |
| Call the supplied callback on commands which represent the commands a feature can respond to. More... | |
| void | changed () |
| Calls changeState and all attached query callbacks. More... | |
| bool | pageOut () |
| Remove all change requests links and remove feature from dynamic terrain world. More... | |
| void | changes (const boost::function< void(const DtDynamicTerrainChanges &)> &callback) const |
| Calls supplied callback on this features DtDynamicTerrainChanges interface. More... | |
| RequestHandle | addChangeRequest (DtDynamicTerrainChange *change) |
| Add a change request directly to this feature. More... | |
| RequestHandle | addChangeRequest (double time, DtDynamicTerrainChange *change) |
| virtual | ~Link () |
| RequestInfo & | request () |
| DtDynamicTerrainFeature & | feature () |
| RequestInfo (DtDynamicTerrainChange *command) | |
| virtual | ~RequestInfo () |
| const DtDynamicTerrainChange & | command () const |
| void | pageOut () |
| virtual boost::signals2::connection | connectToChangeSignal (const ChangeCallback &callback) const |
| Call callback when feature state is changed. More... | |
| virtual boost::signals2::connection | connectToPageOutSignal (const Callback &callback) const |
| Call callback when feature is removed. More... | |
Public Member Functions inherited from makVrv::DtDisconnectable | |
| DtDisconnectable () | |
| Default constructor. More... | |
| virtual | ~DtDisconnectable () |
| Destructor. More... | |
| virtual boost::signals2::connection | addDisconnectFunction (const boost::function< void()> &callback) |
| Add a function to be called when callDisconnectFunctions is called. More... | |
| virtual bool | callDisconnectFunctions () |
| Atomically call all the disconnect functions and mark this object as disconnected. More... | |
Protected Types | |
| typedef tbb::spin_mutex | Mutex |
| Mutex to prevent concurrent state switch in mySwitcher. More... | |
Protected Types inherited from makVrv::DtDisconnectable | |
| enum | State { NotUsed, InUse, Disconnected } |
| typedef tbb::spin_mutex | Mutex |
Protected Attributes | |
| const boost::scoped_ptr < DtDynamicTerrainGeometry > | myGeometry |
| const boost::scoped_ptr < DtDynamicTerrainGeometry > | myOriginalGeometry |
| const boost::shared_ptr < DtDynamicTerrainFeature > | myParentFeature |
| const DtString | myStateName |
| const DtDynamicTerrainSwitchNode::ValueChildMap | myValueToChildMap |
| Mutex | myMutex |
| boost::scoped_ptr < DtDynamicTerrainSwitch > | mySwitcher |
Protected Attributes inherited from makVrv::DtDisconnectable | |
| Mutex | myMutex |
| State | myDisconnectedState |
| boost::signals2::signal< void()> | myDisconnectSignal |
Additional Inherited Members | |
Public Types inherited from makVrv::DtDynamicTerrainFeature | |
| typedef boost::function< void(const DtDynamicTerrainFeature &)> | Callback |
| Signal notification. More... | |
| typedef boost::function< void(const DtDynamicTerrainFeature &, const DtDynamicTerrainChanges &)> | ChangeCallback |
Static Public Member Functions inherited from makVrv::DtDynamicTerrainFeature | |
| static unsigned long long | GetObjectCount () |
| static unsigned long long | GetObjectCount () |
| static bool | Create (const boost::shared_ptr< DtDynamicTerrainFeature > &featureInfo, const boost::shared_ptr< RequestInfo > &reqInfo) |
| static unsigned long long | GetObjectCount () |
Protected Member Functions inherited from makVrv::DtDynamicTerrainFeature | |
| virtual void | removeTerrainChange (const DtDynamicTerrainChange &change) |
| This method is called when a change is removed. More... | |
| void | indexDoubleAscending (const DtString &key) |
| Key/value attribute indexing. More... | |
| void | indexDoubleDescending (const DtString &key) |
| void | indexIntAscending (const DtString &key) |
| void | indexIntDescending (const DtString &key) |
| void | indexStringAscending (const DtString &key) |
| void | indexStringDescending (const DtString &key) |
| void | setupIndex (const DtString &key, DtDynamicTerrainIndex *index) |
|
protected |
Mutex to prevent concurrent state switch in mySwitcher.
|
explicit |
|
virtual |
Feature description functions Allows feature to describe itself (for a gui mostly).
These can all be called from query callbacks. None of the values returned by these functions have any meaning besides informational. A description of what is in the feature, how it is setup, configuration, etc.
Implements makVrv::DtDynamicTerrainFeature.
|
virtual |
Reimplemented from makVrv::DtDynamicTerrainFeature.
|
virtual |
Reimplemented from makVrv::DtDynamicTerrainFeature.
|
virtual |
Geometry which represents this feature.
Implements makVrv::DtDynamicTerrainFeature.
|
virtual |
Unprocessed geometry.
Reimplemented from makVrv::DtDynamicTerrainFeature.
|
virtual |
Matching functions.
Allow for arbitrary matching against requests, queries, and spatial index subspaces. Setting useOriginalGeometry will match against the geometry without any changes made by this system (i.e. uses the original geometry obtained from the parser).
Implements makVrv::DtDynamicTerrainFeature.
|
virtual |
Implements makVrv::DtDynamicTerrainFeature.
|
virtual |
Called by the dynamic terrain system in order to notify a feature that it should change its state.
The history is an interface into the all of the terrain state changes. This function may be called concurrently from multiple threads.
| history | History interface. |
Implements makVrv::DtDynamicTerrainFeature.
|
virtual |
Convert a string value (such as one found in the value field of a change request to the state value of a DtDynamicTerrainSwitchNode to which it corresponds.
|
virtual |
|
virtual |
Is this feature in it's default (i.e. unchanged) state?
Implements makVrv::DtDynamicTerrainFeature.
|
virtual |
Was the previous state the feature was in immediately before the current state the default state?
Implements makVrv::DtDynamicTerrainFeature.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |