A traffic control device for intersection flow, ie stop and yield signs, traffic lights, etc.
More...
A traffic control device for intersection flow, ie stop and yield signs, traffic lights, etc.
Used for DtLaneSegment in DtRoadSegment.
| Enumerator |
|---|
| DtIndicationNone |
|
| DtIndicationYield |
|
| DtIndicationStop |
|
| DtIndicationGreenArrow |
|
| DtIndicationGreen |
|
| DtIndicationBlinkingYellow |
|
| DtIndicationYellow |
|
| DtIndicationBlinkingRed |
|
| DtIndicationRed |
|
| DtTrafficControlDevice::DtTrafficControlDevice |
( |
| ) |
|
| virtual DtTrafficControlDevice::~DtTrafficControlDevice |
( |
| ) |
|
|
virtual |
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 const DtVrfObject* DtTrafficControlDevice::trafficLightObject |
( |
| ) |
|
|
virtual |
Access for the traffic light object:
| virtual void DtTrafficControlDevice::setTrafficLightObject |
( |
const 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 |
( |
const DtAppearance * |
app | ) |
const |
|
inlinevirtual |
| virtual bool DtTrafficControlDevice::hasYellowIndication |
( |
const DtAppearance * |
app | ) |
const |
|
inlinevirtual |
| virtual bool DtTrafficControlDevice::hasGreenIndication |
( |
const DtAppearance * |
app | ) |
const |
|
inlinevirtual |
| bool DtTrafficControlDevice::myIsStatic |
|
protected |
True for fixed indications–none, Stop, Yield, blinkers.
| const DtVrfObject* DtTrafficControlDevice::myTrafficLight |
|
protected |
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:
- /data/exports/nrhent7-1/nightly/docs/vrForces.vrf4-10-branch/include/vrfmodel/roadSegment.h