VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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]

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.
- Public Member Functions inherited from DtNetworkSegmentMetric
 DtNetworkSegmentMetric ()
 Default constructor.
virtual ~DtNetworkSegmentMetric ()
 Destructor.
 DtNetworkSegmentMetric (const DtNetworkSegmentMetric &orig)
 Copy constructor.
DtNetworkSegmentMetricoperator= (const DtNetworkSegmentMetric &orig)
 Assignment operator.
- Public Member Functions inherited from DtMetric
 DtMetric ()
 Default constructor.
virtual ~DtMetric ()
 Destructor.
 DtMetric (const DtMetric &orig)
 Copy constructor.
DtMetricoperator= (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 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

Additional Inherited Members

- Protected Member Functions inherited from DtMetric
virtual void emptyLists ()
 Empties the condition lists and frees memory.
virtual void copyLists (const DtMetric &orig)
 Copy lists.

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

DtIntersectNetworkSegmentMetric::DtIntersectNetworkSegmentMetric ( )

Default constructor.

virtual DtIntersectNetworkSegmentMetric::~DtIntersectNetworkSegmentMetric ( )
virtual

Destructor.

DtIntersectNetworkSegmentMetric::DtIntersectNetworkSegmentMetric ( const DtIntersectNetworkSegmentMetric orig)

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
virtual bool DtIntersectNetworkSegmentMetric::circumscribedSquareTest ( const DtNetworkSegment seg) const
virtual

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
virtual bool DtIntersectNetworkSegmentMetric::evalInZ ( )
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
virtual const DtTerrainDatabase* DtIntersectNetworkSegmentMetric::terrainDb ( )
virtual

get/set terrain database member

virtual void DtIntersectNetworkSegmentMetric::setTerrainDb ( const DtTerrainDatabase db)
virtual
virtual void DtIntersectNetworkSegmentMetric::initialize ( Coordinate_System cs)
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

const DtTerrainDatabase* DtIntersectNetworkSegmentMetric::myDb
protected
DtChord DtIntersectNetworkSegmentMetric::myCenterOfInterest
protected
DtChord DtIntersectNetworkSegmentMetric::myTopoCenterOfInterest
protected
double DtIntersectNetworkSegmentMetric::myMaxRange
protected
double DtIntersectNetworkSegmentMetric::myMeasureMultiplier
protected
double DtIntersectNetworkSegmentMetric::myMaxX
protected
double DtIntersectNetworkSegmentMetric::myMaxY
protected
double DtIntersectNetworkSegmentMetric::myMinX
protected
double DtIntersectNetworkSegmentMetric::myMinY
protected
double DtIntersectNetworkSegmentMetric::mySize
protected
DtNetworkSegmentHelper DtIntersectNetworkSegmentMetric::myTopoSeg
protected
DtPoint DtIntersectNetworkSegmentMetric::myTopoSegEndPoint0
protected
DtPoint DtIntersectNetworkSegmentMetric::myTopoSegEndPoint1
protected
DtPoint DtIntersectNetworkSegmentMetric::myQ
protected
bool DtIntersectNetworkSegmentMetric::myEvalInZ
protected
DtCoordTransform DtIntersectNetworkSegmentMetric::myTopoToLocal
protected

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)