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

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

Public Member Functions

 DtRailObstructionFinder (DtVrfObjectManager *objMgr, DtPhysicalWorld *world, DtLocalObject *hostEntity)
 
virtual ~DtRailObstructionFinder ()
 
virtual void init (const DtRwEntityTypeList &passableObjectTypes)
 
virtual void findObstructions (const DtRailSegmentList &rail, const DtVector &point, double distance, std::list< DtRailObstructionPtr > &result)
 

Protected Member Functions

virtual bool fillObstructionList (const DtRailSegmentList &rail, const DtVector &startPoint, double testDistance, std::list< DtRailObstructionPtr > &collisionList)
 
virtual bool findObstructionsAlongSegment (const DtRailSegment *segment, double testAltitude, double distFromSegStart, double testDistance, std::list< DtRailObstructionPtr > &collisionList)
 
virtual void mergeObstructions (const std::list< DtRailObstructionPtr > &sourceList, std::list< DtRailObstructionPtr > &destiatnionList, double adjustmentDistance)
 

Protected Attributes

DtVrfObjectManager * myObjectManager
 
DtPhysicalWorld * myPhysicalWorld
 
DtCollisionDetector * myCollisionDetector
 
DtLocalObject * myHostEntity
 

Private Member Functions

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

Constructor & Destructor Documentation

DtRailObstructionFinder::DtRailObstructionFinder ( DtVrfObjectManager *  objMgr,
DtPhysicalWorld *  world,
DtLocalObject *  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 DtRwEntityTypeList &  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.

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

Not implemented.

Member Data Documentation

DtVrfObjectManager* DtRailObstructionFinder::myObjectManager
protected
DtPhysicalWorld* DtRailObstructionFinder::myPhysicalWorld
protected
DtCollisionDetector* DtRailObstructionFinder::myCollisionDetector
protected
DtLocalObject* DtRailObstructionFinder::myHostEntity
protected

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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)