VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtRangeAndDirectionNetworkSegmentMetric Class Reference
Inheritance diagram for DtRangeAndDirectionNetworkSegmentMetric:
Inheritance graph
[legend]

Public Member Functions

 DtRangeAndDirectionNetworkSegmentMetric ()
 Constructor. More...
 
 DtRangeAndDirectionNetworkSegmentMetric (const DtRangeAndDirectionNetworkSegmentMetric &orig)
 Copy Constructor. More...
 
DtRangeAndDirectionNetworkSegmentMetricoperator= (const DtRangeAndDirectionNetworkSegmentMetric &orig)
 Assignment Operator. More...
 
virtual ~DtRangeAndDirectionNetworkSegmentMetric ()
 Destructor. More...
 
virtual bool valid (const DtNetworkSegment &seg) const
 Returns true if the segment satisfies the conditions of the metric. More...
 
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. More...
 
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. More...
 
virtual double directionOfInterest () const
 
virtual void setDirectionTolerance (double tolerance)
 ! More...
 
virtual double directionTolerance () const
 
virtual void setSearchBidirectional (bool bidi)
 
virtual bool searchBidirectional () const
 
- Public Member Functions inherited from DtRangeNetworkSegmentMetric
 DtRangeNetworkSegmentMetric ()
 Default constructor. More...
 
virtual ~DtRangeNetworkSegmentMetric ()
 Destructor. More...
 
 DtRangeNetworkSegmentMetric (const DtRangeNetworkSegmentMetric &orig)
 Vopy constructor. More...
 
DtRangeNetworkSegmentMetricoperator= (const DtRangeNetworkSegmentMetric &orig)
 Assignment operator. More...
 
virtual double measure (const DtNetworkSegment &seg) const
 Measure the seg by its distance from the center of interest. More...
 
virtual bool circumscribedSquareTest (const DtNetworkSegment &seg) const
 quick check using the square circumscribing the circle around the center of interest. More...
 
virtual bool inscribedSquareTest (const DtNetworkSegment &seg) const
 quick check using the square inscribing the circle around the center of interest. 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 DtPointcenterOfInterest () const
 get/set center of interest More...
 
virtual void setCenterOfInterest (const DtPoint &val)
 
virtual DtVector vectorCenterOfInterest () const
 get/set center of interest–DtVector form More...
 
virtual void setCenterOfInterest (const DtVector &val)
 
virtual double maxRange () const
 get/set range More...
 
virtual void setMaxRange (double val)
 
virtual double measureMultiplier () const
 get/set measure multiplier More...
 
virtual void setMeasureMultiplier (double val)
 
virtual bool evalInZ () const
 get/set evaluation in Z More...
 
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. More...
 
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...
 
DtNetworkSegmentMetricoperator= (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...
 
DtMetricoperator= (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

double myDirection
 
double myDirectionTolerance
 
bool mySearchBidirectional
 
- Protected Attributes inherited from DtRangeNetworkSegmentMetric
DtPoint myCenterOfInterest
 
double myMaxRange
 
double myMeasureMultiplier
 
bool myEvalInZ
 
- Protected Attributes inherited from DtMetric
bool myOwnEqualList
 
bool myOwnDiffList
 
bool myOwnLessThanList
 
bool myOwnGreaterThanList
 
DtSimpleListmyEqualAttributes
 
DtSimpleListmyDifferentAttributes
 
DtSimpleListmyGreaterThanAttributes
 
DtSimpleListmyLessThanAttributes
 
DtCoordTransform myLocalToTopo
 
bool myMetricInitialized
 

Additional Inherited Members

- Protected Member Functions inherited from DtRangeNetworkSegmentMetric
virtual double closestPointInXY (const DtNetworkSegment &seg, const DtPoint &pointFrom) const
 
virtual double distanceToPoint (const DtNetworkSegment &seg, const DtPoint &point) const
 
- 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...
 

Constructor & Destructor Documentation

DtRangeAndDirectionNetworkSegmentMetric::DtRangeAndDirectionNetworkSegmentMetric ( )

Constructor.

DtRangeAndDirectionNetworkSegmentMetric::DtRangeAndDirectionNetworkSegmentMetric ( const DtRangeAndDirectionNetworkSegmentMetric orig)

Copy Constructor.

virtual DtRangeAndDirectionNetworkSegmentMetric::~DtRangeAndDirectionNetworkSegmentMetric ( )
virtual

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.

virtual double DtRangeAndDirectionNetworkSegmentMetric::directionOfInterest ( ) const
virtual
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
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

Member Data Documentation

double DtRangeAndDirectionNetworkSegmentMetric::myDirection
protected
double DtRangeAndDirectionNetworkSegmentMetric::myDirectionTolerance
protected
bool DtRangeAndDirectionNetworkSegmentMetric::mySearchBidirectional
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)