VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtIntersectNetworkNodeMetric Class Reference

DtIntersectNetworkNodeMetric is a metric for a point quadtree. More...

Inheritance diagram for DtIntersectNetworkNodeMetric:
Inheritance graph
[legend]

Public Member Functions

 DtIntersectNetworkNodeMetric ()
 Default constructor.
virtual ~DtIntersectNetworkNodeMetric ()
 Destructor.
 DtIntersectNetworkNodeMetric (const DtIntersectNetworkNodeMetric &orig)
 Copy constructor.
DtIntersectNetworkNodeMetricoperator= (const DtIntersectNetworkNodeMetric &orig)
 Assignment operator.
virtual double measure (const DtNetworkNode &node) const
 Measure the node by its distance (times the measure multiplier) from the center of interest.
virtual double measure (const DtNetworkNode &node, DtPoint &p) const
 Measure the node by its distance (times the measure multiplier)
virtual bool valid (const DtNetworkNode &node) const
 Validate the node.
virtual bool validSW (const DtNetworkNode &node) const
 Validate the southwest quadrant (closed on southwest side)
virtual bool validSE (const DtNetworkNode &node) const
 Validate the southeast quadrant (closed on southwest side)
virtual bool validNE (const DtNetworkNode &node) const
 Validate the northeast quadrant (closed on southwest side)
virtual bool validNW (const DtNetworkNode &node) const
 Validate the northwest quadrant (closed on southwest side)
virtual const DtChordcenterOfInterest () const
 Get/set the chord to be tested.
virtual void setCenterOfInterest (const DtChord &val)
virtual double maxRange () const
 get/set max Intersect range
virtual void setMaxRange (double val)
virtual bool evalInZ ()
 get/set evaluation in Z
virtual void setEvalInZ (bool eval)
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 DtNetworkNodeMetric
 DtNetworkNodeMetric ()
 Default constructor.
virtual ~DtNetworkNodeMetric ()
 Destructor.
 DtNetworkNodeMetric (const DtNetworkNodeMetric &orig)
 Copy constructor.
DtNetworkNodeMetricoperator= (const DtNetworkNodeMetric &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 Member Functions

virtual bool intersectsWithNode (const DtNetworkSegment &seg, const DtNetworkNode &node, DtPoint &intersectionPoint, double &time) const

Protected Attributes

const DtTerrainDatabasemyDb
DtChord myCenterOfInterest
double myMaxRange
double myMeasureMultiplier
double myMaxX
double myMaxY
double myMinX
double myMinY
double mySize
DtNetworkSegmentHelper mySeg
bool myEvalInZ
DtCoordTransform myTopoToLocal

Detailed Description

DtIntersectNetworkNodeMetric is a metric for a point quadtree.

It determines whether a given chord intersects any node in the vector network.

Constructor & Destructor Documentation

DtIntersectNetworkNodeMetric::DtIntersectNetworkNodeMetric ( )

Default constructor.

virtual DtIntersectNetworkNodeMetric::~DtIntersectNetworkNodeMetric ( )
virtual

Destructor.

DtIntersectNetworkNodeMetric::DtIntersectNetworkNodeMetric ( const DtIntersectNetworkNodeMetric orig)

Copy constructor.

Member Function Documentation

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

Assignment operator.

virtual double DtIntersectNetworkNodeMetric::measure ( const DtNetworkNode node) const
virtual

Measure the node by its distance (times the measure multiplier) from the center of interest.

Implements DtNetworkNodeMetric.

virtual double DtIntersectNetworkNodeMetric::measure ( const DtNetworkNode node,
DtPoint p 
) const
virtual

Measure the node by its distance (times the measure multiplier)

virtual bool DtIntersectNetworkNodeMetric::valid ( const DtNetworkNode node) const
virtual

Validate the node.

Implements DtNetworkNodeMetric.

Reimplemented in DtFeatureExtentIntersectNetworkNodeMetric.

virtual bool DtIntersectNetworkNodeMetric::validSW ( const DtNetworkNode node) const
virtual

Validate the southwest quadrant (closed on southwest side)

Implements DtNetworkNodeMetric.

virtual bool DtIntersectNetworkNodeMetric::validSE ( const DtNetworkNode node) const
virtual

Validate the southeast quadrant (closed on southwest side)

Implements DtNetworkNodeMetric.

virtual bool DtIntersectNetworkNodeMetric::validNE ( const DtNetworkNode node) const
virtual

Validate the northeast quadrant (closed on southwest side)

Implements DtNetworkNodeMetric.

virtual bool DtIntersectNetworkNodeMetric::validNW ( const DtNetworkNode node) const
virtual

Validate the northwest quadrant (closed on southwest side)

Implements DtNetworkNodeMetric.

virtual const DtChord& DtIntersectNetworkNodeMetric::centerOfInterest ( ) const
virtual

Get/set the chord to be tested.

virtual void DtIntersectNetworkNodeMetric::setCenterOfInterest ( const DtChord val)
virtual
virtual double DtIntersectNetworkNodeMetric::maxRange ( ) const
virtual

get/set max Intersect range

virtual void DtIntersectNetworkNodeMetric::setMaxRange ( double  val)
virtual
virtual bool DtIntersectNetworkNodeMetric::evalInZ ( )
virtual

get/set evaluation in Z

virtual void DtIntersectNetworkNodeMetric::setEvalInZ ( bool  eval)
virtual
virtual double DtIntersectNetworkNodeMetric::measureMultiplier ( ) const
virtual

get/set measure multiplier

virtual void DtIntersectNetworkNodeMetric::setMeasureMultiplier ( double  val)
virtual
virtual const DtTerrainDatabase* DtIntersectNetworkNodeMetric::terrainDb ( )
virtual

get/set terrain database member

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

virtual bool DtIntersectNetworkNodeMetric::intersectsWithNode ( const DtNetworkSegment seg,
const DtNetworkNode node,
DtPoint intersectionPoint,
double time 
) const
protectedvirtual

Member Data Documentation

const DtTerrainDatabase* DtIntersectNetworkNodeMetric::myDb
protected
DtChord DtIntersectNetworkNodeMetric::myCenterOfInterest
protected
double DtIntersectNetworkNodeMetric::myMaxRange
protected
double DtIntersectNetworkNodeMetric::myMeasureMultiplier
protected
double DtIntersectNetworkNodeMetric::myMaxX
protected
double DtIntersectNetworkNodeMetric::myMaxY
protected
double DtIntersectNetworkNodeMetric::myMinX
protected
double DtIntersectNetworkNodeMetric::myMinY
protected
double DtIntersectNetworkNodeMetric::mySize
protected
DtNetworkSegmentHelper DtIntersectNetworkNodeMetric::mySeg
protected
bool DtIntersectNetworkNodeMetric::myEvalInZ
protected
DtCoordTransform DtIntersectNetworkNodeMetric::myTopoToLocal
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)