![]() |
VR-Forces 4.10 Class Documentation
|
DtIntersectNetworkSegmentMetric is a metric for segments in an mx-cif quadtree. More...

Public Member Functions | |
| DtIntersectNetworkSegmentMetric () | |
| Default constructor. More... | |
| virtual | ~DtIntersectNetworkSegmentMetric () |
| Destructor. More... | |
| DtIntersectNetworkSegmentMetric (const DtIntersectNetworkSegmentMetric &orig) | |
| Copy constructor. More... | |
| DtIntersectNetworkSegmentMetric & | operator= (const DtIntersectNetworkSegmentMetric &orig) |
| Assignment operator. More... | |
| virtual double | measure (const DtNetworkSegment &seg) const |
| Measure the specified segment. More... | |
| virtual double | measure (const DtNetworkSegment &seg, DtPoint &p) const |
| virtual bool | circumscribedSquareTest (const DtNetworkSegment &seg) const |
| Quick check using the square circumscribing the circle around the center of interest. More... | |
| 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 DtChord & | centerOfInterest () const |
| get/set center of interest More... | |
| virtual void | setCenterOfInterest (const DtChord ¢erOfInterest) |
| virtual bool | evalInZ () |
| get/set evaluation in Z More... | |
| virtual void | setEvalInZ (bool eval) |
| virtual double | maxRange () const |
| get/set Intersection range More... | |
| virtual void | setMaxRange (double val) |
| virtual double | measureMultiplier () const |
| get/set measure multiplier More... | |
| virtual void | setMeasureMultiplier (double val) |
| virtual const DtTerrainDatabase * | terrainDb () |
| get/set terrain database member More... | |
| virtual void | setTerrainDb (const DtTerrainDatabase *db) |
| 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 Attributes | |
| const DtTerrainDatabase * | myDb |
| DtChord | myCenterOfInterest |
| DtChord | myTopoCenterOfInterest |
| double | myMaxRange |
| double | myMeasureMultiplier |
| double | myMaxX |
| double | myMaxY |
| double | myMinX |
| double | myMinY |
| double | mySize |
| DtNetworkSegmentHelper | myTopoSeg |
| DtPoint | myTopoSegEndPoint0 |
| DtPoint | myTopoSegEndPoint1 |
| DtPoint | myQ |
| bool | myEvalInZ |
| 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 |
Additional Inherited Members | |
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... | |
DtIntersectNetworkSegmentMetric is a metric for segments in an mx-cif quadtree.
The metric is based on distance from a point.
| DtIntersectNetworkSegmentMetric::DtIntersectNetworkSegmentMetric | ( | ) |
Default constructor.
|
virtual |
Destructor.
| DtIntersectNetworkSegmentMetric::DtIntersectNetworkSegmentMetric | ( | const DtIntersectNetworkSegmentMetric & | orig | ) |
Copy constructor.
| DtIntersectNetworkSegmentMetric& DtIntersectNetworkSegmentMetric::operator= | ( | const DtIntersectNetworkSegmentMetric & | orig | ) |
Assignment operator.
|
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 |
Quick check using the square circumscribing the circle around the center of interest.
|
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 center of interest
|
virtual |
|
virtual |
get/set evaluation in Z
|
virtual |
|
virtual |
get/set Intersection range
|
virtual |
|
virtual |
get/set measure multiplier
|
virtual |
|
virtual |
get/set terrain database member
|
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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |