VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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.

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

Classes

struct  Point
 

Public Member Functions

virtual std::string generateDisplayName () const
 
void addPoint (const DtVector &position)
 
void insertPoint (unsigned int index, const DtVector &position)
 
void removePoint (unsigned int index)
 
unsigned int numberOfPoints () const
 
const DtVector & pointLocation (unsigned int index) const
 
void setPointLocation (unsigned int index, const DtVector &pos)
 
- Public Member Functions inherited from makVrv::DtFeature
virtual ~DtFeature ()
 
DtElementID elementId () const
 
DFAD::FeatureID featureID () const
 
const DtFaccCodefaccCode () const
 
unsigned int sourceID () const
 
DFAD::SurfaceMaterialCode soilType ()
 
DtFeatureVisualizerfindFeatureVisualizer ()
 
void setFeatureVisualizer (DtFeatureVisualizer *vis)
 

Protected Types

typedef std::vector< PointPointList
 

Protected Member Functions

 DtEdgeFeature (DtElementID elementId, DFAD::FeatureID featureID, const DtFaccCode &feautureCode, unsigned int sourceId=0)
 
virtual ~DtEdgeFeature ()
 
- Protected Member Functions inherited from makVrv::DtFeature
 DtFeature (DtElementID id, DFAD::FeatureID featureID, const DtFaccCode &feautureCode, unsigned int sourceId=0)
 

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
 

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 Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)