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

Public Member Functions | |
| DynamicFeature (const DtPoint &location, double radius) | |
| ~DynamicFeature () | |
| DtString | description () const |
| Feature description functions Allows feature to describe itself (for a gui mostly). More... | |
| bool | matches (const makVrv::DtDynamicTerrainChange &, bool useOriginalGeometry=false) const |
| Matching functions. More... | |
| bool | matches (const makVrv::DtDynamicTerrainGeometry &, bool useOriginalGeometry=false) const |
| const makVrv::DtDynamicTerrainGeometry * | geometry () const |
| Geometry which represents this feature. More... | |
| const makVrv::DtDynamicTerrainGeometry * | originalGeometry () const |
| Unprocessed geometry. More... | |
| bool | isInDefaultState () const |
| Is this feature in it's default (i.e. unchanged) state? More... | |
| bool | lastStateWasDefaultState () const |
| Was the previous state the feature was in immediately before the current state the default state? More... | |
| void | changeState (const makVrv::DtDynamicTerrainChanges &history) |
| Called by the dynamic terrain system in order to notify a feature that it should change its state. More... | |
| void | iterateCommands (const boost::function< void(const makVrv::DtDynamicTerrainChange &)> &) const |
| Call the supplied callback on commands which represent the commands a feature can respond to. More... | |
| void | setToDefaultState () |
| makVrv::DtDynamicTerrainChange * | createChange () const |
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 DtString &key) const |
| 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 const DtDynamicTerrainFeature * | parentFeature () const |
| virtual boost::signalslib::connection | connectToChangeSignal (const ChangeCallback &callback) const |
| Call callback when feature state is changed. More... | |
| virtual boost::signalslib::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::signalslib::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 Attributes | |
| makVrv::DtDynamicTerrainGeometry * | myGeometry |
| makVrv::DtDynamicTerrainGeometry * | myOriginalGeometry |
| tbb::atomic< bool > | myDefaultStateFlag |
Protected Attributes inherited from makVrv::DtDisconnectable | |
| Mutex | myMutex |
| State | myDisconnectedState |
| boost::signalslib::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 Types inherited from makVrv::DtDisconnectable | |
| enum | State { NotUsed, InUse, Disconnected } |
| typedef tbb::spin_mutex | Mutex |
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) |
|
explicit |
| DtDynamicTerrainGeometryHandle::DynamicFeature::~DynamicFeature | ( | ) |
|
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 |
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 |
Geometry which represents this feature.
Implements makVrv::DtDynamicTerrainFeature.
|
virtual |
Unprocessed geometry.
Reimplemented from makVrv::DtDynamicTerrainFeature.
|
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.
|
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 |
Call the supplied callback on commands which represent the commands a feature can respond to.
This function is designed to be called from a query callback. The purpose of this function is supply a gui or other introspective tool with commands to issue (possibly modified) to this feature or to the terrain. A feature should create commands which they could respond to and would cause them to set themselves to the state they are in now. If there is some command a feature can respond to, outputting it in this function will allow a gui to do things like automatically create a menu with all the possibilities. The commands know the types of the attributes they contain, so the gui will know how to edit the values correctly in order to let the user change the commands before they are issued.
Reimplemented from makVrv::DtDynamicTerrainFeature.
| void DtDynamicTerrainGeometryHandle::DynamicFeature::setToDefaultState | ( | ) |
| makVrv::DtDynamicTerrainChange* DtDynamicTerrainGeometryHandle::DynamicFeature::createChange | ( | ) | const |
|
protected |
|
protected |
|
protected |