![]() |
VR-Forces 4.5 Class Documentation
|
Not currently used (future work). More...
Public Member Functions | |
| DtTrafficControlDevice () | |
| virtual | ~DtTrafficControlDevice () |
| DtTrafficControlDevice (const DtTrafficControlDevice &orig) | |
| DtTrafficControlDevice & | operator= (const DtTrafficControlDevice &orig) |
| virtual DtTrafficControlDevice * | clone () |
| virtual DtTrafficControlIndication | currentIndication () const |
| Return the traffic control indication–but if the TCD is not static, the current indication in the traffic light object is returned. | |
| virtual void | setCurrentIndication (const DtTrafficControlIndication signal) |
| 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 | isStatic () const |
| Access to the isStatic member variable. | |
| virtual void | setIsStatic (const bool isStatic) |
| virtual DtVrfObject * | trafficLightObject () |
| Access for the traffic light object: | |
| virtual void | setTrafficLightObject (DtVrfObject *trafficLight) |
Protected Attributes | |
| bool | myIsStatic |
| True for fixed indications–none, Stop, Yield, blinkers. | |
| DtTrafficControlIndication | myTrafficControlIndication |
| DtVrfObject * | myTrafficLight |
| If and only if the TCD is not static, then consult this for indication: | |
Not currently used (future work).
A traffic control device for intersection flow, ie stop and yield signs, traffic lights, etc. Used for DtLaneSegment in DtRoadSegment.
| DtTrafficControlDevice::DtTrafficControlDevice | ( | ) |
|
virtual |
| DtTrafficControlDevice::DtTrafficControlDevice | ( | const DtTrafficControlDevice & | orig | ) |
| DtTrafficControlDevice& DtTrafficControlDevice::operator= | ( | const DtTrafficControlDevice & | orig | ) |
|
virtual |
|
virtual |
Return the traffic control indication–but if the TCD is not static, the current indication in the traffic light object is returned.
|
virtual |
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 |
Access to the isStatic member variable.
|
virtual |
|
virtual |
Access for the traffic light object:
|
virtual |
|
protected |
True for fixed indications–none, Stop, Yield, blinkers.
|
protected |
|
protected |
If and only if the TCD is not static, then consult this for indication: