A traffic control device for intersection flow, ie stop and yield signs, traffic lights, etc.
More...
Detailed Description
A traffic control device for intersection flow, ie stop and yield signs, traffic lights, etc.
Used for DtLaneSegment in DtRoadSegment.
Member Enumeration Documentation
- Enumerator:
| DtIndicationNone |
|
| DtIndicationYield |
|
| DtIndicationStop |
|
| DtIndicationGreenArrow |
|
| DtIndicationGreen |
|
| DtIndicationBlinkingYellow |
|
| DtIndicationYellow |
|
| DtIndicationBlinkingRed |
|
| DtIndicationRed |
|
Constructor & Destructor Documentation
| DtTrafficControlDevice::DtTrafficControlDevice |
( |
| ) |
|
| virtual DtTrafficControlDevice::~DtTrafficControlDevice |
( |
| ) |
|
|
virtual |
Member Function Documentation
Return the traffic control indication–but if the TCD is not static, the current indication in the traffic light object is returned.
The set function sets the indication member variable, but if the TCD is not static the current indication will come from the traffic light anyway.
| virtual bool DtTrafficControlDevice::isStatic |
( |
| ) |
const |
|
virtual |
Access to the isStatic member variable.
| virtual void DtTrafficControlDevice::setIsStatic |
( |
const bool |
isStatic | ) |
|
|
virtual |
| virtual DtVrfObject* DtTrafficControlDevice::trafficLightObject |
( |
| ) |
|
|
virtual |
Access for the traffic light object:
| virtual void DtTrafficControlDevice::setTrafficLightObject |
( |
DtVrfObject * |
trafficLight | ) |
|
|
virtual |
| virtual double DtTrafficControlDevice::positionAlongLane |
( |
| ) |
const |
|
virtual |
The position along the lane where this traffic control device takes effect.
Generally this will be at a stop line, not at the signal/sign.
| virtual void DtTrafficControlDevice::setPositionAlongLane |
( |
const double |
p | ) |
|
|
virtual |
| virtual bool DtTrafficControlDevice::hasRedIndication |
( |
DtAppearance * |
app | ) |
const |
|
inlinevirtual |
| virtual bool DtTrafficControlDevice::hasYellowIndication |
( |
DtAppearance * |
app | ) |
const |
|
inlinevirtual |
| virtual bool DtTrafficControlDevice::hasGreenIndication |
( |
DtAppearance * |
app | ) |
const |
|
inlinevirtual |
Member Data Documentation
| bool DtTrafficControlDevice::myIsStatic |
|
protected |
True for fixed indications–none, Stop, Yield, blinkers.
If and only if the TCD is not static, then consult this for indication:
| double DtTrafficControlDevice::myPositionAlongLane |
|
protected |
The documentation for this class was generated from the following file:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.vrf4-6-branch/include/vrfmodel/roadSegment.h