57 #ifdef CHECK_MEMORY_LEAKS 59 #endif // CHECK_MEMORY_LEAKS 102 myStateTarget(myState),
106 int segments = (int)
myShape.size() - 1;
110 for (
int i = 0; i < segments; ++i) {
138 if (FXSELTYPE(sel) == SEL_COMMAND) {
173 for (std::vector<std::string>::const_iterator it = names.begin(); it != names.end(); it++) {
176 FXMenuRadio* mc =
new FXMenuRadio(
myPopup, (*it + origHint).c_str(),
this, FXDataTarget::ID_OPTION + state);
The link has green light, may pass.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
The link has green light, has to brake.
Stores the information about how to visualize structures.
This is an uncontrolled, minor link, has to stop.
const RGBColor & getLinkColor(const LinkState &ls)
static RGBColor colorForLinksState(FXuint state)
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routete...
static void drawBoxLines(const PositionVector &geom, const std::vector< SUMOReal > &rots, const std::vector< SUMOReal > &lengths, SUMOReal width, int cornerDetail=0, SUMOReal offset=0)
Draws thick lines.
const PositionVector myShape
the shape of the edge
static StringBijection< FXuint >::Entry linkStateNamesValues[]
The link is controlled by a tls which is off, not blinking, may pass.
SUMOReal x() const
Returns the x-position.
GUIGlID getGlID() const
Returns the numerical id of the object.
A class that stores a 2D geometrical boundary.
SUMOReal scale
information about a lane's width (temporary, used for a single view)
FXDataTarget myStateTarget
LinkState myOrigState
the original state of the link (used for tracking modification)
std::vector< std::string > getStrings() const
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
A point in 2D or 3D with translation and scaling methods.
std::vector< SUMOReal > myShapeLengths
The lengths of the shape parts.
std::vector< SUMOReal > myShapeRotations
The rotations of the shape parts.
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic, in MSLink and GNEInternalLane.
void handleChange(GNEInternalLane *lane)
update phase definition for the current traffic light and phase
void destroyPopup()
destoys the popup
long onDefault(FXObject *, FXSelector, void *)
multiplexes message to two targets
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
virtual ~GNEInternalLane()
Destructor.
Boundary & grow(SUMOReal by)
extends the boundary by the given amount
The link has yellow light, may pass.
The link is controlled by a tls which is off and blinks, has to brake.
SUMOReal y() const
Returns the y-position.
The link has red light (must brake)
GNETLSEditor * myEditor
the editor to inform about changes
GUIGLObjectPopupMenu * myPopup
the created popup
static const StringBijection< FXuint > LinkStateNames
long names for link states
static FXColor getFXColor(const RGBColor &col)
converts FXColor to RGBColor
T get(const std::string &str) const
SUMOReal distanceTo2D(const Position &p2) const
returns the euclidean distance in the x-y-plane
static void drawLine(const Position &beg, SUMOReal rot, SUMOReal visLength)
Draws a thin line.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
GNEInternalLane()
FOX needs this.
The link has yellow light, has to brake anyway.
Boundary getBoxBoundary() const
Returns a boundary enclosing this list of lines.
void closeBuilding()
Closes the building of the table.
A window containing a gl-object's parameter.
The link has red light (must brake) but indicates upcoming green.
FXuint myState
the state of the link (used for visualization)
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.