VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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]

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.
- Public Member Functions inherited from makVrv::DtSignalConnectionManager
 DtSignalConnectionManager ()
 CTOR.
virtual ~DtSignalConnectionManager ()
 DTOR.
void manageConnection (const boost::signalslib::connection &conn)
 Connect a signal.
DtSignalConnectionManageroperator+= (const boost::signalslib::connection &conn)
 Connect a signal.
int numberOfConnections () const
 Get the number of connections.
void disconnectSignals ()
 Disconnect all signals.
bool blockConnections (bool blocked)
 Blocks/unblocks connections.
bool blockConnection (int index, bool blocked)
 Blocks/unblocks connections.
bool connectionsBlocked () const
 check whether connections are blocked.
bool connectionBlocked (int index) const
 check whether connections are blocked.

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
- Protected Attributes inherited from makVrv::DtSignalConnectionManager
Connections myConnections
 The connected signals.
bool myConnectionsBlocked
bool myIndiviualConnectionedBlocked

Additional Inherited Members

- Protected Types inherited from makVrv::DtSignalConnectionManager
typedef std::vector
< boost::signalslib::connection > 
Connections
 A collection of signals.

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

makVrv::DtFeatureSet::DtFeatureSet ( DtDe de)

CTOR.

makVrv::DtFeatureSet::~DtFeatureSet ( )

DTOR.

Member Function Documentation

void makVrv::DtFeatureSet::clear ( )

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.

void makVrv::DtFeatureSet::groundClamp ( )

Ground clamp all of the props.

const PointFeatureMap& makVrv::DtFeatureSet::pointFeatures ( ) const

Get the container of all point features.

const EdgeFeatureMap& makVrv::DtFeatureSet::linearFeatures ( ) const

Get the container of all edge features.

const ArealFeatureMap& makVrv::DtFeatureSet::arealFeatures ( ) const

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.

void makVrv::DtFeatureSet::destroyPointFeature ( DtPointFeature feature)

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.

void makVrv::DtFeatureSet::destroyEdgeFeature ( DtEdgeFeature feature)

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.

void makVrv::DtFeatureSet::destroyArealFeature ( DtArealFeature feature)

Destroy an edge feature.

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

DtFeature* makVrv::DtFeatureSet::findFeature ( DtElementID  id)

Find a feature by it's element id.

bool makVrv::DtFeatureSet::destroyFeature ( DtElementID  id)

Destroy a feature by it's element id.

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

Member Data Documentation

DtDe& makVrv::DtFeatureSet::myDe
protected
PointFeatureMap makVrv::DtFeatureSet::myPointFeatures
protected
EdgeFeatureMap makVrv::DtFeatureSet::myEdgeFeatures
protected
ArealFeatureMap makVrv::DtFeatureSet::myArealFeatures
protected
ElementFeatureMap makVrv::DtFeatureSet::myElementFeatureMap
protected
int makVrv::DtFeatureSet::myModelSet
protected

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)