![]() |
VR-Forces Developer's Guide
|

Public Member Functions | |
| DtSwitchTerrainFeature (DtDynamicTerrainSwitch *switcher, const DtString &stateName, const DtDynamicTerrainSwitchNode::ValueChildMap &valueChildMap, const osg::BoundingSphere &sphere, const std::shared_ptr< DtDynamicTerrainFeature > &parent) | |
| virtual DtString | description () const |
| virtual const DtDynamicTerrainFeature * | parentFeature () const |
| virtual void | iterateCommands (const boost::function< void(const DtDynamicTerrainChange &)> &callback, const DtString &key) const |
| virtual const DtDynamicTerrainGeometry * | geometry () const |
| virtual const DtDynamicTerrainGeometry * | originalGeometry () const |
| virtual void | changeState (const DtDynamicTerrainChanges &changes) |
| virtual bool | stringValueToState (const DtString &valueName, int &state) const |
| virtual void | setState (const DtDynamicTerrainChange *command) |
| virtual bool | isInDefaultState () const |
| virtual bool | lastStateWasDefaultState () const |
| virtual bool | matches (const DtDynamicTerrainChange &command, bool) const |
| virtual bool | matches (const DtDynamicTerrainGeometry &, bool) const |
Public Member Functions inherited from makVrv::DtDynamicTerrainFeature | |
| DtDynamicTerrainFeature () | |
| virtual | ~DtDynamicTerrainFeature () |
| virtual boost::optional< DtString > | featureAttribute (const DtString &key) const |
| virtual void | iterateCommands (const boost::function< void(const DtDynamicTerrainChange &)> &callback) const |
| void | changed () |
| bool | pageOut () |
| void | changes (const boost::function< void(const DtDynamicTerrainChanges &)> &callback) const |
| RequestHandle | addChangeRequest (DtDynamicTerrainChange *change) |
| 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::signalslib::connection | connectToChangeSignal (const ChangeCallback &callback) const |
| virtual boost::signalslib::connection | connectToPageOutSignal (const Callback &callback) const |
Public Member Functions inherited from makVrv::DtDisconnectable | |
| DtDisconnectable () | |
| virtual | ~DtDisconnectable () |
| virtual boost::signalslib::connection | addDisconnectFunction (const boost::function< void()> &callback) |
| virtual bool | callDisconnectFunctions () |
Protected Types | |
| typedef tbb::spin_mutex | Mutex |
Protected Types inherited from makVrv::DtDisconnectable | |
| enum | State { NotUsed, InUse, Disconnected } |
| typedef tbb::spin_mutex | Mutex |
Protected Attributes | |
| const std::unique_ptr < DtDynamicTerrainGeometry > | myGeometry |
| const std::unique_ptr < DtDynamicTerrainGeometry > | myOriginalGeometry |
| const std::shared_ptr < DtDynamicTerrainFeature > | myParentFeature |
| const DtString | myStateName |
| const DtDynamicTerrainSwitchNode::ValueChildMap | myValueToChildMap |
| Mutex | myMutex |
| const std::unique_ptr < DtDynamicTerrainSwitch > | mySwitcher |
Protected Attributes inherited from makVrv::DtDisconnectable | |
| Mutex | myMutex |
| State | myDisconnectedState |
| boost::signalslib::signal< void()> | myDisconnectSignal |
|
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 |
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.
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 |