55 #ifdef CHECK_MEMORY_LEAKS 57 #endif // CHECK_MEMORY_LEAKS 64 myParentJunction(parentJunction),
65 myCrossing(parentJunction->getNBNode()->getCrossingRef(id)) {
86 for (
int i = 0; i < segments; ++i) {
121 glColor3d(0.9, 0.9, 0.9);
123 glColor3d(0.1, 0.1, 0.1);
126 glTranslated(0, 0, .2);
134 glTranslated(0, 0, 0.1);
144 glVertex2d(-halfWidth, -t);
145 glVertex2d(-halfWidth, -t - length);
146 glVertex2d(halfWidth, -t - length);
147 glVertex2d(halfWidth, -t);
156 glTranslated(0, 0, -.2);
238 std::vector<std::string> NBEdgeIDs;
241 for (std::vector<std::string>::iterator i = NBEdgeIDs.begin(); i != NBEdgeIDs.end(); i++) {
249 return isPositive<SUMOReal>(value);
251 return ((value ==
"true") || (value ==
"false"));
269 std::vector<std::string> NBEdgeIDs;
272 for (std::vector<std::string>::iterator i = NBEdgeIDs.begin(); i != NBEdgeIDs.end(); i++) {
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
NBNode::Crossing & myCrossing
the data for this crossing
GNEEdge * retrieveEdge(const std::string &id, bool failHard=true)
get edge by id
SUMOReal width
This lane's width.
GNENet * myNet
the net to inform about updates
NBNode::Crossing & getNBCrossing() const
get referente to NBode::Crossing
void refreshElement(GUIGlObject *o)
refreshes boundary information for o and update
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
std::vector< SUMOReal > myShapeLengths
The lengths of the shape parts.
Stores the information about how to visualize structures.
NBNode * getNBNode() const
Return net build node.
PositionVector shape
The lane's shape.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
std::string getAttribute(SumoXMLAttr key) const
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.
bool priority
whether the pedestrians have priority
GNECrossing(GNEJunction *parentJunction, const std::string &id)
Constructor.
void updateGeometry()
update pre-computed geometry information
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
static void parseStringVector(const std::string &def, std::vector< std::string > &into)
Splits the given string.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
A point in 2D or 3D with translation and scaling methods.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
friend class GNEChange_Attribute
declare friend class
GNEJunction * getParentJunction() const
get parent Junction
GNEJunction * myParentJunction
the parent junction of this crossing
GUIGLObjectPopupMenu * myPopup
the created popup
const PositionVector & getShape() const
retrieve the junction shape
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Boundary & grow(SUMOReal by)
extends the boundary by the given amount
SUMOReal y() const
Returns the y-position.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
crossing between edges for pedestrians
virtual ~GNECrossing()
Destructor.
bool drawCrossingsAndWalkingareas
whether crosings and walkingareas shall be drawn
EdgeVector edges
The edges being crossed.
SUMOReal distanceTo2D(const Position &p2) const
returns the euclidean distance in the x-y-plane
A definition of a pedestrian crossing.
SumoXMLTag getTag() const
get XML Tag assigned to this object
bool isValid(SumoXMLAttr key, const std::string &value)
NBEdge * getNBEdge()
returns the internal NBEdge
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.
std::vector< SUMOReal > myShapeRotations
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.