![]() |
VR-Forces 4.8 Class Documentation
|
DtDynamicFeaturesContoller; creates dynamic features from entities. More...

Public Member Functions | |
| DtVrfObjectFeature (const DtVrfObject *object) | |
| MAKVRinTerra::DtFeature * | clone () const |
| Return a pointer to an object which represents the current feature. More... | |
| void | forEachAttribute (ForEachFunction) const |
| Calls the provided callback on each attribute. More... | |
| unsigned | numberOfAttributes (const Key::String &) const |
| Number of attributes with a given key. More... | |
| bool | hasAttribute (const Key &) const |
| Check to see if this feature has an attribute of a specific type. More... | |
| boost::optional< Attribute > | attribute (const Key &) const |
| Get attribute at a certain key. More... | |
| virtual DtObjectType | objectType () const |
| virtual std::string | objectName () const |
| virtual std::string | objectUuid () const |
| virtual DtVector | position () const |
Public Member Functions inherited from MAKVRinTerra::DtDynamicFeature< MAKVRinTerra::DtFeature > | |
| DtDynamicFeature (DtFeatureGeometry geom=DtFeatureGeometry()) | |
| ~DtDynamicFeature () | |
| DtFeature * | clone () const |
| Return a pointer to an object which represents the current feature. More... | |
| DtFeatureGeometry | geometry () const |
| Get the geometry associated with this feature. More... | |
| void | forEachAttribute (ForEachFunction func) const |
| Calls the provided callback on each attribute. More... | |
| unsigned | numberOfAttributes (const typename Key::String &name) const |
| bool | hasAttribute (const Key &k) const |
| Check to see if this feature has an attribute of a specific type. More... | |
| boost::optional< Attribute > | attribute (const Key &k) const |
| Get attribute at a certain key. More... | |
| DetachCallback | addDeleteCallback (const DeleteCallback &callback) const |
| Add a user supplied callback to the feature to be called when the feature is deleted. More... | |
| bool | isDeleted () const |
| Check to see if feature has been deleted. More... | |
| void | setDeleted () |
Public Member Functions inherited from MAKVRinTerra::DtFeature | |
| DtFeature () | |
| virtual | ~DtFeature () |
| Virtual destructor. More... | |
| template<typename T > | |
| boost::optional< T > | attributeAs (const Key &k) const |
| Return attribute as a specific type using build in conversion methods. More... | |
| DtFeature (const DtFeature &) | |
Protected Attributes | |
| const DtVrfObject * | myObject |
| DtObjectType | myObjectType |
| std::string | myObjectTypeString |
| DtVector | myLastPosition |
Protected Attributes inherited from MAKVRinTerra::DtDynamicFeature< MAKVRinTerra::DtFeature > | |
| Mutex | myMutex |
| bool | myDeletedFlag |
| DeleteSignal | myDeleteSignal |
| DtFeatureGeometry | myGeometry |
| AttributeMap | myAttributes |
Private Types | |
| typedef MAKVRinTerra::DtDynamicFeature < MAKVRinTerra::DtFeature > | Base |
Additional Inherited Members | |
Public Types inherited from MAKVRinTerra::DtDynamicFeature< MAKVRinTerra::DtFeature > | |
| typedef MAKVRinTerra::DtFeature::ForEachFunction | ForEachFunction |
| typedef MAKVRinTerra::DtFeature::Key | Key |
| typedef MAKVRinTerra::DtFeature::Attribute | Attribute |
| typedef MAKVRinTerra::DtFeature::DeleteCallback | DeleteCallback |
| typedef MAKVRinTerra::DtFeature::DetachCallback | DetachCallback |
| typedef boost::shared_ptr < DtDynamicFeature > | Ptr |
| typedef boost::shared_ptr < const DtDynamicFeature > | CPtr |
Public Types inherited from MAKVRinTerra::DtFeature | |
| typedef boost::shared_ptr < DtFeature > | Ptr |
| typedef boost::shared_ptr < const DtFeature > | CPtr |
| typedef boost::variant < std::string, long long, bool, double > | Attribute |
| boost::variant type for accessing attributes. More... | |
| typedef boost::function< void(const Key &, const Attribute &)> | ForEachFunction |
| Callback used to iterating through attributes with ForEachAttribute. More... | |
| typedef boost::function< void()> | DetachCallback |
| Callback used to detach the user from a feature so the users callback is not called anymore. More... | |
| typedef boost::function< void()> | DeleteCallback |
| User supplied callback called when feature is deleted. More... | |
Static Public Member Functions inherited from MAKVRinTerra::DtFeature | |
| template<typename T > | |
| static boost::optional< T > | ConvertAttribute (const Attribute &attr) |
| Convert an attribute to a type using iostream. More... | |
| static std::string | TypeOfAttribute (const Attribute &) |
| String type description of an attribute's type. More... | |
| static std::auto_ptr< DtFeature > | CreateEmptyFeature () |
| Factory function for creating features with no data. More... | |
| static std::auto_ptr< DtFeature > | CreateGeometryFeature (const DtFeatureGeometry &) |
| Create a feature with the given geometry and no attributes. More... | |
| static std::auto_ptr< DtFeature > | CreateGeometryFeature (const DtFeatureGeometry &, unsigned char red, unsigned char green, unsigned char blue) |
| Create a feature with the given geometry and an integer RGB color attribute which will be used by the features debug drawer. More... | |
| static std::auto_ptr< DtFeature > | CreateCopy (const DtFeature &feature) |
| Create a copy of a feature. More... | |
| static bool | Equal (const Attribute &, const Attribute &) |
| Attribute compare attributes with intelligent conversions. More... | |
| static bool | NotEqual (const Attribute &, const Attribute &) |
| static bool | Less (const Attribute &, const Attribute &) |
| static bool | LessOrEqual (const Attribute &, const Attribute &) |
| static bool | Greater (const Attribute &, const Attribute &) |
| static bool | GreaterOrEqual (const Attribute &, const Attribute &) |
| static bool | Regex (const Attribute &text, const Attribute &pattern) |
Static Public Member Functions inherited from DtObjectDebugger< DtFeature > | |
| static DtObjectCounter::CounterType | ObjectCount () |
| static const DtObjectContainer * | ObjectContainer () |
Static Public Member Functions inherited from DtObjectDebugger< DtDynamicFeature< MAKVRinTerra::DtFeature > > | |
| static DtObjectCounter::CounterType | ObjectCount () |
| static const DtObjectContainer * | ObjectContainer () |
Static Public Attributes inherited from MAKVRinTerra::DtFeature | |
| static const char * | TypeName |
Protected Types inherited from MAKVRinTerra::DtDynamicFeature< MAKVRinTerra::DtFeature > | |
| typedef tbb::spin_rw_mutex | Mutex |
| typedef boost::signals2::signal< void()> | DeleteSignal |
| typedef std::map< Key, Attribute > | AttributeMap |
Protected Member Functions inherited from DtObjectDebugger< DtFeature > | |
| DtObjectDebugger () | |
| DtObjectDebugger (const DtObjectDebugger &) | |
| ~DtObjectDebugger () | |
Protected Member Functions inherited from DtObjectDebugger< DtDynamicFeature< MAKVRinTerra::DtFeature > > | |
| DtObjectDebugger () | |
| DtObjectDebugger (const DtObjectDebugger &) | |
| ~DtObjectDebugger () | |
DtDynamicFeaturesContoller; creates dynamic features from entities.
DtDynamicFeaturesContoller
|
explicit |
|
virtual |
Return a pointer to an object which represents the current feature.
In order to enable paging and efficient representation of features, this method should return a pointer to feature which contains all the same data as the current feature but may be a different object. This allows DtFeature objects to be created on the stack and to not create the actual heap allocated and page tracked object until the point at which it is needed.
Reimplemented from MAKVRinTerra::DtFeature.
|
virtual |
Calls the provided callback on each attribute.
Reimplemented from MAKVRinTerra::DtFeature.
|
virtual |
Number of attributes with a given key.
Reimplemented from MAKVRinTerra::DtFeature.
Check to see if this feature has an attribute of a specific type.
Reimplemented from MAKVRinTerra::DtFeature.
Get attribute at a certain key.
Reimplemented from MAKVRinTerra::DtFeature.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |