VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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. These features include point, linear, and areal features.

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)
 
virtual ~DtFeatureSet ()
 
void clear ()
 
void visualize (int modelSet)
 
void unvisualize (int modelSet)
 
void groundClamp ()
 
const PointFeatureMappointFeatures () const
 
const EdgeFeatureMaplinearFeatures () const
 
const ArealFeatureMaparealFeatures () const
 
DtPointFeaturecreatePointFeature (DFAD::FeatureID featureId, const DtFaccCode &featureCode, unsigned int sourceId=0)
 
void destroyPointFeature (DtPointFeature *feature)
 
DtEdgeFeaturecreateEdgeFeature (DFAD::FeatureID featureId, const DtFaccCode &featureCode, unsigned int sourceId=0)
 
void destroyEdgeFeature (DtEdgeFeature *feature)
 
DtArealFeaturecreateArealFeature (DFAD::FeatureID featureId, const DtFaccCode &featureCode, unsigned int sourceId=0)
 
void destroyArealFeature (DtArealFeature *feature)
 
DtFeaturefindFeature (DtElementID id)
 
bool destroyFeature (DtElementID id)
 
- Public Member Functions inherited from makVrv::DtSignalConnectionManager
 DtSignalConnectionManager ()
 
virtual ~DtSignalConnectionManager ()
 
void manageConnection (const boost::signalslib::connection &conn)
 
DtSignalConnectionManageroperator+= (const boost::signalslib::connection &conn)
 
bool blockConnections (bool blocked)
 
int numberOfConnections () const
 
void disconnectSignals ()
 
bool connectionsBlocked () const
 

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)
 
virtual void slot_coordinateSystemChanged ()
 

Protected Attributes

DtDemyDe
 
PointFeatureMap myPointFeatures
 
EdgeFeatureMap myEdgeFeatures
 
ArealFeatureMap myArealFeatures
 
ElementFeatureMap myElementFeatureMap
 
int myModelSet
 
DtCoordinateSystemmyCoordinateSystem = nullptr
 
- Protected Attributes inherited from makVrv::DtSignalConnectionManager
Connections myConnections
 
bool myConnectionsBlocked
 
bool myIndiviualConnectionedBlocked
 
std::vector
< boost::signalslib::shared_connection_block * > 
mySharedConnectionsBlockManager
 

Additional Inherited Members

- Protected Types inherited from makVrv::DtSignalConnectionManager
typedef std::vector
< boost::signalslib::connection > 
Connections
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtFeatureSet::DtFeatureSet ( DtDe de)

CTOR.

virtual makVrv::DtFeatureSet::~DtFeatureSet ( )
virtual

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
virtual void makVrv::DtFeatureSet::slot_coordinateSystemChanged ( )
protectedvirtual

slot for when the coordinate system changes

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
DtCoordinateSystem* makVrv::DtFeatureSet::myCoordinateSystem = nullptr
protected

local clone of the system wide coordinate system. for thread safety.


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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)