![]() |
VR-Forces 4.0.4 Class Documentation
|
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 | |
| DtVrfObjectManager * | myObjectManager |
| DtPhysicalWorld * | myPhysicalWorld |
| DtCollisionDetector * | myCollisionDetector |
| DtVrfObject * | myHostEntity |
| DtVrfObject * | myDebugRoute |
Private Member Functions | |
| DtRailObstructionFinder () | |
| Not implemented. | |
| DtRailObstructionFinder (const DtRailObstructionFinder &orig) | |
| Not implemented. | |
| DtRailObstructionFinder & | operator= (const DtRailObstructionFinder &orig) |
| Not implemented. | |
This class finds obstructions along rail segment lists, and provides reports about the details of these obstructions.
| 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.
| 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 | ||
| ) | [protected, virtual] |
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 | ||
| ) | [protected, virtual] |
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 | ||
| ) | [protected, virtual] |
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.
DtPhysicalWorld* DtRailObstructionFinder::myPhysicalWorld [protected] |
DtVrfObject* DtRailObstructionFinder::myHostEntity [protected] |
DtVrfObject* DtRailObstructionFinder::myDebugRoute [protected] |