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

This class finds obstructions along rail segment lists, and provides reports about the details of these obstructions. More...

Public Member Functions

 DtRailObstructionFinder (DtVrfObjectManager *objMgr, DtPhysicalWorld *world, DtVrfObject *hostEntity)
virtual ~DtRailObstructionFinder ()
virtual void init (const DtRwObjectTypeList &passableObjectTypes)
virtual void findObstructions (const DtRailSegmentList &rail, const DtVector &point, double distance, std::list< DtRailObstructionPtr > &result)
 Looks for obstructions along the given rail, starting at the provided local location for the specified distance along the rail.

Protected Member Functions

virtual bool fillObstructionList (const DtRailSegmentList &rail, const DtVector &startPoint, double testDistance, std::list< DtRailObstructionPtr > &collisionList)
 Finds all obstructions along the rail, starting at startPoint, and running for the specified testDistance.
virtual bool findObstructionsAlongSegment (const DtRailSegment *segment, double testAltitude, double distFromSegStart, double testDistance, std::list< DtRailObstructionPtr > &collisionList)
 Finds all obstructions along the specified segment, starting at distFromSegStart, and running for the specified testDistance.
virtual void mergeObstructions (const std::list< DtRailObstructionPtr > &sourceList, std::list< DtRailObstructionPtr > &destiatnionList, double adjustmentDistance)
 Merges the obstruction info from the source list to the destination list, removing duplicates if necessary.
void publishDebugPath (const DtVector &localStart, const DtVector &localEnd)
 Method used for debugging.

Protected Attributes

DtVrfObjectManagermyObjectManager
DtPhysicalWorldmyPhysicalWorld
DtCollisionDetectormyCollisionDetector
DtVrfObjectmyHostEntity
DtVrfObjectmyDebugRoute

Private Member Functions

 DtRailObstructionFinder ()
 Not implemented.
 DtRailObstructionFinder (const DtRailObstructionFinder &orig)
 Not implemented.
DtRailObstructionFinderoperator= (const DtRailObstructionFinder &orig)
 Not implemented.

Detailed Description

This class finds obstructions along rail segment lists, and provides reports about the details of these obstructions.

Constructor & Destructor Documentation

DtRailObstructionFinder::DtRailObstructionFinder ( DtVrfObjectManager objMgr,
DtPhysicalWorld world,
DtVrfObject hostEntity 
)
virtual DtRailObstructionFinder::~DtRailObstructionFinder ( )
virtual
DtRailObstructionFinder::DtRailObstructionFinder ( )
private

Not implemented.

DtRailObstructionFinder::DtRailObstructionFinder ( const DtRailObstructionFinder orig)
private

Not implemented.

Member Function Documentation

virtual void DtRailObstructionFinder::init ( const DtRwObjectTypeList passableObjectTypes)
virtual
virtual void DtRailObstructionFinder::findObstructions ( const DtRailSegmentList rail,
const DtVector point,
double  distance,
std::list< DtRailObstructionPtr > &  result 
)
virtual

Looks for obstructions along the given rail, starting at the provided local location for the specified distance along the rail.

Fills the result list with the found obstruction information.

virtual bool DtRailObstructionFinder::fillObstructionList ( const DtRailSegmentList rail,
const DtVector startPoint,
double  testDistance,
std::list< DtRailObstructionPtr > &  collisionList 
)
protectedvirtual

Finds all obstructions along the rail, starting at startPoint, and running for the specified testDistance.

virtual bool DtRailObstructionFinder::findObstructionsAlongSegment ( const DtRailSegment segment,
double  testAltitude,
double  distFromSegStart,
double  testDistance,
std::list< DtRailObstructionPtr > &  collisionList 
)
protectedvirtual

Finds all obstructions along the specified segment, starting at distFromSegStart, and running for the specified testDistance.

virtual void DtRailObstructionFinder::mergeObstructions ( const std::list< DtRailObstructionPtr > &  sourceList,
std::list< DtRailObstructionPtr > &  destiatnionList,
double  adjustmentDistance 
)
protectedvirtual

Merges the obstruction info from the source list to the destination list, removing duplicates if necessary.

All distances specified on sourceList are adjusted by the specified adjustmentDistance.

void DtRailObstructionFinder::publishDebugPath ( const DtVector localStart,
const DtVector localEnd 
)
protected

Method used for debugging.

DtRailObstructionFinder& DtRailObstructionFinder::operator= ( const DtRailObstructionFinder orig)
private

Not implemented.

Member Data Documentation

DtVrfObjectManager* DtRailObstructionFinder::myObjectManager
protected
DtPhysicalWorld* DtRailObstructionFinder::myPhysicalWorld
protected
DtCollisionDetector* DtRailObstructionFinder::myCollisionDetector
protected
DtVrfObject* DtRailObstructionFinder::myHostEntity
protected
DtVrfObject* DtRailObstructionFinder::myDebugRoute
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)