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

Public Member Functions | |
| DtIntersectNetworkSegmentMetric () | |
| Default constructor. | |
| virtual | ~DtIntersectNetworkSegmentMetric () |
| Destructor. | |
| DtIntersectNetworkSegmentMetric (const DtIntersectNetworkSegmentMetric &orig) | |
| Copy constructor. | |
| DtIntersectNetworkSegmentMetric & | operator= (const DtIntersectNetworkSegmentMetric &orig) |
| Assignment operator. | |
| virtual double | measure (const DtNetworkSegment &seg) const |
| Measure the specified segment. | |
| 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. | |
| virtual bool | valid (const DtNetworkSegment &seg) const |
| Validate the segment. | |
| virtual bool | validSW (double xx, double yy) const |
| Validate the southwest quadrant (closed on southwest side) | |
| virtual bool | validSE (double xx, double yy) const |
| Validate the southeast quadrant (closed on southwest side) | |
| virtual bool | validNE (double xx, double yy) const |
| Validate the northeast quadrant (closed on southwest side) | |
| virtual bool | validNW (double xx, double yy) const |
| Validate the northwest quadrant (closed on southwest side) | |
| virtual const DtChord & | centerOfInterest () const |
| get/set center of interest | |
| virtual void | setCenterOfInterest (const DtChord ¢erOfInterest) |
| virtual bool | evalInZ () |
| get/set evaluation in Z | |
| virtual void | setEvalInZ (bool eval) |
| virtual double | maxRange () const |
| get/set Intersection range | |
| virtual void | setMaxRange (double val) |
| virtual double | measureMultiplier () const |
| get/set measure multiplier | |
| virtual void | setMeasureMultiplier (double val) |
| virtual const DtTerrainDatabase * | terrainDb () |
| get/set terrain database member | |
| virtual void | setTerrainDb (const DtTerrainDatabase *db) |
| virtual void | initialize (Coordinate_System *cs) |
| Initialize the metric. | |
Public Member Functions inherited from DtNetworkSegmentMetric | |
| DtNetworkSegmentMetric () | |
| Default constructor. | |
| virtual | ~DtNetworkSegmentMetric () |
| Destructor. | |
| DtNetworkSegmentMetric (const DtNetworkSegmentMetric &orig) | |
| Copy constructor. | |
| DtNetworkSegmentMetric & | operator= (const DtNetworkSegmentMetric &orig) |
| Assignment operator. | |
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 | |
| 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 |
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. | |
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.
|
virtual |
Validate the southwest quadrant (closed on southwest side)
Implements DtNetworkSegmentMetric.
|
virtual |
Validate the southeast quadrant (closed on southwest side)
Implements DtNetworkSegmentMetric.
|
virtual |
Validate the northeast quadrant (closed on southwest side)
Implements DtNetworkSegmentMetric.
|
virtual |
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 |