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
DtNetworkEdgeMetric Class Reference

Metric for network segments. More...

Inheritance diagram for DtNetworkEdgeMetric:
Inheritance graph
[legend]

Public Member Functions

 DtNetworkEdgeMetric ()
 Default constructor.
virtual ~DtNetworkEdgeMetric ()
 Destructor.
 DtNetworkEdgeMetric (const DtNetworkEdgeMetric &orig)
 Copy constructor.
DtNetworkEdgeMetricoperator= (const DtNetworkEdgeMetric &orig)
 Assignment operator.
virtual double measure (const DtNetworkEdge &edge) const =0
 Measures the edge based on the metric's characteristics.
virtual bool valid (const DtNetworkEdge &edge) const =0
 Validates the edge.
virtual bool validSW (double xx, double yy) const =0
 Validates the southwest quadrant (closed on southwest side)
virtual bool validSE (double xx, double yy) const =0
 Validates the southeast quadrant (closed on southwest side)
virtual bool validNE (double xx, double yy) const =0
 Validates the northeast quadrant (closed on southwest side)
virtual bool validNW (double xx, double yy) const =0
 Validates the northwest quadrant (closed on southwest side)
virtual double heuristic (const DtPoint &source, const DtPoint &dest) const =0
 A heuristic measure for two points.
- 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.
virtual void initialize (Coordinate_System *cs)
 Initialize the metric.

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.
- Protected Attributes inherited from DtMetric
bool myOwnEqualList
bool myOwnDiffList
bool myOwnLessThanList
bool myOwnGreaterThanList
DtSimpleListmyEqualAttributes
DtSimpleListmyDifferentAttributes
DtSimpleListmyGreaterThanAttributes
DtSimpleListmyLessThanAttributes
DtCoordTransform myLocalToTopo
bool myMetricInitialized

Detailed Description

Metric for network segments.

Constructor & Destructor Documentation

DtNetworkEdgeMetric::DtNetworkEdgeMetric ( )

Default constructor.

virtual DtNetworkEdgeMetric::~DtNetworkEdgeMetric ( )
virtual

Destructor.

DtNetworkEdgeMetric::DtNetworkEdgeMetric ( const DtNetworkEdgeMetric orig)

Copy constructor.

Member Function Documentation

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

Assignment operator.

virtual double DtNetworkEdgeMetric::measure ( const DtNetworkEdge edge) const
pure virtual

Measures the edge based on the metric's characteristics.

Implemented in DtDistanceNetworkEdgeMetric.

virtual bool DtNetworkEdgeMetric::valid ( const DtNetworkEdge edge) const
pure virtual

Validates the edge.

Implemented in DtDistanceNetworkEdgeMetric.

virtual bool DtNetworkEdgeMetric::validSW ( double  xx,
double  yy 
) const
pure virtual

Validates the southwest quadrant (closed on southwest side)

Implemented in DtDistanceNetworkEdgeMetric.

virtual bool DtNetworkEdgeMetric::validSE ( double  xx,
double  yy 
) const
pure virtual

Validates the southeast quadrant (closed on southwest side)

Implemented in DtDistanceNetworkEdgeMetric.

virtual bool DtNetworkEdgeMetric::validNE ( double  xx,
double  yy 
) const
pure virtual

Validates the northeast quadrant (closed on southwest side)

Implemented in DtDistanceNetworkEdgeMetric.

virtual bool DtNetworkEdgeMetric::validNW ( double  xx,
double  yy 
) const
pure virtual

Validates the northwest quadrant (closed on southwest side)

Implemented in DtDistanceNetworkEdgeMetric.

virtual double DtNetworkEdgeMetric::heuristic ( const DtPoint source,
const DtPoint dest 
) const
pure virtual

A heuristic measure for two points.

Implemented in DtDistanceNetworkEdgeMetric.


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)