VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtFeatureSet Class Reference

The DtFeatureSet contains all of the features of a particular database. More...

Inheritance diagram for makVrv::DtFeatureSet:
Inheritance graph
[legend]

List of all members.

Public Types

typedef boost::unordered_map
< DtPointFeature
*, DtPointFeatureVisualizer * > 
PointFeatureMap
typedef boost::unordered_map
< DtEdgeFeature
*, DtEdgeFeatureVisualizer * > 
EdgeFeatureMap
typedef boost::unordered_map
< DtArealFeature
*, DtArealFeatureVisualizer * > 
ArealFeatureMap
typedef boost::unordered_map
< DtElementID, DtFeature * > 
ElementFeatureMap

Public Member Functions

 DtFeatureSet (DtDe &de)
 CTOR.
 ~DtFeatureSet ()
 DTOR.
void clear ()
 Removes all features in this set.
void visualize (int modelSet)
 Visualizes all features in the set for a given model set.
void unvisualize (int modelSet)
 Stop visualizes all features in the set for a given model set.
void groundClamp ()
 Ground clamp all of the props.
const PointFeatureMappointFeatures () const
 Get the container of all point features.
const EdgeFeatureMaplinearFeatures () const
 Get the container of all edge features.
const ArealFeatureMaparealFeatures () const
 Get the container of all edge features.
DtPointFeaturecreatePointFeature (DFAD::FeatureID featureId, const DtFaccCode &featureCode, unsigned int sourceId=0)
 Create a point feature with a given specification.
void destroyPointFeature (DtPointFeature *feature)
 Destroy a point feature.
DtEdgeFeaturecreateEdgeFeature (DFAD::FeatureID featureId, const DtFaccCode &featureCode, unsigned int sourceId=0)
 Create an edge feature with a given specification.
void destroyEdgeFeature (DtEdgeFeature *feature)
 Destroy an edge feature.
DtArealFeaturecreateArealFeature (DFAD::FeatureID featureId, const DtFaccCode &featureCode, unsigned int sourceId=0)
 Create an edge feature with a given specification.
void destroyArealFeature (DtArealFeature *feature)
 Destroy an edge feature.
DtFeaturefindFeature (DtElementID id)
 Find a feature by it's element id.
bool destroyFeature (DtElementID id)
 Destroy a feature by it's element id.

Protected Member Functions

void slot_onFeatureInfoChanged (const DtFaccCode &code, const DtFaccInfo &info)
void slot_selectionChanged (const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &deselected, DtSelectionManager::SelectionType newType, DtSelectionManager::SelectionType oldType)

Protected Attributes

DtDemyDe
PointFeatureMap myPointFeatures
EdgeFeatureMap myEdgeFeatures
ArealFeatureMap myArealFeatures
ElementFeatureMap myElementFeatureMap
int myModelSet

Detailed Description

The DtFeatureSet contains all of the features of a particular database.

These features include point, linear, and areal features.


Member Typedef Documentation


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

Removes all features in this set.

void makVrv::DtFeatureSet::visualize ( int  modelSet)

Visualizes all features in the set for a given model set.

void makVrv::DtFeatureSet::unvisualize ( int  modelSet)

Stop visualizes all features in the set for a given model set.

Ground clamp all of the props.

Get the container of all point features.

Get the container of all edge features.

Get the container of all edge features.

DtPointFeature* makVrv::DtFeatureSet::createPointFeature ( DFAD::FeatureID  featureId,
const DtFaccCode featureCode,
unsigned int  sourceId = 0 
)

Create a point feature with a given specification.

The point feature is stored inside the feature set. The pointer returned should not be deleted.

Destroy a point feature.

Removes and delete the point feature provided. The memory pointed to by the input pointer is invalid after this call.

DtEdgeFeature* makVrv::DtFeatureSet::createEdgeFeature ( DFAD::FeatureID  featureId,
const DtFaccCode featureCode,
unsigned int  sourceId = 0 
)

Create an edge feature with a given specification.

The edge feature is stored inside the feature set. The pointer returned should not be deleted.

Destroy an edge feature.

Removes and delete the edge feature provided. The memory pointed to by the input pointer is invalid after this call.

DtArealFeature* makVrv::DtFeatureSet::createArealFeature ( DFAD::FeatureID  featureId,
const DtFaccCode featureCode,
unsigned int  sourceId = 0 
)

Create an edge feature with a given specification.

The edge feature is stored inside the feature set. The pointer returned should not be deleted.

Destroy an edge feature.

Removes and delete the edge feature provided. The memory pointed to by the input pointer is invalid after this call.

Find a feature by it's element id.

Destroy a feature by it's element id.

void makVrv::DtFeatureSet::slot_onFeatureInfoChanged ( const DtFaccCode code,
const DtFaccInfo info 
) [protected]

Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)