SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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_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.
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)
SUMOReal myOffset
 The offset of the sign from the start of its edge.
SignType myType
 the type of the sign

Static Private Attributes

static StringBijection< SignTypeSignTypeColors
static StringBijection< SignTypeSignTypeStrings

Detailed Description

A class representing a single street sign.

Definition at line 50 of file NBSign.h.

Member Enumeration Documentation

Enumerator:
SIGN_TYPE_SPEED 
SIGN_TYPE_YIELD 
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 53 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 82 of file NBSign.cpp.

NBSign::~NBSign ( )

Destructor.

Definition at line 89 of file NBSign.cpp.

Member Function Documentation

Field Documentation

std::string NBSign::myLabel
private

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

Definition at line 90 of file NBSign.h.

SUMOReal NBSign::myOffset
private

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

Definition at line 87 of file NBSign.h.

Referenced by writeAsPOI().

SignType NBSign::myType
private

the type of the sign

Definition at line 84 of file NBSign.h.

Referenced by writeAsPOI().

StringBijection< NBSign::SignType > NBSign::SignTypeColors
staticprivate

Definition at line 93 of file NBSign.h.

Referenced by writeAsPOI().

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

Definition at line 92 of file NBSign.h.

Referenced by writeAsPOI().


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