VR-Forces Developer's Guide
 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
DtSingleIntersectNetworkSegmentMetric Class Reference

DtSingleIntersectNetworkSegmentMetric is a metric for finding any (single) intersection of a specified segment. After the first intersection is found, all other computation is stopped, and the results are stored in the metric for later use by the user.

Inheritance diagram for DtSingleIntersectNetworkSegmentMetric:
Inheritance graph
[legend]

Public Member Functions

 DtSingleIntersectNetworkSegmentMetric ()
 
virtual ~DtSingleIntersectNetworkSegmentMetric ()
 
virtual double measure (const DtNetworkSegment &seg) const
 
virtual double measure (const DtNetworkSegment &seg, DtPoint &p) const
 
virtual bool valid (const DtNetworkSegment &seg) const
 
virtual bool validSW (double xx, double yy) const
 
virtual bool validSE (double xx, double yy) const
 
virtual bool validNE (double xx, double yy) const
 
virtual bool validNW (double xx, double yy) const
 
virtual const DtNetworkSegmentsegmentOfInterest () const
 
virtual void setSegmentOfInterest (const DtNetworkSegment &segOfInterest)
 
virtual double tolerance () const
 
virtual void setTolerance (double val)
 
void setIntersectX (double newX)
 
double intersectX () const
 
void setIntersectY (double newY)
 
double intersectY () const
 
void setFoundIntersection (bool yesOrNo)
 
bool foundIntersection () const
 
virtual void initialize (Coordinate_System *cs)
 
- Public Member Functions inherited from DtNetworkSegmentMetric
 DtNetworkSegmentMetric ()
 
virtual ~DtNetworkSegmentMetric ()
 
 DtNetworkSegmentMetric (const DtNetworkSegmentMetric &orig)
 
DtNetworkSegmentMetricoperator= (const DtNetworkSegmentMetric &orig)
 
- Public Member Functions inherited from DtMetric
 DtMetric ()
 
virtual ~DtMetric ()
 
 DtMetric (const DtMetric &orig)
 
DtMetricoperator= (const DtMetric &orig)
 
virtual bool validSpecification (const DtSpecification &spec) const
 
virtual void addEqualCondition (const DtSpecificationAttribute &attrib)
 
virtual void addDifferentCondition (const DtSpecificationAttribute &attrib)
 
virtual void addLessThanCondition (const DtSpecificationAttribute &attrib)
 
virtual void addGreaterThanCondition (const DtSpecificationAttribute &attrib)
 
virtual void setEqualList (DtSimpleList *list)
 
virtual void setDiffList (DtSimpleList *list)
 
virtual void setLessThanList (DtSimpleList *list)
 
virtual void setGreaterThanList (DtSimpleList *list)
 

Protected Member Functions

bool endpointsCoincidentAtXY (const DtNetworkEdge &edge1, const DtNetworkEdge &edge2, DtReal xValue, DtReal yValue) const
 
bool pointsCoincidentAtXY (const DtPoint &p1, const DtPoint &p2, DtReal xValue, DtReal yValue) const
 
- Protected Member Functions inherited from DtMetric
virtual void emptyLists ()
 
virtual void copyLists (const DtMetric &orig)
 

Protected Attributes

const DtNetworkSegmentmySegmentOfInterest
 
DtChord myTopoSegmentOfInterest
 
double myTolerance
 
bool myFoundIntersection
 
double myIntersectX
 
double myIntersectY
 
double myMaxX
 
double myMaxY
 
double myMinX
 
double myMinY
 
DtCoordTransform myTopoToLocal
 
- Protected Attributes inherited from DtMetric
bool myOwnEqualList
 
bool myOwnDiffList
 
bool myOwnLessThanList
 
bool myOwnGreaterThanList
 
DtSimpleListmyEqualAttributes
 
DtSimpleListmyDifferentAttributes
 
DtSimpleListmyGreaterThanAttributes
 
DtSimpleListmyLessThanAttributes
 
DtCoordTransform myLocalToTopo
 
bool myMetricInitialized
 

Constructor & Destructor Documentation

