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

DtNetworkAreaMetric is detect if a point is an area. More...

Inheritance diagram for DtNetworkAreaMetric:
Inheritance graph
[legend]

Public Member Functions

 DtNetworkAreaMetric ()
 Default constructor. More...
 
virtual ~DtNetworkAreaMetric ()
 Destructor. More...
 
 DtNetworkAreaMetric (const DtNetworkAreaMetric &orig)
 Copy constructor. More...
 
DtNetworkAreaMetricoperator= (const DtNetworkAreaMetric &orig)
 Assignment operator. More...
 
virtual double measure (const DtNetworkSegment &seg) const
 
virtual bool valid (const DtNetworkSegment &seg) const
 Validate the seg using the range, equal, less-than, and greater-than conditions. More...
 
virtual const DtPointcenterOfInterest () const
 Get/set center of interest. More...
 
virtual void setCenterOfInterest (const DtPoint &centerOfInterest)
 
virtual DtVector vectorCenterOfInterest () const
 get/set center of interest–DtVector form More...
 
virtual void setCenterOfInterest (const DtVector &centerOfInterest)
 
virtual void initialize (Coordinate_System *cs)
 Initialize the metric. 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

DtPoint myCenterOfInterest
 
DtVector myTopoCenterOfInterest
 
- 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 DtMetric
virtual void emptyLists ()
 Empties the condition lists and frees memory. More...
 
virtual void copyLists (const DtMetric &orig)
 Copy lists. More...
 

Detailed Description

DtNetworkAreaMetric is detect if a point is an area.

It will detect if the segment defines a valid area (valid attributes values and to the right of the point). The measure is: 1 if the point moving to the right intersects the segment or 0 ioc.

Constructor & Destructor Documentation

DtNetworkAreaMetric::DtNetworkAreaMetric ( )

Default constructor.

virtual DtNetworkAreaMetric::~DtNetworkAreaMetric ( )
virtual

Destructor.

DtNetworkAreaMetric::DtNetworkAreaMetric ( const DtNetworkAreaMetric orig)

Copy constructor.

Member Function Documentation

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

Assignment operator.

virtual double DtNetworkAreaMetric::measure ( const DtNetworkSegment seg) const
virtual
virtual bool DtNetworkAreaMetric::valid ( const DtNetworkSegment seg) const
virtual

Validate the seg using the range, equal, less-than, and greater-than conditions.

virtual const DtPoint& DtNetworkAreaMetric::centerOfInterest ( ) const
virtual

Get/set center of interest.

virtual void DtNetworkAreaMetric::setCenterOfInterest ( const DtPoint centerOfInterest)
virtual
virtual DtVector DtNetworkAreaMetric::vectorCenterOfInterest ( ) const
virtual

get/set center of interest–DtVector form

virtual void DtNetworkAreaMetric::setCenterOfInterest ( const DtVector centerOfInterest)
virtual
virtual void DtNetworkAreaMetric::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

DtPoint DtNetworkAreaMetric::myCenterOfInterest
protected
DtVector DtNetworkAreaMetric::myTopoCenterOfInterest
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)