 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
72 myStateTarget(myState),
99 if (FXSELTYPE(sel) == SEL_COMMAND) {
153 for (std::vector<std::string>::const_iterator it = names.begin(); it != names.end(); it++) {
156 FXMenuRadio* mc =
new FXMenuRadio(
myPopup, (*it + origHint).c_str(),
this, FXDataTarget::ID_OPTION + state);
A window containing a gl-object's parameter.
#define WRITE_WARNING(msg)
void updateGeometryShape(const PositionVector &shape, double startPos=-1, double endPos=-1, const Position &extraFirstPosition=Position::INVALID, const Position &extraLastPosition=Position::INVALID)
update geometry shape
The link is controlled by a tls which is off and blinks, has to brake.
GUIGLObjectPopupMenu * myPopup
the created popup
static const RGBColor BLACK
The link is controlled by a tls which is off, not blinking, may pass.
GNETLSEditorFrame * myEditor
the editor to inform about changes
GNEViewNet * getViewNet() const
get view net
std::vector< std::string > getStrings() const
The link has green light, has to brake.
The link has green light, may pass.
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
Boundary getBoxBoundary() const
Returns a boundary enclosing this list of lines.
void closeBuilding(const Parameterised *p=0)
Closes the building of the table.
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic,...
The link has yellow light, has to brake anyway.
const PositionVector & getShape() const
The shape of the additional element.
FXuint myState
the state of the link (used for visualization)
The link has red light (must brake) but indicates upcoming green.
T get(const std::string &str) const
GUIGlID getGlID() const
Returns the numerical id of the object.
GNEGeometry::Geometry myInternalLaneGeometry
internal lane geometry
A class that stores a 2D geometrical boundary.
static RGBColor colorForLinksState(FXuint state)
return the color for each linkstate
static void drawGeometry(const GNEViewNet *viewNet, const Geometry &geometry, const double width)
draw geometry
double scale
information about a lane's width (temporary, used for a single view)
Network mode (Edges, junctions, etc..)
Supermode currentSupermode
the current supermode
void setLinkState(LinkState state)
set the linkState (controls drawing color)
void handleChange(GNEInternalLane *lane)
update phase definition for the current traffic light and phase
int getTLIndex() const
get Traffic Light index
static void drawLine(const Position &beg, double rot, double visLength)
Draws a thin line.
FXDataTarget myStateTarget
virtual ~GNEInternalLane()
Destructor.
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.
static const RGBColor & getLinkColor(const LinkState &ls)
map from LinkState to color constants
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
The link has yellow light, may pass.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routete...
GNEInternalLane()
FOX needs this.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
LinkState myOrigState
the original state of the link (used for tracking modification)
LinkState getLinkState() const
whether link state has been modfied
int myTlIndex
the tl-index of this lane
static const StringBijection< FXuint > LinkStateNames
long names for link states
const GNEViewNetHelper::EditModes & getEditModes() const
get edit modes
static StringBijection< FXuint >::Entry linkStateNamesValues[]
linkstates names values
long onDefault(FXObject *, FXSelector, void *)
multiplexes message to two targets
Boundary & grow(double by)
extends the boundary by the given amount
The link has red light (must brake)
static FXColor getFXColor(const RGBColor &col)
converts FXColor to RGBColor
Stores the information about how to visualize structures.
void destroyPopup()
destoys the popup
This is an uncontrolled, minor link, has to stop.