VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes
DtIntersectNetworkSegmentMetric Class Reference

DtIntersectNetworkSegmentMetric is a metric for segments in an mx-cif quadtree. More...

Inheritance diagram for DtIntersectNetworkSegmentMetric:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtIntersectNetworkSegmentMetric ()
 Default constructor.
virtual ~DtIntersectNetworkSegmentMetric ()
 Destructor.
 DtIntersectNetworkSegmentMetric (const DtIntersectNetworkSegmentMetric &orig)
 Copy constructor.
DtIntersectNetworkSegmentMetricoperator= (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 DtChordcenterOfInterest () const
 get/set center of interest
virtual void setCenterOfInterest (const DtChord &centerOfInterest)
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 DtTerrainDatabaseterrainDb ()
 get/set terrain database member
virtual void setTerrainDb (const DtTerrainDatabase *db)
virtual void initialize (Coordinate_System *cs)
 Initialize the metric.

Protected Attributes

const DtTerrainDatabasemyDb
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

Detailed Description

DtIntersectNetworkSegmentMetric is a metric for segments in an mx-cif quadtree.

The metric is based on distance from a point.


Constructor & Destructor Documentation

Default constructor.

Destructor.

Copy constructor.


Member Function Documentation

DtIntersectNetworkSegmentMetric& DtIntersectNetworkSegmentMetric::operator= ( const DtIntersectNetworkSegmentMetric orig)

Assignment operator.

virtual double DtIntersectNetworkSegmentMetric::measure ( const DtNetworkSegment seg) const [virtual]

Measure the specified segment.

Implements DtNetworkSegmentMetric.

virtual double DtIntersectNetworkSegmentMetric::measure ( const DtNetworkSegment seg,
DtPoint p 
) const [virtual]
Parameters:
pa reference to a point that is set to the point of intersection between this and the specified segment if one exists

Quick check using the square circumscribing the circle around the center of interest.

virtual bool DtIntersectNetworkSegmentMetric::valid ( const DtNetworkSegment seg) const [virtual]

Validate the segment.

Implements DtNetworkSegmentMetric.

virtual bool DtIntersectNetworkSegmentMetric::validSW ( double  xx,
double  yy 
) const [virtual]

Validate the southwest quadrant (closed on southwest side)

Implements DtNetworkSegmentMetric.

virtual bool DtIntersectNetworkSegmentMetric::validSE ( double  xx,
double  yy 
) const [virtual]

Validate the southeast quadrant (closed on southwest side)

Implements DtNetworkSegmentMetric.

virtual bool DtIntersectNetworkSegmentMetric::validNE ( double  xx,
double  yy 
) const [virtual]

Validate the northeast quadrant (closed on southwest side)

Implements DtNetworkSegmentMetric.

virtual bool DtIntersectNetworkSegmentMetric::validNW ( double  xx,
double  yy 
) const [virtual]

Validate the northwest quadrant (closed on southwest side)

Implements DtNetworkSegmentMetric.

virtual const DtChord& DtIntersectNetworkSegmentMetric::centerOfInterest ( ) const [virtual]

get/set center of interest

virtual void DtIntersectNetworkSegmentMetric::setCenterOfInterest ( const DtChord centerOfInterest) [virtual]

get/set evaluation in Z

virtual void DtIntersectNetworkSegmentMetric::setEvalInZ ( bool  eval) [virtual]
virtual double DtIntersectNetworkSegmentMetric::maxRange ( ) const [virtual]

get/set Intersection range

virtual void DtIntersectNetworkSegmentMetric::setMaxRange ( double  val) [virtual]
virtual double DtIntersectNetworkSegmentMetric::measureMultiplier ( ) const [virtual]

get/set measure multiplier

virtual void DtIntersectNetworkSegmentMetric::setMeasureMultiplier ( double  val) [virtual]

get/set terrain database member

virtual void DtIntersectNetworkSegmentMetric::setTerrainDb ( const DtTerrainDatabase db) [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.


Member Data Documentation

DtCoordTransform DtIntersectNetworkSegmentMetric::myTopoToLocal [protected]

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)