VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private Types
DtVrfObjectFeature Class Reference

DtDynamicFeaturesContoller; creates dynamic features from entities. More...

Inheritance diagram for DtVrfObjectFeature:
Inheritance graph
[legend]

Public Member Functions

 DtVrfObjectFeature (const DtVrfObject *object)
 
MAKVRinTerra::DtFeatureclone () 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< Attributeattribute (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 ()
 
DtFeatureclone () 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< Attributeattribute (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 DtVrfObjectmyObject
 
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< DtFeatureCreateEmptyFeature ()
 Factory function for creating features with no data. More...
 
static std::auto_ptr< DtFeatureCreateGeometryFeature (const DtFeatureGeometry &)
 Create a feature with the given geometry and no attributes. More...
 
static std::auto_ptr< DtFeatureCreateGeometryFeature (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< DtFeatureCreateCopy (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 charTypeName
 
- Protected Types inherited from MAKVRinTerra::DtDynamicFeature< MAKVRinTerra::DtFeature >
typedef tbb::spin_rw_mutex Mutex
 
typedef
boost::signals2::signal< void()> 
DeleteSignal
 
typedef std::map< Key, AttributeAttributeMap
 
- 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 ()
 

Detailed Description

DtDynamicFeaturesContoller; creates dynamic features from entities.

DtDynamicFeaturesContoller

Member Typedef Documentation

Constructor & Destructor Documentation

DtVrfObjectFeature::DtVrfObjectFeature ( const DtVrfObject object)
explicit

Member Function Documentation

MAKVRinTerra::DtFeature* DtVrfObjectFeature::clone ( ) const
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.

void DtVrfObjectFeature::forEachAttribute ( ForEachFunction  f) const
virtual

Calls the provided callback on each attribute.

Reimplemented from MAKVRinTerra::DtFeature.

unsigned DtVrfObjectFeature::numberOfAttributes ( const Key::String ) const
virtual

Number of attributes with a given key.

Reimplemented from MAKVRinTerra::DtFeature.

bool DtVrfObjectFeature::hasAttribute ( const Key k) const
virtual

Check to see if this feature has an attribute of a specific type.

Reimplemented from MAKVRinTerra::DtFeature.

boost::optional<Attribute> DtVrfObjectFeature::attribute ( const Key ) const
virtual

Get attribute at a certain key.

Reimplemented from MAKVRinTerra::DtFeature.

virtual DtObjectType DtVrfObjectFeature::objectType ( ) const
virtual
virtual std::string DtVrfObjectFeature::objectName ( ) const
virtual
virtual std::string DtVrfObjectFeature::objectUuid ( ) const
virtual
virtual DtVector DtVrfObjectFeature::position ( ) const
virtual

Member Data Documentation

const DtVrfObject* DtVrfObjectFeature::myObject
protected
DtObjectType DtVrfObjectFeature::myObjectType
protected
std::string DtVrfObjectFeature::myObjectTypeString
protected
DtVector DtVrfObjectFeature::myLastPosition
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)