DtSingleIntersectNetworkSegmentMetric::DtSingleIntersectNetworkSegmentMetric ( )
virtual DtSingleIntersectNetworkSegmentMetric::~DtSingleIntersectNetworkSegmentMetric ( )
virtual

Member Function Documentation

virtual double DtSingleIntersectNetworkSegmentMetric::measure ( const DtNetworkSegment seg) const
virtual

Measure the specified segment.

Implements DtNetworkSegmentMetric.

virtual double DtSingleIntersectNetworkSegmentMetric::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 DtSingleIntersectNetworkSegmentMetric::valid ( const DtNetworkSegment seg) const
virtual

validate the segment

Implements DtNetworkSegmentMetric.

virtual bool DtSingleIntersectNetworkSegmentMetric::validSW ( double  xx,
double  yy 
) const
virtual

validate the southwest quadrant (closed on southwest side)

Implements DtNetworkSegmentMetric.

virtual bool DtSingleIntersectNetworkSegmentMetric::validSE ( double  xx,
double  yy 
) const
virtual

validate the southeast quadrant (closed on southwest side)

Implements DtNetworkSegmentMetric.

virtual bool DtSingleIntersectNetworkSegmentMetric::validNE ( double  xx,
double  yy 
) const
virtual

validate the northeast quadrant (closed on southwest side)

Implements DtNetworkSegmentMetric.

virtual bool DtSingleIntersectNetworkSegmentMetric::validNW ( double  xx,
double  yy 
) const
virtual

validate the northwest quadrant (closed on southwest side)

Implements DtNetworkSegmentMetric.

virtual const DtNetworkSegment* DtSingleIntersectNetworkSegmentMetric::segmentOfInterest ( ) const
virtual

get/set segment of interest

virtual void DtSingleIntersectNetworkSegmentMetric::setSegmentOfInterest ( const DtNetworkSegment segOfInterest)
virtual
virtual double DtSingleIntersectNetworkSegmentMetric::tolerance ( ) const
virtual

get/set Intersect

virtual void DtSingleIntersectNetworkSegmentMetric::setTolerance ( double  val)
virtual
void DtSingleIntersectNetworkSegmentMetric::setIntersectX ( double  newX)
double DtSingleIntersectNetworkSegmentMetric::intersectX ( ) const
void DtSingleIntersectNetworkSegmentMetric::setIntersectY ( double  newY)
double DtSingleIntersectNetworkSegmentMetric::intersectY ( ) const
void DtSingleIntersectNetworkSegmentMetric::setFoundIntersection ( bool  yesOrNo)
bool DtSingleIntersectNetworkSegmentMetric::foundIntersection ( ) const
virtual void DtSingleIntersectNetworkSegmentMetric::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.

bool DtSingleIntersectNetworkSegmentMetric::endpointsCoincidentAtXY ( const DtNetworkEdge edge1,
const DtNetworkEdge edge2,
DtReal  xValue,
DtReal  yValue 
) const
protected

This method returns true if either endpoint of the first edge is coincident with either endpoint of the second edge at the x- and y- values specified.

bool DtSingleIntersectNetworkSegmentMetric::pointsCoincidentAtXY ( const DtPoint p1,
const DtPoint p2,
DtReal  xValue,
DtReal  yValue 
) const
protected

Member Data Documentation

const DtNetworkSegment* DtSingleIntersectNetworkSegmentMetric::mySegmentOfInterest
protected
DtChord DtSingleIntersectNetworkSegmentMetric::myTopoSegmentOfInterest
protected
double DtSingleIntersectNetworkSegmentMetric::myTolerance
protected
bool DtSingleIntersectNetworkSegmentMetric::myFoundIntersection
mutableprotected
double DtSingleIntersectNetworkSegmentMetric::myIntersectX
mutableprotected
double DtSingleIntersectNetworkSegmentMetric::myIntersectY
mutableprotected
double DtSingleIntersectNetworkSegmentMetric::myMaxX
protected
double DtSingleIntersectNetworkSegmentMetric::myMaxY
protected
double DtSingleIntersectNetworkSegmentMetric::myMinX
protected
double DtSingleIntersectNetworkSegmentMetric::myMinY
protected
DtCoordTransform DtSingleIntersectNetworkSegmentMetric::myTopoToLocal
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)