Eclipse SUMO - Simulation of Urban MObility
GNEAccess.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 
22 #include <netedit/GNENet.h>
23 #include <netedit/GNEUndoList.h>
24 #include <netedit/GNEViewNet.h>
28 #include <utils/gui/div/GLHelper.h>
30 
31 #include "GNEAccess.h"
32 #include "GNEAdditionalHandler.h"
33 
34 // ===========================================================================
35 // member method definitions
36 // ===========================================================================
37 
38 GNEAccess::GNEAccess(GNEAdditional* busStop, GNELane* lane, GNEViewNet* viewNet, double pos, const std::string& length, bool friendlyPos, bool blockMovement) :
39  GNEAdditional(busStop, viewNet, GLO_ACCESS, SUMO_TAG_ACCESS, "", blockMovement, {}, {lane}, {}, {busStop}, {}, {}, {}, {}, {}, {}),
40  myPositionOverLane(pos),
41  myLength(length),
42 myFriendlyPosition(friendlyPos) {
43 }
44 
45 
47 }
48 
49 
50 void
52  // Calculate new position using old position
53  Position newPosition = myMove.originalViewPosition;
54  newPosition.add(offset);
55  // filtern position using snap to active grid
56  newPosition = myViewNet->snapToActiveGrid(newPosition);
57  myPositionOverLane = getParentLanes().front()->getLaneShape().nearest_offset_to_point2D(newPosition, false);
58  // Update geometry
60 }
61 
62 
63 void
65  if (!myBlockMovement) {
66  // commit new position allowing undo/redo
67  undoList->p_begin("position of " + getTagStr());
69  undoList->p_end();
70  }
71 }
72 
73 
74 void
76  // set start position
77  double fixedPositionOverLane;
78  if (myPositionOverLane == -1) {
79  fixedPositionOverLane = getParentLanes().front()->getParentEdge()->getNBEdge()->getFinalLength();
80  } else if (myPositionOverLane < 0) {
81  fixedPositionOverLane = 0;
82  } else if (myPositionOverLane > getParentLanes().front()->getParentEdge()->getNBEdge()->getFinalLength()) {
83  fixedPositionOverLane = getParentLanes().front()->getParentEdge()->getNBEdge()->getFinalLength();
84  } else {
85  fixedPositionOverLane = myPositionOverLane;
86  }
87  // update geometry
88  myAdditionalGeometry.updateGeometryPosition(getParentLanes().front(), fixedPositionOverLane * getParentLanes().front()->getLengthGeometryFactor());
89  // Set block icon position
91  // Set offset of the block icon
92  myBlockIcon.offset = Position(-1, 0);
93  // Set block icon rotation, and using their rotation for logo
95 }
96 
97 
100  if (myPositionOverLane == -1) {
101  return getParentLanes().front()->getLaneShape().front();
102  } else {
103  if (myPositionOverLane < 0) {
104  return getParentLanes().front()->getLaneShape().front();
105  } else if (myPositionOverLane > getParentLanes().front()->getLaneShape().length()) {
106  return getParentLanes().front()->getLaneShape().back();
107  } else {
108  return getParentLanes().front()->getLaneShape().positionAtOffset(myPositionOverLane);
109  }
110  }
111 }
112 
113 
114 Boundary
117 }
118 
119 
120 void
121 GNEAccess::splitEdgeGeometry(const double splitPosition, const GNENetElement* /*originalElement*/, const GNENetElement* newElement, GNEUndoList* undoList) {
122  if (splitPosition < myPositionOverLane) {
123  // change lane
124  setAttribute(SUMO_ATTR_LANE, newElement->getID(), undoList);
125  // now adjust start position
126  setAttribute(SUMO_ATTR_POSITION, toString(myPositionOverLane - splitPosition), undoList);
127  }
128 }
129 
130 
131 bool
133  // with friendly position enabled position are "always fixed"
134  if (myFriendlyPosition) {
135  return true;
136  } else {
137  if (myPositionOverLane != -1) {
138  return (myPositionOverLane >= 0) && (myPositionOverLane <= getParentLanes().front()->getParentEdge()->getNBEdge()->getFinalLength());
139  } else {
140  return false;
141  }
142  }
143 }
144 
145 
146 GNEEdge*
148  return getParentLanes().front()->getParentEdge();
149 }
150 
151 
152 std::string
154  return getParentAdditionals().at(0)->getID();
155 }
156 
157 
158 void
160  // Obtain exaggeration of the draw
161  const double exaggeration = s.addSize.getExaggeration(s, this);
162  // first check if additional has to be drawn
163  if (s.drawAdditionals(exaggeration)) {
164  // Start drawing adding an gl identificator
165  glPushName(getGlID());
166  // push matrix
167  glPushMatrix();
168  // set color depending of selection
169  if (drawUsingSelectColor()) {
171  } else {
173  }
175  // draw circle
177  GLHelper::drawFilledCircle((double) 0.5 * exaggeration, 8);
178  } else {
179  std::vector<Position> vertices = GLHelper::drawFilledCircleReturnVertices((double) 0.5 * exaggeration, 16);
180  // check if dotted contour has to be drawn
181  if (myViewNet->getDottedAC() == this) {
183  }
184  }
185  // pop matrix
186  glPopMatrix();
187  // pop gl identficador
188  glPopName();
189  }
190 }
191 
192 
193 std::string
195  switch (key) {
196  case SUMO_ATTR_ID:
197  return getAdditionalID();
198  case SUMO_ATTR_LANE:
199  return getParentLanes().front()->getID();
200  case SUMO_ATTR_POSITION:
202  case SUMO_ATTR_LENGTH:
203  return toString(myLength);
207  return toString(myBlockMovement);
208  case GNE_ATTR_PARENT:
209  return getParentAdditionals().at(0)->getID();
210  case GNE_ATTR_SELECTED:
212  case GNE_ATTR_PARAMETERS:
213  return getParametersStr();
214  default:
215  throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
216  }
217 }
218 
219 
220 double
222  throw InvalidArgument(getTagStr() + " doesn't have a double attribute of type '" + toString(key) + "'");
223 }
224 
225 
226 void
227 GNEAccess::setAttribute(SumoXMLAttr key, const std::string& value, GNEUndoList* undoList) {
228  if (value == getAttribute(key)) {
229  return; //avoid needless changes, later logic relies on the fact that attributes have changed
230  }
231  switch (key) {
232  case SUMO_ATTR_ID:
233  case SUMO_ATTR_LANE:
234  case SUMO_ATTR_POSITION:
235  case SUMO_ATTR_LENGTH:
238  case GNE_ATTR_SELECTED:
239  case GNE_ATTR_PARAMETERS:
240  undoList->p_add(new GNEChange_Attribute(this, myViewNet->getNet(), key, value));
241  break;
242  default:
243  throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
244  }
245 }
246 
247 
248 bool
249 GNEAccess::isValid(SumoXMLAttr key, const std::string& value) {
250  switch (key) {
251  case SUMO_ATTR_ID:
252  return isValidAdditionalID(value);
253  case SUMO_ATTR_LANE: {
254  GNELane* lane = myViewNet->getNet()->retrieveLane(value, false);
255  if (lane != nullptr) {
256  if (getParentLanes().front()->getParentEdge()->getID() != lane->getParentEdge()->getID()) {
258  } else {
259  return true;
260  }
261  } else {
262  return false;
263  }
264  }
265  case SUMO_ATTR_POSITION:
266  if (value.empty()) {
267  return true;
268  } else {
269  return canParse<double>(value);
270  }
271  case SUMO_ATTR_LENGTH:
272  if (value.empty()) {
273  return true;
274  } else {
275  return (canParse<double>(value) && (parse<double>(value) >= 0));
276  }
278  return canParse<bool>(value);
280  return canParse<bool>(value);
281  case GNE_ATTR_SELECTED:
282  return canParse<bool>(value);
283  case GNE_ATTR_PARAMETERS:
284  return Parameterised::areParametersValid(value);
285  default:
286  throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
287  }
288 }
289 
290 
291 bool
293  return true;
294 }
295 
296 
297 std::string
299  return getTagStr();
300 }
301 
302 
303 std::string
305  return getTagStr() + ": " + getParentLanes().front()->getParentEdge()->getID();
306 }
307 
308 // ===========================================================================
309 // private
310 // ===========================================================================
311 
312 void
313 GNEAccess::setAttribute(SumoXMLAttr key, const std::string& value) {
314  switch (key) {
315  case SUMO_ATTR_ID:
316  changeAdditionalID(value);
317  break;
318  case SUMO_ATTR_LANE:
319  replaceParentLanes(this, value);
320  break;
321  case SUMO_ATTR_POSITION:
322  myPositionOverLane = parse<double>(value);
323  break;
324  case SUMO_ATTR_LENGTH:
325  myLength = value;
326  break;
328  myFriendlyPosition = parse<bool>(value);
329  break;
331  myBlockMovement = parse<bool>(value);
332  break;
333  case GNE_ATTR_SELECTED:
334  if (parse<bool>(value)) {
336  } else {
338  }
339  break;
340  case GNE_ATTR_PARAMETERS:
341  setParametersStr(value);
342  break;
343  default:
344  throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
345  }
346 }
347 
348 /****************************************************************************/
GUIGlObject::getType
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
Definition: GUIGlObject.cpp:180
GNEAdditional::BlockIcon::position
Position position
position of the block icon
Definition: GNEAdditional.h:318
GNEAccess::drawGL
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GNEAccess.cpp:159
GUIVisualizationColorSettings::busStop
static const RGBColor busStop
color for busStops
Definition: GUIVisualizationSettings.h:174
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
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
SUMO_ATTR_LENGTH
@ SUMO_ATTR_LENGTH
Definition: SUMOXMLDefinitions.h:393
GNEAccess::~GNEAccess
~GNEAccess()
Destructor.
Definition: GNEAccess.cpp:46
GNEAdditional::BlockIcon::setRotation
void setRotation(GNELane *additionalLane=nullptr)
set Rotation of block Icon (must be called in updateGeometry() function)
Definition: GNEAdditional.cpp:400
GNEAccess::getEdge
GNEEdge * getEdge() const
get edge in which this Access is placed
Definition: GNEAccess.cpp:147
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
GNELane::getParentEdge
GNEEdge * getParentEdge() const
Returns underlying parent edge.
Definition: GNELane.cpp:1371
GNEAccess::getCenteringBoundary
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GNEAccess.cpp:115
GNEGeometry::Geometry::updateGeometryPosition
void updateGeometryPosition(const GNELane *lane, const double posOverLane)
update position and rotation
Definition: GNEGeometry.cpp:100
GNEAccess::updateGeometry
void updateGeometry()
update pre-computed geometry information
Definition: GNEAccess.cpp:75
GNEHierarchicalParentElements::getParentLanes
const std::vector< GNELane * > & getParentLanes() const
get parent lanes
Definition: GNEHierarchicalParentElements.cpp:235
GNEViewNet
Definition: GNEViewNet.h:42
GNEAccess::getAttributeDouble
double getAttributeDouble(SumoXMLAttr key) const
Definition: GNEAccess.cpp:221
GNEAccess::getPositionInView
Position getPositionInView() const
Returns position of additional in view.
Definition: GNEAccess.cpp:99
SUMO_ATTR_ID
@ SUMO_ATTR_ID
Definition: SUMOXMLDefinitions.h:378
GLHelper.h
SUMO_ATTR_LANE
@ SUMO_ATTR_LANE
Definition: SUMOXMLDefinitions.h:637
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
GNEAccess::getParentName
std::string getParentName() const
Returns the name of the parent object (if any)
Definition: GNEAccess.cpp:153
PositionVector::getBoxBoundary
Boundary getBoxBoundary() const
Returns a boundary enclosing this list of lines.
Definition: PositionVector.cpp:390
GLO_ACCESS
@ GLO_ACCESS
a Acces
Definition: GUIGlObjectTypes.h:97
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
GNEAccess::splitEdgeGeometry
void splitEdgeGeometry(const double splitPosition, const GNENetElement *originalElement, const GNENetElement *newElement, GNEUndoList *undoList)
split geometry
Definition: GNEAccess.cpp:121
GNEAdditional::myMove
AdditionalMove myMove
variable AdditionalMove
Definition: GNEAdditional.h:344
GNEAdditional::myViewNet
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
Definition: GNEAdditional.h:335
GNEEdge
A road/street connecting two junctions (netedit-version)
Definition: GNEEdge.h:51
GNEAttributeCarrier::GNEChange_Attribute
friend class GNEChange_Attribute
declare friend class
Definition: GNEAttributeCarrier.h:57
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
GLHelper::drawFilledCircle
static void drawFilledCircle(double width, int steps=8)
Draws a filled circle around (0,0)
Definition: GLHelper.cpp:348
GNEAccess::myLength
std::string myLength
Acces length.
Definition: GNEAccess.h:145
GNEHierarchicalParentElements::getParentAdditionals
const std::vector< GNEAdditional * > & getParentAdditionals() const
get parent additionals
Definition: GNEHierarchicalParentElements.cpp:85
GNEAdditional::isAttributeCarrierSelected
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
Definition: GNEAdditional.cpp:548
GNEAccess::getPopUpID
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
Definition: GNEAccess.cpp:298
GUIVisualizationColorSettings::selectedAdditionalColor
RGBColor selectedAdditionalColor
additional selection color (busStops, Detectors...)
Definition: GUIVisualizationSettings.h:147
GNEGeometry::Geometry::getShape
const PositionVector & getShape() const
The shape of the additional element.
Definition: GNEGeometry.cpp:147
GNEAccess.h
GNEAdditional::selectAttributeCarrier
void selectAttributeCarrier(bool changeFlag=true)
Definition: GNEAdditional.cpp:517
GLHelper::drawFilledCircleReturnVertices
static std::vector< Position > drawFilledCircleReturnVertices(double width, int steps=8)
Draws a filled circle around (0,0) returning circle vertex.
Definition: GLHelper.cpp:354
GNEViewNet.h
GNEAdditionalHandler.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
GNEHierarchicalParentElements::replaceParentLanes
void replaceParentLanes(GNEShape *elementChild, const std::string &newLaneIDs)
replace the parent edges of a shape
Definition: GNEHierarchicalParentElements.cpp:469
GLHelper::drawShapeDottedContourAroundClosedShape
static void drawShapeDottedContourAroundClosedShape(const GUIVisualizationSettings &s, const int type, const PositionVector &shape)
draw a dotted contour around the given closed shape with certain width
Definition: GLHelper.cpp:496
GNE_ATTR_PARAMETERS
@ GNE_ATTR_PARAMETERS
parameters "key1=value1|key2=value2|...|keyN=valueN"
Definition: SUMOXMLDefinitions.h:989
GNEAccess::setAttribute
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes
Definition: GNEAccess.cpp:227
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
GNEEdge.h
GNEAccess::myFriendlyPosition
bool myFriendlyPosition
flag to check if friendly position is enabled
Definition: GNEAccess.h:148
GNEAdditional::myAdditionalGeometry
GNEGeometry::Geometry myAdditionalGeometry
geometry to be precomputed in updateGeometry(...)
Definition: GNEAdditional.h:338
GNENetElement
Definition: GNENetElement.h:43
GNEAdditional::myBlockMovement
bool myBlockMovement
boolean to check if additional element is blocked (i.e. cannot be moved with mouse)
Definition: GNEAdditional.h:350
SUMO_ATTR_FRIENDLY_POS
@ SUMO_ATTR_FRIENDLY_POS
Definition: SUMOXMLDefinitions.h:765
GNELane.h
SUMO_ATTR_POSITION
@ SUMO_ATTR_POSITION
Definition: SUMOXMLDefinitions.h:660
GNEGeometry::Geometry::getPosition
const Position & getPosition() const
get Position
Definition: GNEGeometry.cpp:127
GUIVisualizationSettings::colorSettings
GUIVisualizationColorSettings colorSettings
color settings
Definition: GUIVisualizationSettings.h:677
GNEAccess::moveGeometry
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
Definition: GNEAccess.cpp:51
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
Position::y
double y() const
Returns the y-position.
Definition: Position.h:61
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
GNEAccess::myPositionOverLane
double myPositionOverLane
position over lane
Definition: GNEAccess.h:142
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
GNEAccess::isAccessPositionFixed
bool isAccessPositionFixed() const
check if Position of Access is fixed
Definition: GNEAccess.cpp:132
GNEAccess::getHierarchyName
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
Definition: GNEAccess.cpp:304
GNENet::retrieveLane
GNELane * retrieveLane(const std::string &id, bool failHard=true, bool checkVolatileChange=false)
get lane by id
Definition: GNENet.cpp:1228
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
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
GNEAttributeCarrier::getTagStr
const std::string & getTagStr() const
get tag assigned to this object in string format
Definition: GNEAttributeCarrier.cpp:1267
GNEUndoList
Definition: GNEUndoList.h:48
GUIVisualizationSettings
Stores the information about how to visualize structures.
Definition: GUIVisualizationSettings.h:345
GNEAdditionalHandler::accessCanBeCreated
static bool accessCanBeCreated(GNEAdditional *busStopParent, GNEEdge *edge)
check if a GNEAccess can be created in a certain Edge
Definition: GNEAdditionalHandler.cpp:1019
SUMO_TAG_ACCESS
@ SUMO_TAG_ACCESS
An access point for a train stop.
Definition: SUMOXMLDefinitions.h:103
PositionVector::getLineCenter
Position getLineCenter() const
get line center
Definition: PositionVector.cpp:474
GNEAccess::GNEAccess
GNEAccess(GNEAdditional *busStop, GNELane *lane, GNEViewNet *viewNet, double pos, const std::string &length, bool friendlyPos, bool blockMovement)
Constructor.
Definition: GNEAccess.cpp:38
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
GNEAccess::isAttributeEnabled
bool isAttributeEnabled(SumoXMLAttr key) const
Definition: GNEAccess.cpp:292
GNEAdditional::AdditionalMove::originalViewPosition
Position originalViewPosition
value for saving first original position over lane before moving
Definition: GNEAdditional.h:291
GNEAccess::getAttribute
std::string getAttribute(SumoXMLAttr key) const
Definition: GNEAccess.cpp:194
GNEAdditional::AdditionalMove::firstOriginalLanePosition
std::string firstOriginalLanePosition
value for saving first original position over lane before moving
Definition: GNEAdditional.h:294
GNELane
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:45
GNEAccess::commitGeometryMoving
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
Definition: GNEAccess.cpp:64
GNEChange_Attribute.h
GNENet.h
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
GNEAdditional::BlockIcon::offset
Position offset
The offSet of the block icon.
Definition: GNEAdditional.h:321
GNEAccess::isValid
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
Definition: GNEAccess.cpp:249
GNEUndoList.h
GNE_ATTR_PARENT
@ GNE_ATTR_PARENT
parent of an additional element
Definition: SUMOXMLDefinitions.h:987