Eclipse SUMO - Simulation of Urban MObility
GNEVariableSpeedSign.cpp
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
14 //
15 /****************************************************************************/
16 
17 // ===========================================================================
18 // included modules
19 // ===========================================================================
20 #include <config.h>
21 
23 #include <utils/gui/div/GLHelper.h>
26 #include <netedit/GNEViewNet.h>
27 #include <netedit/GNEUndoList.h>
28 #include <netedit/GNENet.h>
30 
31 #include "GNEVariableSpeedSign.h"
32 
33 
34 // ===========================================================================
35 // member method definitions
36 // ===========================================================================
37 
38 GNEVariableSpeedSign::GNEVariableSpeedSign(const std::string& id, GNEViewNet* viewNet, const Position& pos, const std::vector<GNELane*>& lanes, const std::string& name, bool blockMovement) :
39  GNEAdditional(id, viewNet, GLO_VSS, SUMO_TAG_VSS, name, blockMovement, {}, {}, {}, {}, {}, {}, lanes, {}, {}, {}),
40 myPosition(pos) {
41 }
42 
43 
45 }
46 
47 
48 void
50  // Set block icon position
52 
53  // Set block icon offset
54  myBlockIcon.offset = Position(-0.5, -0.5);
55 
56  // Set block icon rotation, and using their rotation for draw logo
58 
59  // update child connections
61 }
62 
63 
66  return myPosition;
67 }
68 
69 
72  // Return Boundary depending if myMovingGeometryBoundary is initialised (important for move geometry)
75  } else {
76  Boundary b;
77  b.add(myPosition);
78  b.grow(5);
79  return b;
80  }
81 }
82 
83 
84 void
85 GNEVariableSpeedSign::splitEdgeGeometry(const double /*splitPosition*/, const GNENetElement* /*originalElement*/, const GNENetElement* /*newElement*/, GNEUndoList* /*undoList*/) {
86  // geometry of this element cannot be splitted
87 }
88 
89 
90 void
92  // Open VSS dialog
94 }
95 
96 
97 void
99  // restore old position, apply offset and update Geometry
101  myPosition.add(offset);
102  // filtern position using snap to active grid
104  updateGeometry();
105 }
106 
107 
108 void
110  // commit new position allowing undo/redo
111  undoList->p_begin("position of " + getTagStr());
113  undoList->p_end();
114 }
115 
116 
117 std::string
119  return myViewNet->getNet()->getMicrosimID();
120 }
121 
122 
123 void
125  // obtain exaggeration
126  const double exaggeration = s.addSize.getExaggeration(s, this);
127  // first check if additional has to be drawn
128  if (s.drawAdditionals(exaggeration)) {
129  // check if boundary has to be drawn
130  if (s.drawBoundaries) {
132  }
133  // Start drawing adding an gl identificator
134  glPushName(getGlID());
135  // Add a draw matrix for drawing logo
136  glPushMatrix();
137  glTranslated(myPosition.x(), myPosition.y(), getType());
138  // scale
139  glScaled(exaggeration, exaggeration, 1);
140  // Draw icon depending of variable speed sign is or if isn't being drawn for selecting
141  if (!s.drawForRectangleSelection && s.drawDetail(s.detailSettings.laneTextures, exaggeration)) {
142  glColor3d(1, 1, 1);
143  glRotated(180, 0, 0, 1);
144  if (drawUsingSelectColor()) {
146  } else {
148  }
149  } else {
151  GLHelper::drawBoxLine(Position(0, 1), 0, 2, 1);
152 
153  }
154  // Pop draw icon matrix
155  glPopMatrix();
156  // Show Lock icon
157  myBlockIcon.drawIcon(s, exaggeration, 0.4);
158  // Draw child connections
160  // Draw name if isn't being drawn for selecting
161  if (!s.drawForRectangleSelection) {
163  }
164  // check if dotted contour has to be drawn
165  if (myViewNet->getDottedAC() == this) {
167  // draw shape dotte contour aroud alld connections between child and parents
168  for (auto i : myChildConnections.connectionPositions) {
170  }
171  }
172  // Pop name
173  glPopName();
174  }
175 }
176 
177 
178 std::string
180  switch (key) {
181  case SUMO_ATTR_ID:
182  return getAdditionalID();
183  case SUMO_ATTR_LANES:
184  return parseIDs(getChildLanes());
185  case SUMO_ATTR_POSITION:
186  return toString(myPosition);
187  case SUMO_ATTR_NAME:
188  return myAdditionalName;
190  return toString(myBlockMovement);
191  case GNE_ATTR_SELECTED:
193  case GNE_ATTR_PARAMETERS:
194  return getParametersStr();
195  default:
196  throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
197  }
198 }
199 
200 
201 double
203  throw InvalidArgument(getTagStr() + " doesn't have a double attribute of type '" + toString(key) + "'");
204 }
205 
206 
207 void
208 GNEVariableSpeedSign::setAttribute(SumoXMLAttr key, const std::string& value, GNEUndoList* undoList) {
209  if (value == getAttribute(key)) {
210  return; //avoid needless changes, later logic relies on the fact that attributes have changed
211  }
212  switch (key) {
213  case SUMO_ATTR_ID: {
214  // change ID of Rerouter Interval
215  undoList->p_add(new GNEChange_Attribute(this, myViewNet->getNet(), key, value));
216  // Change Ids of all Variable Speed Sign
217  for (auto i : getChildAdditionals()) {
218  i->setAttribute(SUMO_ATTR_ID, generateChildID(SUMO_TAG_STEP), undoList);
219  }
220  break;
221  }
222  case SUMO_ATTR_LANES:
223  case SUMO_ATTR_POSITION:
224  case SUMO_ATTR_NAME:
226  case GNE_ATTR_SELECTED:
227  case GNE_ATTR_PARAMETERS:
228  undoList->p_add(new GNEChange_Attribute(this, myViewNet->getNet(), key, value));
229  break;
230  default:
231  throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
232  }
233 }
234 
235 
236 bool
237 GNEVariableSpeedSign::isValid(SumoXMLAttr key, const std::string& value) {
238  switch (key) {
239  case SUMO_ATTR_ID:
240  return isValidAdditionalID(value);
241  case SUMO_ATTR_POSITION:
242  return canParse<Position>(value);
243  case SUMO_ATTR_LANES:
244  if (value.empty()) {
245  return false;
246  } else {
247  return canParse<std::vector<GNELane*> >(myViewNet->getNet(), value, false);
248  }
249  case SUMO_ATTR_NAME:
252  return canParse<bool>(value);
253  case GNE_ATTR_SELECTED:
254  return canParse<bool>(value);
255  case GNE_ATTR_PARAMETERS:
256  return Parameterised::areParametersValid(value);
257  default:
258  throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
259  }
260 }
261 
262 
263 bool
265  return true;
266 }
267 
268 
269 std::string
271  return getTagStr() + ": " + getID();
272 }
273 
274 
275 std::string
277  return getTagStr();
278 }
279 
280 // ===========================================================================
281 // private
282 // ===========================================================================
283 
284 void
285 GNEVariableSpeedSign::setAttribute(SumoXMLAttr key, const std::string& value) {
286  switch (key) {
287  case SUMO_ATTR_ID:
288  changeAdditionalID(value);
289  break;
290  case SUMO_ATTR_LANES:
291  changeChildLanes(this, value);
292  break;
293  case SUMO_ATTR_POSITION:
295  myPosition = parse<Position>(value);
297  break;
298  case SUMO_ATTR_NAME:
299  myAdditionalName = value;
300  break;
302  myBlockMovement = parse<bool>(value);
303  break;
304  case GNE_ATTR_SELECTED:
305  if (parse<bool>(value)) {
307  } else {
309  }
310  break;
311  case GNE_ATTR_PARAMETERS:
312  setParametersStr(value);
313  break;
314  default:
315  throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
316  }
317 }
318 
319 /****************************************************************************/
GUIGlObject::getType
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
Definition: GUIGlObject.cpp:180
SUMOXMLDefinitions::isValidAttribute
static bool isValidAttribute(const std::string &value)
whether the given string is a valid attribute for a certain key (for example, a name)
Definition: SUMOXMLDefinitions.cpp:995
GNEAdditional::BlockIcon::position
Position position
position of the block icon
Definition: GNEAdditional.h:318
GNEVariableSpeedSign::isAttributeEnabled
bool isAttributeEnabled(SumoXMLAttr key) const
Definition: GNEVariableSpeedSign.cpp:264
GNEVariableSpeedSign::splitEdgeGeometry
void splitEdgeGeometry(const double splitPosition, const GNENetElement *originalElement, const GNENetElement *newElement, GNEUndoList *undoList)
split geometry
Definition: GNEVariableSpeedSign.cpp:85
GNEVariableSpeedSign::isValid
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
Definition: GNEVariableSpeedSign.cpp:237
GNEVariableSpeedSign.h
GNEAdditional
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:48
Parameterised::getParametersStr
std::string getParametersStr() const
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".
Definition: Parameterised.cpp:112
GNEVariableSpeedSign::getCenteringBoundary
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GNEVariableSpeedSign.cpp:71
GNEAdditional::getAdditionalID
const std::string & getAdditionalID() const
Definition: GNEAdditional.cpp:476
GNEAttributeCarrier::getID
const std::string getID() const
function to support debugging
Definition: GNEAttributeCarrier.cpp:1289
GNEAdditional::BlockIcon::setRotation
void setRotation(GNELane *additionalLane=nullptr)
set Rotation of block Icon (must be called in updateGeometry() function)
Definition: GNEAdditional.cpp:400
GNEAdditional::AdditionalMove::movingGeometryBoundary
Boundary movingGeometryBoundary
boundary used during moving of elements (to avoid insertion in RTREE
Definition: GNEAdditional.h:288
GUIGlObject::drawName
void drawName(const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0) const
draw name of item
Definition: GUIGlObject.cpp:354
GNEUndoList::p_end
void p_end()
End undo command sub-group. If the sub-group is still empty, it will be deleted; otherwise,...
Definition: GNEUndoList.cpp:79
GUIVisualizationSettings::drawForRectangleSelection
bool drawForRectangleSelection
whether drawing is performed for the purpose of selecting objects using a rectangle
Definition: GUIVisualizationSettings.h:647
GNEAttributeCarrier::parseIDs
static std::string parseIDs(const std::vector< T > &ACs)
parses a list of specific Attribute Carriers into a string of IDs
GUIVisualizationSettings::drawBoundaries
bool drawBoundaries
enable or disable draw boundaries
Definition: GUIVisualizationSettings.h:638
GNENet::removeGLObjectFromGrid
void removeGLObjectFromGrid(GUIGlObject *o)
add GL Object into net
Definition: GNENet.cpp:1328
GNEVariableSpeedSign::commitGeometryMoving
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
Definition: GNEVariableSpeedSign.cpp:109
GNEAdditional::generateChildID
std::string generateChildID(SumoXMLTag childTag)
gererate a new ID for an element child
Definition: GNEAdditional.cpp:96
GNEHierarchicalChildElements::drawChildConnections
void drawChildConnections(const GUIVisualizationSettings &s, const GUIGlObjectType GLTypeParent) const
Definition: GNEHierarchicalChildElements.cpp:89
GNEVariableSpeedSign::updateGeometry
void updateGeometry()
update pre-computed geometry information
Definition: GNEVariableSpeedSign.cpp:49
GNETEXTURE_VARIABLESPEEDSIGNSELECTED
@ GNETEXTURE_VARIABLESPEEDSIGNSELECTED
Definition: GUITextures.h:50
GNEViewNet
Definition: GNEViewNet.h:42
SUMO_ATTR_ID
@ SUMO_ATTR_ID
Definition: SUMOXMLDefinitions.h:378
GLHelper.h
GNEVariableSpeedSign::getPopUpID
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
Definition: GNEVariableSpeedSign.cpp:270
GNEAdditional::changeAdditionalID
void changeAdditionalID(const std::string &newID)
change ID of additional
Definition: GNEAdditional.cpp:502
GNEAdditional::unselectAttributeCarrier
void unselectAttributeCarrier(bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
Definition: GNEAdditional.cpp:532
GNEAdditional::myBlockIcon
BlockIcon myBlockIcon
variable BlockIcon
Definition: GNEAdditional.h:353
GLHelper::setColor
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
Definition: GLHelper.cpp:621
GNEVariableSpeedSign::drawGL
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GNEVariableSpeedSign.cpp:124
GUISUMOAbstractView::snapToActiveGrid
Position snapToActiveGrid(const Position &pos, bool snapXY=true) const
Returns a position that is mapped to the closest grid point if the grid is active.
Definition: GUISUMOAbstractView.cpp:196
GUITexturesHelper::drawTexturedBox
static void drawTexturedBox(int which, double size)
Draws a named texture as a box with the given size.
Definition: GUITexturesHelper.cpp:72
GNEVariableSpeedSign::getAttribute
std::string getAttribute(SumoXMLAttr key) const
Definition: GNEVariableSpeedSign.cpp:179
GNEAdditional::myMove
AdditionalMove myMove
variable AdditionalMove
Definition: GNEAdditional.h:344
GNEAdditional::myViewNet
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
Definition: GNEAdditional.h:335
GNEVariableSpeedSign::getAttributeDouble
double getAttributeDouble(SumoXMLAttr key) const
Definition: GNEVariableSpeedSign.cpp:202
GLHelper::drawBoundary
static void drawBoundary(const Boundary &b)
Draw a boundary (used for debugging)
Definition: GLHelper.cpp:817
GNEAttributeCarrier::GNEChange_Attribute
friend class GNEChange_Attribute
declare friend class
Definition: GNEAttributeCarrier.h:57
GNEVariableSpeedSign::moveGeometry
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
Definition: GNEVariableSpeedSign.cpp:98
GNEUndoList::p_add
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
Definition: GNEUndoList.cpp:131
GNEViewNet::getNet
GNENet * getNet() const
get the net object
Definition: GNEViewNet.cpp:1014
GNEHierarchicalChildElements::getChildLanes
const std::vector< GNELane * > & getChildLanes() const
get child lanes
Definition: GNEHierarchicalChildElements.cpp:408
GNEVariableSpeedSign::getPositionInView
Position getPositionInView() const
Returns position of additional in view.
Definition: GNEVariableSpeedSign.cpp:65
GNEAdditional::isAttributeCarrierSelected
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
Definition: GNEAdditional.cpp:548
GNEHierarchicalChildElements::ChildConnections::update
void update()
update Connection's geometry
Definition: GNEHierarchicalChildElements.cpp:517
GUIVisualizationSettings::addName
GUIVisualizationTextSettings addName
Definition: GUIVisualizationSettings.h:591
GUIVisualizationSettings::detailSettings
GUIVisualizationDetailSettings detailSettings
detail settings
Definition: GUIVisualizationSettings.h:683
GNEVariableSpeedSign::getHierarchyName
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
Definition: GNEVariableSpeedSign.cpp:276
SUMO_TAG_VSS
@ SUMO_TAG_VSS
A variable speed sign.
Definition: SUMOXMLDefinitions.h:89
GNEAdditional::selectAttributeCarrier
void selectAttributeCarrier(bool changeFlag=true)
Definition: GNEAdditional.cpp:517
GNEViewNet.h
GUIGlObject::getGlID
GUIGlID getGlID() const
Returns the numerical id of the object.
Definition: GUIGlObject.cpp:149
GNEViewNet::getDottedAC
const GNEAttributeCarrier * getDottedAC() const
get AttributeCarrier under cursor
Definition: GNEViewNet.cpp:1026
Boundary
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:41
GNEVariableSpeedSignDialog.h
GNE_ATTR_PARAMETERS
@ GNE_ATTR_PARAMETERS
parameters "key1=value1|key2=value2|...|keyN=valueN"
Definition: SUMOXMLDefinitions.h:989
GUITextureSubSys::getTexture
static GUIGlID getTexture(GUITexture which)
returns a texture previously defined in the enum GUITexture
Definition: GUITextureSubSys.cpp:101
GLHelper::drawShapeDottedContourRectangle
static void drawShapeDottedContourRectangle(const GUIVisualizationSettings &s, const int type, const Position &center, const double width, const double height, const double rotation=0, const double offsetX=0, const double offsetY=0)
draw a dotted contour around the given Position with certain width and height
Definition: GLHelper.cpp:560
GUIVisualizationSettings::scale
double scale
information about a lane's width (temporary, used for a single view)
Definition: GUIVisualizationSettings.h:632
SUMO_TAG_STEP
@ SUMO_TAG_STEP
trigger: a step description
Definition: SUMOXMLDefinitions.h:157
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:38
Position::x
double x() const
Returns the x-position.
Definition: Position.h:56
Boundary::add
void add(double x, double y, double z=0)
Makes the boundary include the given coordinate.
Definition: Boundary.cpp:78
GNEVariableSpeedSign::~GNEVariableSpeedSign
~GNEVariableSpeedSign()
Destructor.
Definition: GNEVariableSpeedSign.cpp:44
GNEAdditional::myAdditionalName
std::string myAdditionalName
name of additional
Definition: GNEAdditional.h:347
GNENetElement
Definition: GNENetElement.h:43
GNEVariableSpeedSign::setAttribute
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes
Definition: GNEVariableSpeedSign.cpp:208
GNEHierarchicalChildElements::changeChildLanes
void changeChildLanes(GNEAdditional *elementChild, const std::string &newEdgeIDs)
change child edges of an additional
Definition: GNEHierarchicalChildElements.cpp:479
GUIVisualizationDetailSettings::laneTextures
static const double laneTextures
details for lane textures
Definition: GUIVisualizationSettings.h:283
GNEAdditional::myBlockMovement
bool myBlockMovement
boolean to check if additional element is blocked (i.e. cannot be moved with mouse)
Definition: GNEAdditional.h:350
GLHelper::drawShapeDottedContourAroundShape
static void drawShapeDottedContourAroundShape(const GUIVisualizationSettings &s, const int type, const PositionVector &shape, const double width)
draw a dotted contour around the given Non closed shape with certain width
Definition: GLHelper.cpp:461
SUMO_ATTR_POSITION
@ SUMO_ATTR_POSITION
Definition: SUMOXMLDefinitions.h:660
GNEVariableSpeedSignDialog
Definition: GNEVariableSpeedSignDialog.h:44
SUMO_ATTR_LANES
@ SUMO_ATTR_LANES
Definition: SUMOXMLDefinitions.h:638
Parameterised::setParametersStr
void setParametersStr(const std::string &paramsString)
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"
Definition: Parameterised.cpp:139
GLIncludes.h
toString
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
Definition: ToString.h:47
GNEAdditional::BlockIcon::drawIcon
void drawIcon(const GUIVisualizationSettings &s, const double exaggeration, const double size=0.5) const
draw lock icon
Definition: GNEAdditional.cpp:416
GNENet::addGLObjectIntoGrid
void addGLObjectIntoGrid(GUIGlObject *o)
add GL Object into net
Definition: GNENet.cpp:1322
Position::y
double y() const
Returns the y-position.
Definition: Position.h:61
GNEHierarchicalChildElements::myChildConnections
ChildConnections myChildConnections
variable ChildConnections
Definition: GNEHierarchicalChildElements.h:237
Parameterised::areParametersValid
static bool areParametersValid(const std::string &value, bool report=false)
check if given string can be parsed to a parameters map "key1=value1|key2=value2|....
Definition: Parameterised.cpp:166
InvalidArgument
Definition: UtilExceptions.h:56
GLHelper::drawBoxLine
static void drawBoxLine(const Position &beg, double rot, double visLength, double width, double offset=0)
Draws a thick line.
Definition: GLHelper.cpp:136
GNETEXTURE_VARIABLESPEEDSIGN
@ GNETEXTURE_VARIABLESPEEDSIGN
Definition: GUITextures.h:49
GNE_ATTR_BLOCK_MOVEMENT
@ GNE_ATTR_BLOCK_MOVEMENT
block movement of a graphic element
Definition: SUMOXMLDefinitions.h:981
GUIVisualizationSettings::drawAdditionals
bool drawAdditionals(const double exaggeration) const
check if additionals must be drawn
Definition: GUIVisualizationSettings.cpp:1663
GNEAdditional::drawUsingSelectColor
bool drawUsingSelectColor() const
check if attribute carrier must be drawn using selecting color.
Definition: GNEAdditional.cpp:554
GNEVariableSpeedSign::GNEVariableSpeedSign
GNEVariableSpeedSign(const std::string &id, GNEViewNet *viewNet, const Position &pos, const std::vector< GNELane * > &lanes, const std::string &name, bool blockMovement)
Constructor.
Definition: GNEVariableSpeedSign.cpp:38
GNEVariableSpeedSign::myPosition
Position myPosition
position of VSS in view
Definition: GNEVariableSpeedSign.h:140
config.h
GUIVisualizationSettings::addSize
GUIVisualizationSizeSettings addSize
Definition: GUIVisualizationSettings.h:589
Position::add
void add(const Position &pos)
Adds the given position to this one.
Definition: Position.h:126
Boundary::isInitialised
bool isInitialised() const
check if Boundary is Initialised
Definition: Boundary.cpp:216
GNE_ATTR_SELECTED
@ GNE_ATTR_SELECTED
element is selected
Definition: SUMOXMLDefinitions.h:971
Boundary::grow
Boundary & grow(double by)
extends the boundary by the given amount
Definition: Boundary.cpp:300
GUIVisualizationSettings::drawDetail
bool drawDetail(const double detail, const double exaggeration) const
check if details can be drawn for the given GUIVisualizationDetailSettings and current scale and exxa...
Definition: GUIVisualizationSettings.cpp:1669
GNEAttributeCarrier::getTagStr
const std::string & getTagStr() const
get tag assigned to this object in string format
Definition: GNEAttributeCarrier.cpp:1267
SUMO_ATTR_NAME
@ SUMO_ATTR_NAME
Definition: SUMOXMLDefinitions.h:380
GNEUndoList
Definition: GNEUndoList.h:48
GUIVisualizationSettings
Stores the information about how to visualize structures.
Definition: GUIVisualizationSettings.h:345
GNEVariableSpeedSign::getParentName
std::string getParentName() const
Returns the name of the parent object.
Definition: GNEVariableSpeedSign.cpp:118
GNEAdditional::isValidAdditionalID
bool isValidAdditionalID(const std::string &newID) const
check if a new additional ID is valid
Definition: GNEAdditional.cpp:482
GNEUndoList::p_begin
void p_begin(const std::string &description)
Begin undo command sub-group. This begins a new group of commands that are treated as a single comman...
Definition: GNEUndoList.cpp:72
SumoXMLAttr
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
Definition: SUMOXMLDefinitions.h:372
GNEAdditional::AdditionalMove::originalViewPosition
Position originalViewPosition
value for saving first original position over lane before moving
Definition: GNEAdditional.h:291
GUIGlObject::getMicrosimID
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
Definition: GUIGlObject.cpp:163
GUITextureSubSys.h
GNEHierarchicalChildElements::getChildAdditionals
const std::vector< GNEAdditional * > & getChildAdditionals() const
return child additionals
Definition: GNEHierarchicalChildElements.cpp:131
GNEChange_Attribute.h
GNENet.h
GLO_VSS
@ GLO_VSS
a Variable Speed Sign
Definition: GUIGlObjectTypes.h:89
GUIVisualizationSizeSettings::getExaggeration
double getExaggeration(const GUIVisualizationSettings &s, const GUIGlObject *o, double factor=20) const
return the drawing size including exaggeration and constantSize values
Definition: GUIVisualizationSettings.cpp:212
GNEVariableSpeedSign::openAdditionalDialog
void openAdditionalDialog()
open GNEVariableSpeedSignDialog
Definition: GNEVariableSpeedSign.cpp:91
GNEAdditional::BlockIcon::offset
Position offset
The offSet of the block icon.
Definition: GNEAdditional.h:321
GNEHierarchicalChildElements::ChildConnections::connectionPositions
std::vector< PositionVector > connectionPositions
Matrix with the Vertex's positions of connections between parents an their children.
Definition: GNEHierarchicalChildElements.h:223
RGBColor::WHITE
static const RGBColor WHITE
Definition: RGBColor.h:196
GNEUndoList.h