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

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.
- Public Member Functions inherited from makVrv::DtFeature
virtual ~DtFeature ()
 DTOR.
DtElementID elementId () const
 Get the element id of the feature.
DFAD::FeatureID featureID () const
 Get the feature id of the feature.
const DtFaccCodefaccCode () const
 Get the feature code of the feature.
unsigned int sourceID () const
 Get the feature source id.
DFAD::SurfaceMaterialCode soilType ()
 Get the soil type of the feature.
DtFeatureVisualizerfindFeatureVisualizer ()
 Attempt to get the feature visualizer for the feature.
void setFeatureVisualizer (DtFeatureVisualizer *vis)
 Sets the feature visualizer for the feature.

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 Member Functions inherited from makVrv::DtFeature
 DtFeature (DtElementID id, DFAD::FeatureID featureID, const DtFaccCode &feautureCode, unsigned int sourceId=0)
 CTOR is protected as features can only be created using the DtFeatureSet class.

Protected Attributes

PointList myPoints
- Protected Attributes inherited from makVrv::DtFeature
const DtElementID myElementId
DFAD::FeatureID myFeatureID
unsigned int mySourceId
DtFaccCode myFeatureCode
DFAD::SurfaceMaterialCode mySoilType
float myWidth
float myLength
float myHeight
float myOrientation
DtFeatureVisualizermyFeatureVisualizer

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 ( )
protectedvirtual

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

Member Data Documentation

PointList makVrv::DtEdgeFeature::myPoints
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)