Set of data, used in conjunction with a DtCollision, to specify the information about an obstruction along a rail.
More...
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.
| DtRailObstructionInfo::DtRailObstructionInfo |
( |
| ) |
|
| virtual DtRailObstructionInfo::~DtRailObstructionInfo |
( |
| ) |
|
|
virtual |
| virtual std::set<int>& DtRailObstructionInfo::lanes |
( |
| ) |
|
|
virtual |
The lanes obstructed by this obstruction.
| virtual const std::set<int>& DtRailObstructionInfo::lanes |
( |
| ) |
const |
|
virtual |
| virtual double DtRailObstructionInfo::startBlockDistance |
( |
| ) |
const |
|
virtual |
The distance along the rail to the point where the obstruction starts blocking the rail.
| virtual void DtRailObstructionInfo::setStartBlockDistance |
( |
double |
v | ) |
|
|
virtual |
| virtual double DtRailObstructionInfo::endBlockDistance |
( |
| ) |
const |
|
virtual |
The distance along the rail until this obstruction is clear.
| virtual void DtRailObstructionInfo::setEndBlockDistance |
( |
double |
v | ) |
|
|
virtual |
| virtual double DtRailObstructionInfo::velocityAlongSegment |
( |
| ) |
const |
|
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 void DtRailObstructionInfo::setVelocityAlongSegment |
( |
double |
v | ) |
|
|
virtual |
| virtual void DtRailObstructionInfo::adjustDistances |
( |
double |
adjustmentValue | ) |
|
|
virtual |
Adds the adjustmentValue to each distance in this info.
Use this to change the perspective of this data from one segment to another.
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.
| std::set<int> DtRailObstructionInfo::myLanes |
|
protected |
| double DtRailObstructionInfo::myStartBlockDistance |
|
protected |
| double DtRailObstructionInfo::myEndBlockDistance |
|
protected |
| double DtRailObstructionInfo::myVelocityAlongSegment |
|
protected |
The documentation for this class was generated from the following file: