Eclipse SUMO - Simulation of Urban MObility
GNEVaporizer.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 
21 #include <netedit/GNENet.h>
22 #include <netedit/GNEUndoList.h>
23 #include <netedit/GNEViewNet.h>
27 #include <utils/gui/div/GLHelper.h>
30 
31 #include "GNEVaporizer.h"
32 
33 
34 // ===========================================================================
35 // member method definitions
36 // ===========================================================================
37 
38 GNEVaporizer::GNEVaporizer(GNEViewNet* viewNet, GNEEdge* edge, SUMOTime begin, SUMOTime end, const std::string& name) :
39  GNEAdditional(edge->getID(), viewNet, GLO_VAPORIZER, SUMO_TAG_VAPORIZER, name, false, {
40  edge
41 }, {}, {}, {}, {}, {}, {}, {}, {}, {}),
42 myBegin(begin),
43 myEnd(end) {
44 }
45 
46 
48 }
49 
50 
51 void
53  // get lanes of edge
54  GNELane* firstLane = getParentEdges().front()->getLanes().at(0);
55 
56  // Get shape of parent lane
57  const double offset = firstLane->getLaneShape().length() < 2.5 ? firstLane->getLaneShape().length() : 2.5;
58 
59  // update geometry
61 
62  // Set block icon position
64 
65  // Set offset of the block icon
66  myBlockIcon.offset = Position(1.1, (-3.06));
67 
68  // Set block icon rotation, and using their rotation for logo
69  myBlockIcon.setRotation(firstLane);
70 }
71 
72 
75  if (getParentEdges().front()->getLanes().front()->getLaneShape().length() < 2.5) {
76  return getParentEdges().front()->getLanes().front()->getLaneShape().front();
77  } else {
78  Position A = getParentEdges().front()->getLanes().front()->getLaneShape().positionAtOffset(2.5);
79  Position B = getParentEdges().front()->getLanes().back()->getLaneShape().positionAtOffset(2.5);
80 
81  // return Middle point
82  return Position((A.x() + B.x()) / 2, (A.y() + B.y()) / 2);
83  }
84 }
85 
86 
90 }
91 
92 
93 void
94 GNEVaporizer::splitEdgeGeometry(const double /*splitPosition*/, const GNENetElement* /*originalElement*/, const GNENetElement* /*newElement*/, GNEUndoList* /*undoList*/) {
95  // geometry of this element cannot be splitted
96 }
97 
98 
99 void
101  // This additional cannot be moved
102 }
103 
104 
105 void
107  // This additional cannot be moved
108 }
109 
110 
111 std::string
113  return getParentEdges().front()->getMicrosimID();
114 }
115 
116 
117 void
119  // Obtain exaggeration of the draw
120  const double exaggeration = s.addSize.getExaggeration(s, this);
121  // first check if additional has to be drawn
122  if (s.drawAdditionals(exaggeration)) {
123  // get values
124  const int numberOfLanes = int(getParentEdges().front()->getLanes().size());
125  const double width = (double) 2.0 * s.scale;
126  // begin draw
127  glPushName(getGlID());
128  glLineWidth(1.0);
129  // set color
130  if (drawUsingSelectColor()) {
132  } else {
134  }
135  // draw shape
136  glPushMatrix();
137  glTranslated(0, 0, getType());
139  glRotated(myAdditionalGeometry.getRotation(), 0, 0, 1);
140  glScaled(exaggeration, exaggeration, 1);
141  glTranslated(-1.6, -1.6, 0);
142  glBegin(GL_QUADS);
143  glVertex2d(0, 0.25);
144  glVertex2d(0, -0.25);
145  glVertex2d((numberOfLanes * 3.3), -0.25);
146  glVertex2d((numberOfLanes * 3.3), 0.25);
147  glEnd();
148  glTranslated(0, 0, .01);
149  glBegin(GL_LINES);
150  glVertex2d(0, 0.25 - .1);
151  glVertex2d(0, -0.25 + .1);
152  glEnd();
153  // draw position indicator (White) if isn't being drawn for selecting
154  if ((width * exaggeration > 1) && !s.drawForRectangleSelection) {
155  if (drawUsingSelectColor()) {
157  } else {
159  }
160  glRotated(90, 0, 0, -1);
161  glBegin(GL_LINES);
162  glVertex2d(0, 0);
163  glVertex2d(0, (numberOfLanes * 3.3));
164  glEnd();
165  }
166  // Pop shape matrix
167  glPopMatrix();
168  // Add a draw matrix for drawing logo
169  glPushMatrix();
171  glRotated(myAdditionalGeometry.getRotation(), 0, 0, 1);
172  glTranslated((-2.56), (-1.6), 0);
173  // Draw icon depending of Vaporizer is selected and if isn't being drawn for selecting
174  if (!s.drawForRectangleSelection && s.drawDetail(s.detailSettings.laneTextures, exaggeration)) {
175  glColor3d(1, 1, 1);
176  glRotated(-90, 0, 0, 1);
177  if (drawUsingSelectColor()) {
179  } else {
181  }
182  } else {
184  GLHelper::drawBoxLine(Position(0, 1), 0, 2, 1);
185  }
186  // Pop logo matrix
187  glPopMatrix();
188  // Show Lock icon
189  myBlockIcon.drawIcon(s, exaggeration, 0.4);
190  // draw name
192  // check if dotted contour has to be drawn
193  if (myViewNet->getDottedAC() == this) {
195  }
196  // pop name
197  glPopName();
198  }
199 }
200 
201 
202 std::string
204  switch (key) {
205  case SUMO_ATTR_ID:
206  case SUMO_ATTR_EDGE:
207  return getAdditionalID();
208  case SUMO_ATTR_BEGIN:
209  return time2string(myBegin);
210  case SUMO_ATTR_END:
211  return time2string(myEnd);
212  case SUMO_ATTR_NAME:
213  return myAdditionalName;
214  case GNE_ATTR_SELECTED:
216  case GNE_ATTR_PARAMETERS:
217  return getParametersStr();
218  default:
219  throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
220  }
221 }
222 
223 
224 double
226  switch (key) {
227  case SUMO_ATTR_BEGIN:
228  return STEPS2TIME(myBegin);
229  case SUMO_ATTR_END:
230  return STEPS2TIME(myEnd);
231  default:
232  throw InvalidArgument(getTagStr() + " doesn't have a double attribute of type '" + toString(key) + "'");
233  }
234 }
235 
236 
237 void
238 GNEVaporizer::setAttribute(SumoXMLAttr key, const std::string& value, GNEUndoList* undoList) {
239  if (value == getAttribute(key)) {
240  return; //avoid needless changes, later logic relies on the fact that attributes have changed
241  }
242  switch (key) {
243  case SUMO_ATTR_ID:
244  case SUMO_ATTR_EDGE:
245  case SUMO_ATTR_BEGIN:
246  case SUMO_ATTR_END:
247  case SUMO_ATTR_NAME:
248  case GNE_ATTR_SELECTED:
249  case GNE_ATTR_PARAMETERS:
250  undoList->p_add(new GNEChange_Attribute(this, myViewNet->getNet(), key, value));
251  break;
252  default:
253  throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
254  }
255 }
256 
257 
258 bool
259 GNEVaporizer::isValid(SumoXMLAttr key, const std::string& value) {
260  switch (key) {
261  case SUMO_ATTR_ID:
262  case SUMO_ATTR_EDGE:
263  if (myViewNet->getNet()->retrieveEdge(value, false) != nullptr) {
264  return isValidAdditionalID(value);
265  } else {
266  return false;
267  }
268  case SUMO_ATTR_BEGIN:
269  if (canParse<SUMOTime>(value)) {
270  return (parse<SUMOTime>(value) <= myEnd);
271  } else {
272  return false;
273  }
274  case SUMO_ATTR_END:
275  if (canParse<SUMOTime>(value)) {
276  return (myBegin <= parse<SUMOTime>(value));
277  } else {
278  return false;
279  }
280  case SUMO_ATTR_NAME:
282  case GNE_ATTR_SELECTED:
283  return canParse<bool>(value);
284  case GNE_ATTR_PARAMETERS:
285  return Parameterised::areParametersValid(value);
286  default:
287  throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
288  }
289 }
290 
291 
292 bool
294  return true;
295 }
296 
297 
298 std::string
300  return getTagStr();
301 }
302 
303 
304 std::string
306  return getTagStr() + ": " + getAttribute(SUMO_ATTR_BEGIN) + " -> " + getAttribute(SUMO_ATTR_END);
307 }
308 
309 // ===========================================================================
310 // private
311 // ===========================================================================
312 
313 void
314 GNEVaporizer::setAttribute(SumoXMLAttr key, const std::string& value) {
315  switch (key) {
316  case SUMO_ATTR_ID:
317  case SUMO_ATTR_EDGE:
318  changeAdditionalID(value);
319  replaceParentEdges(this, value);
320  break;
321  case SUMO_ATTR_BEGIN:
322  myBegin = parse<SUMOTime>(value);
323  break;
324  case SUMO_ATTR_END:
325  myEnd = parse<SUMOTime>(value);
326  break;
327  case SUMO_ATTR_NAME:
328  myAdditionalName = value;
329  break;
330  case GNE_ATTR_SELECTED:
331  if (parse<bool>(value)) {
333  } else {
335  }
336  break;
337  case GNE_ATTR_PARAMETERS:
338  setParametersStr(value);
339  break;
340  default:
341  throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
342  }
343 }
344 
345 /****************************************************************************/
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
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
GNEHierarchicalParentElements::replaceParentEdges
void replaceParentEdges(GNEShape *elementChild, const std::string &newEdgeIDs)
replace the parent edges of a shape
Definition: GNEHierarchicalParentElements.cpp:276
GNEAdditional::getAdditionalID
const std::string & getAdditionalID() const
Definition: GNEAdditional.cpp:476
GNEVaporizer::updateGeometry
void updateGeometry()
update pre-computed geometry information
Definition: GNEVaporizer.cpp:52
GNEAdditional::BlockIcon::setRotation
void setRotation(GNELane *additionalLane=nullptr)
set Rotation of block Icon (must be called in updateGeometry() function)
Definition: GNEAdditional.cpp:400
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
GNEHierarchicalParentElements::getParentEdges
const std::vector< GNEEdge * > & getParentEdges() const
get parent edges
Definition: GNEHierarchicalParentElements.cpp:181
GUIVisualizationSettings::drawForRectangleSelection
bool drawForRectangleSelection
whether drawing is performed for the purpose of selecting objects using a rectangle
Definition: GUIVisualizationSettings.h:647
GNEGeometry::Geometry::updateGeometryPosition
void updateGeometryPosition(const GNELane *lane, const double posOverLane)
update position and rotation
Definition: GNEGeometry.cpp:100
GNEVaporizer::getAttributeDouble
double getAttributeDouble(SumoXMLAttr key) const
Definition: GNEVaporizer.cpp:225
GNEVaporizer::commitGeometryMoving
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
Definition: GNEVaporizer.cpp:106
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
SUMO_ATTR_EDGE
Definition: SUMOXMLDefinitions.h:423
GNEViewNet
Definition: GNEViewNet.h:42
GNEVaporizer::getAttribute
std::string getAttribute(SumoXMLAttr key) const
Definition: GNEVaporizer.cpp:203
SUMO_ATTR_ID
Definition: SUMOXMLDefinitions.h:378
PositionVector::length
double length() const
Returns the length.
Definition: PositionVector.cpp:484
GLHelper.h
GNEVaporizer::getPopUpID
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
Definition: GNEVaporizer.cpp:299
GNEVaporizer::moveGeometry
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
Definition: GNEVaporizer.cpp:100
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
GNETEXTURE_VAPORIZERSELECTED
Definition: GUITextures.h:48
GNEAdditional::myBlockIcon
BlockIcon myBlockIcon
variable BlockIcon
Definition: GNEAdditional.h:353
GNEVaporizer::getCenteringBoundary
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GNEVaporizer.cpp:88
GLHelper::setColor
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
Definition: GLHelper.cpp:621
PositionVector::getBoxBoundary
Boundary getBoxBoundary() const
Returns a boundary enclosing this list of lines.
Definition: PositionVector.cpp:390
GNEVaporizer::myEnd
SUMOTime myEnd
end time in which this vaporizer is placed
Definition: GNEVaporizer.h:132
GUITexturesHelper::drawTexturedBox
static void drawTexturedBox(int which, double size)
Draws a named texture as a box with the given size.
Definition: GUITexturesHelper.cpp:72
GNEAdditional::myViewNet
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
Definition: GNEAdditional.h:335
SUMO_ATTR_BEGIN
weights: time range begin
Definition: SUMOXMLDefinitions.h:678
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
GNEAdditional::isAttributeCarrierSelected
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
Definition: GNEAdditional.cpp:548
GUIVisualizationSettings::addName
GUIVisualizationTextSettings addName
Definition: GUIVisualizationSettings.h:591
GUIVisualizationSettings::detailSettings
GUIVisualizationDetailSettings detailSettings
detail settings
Definition: GUIVisualizationSettings.h:683
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
GNELane::getLaneShape
const PositionVector & getLaneShape() const
Definition: GNELane.cpp:86
GNEAdditional::selectAttributeCarrier
void selectAttributeCarrier(bool changeFlag=true)
Definition: GNEAdditional.cpp:517
GNEViewNet.h
STEPS2TIME
#define STEPS2TIME(x)
Definition: SUMOTime.h:56
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
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
GNEGeometry::Geometry::getRotation
double getRotation() const
get rotation
Definition: GNEGeometry.cpp:137
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
GNEVaporizer::getParentName
std::string getParentName() const
Returns the name of the parent object (if any)
Definition: GNEVaporizer.cpp:112
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:38
GUIVisualizationColorSettings::vaporizer
static const RGBColor vaporizer
color for vaporizers
Definition: GUIVisualizationSettings.h:228
Position::x
double x() const
Returns the x-position.
Definition: Position.h:56
GNEEdge.h
time2string
std::string time2string(SUMOTime t)
Definition: SUMOTime.cpp:67
GNEAdditional::myAdditionalGeometry
GNEGeometry::Geometry myAdditionalGeometry
geometry to be precomputed in updateGeometry(...)
Definition: GNEAdditional.h:338
GNEAdditional::myAdditionalName
std::string myAdditionalName
name of additional
Definition: GNEAdditional.h:347
GNEVaporizer::drawGL
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GNEVaporizer.cpp:118
GNENetElement
Definition: GNENetElement.h:43
GNEVaporizer::getPositionInView
Position getPositionInView() const
Returns position of additional in view.
Definition: GNEVaporizer.cpp:74
GUIVisualizationDetailSettings::laneTextures
static const double laneTextures
details for lane textures
Definition: GUIVisualizationSettings.h:283
GNELane.h
GNEVaporizer::isValid
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
Definition: GNEVaporizer.cpp:259
GNEGeometry::Geometry::getPosition
const Position & getPosition() const
get Position
Definition: GNEGeometry.cpp:127
GUIVisualizationSettings::colorSettings
GUIVisualizationColorSettings colorSettings
color settings
Definition: GUIVisualizationSettings.h:677
GUIVisualizationColorSettings::selectionColor
RGBColor selectionColor
basic selection color
Definition: GUIVisualizationSettings.h:129
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
GNEVaporizer::getHierarchyName
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
Definition: GNEVaporizer.cpp:305
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
GNEVaporizer::isAttributeEnabled
bool isAttributeEnabled(SumoXMLAttr key) const
Definition: GNEVaporizer.cpp:293
Position::y
double y() const
Returns the y-position.
Definition: Position.h:61
GLO_VAPORIZER
a Vaporizer
Definition: GUIGlObjectTypes.h:95
GNEVaporizer::setAttribute
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes
Definition: GNEVaporizer.cpp:238
GNEVaporizer::myBegin
SUMOTime myBegin
begin time of vaporizer
Definition: GNEVaporizer.h:129
GNEVaporizer.h
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
SUMO_TAG_VAPORIZER
vaporizer of vehicles
Definition: SUMOXMLDefinitions.h:218
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
GNENet::retrieveEdge
GNEEdge * retrieveEdge(const std::string &id, bool failHard=true)
get edge by id
Definition: GNENet.cpp:1069
GNEVaporizer::splitEdgeGeometry
void splitEdgeGeometry(const double splitPosition, const GNENetElement *originalElement, const GNENetElement *newElement, GNEUndoList *undoList)
split geometry
Definition: GNEVaporizer.cpp:94
GNEVaporizer::GNEVaporizer
GNEVaporizer(GNEViewNet *viewNet, GNEEdge *edge, SUMOTime begin, SUMOTime end, const std::string &name)
Constructor.
Definition: GNEVaporizer.cpp:38
GUIVisualizationSettings::addSize
GUIVisualizationSizeSettings addSize
Definition: GUIVisualizationSettings.h:589
GNE_ATTR_SELECTED
element is selected
Definition: SUMOXMLDefinitions.h:971
SUMO_ATTR_END
weights: time range end
Definition: SUMOXMLDefinitions.h:680
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
Definition: SUMOXMLDefinitions.h:380
GNEUndoList
Definition: GNEUndoList.h:48
GUIVisualizationSettings
Stores the information about how to visualize structures.
Definition: GUIVisualizationSettings.h:345
PositionVector::getLineCenter
Position getLineCenter() const
get line center
Definition: PositionVector.cpp:474
GNEAdditional::isValidAdditionalID
bool isValidAdditionalID(const std::string &newID) const
check if a new additional ID is valid
Definition: GNEAdditional.cpp:482
SumoXMLAttr
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
Definition: SUMOXMLDefinitions.h:372
GNELane
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:45
GUITextureSubSys.h
GNEChange_Attribute.h
GNENet.h
GNEVaporizer::~GNEVaporizer
~GNEVaporizer()
Destructor.
Definition: GNEVaporizer.cpp:47
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
GNETEXTURE_VAPORIZER
Definition: GUITextures.h:47
GNEAdditional::BlockIcon::offset
Position offset
The offSet of the block icon.
Definition: GNEAdditional.h:321
RGBColor::WHITE
static const RGBColor WHITE
Definition: RGBColor.h:196
GNEUndoList.h