Eclipse SUMO - Simulation of Urban MObility
|
A class representing a single street sign. More...
#include <NBSign.h>
Public Member Functions | |
NBSign (SignType type, double offset, const std::string label="") | |
Constructor with id, and position. | |
void | writeAsPOI (OutputDevice &into, const NBEdge *edge) const |
write into device as POI positioned relative to the given edge | |
~NBSign () | |
Destructor. | |
Private Attributes | |
std::string | myLabel |
The (optional) label (for SPEED, SLOPE etc) | |
double | myOffset |
The offset of the sign from the start of its edge. | |
SignType | myType |
the type of the sign | |
Static Private Attributes | |
static StringBijection< SignType > | SignTypeColors |
static StringBijection< SignType > | SignTypeStrings |
enum NBSign::SignType |
NBSign::NBSign | ( | SignType | type, |
double | offset, | ||
const std::string | label = "" |
||
) |
Constructor with id, and position.
[in] | type | The type of the sign |
[in] | offset | The offset of the sign from the start of its edge |
[in] | label | The (optional) label (for SPEED, SLOPE etc) |
Definition at line 60 of file NBSign.cpp.
NBSign::~NBSign | ( | ) |
Destructor.
Definition at line 67 of file NBSign.cpp.
void NBSign::writeAsPOI | ( | OutputDevice & | into, |
const NBEdge * | edge | ||
) | const |
write into device as POI positioned relative to the given edge
XXX
Definition at line 71 of file NBSign.cpp.
References RGBColor::BLUE, OutputDevice::closeTag(), NBEdge::getID(), NBEdge::getLanes(), StringBijection< T >::getString(), RGBColor::GREY, PositionVector::move2side(), myOffset, myType, GeomHelper::naviDegree(), OutputDevice::openTag(), PositionVector::positionAtOffset(), RGBColor::RED, PositionVector::rotationAtOffset(), SIGN_TYPE_ALLWAY_STOP, SIGN_TYPE_CITY, SIGN_TYPE_INFO, SIGN_TYPE_LEFT_BEFORE_RIGHT, SIGN_TYPE_ON_RAMP, SIGN_TYPE_PRIORITY, SIGN_TYPE_RAIL_CROSSING, SIGN_TYPE_RIGHT_BEFORE_LEFT, SIGN_TYPE_ROUNDABOUT, SIGN_TYPE_SLOPE, SIGN_TYPE_SPEED, SIGN_TYPE_STOP, SIGN_TYPE_YIELD, SignTypeStrings, SUMO_ATTR_ANGLE, SUMO_ATTR_COLOR, SUMO_ATTR_ID, SUMO_ATTR_TYPE, SUMO_ATTR_X, SUMO_ATTR_Y, SUMO_TAG_POI, toString(), OutputDevice::writeAttr(), Position::x(), Position::y(), and RGBColor::YELLOW.
|
private |
|
private |
The offset of the sign from the start of its edge.
Definition at line 81 of file NBSign.h.
Referenced by writeAsPOI().
|
private |
|
staticprivate |
|
staticprivate |
Definition at line 86 of file NBSign.h.
Referenced by writeAsPOI().