![]() |
VR-Forces 4.5 Class Documentation
|
An object containing functions to find obstructions in road segments in a road path; part of a DtRoadMovementController. More...
Public Member Functions | |
| DtRoadObstructionFinder (DtVrfObjectManager *objMgr, DtPhysicalWorld *world, DtVrfObject *hostEntity, bool drivingOnLeft) | |
| virtual | ~DtRoadObstructionFinder () |
| virtual void | init (const DtRwObjectTypeList &passableObjectTypes) |
| virtual bool | findFirstObstructionInLane (const DtRoadSegment *startSegment, const int roadLaneNum, const double positionAlongLane, double lookDistance, DtRailObstructionPtr &result, std::vector< std::vector< DtVector > > &debugBoxes, bool debug=false) const |
| Looks for obstructions along the given road, starting at the provided lane and position in lane for the specified distance along the lane and connecting lanes in downstream segments. | |
| virtual bool | findFirstObstructionUpstreamInLane (const DtRoadSegment *startSegment, const int roadLaneNum, const double positionAlongLane, double lookDistance, DtRailObstructionPtr &result, std::vector< std::vector< DtVector > > &debugBoxes, bool debug=false) const |
| Looks for obstructions along the given road, starting at the provided local location for the specified distance along the rail. | |
Protected Member Functions | |
| virtual bool | findNearestObstructionInSegment (const DtRoadSegment *segment, const int roadLaneNum, const double distFromSegStart, const double testDistance, DtRailObstructionPtr &obstruction, std::vector< std::vector< DtVector > > &debugBoxes, bool debug=false) const |
| Finds all obstructions along the specified segment, in the given lane, starting at distFromSegStart and running for the specified testDistance. | |
| virtual bool | findNearestObstructionUpstreamInSegment (const DtRoadSegment *segment, double testAltitude, const int roadLaneNum, const double distFromSegStart, const double testDistance, DtRailObstructionPtr &obstruction, std::vector< std::vector< DtVector > > &debugBoxes, bool debug=false) const |
| Finds all obstructions along the specified segment, starting at distFromSegStart, and running for the specified testDistance. | |
| void | getBoxPointsFromVolume (Dt3dBoundingVolume &volume, DtVector &refPoint, DtDcm &orientation, std::vector< std::vector< DtVector > > &outputList) const |
| Generates the (5) world points defining rectangle that is a horizontal slice through the given volume at the midpoint of the volume. | |
Protected Attributes | |
| DtVrfObjectManager * | myObjectManager |
| DtPhysicalWorld * | myPhysicalWorld |
| DtCollisionDetector * | myCollisionDetector |
| DtVrfObject * | myHostEntity |
| bool | myDrivingOnLeft |
Private Member Functions | |
| DtRoadObstructionFinder () | |
| Not implemented. | |
| DtRoadObstructionFinder (const DtRoadObstructionFinder &orig) | |
| DtRoadObstructionFinder & | operator= (const DtRoadObstructionFinder &orig) |
An object containing functions to find obstructions in road segments in a road path; part of a DtRoadMovementController.
This class finds obstructions along rail segment lists, and provides details of these obstructions.
| DtRoadObstructionFinder::DtRoadObstructionFinder | ( | DtVrfObjectManager * | objMgr, |
| DtPhysicalWorld * | world, | ||
| DtVrfObject * | hostEntity, | ||
| bool | drivingOnLeft | ||
| ) |
|
virtual |
|
private |
Not implemented.
|
private |
|
virtual |
|
virtual |
Looks for obstructions along the given road, starting at the provided lane and position in lane for the specified distance along the lane and connecting lanes in downstream segments.
Fills the result rail obstruction object ptr with obstruction information for the first obstacle object found in the lane.
| result | This obstruction object is created if there is an obstruction found. If the function returns false, this pointer is not valid. |
|
virtual |
Looks for obstructions along the given road, starting at the provided local location for the specified distance along the rail.
Fills the result rail obstruction object ptr with obstruction information for the first obstacle object found in the lane.
| result | This obstruction object is created if there is an obstruction found. If the function returns false, this pointer is not valid. Note that the myRailObstructionInfo->startBlockDistance in this object is the distance upstream to the front of the obstacle, vs. the distance downstream to the back of the vehicle as in findFirstObstructionInLane. |
|
protectedvirtual |
Finds all obstructions along the specified segment, in the given lane, starting at distFromSegStart and running for the specified testDistance.
| obstruction | This obstruction object is created if there is an obstruction found. If the function returns false, this pointer is not valid. |
|
protectedvirtual |
Finds all obstructions along the specified segment, starting at distFromSegStart, and running for the specified testDistance.
| obstruction | This obstruction object is created if there is an obstruction found. If the function returns false, this pointer is not valid. |
|
protected |
Generates the (5) world points defining rectangle that is a horizontal slice through the given volume at the midpoint of the volume.
Used to generate a visualization of the volume.
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |