![]() |
VR-Forces 4.0.4 Class Documentation
|
The edge feature is a feature that describes a vector feature, typically several connected line segments. More...

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 DtVector & | pointLocation (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< Point > | PointList |
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 |
The edge feature is a feature that describes a vector feature, typically several connected line segments.
typedef std::vector<Point> makVrv::DtEdgeFeature::PointList [protected] |
| 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.
| 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.
| DtInvalidInput | if the index is out of range. |
| void makVrv::DtEdgeFeature::setPointLocation | ( | unsigned int | index, |
| const DtVector & | pos | ||
| ) |
Set the position of a point.
| DtInvalidInput | if the index is out of range. |
friend class DtFeatureSet [friend] |
Reimplemented from makVrv::DtFeature.
Reimplemented in makVrv::DtArealFeature.
PointList makVrv::DtEdgeFeature::myPoints [protected] |