SUMO - Simulation of Urban MObility
NBSign Class Reference

A class representing a single street sign. More...

#include <NBSign.h>

Public Types

enum  SignType {
  SIGN_TYPE_SPEED, SIGN_TYPE_YIELD, SIGN_TYPE_STOP, SIGN_TYPE_ALLWAY_STOP,
  SIGN_TYPE_ON_RAMP, SIGN_TYPE_PRIORITY, SIGN_TYPE_RIGHT_BEFORE_LEFT, SIGN_TYPE_ROUNDABOUT,
  SIGN_TYPE_RAIL_CROSSING, SIGN_TYPE_SLOPE, SIGN_TYPE_CITY, SIGN_TYPE_INFO
}
 

Public Member Functions

 NBSign (SignType type, SUMOReal offset, const std::string label="")
 Constructor with id, and position. More...
 
void writeAsPOI (OutputDevice &into, const NBEdge *edge) const
 write into device as POI positioned relative to the given edge More...
 
 ~NBSign ()
 Destructor. More...
 

Private Attributes

std::string myLabel
 The (optional) label (for SPEED, SLOPE etc) More...
 
SUMOReal myOffset
 The offset of the sign from the start of its edge. More...
 
SignType myType
 the type of the sign More...
 

Static Private Attributes

static StringBijection< SignTypeSignTypeColors
 
static StringBijection< SignTypeSignTypeStrings
 

Detailed Description

A class representing a single street sign.

Definition at line 51 of file NBSign.h.

Member Enumeration Documentation

Enumerator
SIGN_TYPE_SPEED 
SIGN_TYPE_YIELD 
SIGN_TYPE_STOP 
SIGN_TYPE_ALLWAY_STOP 
SIGN_TYPE_ON_RAMP 
SIGN_TYPE_PRIORITY 
SIGN_TYPE_RIGHT_BEFORE_LEFT 
SIGN_TYPE_ROUNDABOUT 
SIGN_TYPE_RAIL_CROSSING 
SIGN_TYPE_SLOPE 
SIGN_TYPE_CITY 
SIGN_TYPE_INFO 

Definition at line 54 of file NBSign.h.

Constructor & Destructor Documentation

NBSign::NBSign ( SignType  type,
SUMOReal  offset,
const std::string  label = "" 
)

Constructor with id, and position.

Parameters
[in]typeThe type of the sign
[in]offsetThe offset of the sign from the start of its edge
[in]labelThe (optional) label (for SPEED, SLOPE etc)

Definition at line 71 of file NBSign.cpp.

NBSign::~NBSign ( )

Destructor.

Definition at line 78 of file NBSign.cpp.

Member Function Documentation

Field Documentation

std::string NBSign::myLabel
private

The (optional) label (for SPEED, SLOPE etc)

Definition at line 93 of file NBSign.h.

SUMOReal NBSign::myOffset
private

The offset of the sign from the start of its edge.

Definition at line 90 of file NBSign.h.

Referenced by writeAsPOI().

SignType NBSign::myType
private

the type of the sign

Definition at line 87 of file NBSign.h.

Referenced by writeAsPOI().

StringBijection<SignType> NBSign::SignTypeColors
staticprivate

Definition at line 96 of file NBSign.h.

StringBijection< NBSign::SignType > NBSign::SignTypeStrings
staticprivate

Definition at line 95 of file NBSign.h.

Referenced by writeAsPOI().


The documentation for this class was generated from the following files: