Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NBSign Class Reference

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

#include <NBSign.h>

Collaboration diagram for NBSign:
[legend]

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_LEFT_BEFORE_RIGHT ,
  SIGN_TYPE_ROUNDABOUT , SIGN_TYPE_RAIL_CROSSING , SIGN_TYPE_SLOPE , SIGN_TYPE_CITY ,
  SIGN_TYPE_INFO
}
 

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< SignTypeSignTypeColors
 
static StringBijection< SignTypeSignTypeStrings
 

Detailed Description

A class representing a single street sign.

Definition at line 41 of file NBSign.h.

Member Enumeration Documentation

◆ SignType

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_LEFT_BEFORE_RIGHT 
SIGN_TYPE_ROUNDABOUT 
SIGN_TYPE_RAIL_CROSSING 
SIGN_TYPE_SLOPE 
SIGN_TYPE_CITY 
SIGN_TYPE_INFO 

Definition at line 44 of file NBSign.h.

Constructor & Destructor Documentation

◆ NBSign()

NBSign::NBSign ( SignType  type,
double  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 60 of file NBSign.cpp.

◆ ~NBSign()

NBSign::~NBSign ( )

Destructor.

Definition at line 67 of file NBSign.cpp.

Member Function Documentation

◆ writeAsPOI()

Field Documentation

◆ myLabel

std::string NBSign::myLabel
private

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

Definition at line 84 of file NBSign.h.

◆ myOffset

double NBSign::myOffset
private

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

Definition at line 81 of file NBSign.h.

Referenced by writeAsPOI().

◆ myType

SignType NBSign::myType
private

the type of the sign

Definition at line 78 of file NBSign.h.

Referenced by writeAsPOI().

◆ SignTypeColors

StringBijection<SignType> NBSign::SignTypeColors
staticprivate

Definition at line 87 of file NBSign.h.

◆ SignTypeStrings

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

Definition at line 86 of file NBSign.h.

Referenced by writeAsPOI().


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