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

Public Member Functions | |
| DtRangeNetworkSegmentMetric () | |
| Default constructor. | |
| virtual | ~DtRangeNetworkSegmentMetric () |
| Destructor. | |
| DtRangeNetworkSegmentMetric (const DtRangeNetworkSegmentMetric &orig) | |
| Vopy constructor. | |
| DtRangeNetworkSegmentMetric & | operator= (const DtRangeNetworkSegmentMetric &orig) |
| Assignment operator. | |
| virtual double | measure (const DtNetworkSegment &seg) const |
| Measure the seg by its distance from the center of interest. | |
| virtual bool | circumscribedSquareTest (const DtNetworkSegment &seg) const |
| quick check using the square circumscribing the circle around the center of interest. | |
| virtual bool | inscribedSquareTest (const DtNetworkSegment &seg) const |
| quick check using the square inscribing 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 DtPoint & | centerOfInterest () const |
| get/set center of interest | |
| virtual void | setCenterOfInterest (const DtPoint &val) |
| virtual DtVector | vectorCenterOfInterest () const |
| get/set center of interest–DtVector form | |
| virtual void | setCenterOfInterest (const DtVector &val) |
| virtual double | maxRange () const |
| get/set range | |
| virtual void | setMaxRange (double val) |
| virtual double | measureMultiplier () const |
| get/set measure multiplier | |
| virtual void | setMeasureMultiplier (double val) |
| virtual bool | evalInZ () const |
| get/set evaluation in Z | |
| virtual void | setEvalInZ (bool evalInZ) |
| virtual double | closestPointInXY (const DtNetworkSegment &seg, const DtPoint &pointFrom, DtPoint &closest) |
| Finds the closest point on the segment projected and returns it in database coords along with distance to that point. | |
| 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 Member Functions | |
| virtual double | closestPointInXY (const DtNetworkSegment &seg, const DtPoint &pointFrom) const |
| virtual double | distanceToPoint (const DtNetworkSegment &seg, const DtPoint &point) const |
Protected Attributes | |
| DtPoint | myCenterOfInterest |
| double | myMaxRange |
| double | myMeasureMultiplier |
| bool | myEvalInZ |
DtRangeNetworkSegmentMetric is a metric for segments in an mx-cif quadtree.
The metric is based on distance from a point.
| DtRangeNetworkSegmentMetric::DtRangeNetworkSegmentMetric | ( | ) |
Default constructor.
|
virtual |
Destructor.
| DtRangeNetworkSegmentMetric::DtRangeNetworkSegmentMetric | ( | const DtRangeNetworkSegmentMetric & | orig | ) |
Vopy constructor.
| DtRangeNetworkSegmentMetric& DtRangeNetworkSegmentMetric::operator= | ( | const DtRangeNetworkSegmentMetric & | orig | ) |
Assignment operator.
|
virtual |
Measure the seg by its distance from the center of interest.
Implements DtNetworkSegmentMetric.
|
virtual |
quick check using the square circumscribing the circle around the center of interest.
Reimplemented in BHAVE::DtAllMetric.
|
virtual |
quick check using the square inscribing the circle around the center of interest.
Reimplemented in BHAVE::DtAllMetric.
|
virtual |
validate the segment
Implements DtNetworkSegmentMetric.
Reimplemented in DtRangeAndDirectionNetworkSegmentMetric.
|
virtual |
validate the southwest quadrant (closed on southwest side)
Implements DtNetworkSegmentMetric.
Reimplemented in BHAVE::DtAllMetric.
|
virtual |
validate the southeast quadrant (closed on southwest side)
Implements DtNetworkSegmentMetric.
Reimplemented in BHAVE::DtAllMetric.
|
virtual |
validate the northeast quadrant (closed on southwest side)
Implements DtNetworkSegmentMetric.
Reimplemented in BHAVE::DtAllMetric.
|
virtual |
validate the northwest quadrant (closed on southwest side)
Implements DtNetworkSegmentMetric.
Reimplemented in BHAVE::DtAllMetric.
|
virtual |
get/set center of interest
|
virtual |
|
virtual |
get/set center of interest–DtVector form
|
virtual |
|
virtual |
get/set range
|
virtual |
|
virtual |
get/set measure multiplier
|
virtual |
|
virtual |
get/set evaluation in Z
|
virtual |
|
virtual |
Finds the closest point on the segment projected and returns it in database coords along with distance to that point.
|
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.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |