![]() |
VR-Forces 5.0.2 Developer's Guide
|
Set of data, used in conjunction with a DtCollision, to specify the information about an obstruction along a rail. Information is in an entity centric format.
Public Member Functions | |
| DtRailObstructionInfo () | |
| virtual | ~DtRailObstructionInfo () |
| virtual void | adjustDistances (double adjustmentValue) |
| virtual void | merge (const DtRailObstructionInfo &source) |
| virtual std::set< int > & | lanes () |
| virtual const std::set< int > & | lanes () const |
| virtual double | startBlockDistance () const |
| virtual void | setStartBlockDistance (double v) |
| virtual double | endBlockDistance () const |
| virtual void | setEndBlockDistance (double v) |
| virtual double | velocityAlongSegment () const |
| virtual void | setVelocityAlongSegment (double v) |
Protected Attributes | |
| std::set< int > | myLanes |
| double | myStartBlockDistance |
| double | myEndBlockDistance |
| double | myVelocityAlongSegment |
| DtRailObstructionInfo::DtRailObstructionInfo | ( | ) |
|
virtual |
|
virtual |
The lanes obstructed by this obstruction.
|
virtual |
The lanes obstructed by this obstruction.
|
virtual |
The distance along the rail to the point where the obstruction starts blocking the rail.
|
virtual |
The distance along the rail to the point where the obstruction starts blocking the rail.
|
virtual |
The distance along the rail until this obstruction is clear.
|
virtual |
The distance along the rail until this obstruction is clear.
|
virtual |
The aspect of velocity of the obstruction that is along the direction of the segment. May be negative, if the obstruction is traveling in the opposite direction.
|
virtual |
The aspect of velocity of the obstruction that is along the direction of the segment. May be negative, if the obstruction is traveling in the opposite direction.
|
virtual |
Adds the adjustmentValue to each distance in this info. Use this to change the perspective of this data from one segment to another.
|
virtual |
Changes the data of this class to encompass the data in source. The merge will make all conservative assumptions, meaning that Only more lanes will be blocked, startBlockDistance will only get smaller and endBlockDistance will only get larger.
|
protected |
|
protected |
|
protected |
|
protected |