VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes
DtRangeAndDirectionNetworkSegmentMetric Class Reference
Inheritance diagram for DtRangeAndDirectionNetworkSegmentMetric:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtRangeAndDirectionNetworkSegmentMetric ()
 Constructor.
 DtRangeAndDirectionNetworkSegmentMetric (const DtRangeAndDirectionNetworkSegmentMetric &orig)
 Copy Constructor.
DtRangeAndDirectionNetworkSegmentMetricoperator= (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

Constructor & Destructor Documentation

Constructor.

Copy Constructor.

Destructor.


Member Function Documentation

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.

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.

!

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::directionOfSegment ( const DtPoint point0,
const DtPoint point1 
) const [virtual]

Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)