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

The edge feature is a feature that describes a vector feature, typically several connected line segments. More...

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

List of all members.

Classes

struct  Point

Public Member Functions

virtual std::string generateDisplayName () const
 Generate a display name for this feature.
void addPoint (const DtVector &position)
 Adds a new point.
void insertPoint (unsigned int index, const DtVector &position)
 Adds a new point at the index, if the index exceeds the number of points, the point is added to the end.
void removePoint (unsigned int index)
 Removes a point at a given index.
unsigned int numberOfPoints () const
 Get the number of points in the edge feature.
const DtVectorpointLocation (unsigned int index) const
 Get the position of a point.
void setPointLocation (unsigned int index, const DtVector &pos)
 Set the position of a point.

Protected Types

typedef std::vector< PointPointList

Protected Member Functions

 DtEdgeFeature (DtElementID elementId, DFAD::FeatureID featureID, const DtFaccCode &feautureCode, unsigned int sourceId=0)
 CTOR is protected, use the DtFeatureSet interface for creating features.
virtual ~DtEdgeFeature ()
 DTOR is protected, use the DtFeatureSet interface for destroying features.

Protected Attributes

PointList myPoints

Friends

class DtFeatureSet

Detailed Description

The edge feature is a feature that describes a vector feature, typically several connected line segments.


Member Typedef Documentation

typedef std::vector<Point> makVrv::DtEdgeFeature::PointList [protected]

Constructor & Destructor Documentation

makVrv::DtEdgeFeature::DtEdgeFeature ( DtElementID  elementId,
DFAD::FeatureID  featureID,
const DtFaccCode feautureCode,
unsigned int  sourceId = 0 
) [protected]

CTOR is protected, use the DtFeatureSet interface for creating features.

virtual makVrv::DtEdgeFeature::~DtEdgeFeature ( ) [protected, virtual]

DTOR is protected, use the DtFeatureSet interface for destroying features.


Member Function Documentation

virtual std::string makVrv::DtEdgeFeature::generateDisplayName ( ) const [virtual]

Generate a display name for this feature.

Implements makVrv::DtFeature.

Reimplemented in makVrv::DtArealFeature.

void makVrv::DtEdgeFeature::addPoint ( const DtVector position)

Adds a new point.

void makVrv::DtEdgeFeature::insertPoint ( unsigned int  index,
const DtVector position 
)

Adds a new point at the index, if the index exceeds the number of points, the point is added to the end.

void makVrv::DtEdgeFeature::removePoint ( unsigned int  index)

Removes a point at a given index.

unsigned int makVrv::DtEdgeFeature::numberOfPoints ( ) const

Get the number of points in the edge feature.

const DtVector& makVrv::DtEdgeFeature::pointLocation ( unsigned int  index) const

Get the position of a point.

Exceptions:
DtInvalidInputif the index is out of range.
void makVrv::DtEdgeFeature::setPointLocation ( unsigned int  index,
const DtVector pos 
)

Set the position of a point.

Exceptions:
DtInvalidInputif the index is out of range.

Friends And Related Function Documentation

friend class DtFeatureSet [friend]

Reimplemented from makVrv::DtFeature.

Reimplemented in makVrv::DtArealFeature.


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)