VR-Forces 5.0.3 Developer's Guide
 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.

DtDynamicFeaturesContoller

Inheritance diagram for DtVrfObjectFeature:
Inheritance graph
[legend]

Public Member Functions

 DtVrfObjectFeature (const DtSimObject *object)
 
MAKVRinTerra::DtFeatureclone () const
 
void forEachAttribute (ForEachFunction) const
 
unsigned numberOfAttributes (const Key::String &) const
 
bool hasAttribute (const Key &) const
 
boost::optional< Attributeattribute (const Key &) const
 
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
 
DtFeatureGeometry geometry () const
 
void forEachAttribute (ForEachFunction func) const
 
unsigned numberOfAttributes (const typename Key::String &name) const
 
bool hasAttribute (const Key &k) const
 
boost::optional< Attributeattribute (const Key &k) const
 
DetachCallback addDeleteCallback (const DeleteCallback &callback) const
 
bool isDeleted () const
 
void setDeleted ()
 
- Public Member Functions inherited from MAKVRinTerra::DtFeature
 DtFeature ()
 
virtual ~DtFeature ()
 
template<typename T >
boost::optional< T > attributeAs (const Key &k) const
 
 DtFeature (const DtFeature &)
 

Protected Attributes

const DtSimObjectmyObject
 
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
 
typedef boost::function< void(const
Key &, const Attribute &)> 
ForEachFunction
 
typedef boost::function< void()> DetachCallback
 
typedef boost::function< void()> DeleteCallback
 
- Static Public Member Functions inherited from MAKVRinTerra::DtFeature
template<typename T >
static boost::optional< T > ConvertAttribute (const Attribute &attr)
 
static std::string TypeOfAttribute (const Attribute &)
 
static std::auto_ptr< DtFeatureCreateEmptyFeature ()
 
static std::auto_ptr< DtFeatureCreateGeometryFeature (const DtFeatureGeometry &)
 
static std::auto_ptr< DtFeatureCreateGeometryFeature (const DtFeatureGeometry &, unsigned char red, unsigned char green, unsigned char blue)
 
static std::auto_ptr< DtFeatureCreateCopy (const DtFeature &feature)
 
static bool Equal (const Attribute &, const Attribute &)
 
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 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
 

Member Typedef Documentation

Constructor & Destructor Documentation

DtVrfObjectFeature::DtVrfObjectFeature ( const DtSimObject 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 DtSimObject* 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 Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)