![]() |
VR-Forces 4.10 Class Documentation
|
DtSingleIntersectNetworkSegmentMetric is a metric for finding any (single) intersection of a specified segment. More...

Public Member Functions | |
| DtSingleIntersectNetworkSegmentMetric () | |
| virtual | ~DtSingleIntersectNetworkSegmentMetric () |
| virtual double | measure (const DtNetworkSegment &seg) const |
| Measure the specified segment. More... | |
| virtual double | measure (const DtNetworkSegment &seg, DtPoint &p) const |
| virtual bool | valid (const DtNetworkSegment &seg) const |
| validate the segment More... | |
| virtual bool | validSW (double xx, double yy) const |
| validate the southwest quadrant (closed on southwest side) More... | |
| virtual bool | validSE (double xx, double yy) const |
| validate the southeast quadrant (closed on southwest side) More... | |
| virtual bool | validNE (double xx, double yy) const |
| validate the northeast quadrant (closed on southwest side) More... | |
| virtual bool | validNW (double xx, double yy) const |
| validate the northwest quadrant (closed on southwest side) More... | |
| virtual const DtNetworkSegment * | segmentOfInterest () const |
| get/set segment of interest More... | |
| virtual void | setSegmentOfInterest (const DtNetworkSegment &segOfInterest) |
| virtual double | tolerance () const |
| get/set Intersect More... | |
| virtual void | setTolerance (double val) |
| void | setIntersectX (double newX) |
| double | intersectX () const |
| void | setIntersectY (double newY) |
| double | intersectY () const |
| void | setFoundIntersection (bool yesOrNo) |
| bool | foundIntersection () const |
| virtual void | initialize (Coordinate_System *cs) |
| Initialize the metric. More... | |
Public Member Functions inherited from DtNetworkSegmentMetric | |
| DtNetworkSegmentMetric () | |
| Default constructor. More... | |
| virtual | ~DtNetworkSegmentMetric () |
| Destructor. More... | |
| DtNetworkSegmentMetric (const DtNetworkSegmentMetric &orig) | |
| Copy constructor. More... | |
| DtNetworkSegmentMetric & | operator= (const DtNetworkSegmentMetric &orig) |
| Assignment operator. More... | |
Public Member Functions inherited from DtMetric | |
| DtMetric () | |
| Default constructor. More... | |
| virtual | ~DtMetric () |
| Destructor. More... | |
| DtMetric (const DtMetric &orig) | |
| Copy constructor. More... | |
| DtMetric & | operator= (const DtMetric &orig) |
| Assignment operator. More... | |
| virtual bool | validSpecification (const DtSpecification &spec) const |
| Validates the specification against the conditions set in the addEqualCondition, addDiferentCondition, addLessThanCondition and addGreaterThanCondition functions. More... | |
| virtual void | addEqualCondition (const DtSpecificationAttribute &attrib) |
| Adds an equality condition. More... | |
| virtual void | addDifferentCondition (const DtSpecificationAttribute &attrib) |
| Add a different condition. More... | |
| virtual void | addLessThanCondition (const DtSpecificationAttribute &attrib) |
| Add less-than condition. More... | |
| virtual void | addGreaterThanCondition (const DtSpecificationAttribute &attrib) |
| Add greater-than condition. More... | |
| virtual void | setEqualList (DtSimpleList *list) |
| Sets the list of conditions for equality. More... | |
| virtual void | setDiffList (DtSimpleList *list) |
| Sets the list of conditions for difference. More... | |
| virtual void | setLessThanList (DtSimpleList *list) |
| Sets the list of conditions for less-than. More... | |
| virtual void | setGreaterThanList (DtSimpleList *list) |
| Sets the list of conditions for greater-than. More... | |
Protected Member Functions | |
| bool | endpointsCoincidentAtXY (const DtNetworkEdge &edge1, const DtNetworkEdge &edge2, DtReal xValue, DtReal yValue) const |
| This method returns true if either endpoint of the first edge is coincident with either endpoint of the second edge at the x- and y- values specified. More... | |
| bool | pointsCoincidentAtXY (const DtPoint &p1, const DtPoint &p2, DtReal xValue, DtReal yValue) const |
Protected Member Functions inherited from DtMetric | |
| virtual void | emptyLists () |
| Empties the condition lists and frees memory. More... | |
| virtual void | copyLists (const DtMetric &orig) |
| Copy lists. More... | |
Protected Attributes | |
| const DtNetworkSegment * | mySegmentOfInterest |
| DtChord | myTopoSegmentOfInterest |
| double | myTolerance |
| bool | myFoundIntersection |
| double | myIntersectX |
| double | myIntersectY |
| double | myMaxX |
| double | myMaxY |
| double | myMinX |
| double | myMinY |
| DtCoordTransform | myTopoToLocal |
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 |
DtSingleIntersectNetworkSegmentMetric is a metric for finding any (single) intersection of a specified segment.
After the first intersection is found, all other computation is stopped, and the results are stored in the metric for later use by the user.
| DtSingleIntersectNetworkSegmentMetric::DtSingleIntersectNetworkSegmentMetric | ( | ) |
|
virtual |
|
virtual |
Measure the specified segment.
Implements DtNetworkSegmentMetric.
|
virtual |
| p | a reference to a point that is set to the point of intersection between this and the specified segment if one exists |
|
virtual |
validate the segment
Implements DtNetworkSegmentMetric.
validate the southwest quadrant (closed on southwest side)
Implements DtNetworkSegmentMetric.
validate the southeast quadrant (closed on southwest side)
Implements DtNetworkSegmentMetric.
validate the northeast quadrant (closed on southwest side)
Implements DtNetworkSegmentMetric.
validate the northwest quadrant (closed on southwest side)
Implements DtNetworkSegmentMetric.
|
virtual |
get/set segment of interest
|
virtual |
|
virtual |
get/set Intersect
|
virtual |
| void DtSingleIntersectNetworkSegmentMetric::setIntersectX | ( | double | newX | ) |
| double DtSingleIntersectNetworkSegmentMetric::intersectX | ( | ) | const |
| void DtSingleIntersectNetworkSegmentMetric::setIntersectY | ( | double | newY | ) |
| double DtSingleIntersectNetworkSegmentMetric::intersectY | ( | ) | const |
| void DtSingleIntersectNetworkSegmentMetric::setFoundIntersection | ( | bool | yesOrNo | ) |
| bool DtSingleIntersectNetworkSegmentMetric::foundIntersection | ( | ) | const |
|
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 |
This method returns true if either endpoint of the first edge is coincident with either endpoint of the second edge at the x- and y- values specified.
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |