![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Member Functions | |
| DtRangeAndDirectionNetworkSegmentMetric () | |
| Constructor. | |
| DtRangeAndDirectionNetworkSegmentMetric (const DtRangeAndDirectionNetworkSegmentMetric &orig) | |
| Copy Constructor. | |
| DtRangeAndDirectionNetworkSegmentMetric & | operator= (const DtRangeAndDirectionNetworkSegmentMetric &orig) |
| Assignment Operator. | |
| virtual | ~DtRangeAndDirectionNetworkSegmentMetric () |
| Destructor. | |
| virtual bool | valid (const DtNetworkSegment &seg) const |
| Returns true if the segment satisfies the conditions of the metric. | |
| virtual bool | testDirection (const DtPoint &p1, const DtPoint &p2) const |
| Returns true if the segment defined from p1 to p2 satisfies the directional test of the metric. | |
| virtual double | directionOfSegment (const DtPoint &point0, const DtPoint &point1) const |
| virtual void | setDirectionOfInterest (double direction) |
| Get/set the direction which will be tested against the segments. | |
| virtual double | directionOfInterest () const |
| Get/set the direction which will be tested against the segments. | |
| virtual void | setDirectionTolerance (double tolerance) |
| ! | |
| virtual double | directionTolerance () const |
| ! | |
| virtual void | setSearchBidirectional (bool bidi) |
| virtual bool | searchBidirectional () const |
Protected Attributes | |
| double | myDirection |
| double | myDirectionTolerance |
| bool | mySearchBidirectional |
| DtRangeAndDirectionNetworkSegmentMetric::DtRangeAndDirectionNetworkSegmentMetric | ( | const DtRangeAndDirectionNetworkSegmentMetric & | orig | ) |
Copy Constructor.
| virtual DtRangeAndDirectionNetworkSegmentMetric::~DtRangeAndDirectionNetworkSegmentMetric | ( | ) | [virtual] |
Destructor.
| DtRangeAndDirectionNetworkSegmentMetric& DtRangeAndDirectionNetworkSegmentMetric::operator= | ( | const DtRangeAndDirectionNetworkSegmentMetric & | orig | ) |
Assignment Operator.
| virtual bool DtRangeAndDirectionNetworkSegmentMetric::valid | ( | const DtNetworkSegment & | seg | ) | const [virtual] |
Returns true if the segment satisfies the conditions of the metric.
Reimplemented from DtRangeNetworkSegmentMetric.
| virtual bool DtRangeAndDirectionNetworkSegmentMetric::testDirection | ( | const DtPoint & | p1, |
| const DtPoint & | p2 | ||
| ) | const [virtual] |
Returns true if the segment defined from p1 to p2 satisfies the directional test of the metric.
| virtual void DtRangeAndDirectionNetworkSegmentMetric::setDirectionOfInterest | ( | double | direction | ) | [virtual] |
Get/set the direction which will be tested against the segments.
The direction is specified in radians, and in local coordinates. Default is 0.0.
| virtual double DtRangeAndDirectionNetworkSegmentMetric::directionOfInterest | ( | ) | const [virtual] |
Get/set the direction which will be tested against the segments.
The direction is specified in radians, and in local coordinates. Default is 0.0.
| virtual void DtRangeAndDirectionNetworkSegmentMetric::setDirectionTolerance | ( | double | tolerance | ) | [virtual] |
!
Get/set the tolerance to use when testing if a segment is in the desired direction. Specified in radians. Default is 0.0.
| virtual double DtRangeAndDirectionNetworkSegmentMetric::directionTolerance | ( | ) | const [virtual] |
!
Get/set the tolerance to use when testing if a segment is in the desired direction. Specified in radians. Default is 0.0.
| virtual void DtRangeAndDirectionNetworkSegmentMetric::setSearchBidirectional | ( | bool | bidi | ) | [virtual] |
| virtual bool DtRangeAndDirectionNetworkSegmentMetric::searchBidirectional | ( | ) | const [virtual] |
| virtual double DtRangeAndDirectionNetworkSegmentMetric::directionOfSegment | ( | const DtPoint & | point0, |
| const DtPoint & | point1 | ||
| ) | const [virtual] |
double DtRangeAndDirectionNetworkSegmentMetric::myDirection [protected] |
double DtRangeAndDirectionNetworkSegmentMetric::myDirectionTolerance [protected] |