![]() |
VR-Forces 4.7 Class Documentation
|
DtNetworkAreaMetric is detect if a point is an area. More...

Public Member Functions | |
| DtNetworkAreaMetric () | |
| Default constructor. | |
| virtual | ~DtNetworkAreaMetric () |
| Destructor. | |
| DtNetworkAreaMetric (const DtNetworkAreaMetric &orig) | |
| Copy constructor. | |
| DtNetworkAreaMetric & | operator= (const DtNetworkAreaMetric &orig) |
| Assignment operator. | |
| virtual double | measure (const DtNetworkSegment &seg) const |
| virtual bool | valid (const DtNetworkSegment &seg) const |
| Validate the seg using the range, equal, less-than, and greater-than conditions. | |
| virtual const DtPoint & | centerOfInterest () const |
| Get/set center of interest. | |
| virtual void | setCenterOfInterest (const DtPoint ¢erOfInterest) |
| virtual DtVector | vectorCenterOfInterest () const |
| get/set center of interest–DtVector form | |
| virtual void | setCenterOfInterest (const DtVector ¢erOfInterest) |
| virtual void | initialize (Coordinate_System *cs) |
| Initialize the metric. | |
Public Member Functions inherited from DtMetric | |
| DtMetric () | |
| Default constructor. | |
| virtual | ~DtMetric () |
| Destructor. | |
| DtMetric (const DtMetric &orig) | |
| Copy constructor. | |
| DtMetric & | operator= (const DtMetric &orig) |
| Assignment operator. | |
| virtual bool | validSpecification (const DtSpecification &spec) const |
| Validates the specification against the conditions set in the addEqualCondition, addDiferentCondition, addLessThanCondition and addGreaterThanCondition functions. | |
| virtual void | addEqualCondition (const DtSpecificationAttribute &attrib) |
| Adds an equality condition. | |
| virtual void | addDifferentCondition (const DtSpecificationAttribute &attrib) |
| Add a different condition. | |
| virtual void | addLessThanCondition (const DtSpecificationAttribute &attrib) |
| Add less-than condition. | |
| virtual void | addGreaterThanCondition (const DtSpecificationAttribute &attrib) |
| Add greater-than condition. | |
| virtual void | setEqualList (DtSimpleList *list) |
| Sets the list of conditions for equality. | |
| virtual void | setDiffList (DtSimpleList *list) |
| Sets the list of conditions for difference. | |
| virtual void | setLessThanList (DtSimpleList *list) |
| Sets the list of conditions for less-than. | |
| virtual void | setGreaterThanList (DtSimpleList *list) |
| Sets the list of conditions for greater-than. | |
Protected Attributes | |
| DtPoint | myCenterOfInterest |
| DtVector | myTopoCenterOfInterest |
Protected Attributes inherited from DtMetric | |
| bool | myOwnEqualList |
| bool | myOwnDiffList |
| bool | myOwnLessThanList |
| bool | myOwnGreaterThanList |
| DtSimpleList * | myEqualAttributes |
| DtSimpleList * | myDifferentAttributes |
| DtSimpleList * | myGreaterThanAttributes |
| DtSimpleList * | myLessThanAttributes |
| DtCoordTransform | myLocalToTopo |
| bool | myMetricInitialized |
Additional Inherited Members | |
Protected Member Functions inherited from DtMetric | |
| virtual void | emptyLists () |
| Empties the condition lists and frees memory. | |
| virtual void | copyLists (const DtMetric &orig) |
| Copy lists. | |
DtNetworkAreaMetric is detect if a point is an area.
It will detect if the segment defines a valid area (valid attributes values and to the right of the point). The measure is: 1 if the point moving to the right intersects the segment or 0 ioc.
| DtNetworkAreaMetric::DtNetworkAreaMetric | ( | ) |
Default constructor.
|
virtual |
Destructor.
| DtNetworkAreaMetric::DtNetworkAreaMetric | ( | const DtNetworkAreaMetric & | orig | ) |
Copy constructor.
| DtNetworkAreaMetric& DtNetworkAreaMetric::operator= | ( | const DtNetworkAreaMetric & | orig | ) |
Assignment operator.
|
virtual |
|
virtual |
Validate the seg using the range, equal, less-than, and greater-than conditions.
|
virtual |
Get/set center of interest.
|
virtual |
|
virtual |
get/set center of interest–DtVector form
|
virtual |
|
virtual |
Initialize the metric.
Use this call to do any additional preparation/initialization before the metric can be used. The vector network calls this function every time a metric is about to be used.
Reimplemented from DtMetric.
|
protected |
|
protected |