Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEParkingSpace.cpp
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2026 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
18// A lane area vehicles can halt at (GNE version)
19/****************************************************************************/
20
22
25#include <netedit/GNENet.h>
28
29#include "GNEParkingSpace.h"
30
31// ===========================================================================
32// method definitions
33// ===========================================================================
34
35#ifdef _MSC_VER
36#pragma warning(push)
37#pragma warning(disable: 4355) // mask warning about "this" in initializers
38#endif
41 myMoveElementViewResizable(new GNEMoveElementViewResizable(this, GNEMoveElementView::AttributesFormat::CARTESIAN,
42 GNEMoveElementViewResizable::ResizingFormat::WIDTH_LENGTH, SUMO_ATTR_POSITION,
43 myPosOverView)) {
44}
45
46
48 const double width, const double length, const double angle,
49 const double slope, const std::string& name,
50 const Parameterised::Map& parameters) :
51 GNEAdditional(parkingAreaParent, SUMO_TAG_PARKING_SPACE, name),
52 Parameterised(parameters),
53 myPosOverView(pos),
54 myWidth(width),
55 myLength(length),
56 myMoveElementViewResizable(new GNEMoveElementViewResizable(this, GNEMoveElementView::AttributesFormat::CARTESIAN,
57 GNEMoveElementViewResizable::ResizingFormat::WIDTH_LENGTH, SUMO_ATTR_POSITION,
58 myPosOverView)),
59 myAngle(angle),
60 mySlope(slope) {
61 // set parents
62 setParent<GNEAdditional*>(parkingAreaParent);
63 // update centering boundary without updating grid
65}
66#ifdef _MSC_VER
67#pragma warning(pop)
68#endif
69
70
74
75
80
81
84 return this;
85}
86
87
88const Parameterised*
90 return this;
91}
92
93
94void
96 device.openTag(getTagProperty()->getTag());
97 // write common additional attributes
99 // write move atributes
101 // write specific attributes
102 if (myWidth != INVALID_DOUBLE) {
104 }
105 if (myLength != INVALID_DOUBLE) {
107 }
108 if (myAngle != INVALID_DOUBLE) {
110 }
113 }
114 // write parameters (Always after children to avoid problems with additionals.xsd)
115 XMLHelpers::writeParams(device, *this);
116 device.closeTag();
117}
118
119
120bool
122 return true;
123}
124
125
126std::string
128 return "";
129}
130
131
132void
134 // nothing to fix
135}
136
137
138bool
140 // get edit modes
141 const auto& editModes = myNet->getViewNet()->getEditModes();
142 // check if we're in move mode
143 if (!myNet->getViewNet()->isCurrentlyMovingElements() && editModes.isCurrentSupermodeNetwork() &&
145 (editModes.networkEditMode == NetworkEditMode::NETWORK_MOVE) && myNet->getViewNet()->checkOverLockedElement(this, mySelected)) {
146 // only move the first element
148 } else {
149 return false;
150 }
151}
152
153
154void
156 // get width an length
157 const double width = getAttributeDouble(SUMO_ATTR_WIDTH) <= 0 ? POSITION_EPS : getAttributeDouble(SUMO_ATTR_WIDTH);
158 const double length = getAttributeDouble(SUMO_ATTR_LENGTH) <= 0 ? POSITION_EPS : getAttributeDouble(SUMO_ATTR_LENGTH);
159 // calculate shape length
163 // rotate
165 // move
167 // calculate shape width
169 leftShape.move2side(width * -0.5);
171 rightShape.move2side(width * 0.5);
172 myMoveElementViewResizable->myShapeWidth = {leftShape.getCentroid(), rightShape.getCentroid()};
173 // update centering boundary
175}
176
177
182
183
184void
186 // remove additional from grid
187 if (updateGrid) {
189 }
190 // first reset boundary
192 // add position
194 // add center
196 // add width
197 for (const auto& pos : myMoveElementViewResizable->myShapeWidth) {
199 }
200 // add length
201 for (const auto& pos : myMoveElementViewResizable->myShapeHeight) {
203 }
204 // grow
206 // add additional into RTREE again
207 if (updateGrid) {
209 }
210}
211
212
213void
214GNEParkingSpace::splitEdgeGeometry(const double /*splitPosition*/, const GNENetworkElement* /*originalElement*/, const GNENetworkElement* /*newElement*/, GNEUndoList* /*undoList*/) {
215 // geometry of this element cannot be splitted
216}
217
218
219std::string
221 return getParentAdditionals().at(0)->getID();
222}
223
224
225void
227 // first check if additional has to be drawn
229 // draw boundaries
231 // get exaggeration
232 const double spaceExaggeration = getExaggeration(s);
233 // get witdh
234 const double parkingSpaceWidth = myMoveElementViewResizable->myShapeWidth.length2D() * 0.5 + (spaceExaggeration * 0.1);
235 // get detail level
236 const auto d = s.getDetailLevel(spaceExaggeration);
237 // check if draw moving geometry points
238 const bool movingGeometryPoints = drawMovingGeometryPoints();
239 // draw geometry only if we'rent in drawForObjectUnderCursor mode
241 // draw space
242 drawSpace(s, d, parkingSpaceWidth, movingGeometryPoints);
243 // draw parent and child lines
245 // draw lock icon
247 // Draw additional ID
249 // draw additional name
251 // draw dotted contours
252 if (movingGeometryPoints) {
253 // get snap radius
255 const double snapRadiusSquared = snapRadius * snapRadius;
256 // get mouse position
257 const Position mousePosition = myNet->getViewNet()->getPositionInformation();
258 // check if we're editing width or height
259 if (myMoveElementViewResizable->myShapeHeight.back().distanceSquaredTo2D(mousePosition) <= snapRadiusSquared) {
262 } else if ((myMoveElementViewResizable->myShapeWidth.front().distanceSquaredTo2D(mousePosition) <= snapRadiusSquared) ||
263 (myMoveElementViewResizable->myShapeWidth.back().distanceSquaredTo2D(mousePosition) <= snapRadiusSquared)) {
266 }
267 } else {
269 }
270
271 }
272 // calculate contour
273 calculateSpaceContour(s, d, parkingSpaceWidth, spaceExaggeration, movingGeometryPoints);
274 }
275}
276
277
278std::string
280 switch (key) {
281 case SUMO_ATTR_ID:
282 return getMicrosimID();
283 case SUMO_ATTR_NAME:
284 return myAdditionalName;
285 case SUMO_ATTR_WIDTH:
286 return (myWidth != INVALID_DOUBLE) ? toString(myWidth) : "";
287 case SUMO_ATTR_LENGTH:
288 return (myLength != INVALID_DOUBLE) ? toString(myLength) : "";
289 case SUMO_ATTR_ANGLE:
290 return (myAngle != INVALID_DOUBLE) ? toString(myAngle) : "";;
291 case SUMO_ATTR_SLOPE:
292 return toString(mySlope);
293 case GNE_ATTR_PARENT:
294 if (isTemplate()) {
295 return "";
296 } else {
297 return getParentAdditionals().at(0)->getID();
298 }
299 default:
301 }
302}
303
304
305double
307 switch (key) {
308 case SUMO_ATTR_WIDTH:
309 return (myWidth != INVALID_DOUBLE) ? myWidth : getParentAdditionals().front()->getAttributeDouble(SUMO_ATTR_WIDTH);
310 case SUMO_ATTR_LENGTH:
311 return (myLength != INVALID_DOUBLE) ? myLength : getParentAdditionals().front()->getAttributeDouble(SUMO_ATTR_LENGTH);
312 case SUMO_ATTR_ANGLE:
313 return (myAngle != INVALID_DOUBLE) ? myAngle : getParentAdditionals().front()->getAttributeDouble(SUMO_ATTR_ANGLE);
314 default:
316 }
317}
318
319
324
325
330
331
332void
333GNEParkingSpace::setAttribute(SumoXMLAttr key, const std::string& value, GNEUndoList* undoList) {
334 if (value == getAttribute(key)) {
335 return; //avoid needless changes, later logic relies on the fact that attributes have changed
336 }
337 switch (key) {
338 case SUMO_ATTR_NAME:
339 case SUMO_ATTR_WIDTH:
340 case SUMO_ATTR_LENGTH:
341 case SUMO_ATTR_ANGLE:
342 case SUMO_ATTR_SLOPE:
343 case GNE_ATTR_PARENT:
344 GNEChange_Attribute::changeAttribute(this, key, value, undoList);
345 break;
346 default:
347 myMoveElementViewResizable->setMovingAttribute(key, value, undoList);
348 break;
349 }
350}
351
352
353bool
354GNEParkingSpace::isValid(SumoXMLAttr key, const std::string& value) {
355 switch (key) {
356 case SUMO_ATTR_NAME:
357 return StringUtils::isValidAttribute(value);
358 case SUMO_ATTR_WIDTH:
359 return value.empty() || (canParse<double>(value) && (parse<double>(value) > 0));
360 case SUMO_ATTR_LENGTH:
361 return value.empty() || (canParse<double>(value) && (parse<double>(value) > 0));
362 case SUMO_ATTR_ANGLE:
363 return value.empty() || canParse<double>(value);
364 case SUMO_ATTR_SLOPE:
365 return canParse<double>(value);
366 case GNE_ATTR_PARENT:
367 return (myNet->getAttributeCarriers()->retrieveAdditional(SUMO_TAG_PARKING_AREA, value, false) != nullptr);
368 default:
370 }
371}
372
373
374std::string
376 return getTagStr();
377}
378
379
380std::string
384
385// ===========================================================================
386// private
387// ===========================================================================
388
389void
391 const double width, const bool movingGeometryPoints) const {
392 // get angle
393 const double angle = getAttributeDouble(SUMO_ATTR_ANGLE);
394 // get contour color
396 if (drawUsingSelectColor()) {
397 contourColor = s.colorSettings.selectedAdditionalColor;
400 }
401 // push later matrix
403 // translate to front
405 // set contour color
406 GLHelper::setColor(contourColor);
407 // draw extern
409 // make a copy of myShapeLength and scale
411 shapeLengthInner.scaleAbsolute(-0.1);
412 // draw intern
414 // Translate to front
415 glTranslated(0, 0, 0.1);
416 // set base color
418 //draw intern
419 GLHelper::drawBoxLines(shapeLengthInner, width - 0.1);
420 }
421 // draw geometry points
422 if (movingGeometryPoints) {
425 }
429 }
430 }
431 // pop layer matrix
433}
434
435
436void
438 const double width, const double exaggeration, const bool movingGeometryPoints) const {
439 // check if we're calculating the contour or the moving geometry points
440 if (movingGeometryPoints) {
442 getType(), exaggeration, nullptr);
444 exaggeration, nullptr);
446 exaggeration, nullptr);
447 } else {
448 myAdditionalContour.calculateContourExtrudedShape(s, d, this, myMoveElementViewResizable->myShapeHeight, getType(), width, exaggeration, true, true, 0, nullptr, nullptr);
449 }
450}
451
452
453void
454GNEParkingSpace::setAttribute(SumoXMLAttr key, const std::string& value) {
455 switch (key) {
456 case SUMO_ATTR_NAME:
457 myAdditionalName = value;
458 break;
459 case SUMO_ATTR_WIDTH:
460 if (value.empty()) {
462 } else {
463 myWidth = parse<double>(value);
464 }
465 break;
466 case SUMO_ATTR_LENGTH:
467 if (value.empty()) {
469 } else {
470 myLength = parse<double>(value);
471 }
472 break;
473 case SUMO_ATTR_ANGLE:
474 if (value.empty()) {
476 } else {
477 myAngle = parse<double>(value);
478 }
479 break;
480 case SUMO_ATTR_SLOPE:
481 mySlope = parse<double>(value);
482 break;
483 case GNE_ATTR_PARENT:
485 break;
486 default:
488 break;
489 }
490 // update geometry (except for template)
491 if (getParentAdditionals().size() > 0) {
493 }
494}
495
496/****************************************************************************/
@ NETWORK_MOVE
mode for moving network elements
@ GLO_PARKING_SPACE
a ParkingSpace
#define DEG2RAD(x)
Definition GeomHelper.h:35
@ SUMO_TAG_PARKING_AREA
A parking area.
@ SUMO_TAG_PARKING_SPACE
A parking space for a single vehicle within a parking area.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
@ GNE_ATTR_PARENT
parent of an additional element
@ SUMO_ATTR_NAME
@ SUMO_ATTR_SLOPE
@ SUMO_ATTR_ANGLE
@ SUMO_ATTR_LENGTH
@ SUMO_ATTR_ID
@ SUMO_ATTR_WIDTH
@ SUMO_ATTR_POSITION
const double INVALID_DOUBLE
invalid double
Definition StdDefs.h:68
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
Definition ToString.h:57
void add(double x, double y, double z=0)
Makes the boundary include the given coordinate.
Definition Boundary.cpp:75
void reset()
Resets the boundary.
Definition Boundary.cpp:63
Boundary & grow(double by)
extends the boundary by the given amount
Definition Boundary.cpp:340
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
Definition GLHelper.cpp:649
static void popMatrix()
pop matrix
Definition GLHelper.cpp:131
static void drawBoxLines(const PositionVector &geom, const std::vector< double > &rots, const std::vector< double > &lengths, double width, int cornerDetail=0, double offset=0)
Draws thick lines.
Definition GLHelper.cpp:348
static void drawBoundary(const GUIVisualizationSettings &s, const Boundary &b)
Draw a boundary (used for debugging)
Definition GLHelper.cpp:952
static void pushMatrix()
push matrix
Definition GLHelper.cpp:118
double getExaggeration(const GUIVisualizationSettings &s) const override
return exaggeration associated with this GLObject
void replaceAdditionalParent(SumoXMLTag tag, const std::string &value, const int parentIndex)
replace additional parent
void drawRightGeometryPoint(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const Position &pos, const double rot, const RGBColor &baseColor, const bool ignoreShift=false) const
draw right geometry point
GNEContour myAdditionalContour
variable used for draw additional contours
void drawAdditionalID(const GUIVisualizationSettings &s) const
draw additional ID
Boundary getCenteringBoundary() const override
Returns the boundary to which the view shall be centered in order to show the object.
void drawUpGeometryPoint(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const Position &pos, const double rot, const RGBColor &baseColor, const bool ignoreShift=false) const
draw up geometry point
std::string myAdditionalName
name of additional
void drawAdditionalName(const GUIVisualizationSettings &s) const
draw additional name
void writeAdditionalAttributes(OutputDevice &device) const
write common additional attributes
Boundary myAdditionalBoundary
Additional Boundary (used only by additionals placed over grid)
void drawLeftGeometryPoint(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const Position &pos, const double rot, const RGBColor &baseColor, const bool ignoreShift=false) const
draw left geometry point
void drawParentChildLines(const GUIVisualizationSettings &s, const RGBColor &color, const bool onlySymbols=false) const
draw parent and child lines
bool drawMovingGeometryPoints() const
check if draw moving geometry points
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
bool mySelected
boolean to check if this AC is selected (more quickly as checking GUIGlObjectStorage)
const std::string & getTagStr() const
get tag assigned to this object in string format
bool isTemplate() const
check if this AC is template
bool drawUsingSelectColor() const
check if attribute carrier must be drawn using selecting color.
void drawInLayer(const double typeOrLayer, const double extraOffset=0) const
draw element in the given layer, or in front if corresponding flag is enabled
const GNETagProperties * getTagProperty() const
get tagProperty associated with this Attribute Carrier
GNENet * myNet
pointer to net
const GNETagProperties * myTagProperty
reference to tagProperty associated with this attribute carrier
static void changeAttribute(GNEAttributeCarrier *AC, SumoXMLAttr key, const std::string &value, GNEUndoList *undoList, const bool force=false)
change attribute
void calculateContourExtrudedShape(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GUIGlObject *glObject, const PositionVector &shape, const double layer, const double extrusionWidth, const double scale, const bool closeFirstExtrem, const bool closeLastExtrem, const double offset, const GNESegment *segment, const GUIGlObject *boundaryParent, const bool addToSelectedObjects=true) const
calculate contour extruded (used in elements formed by a central shape)
void calculateContourCircleShape(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GUIGlObject *glObject, const Position &pos, double radius, const double layer, const double scale, const GUIGlObject *boundaryParent) const
calculate contour (circle elements)
bool drawDottedContours(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GNEAttributeCarrier *AC, const double lineWidth, const bool addOffset) const
draw dotted contours (basics, select, delete, inspect...)
const GNEHierarchicalContainerParents< GNEAdditional * > & getParentAdditionals() const
get parent additionals
Position getMovingAttributePosition(SumoXMLAttr key) const override
get moving attribute position
void writeMoveAttributes(OutputDevice &device) const
write move attributes
void setMovingAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList) override
set moving attribute (using undo-list)
PositionVector getMovingAttributePositionVector(SumoXMLAttr key) const override
get moving attribute positionVector
double getMovingAttributeDouble(SumoXMLAttr key) const override
get moving attribute double
std::string getMovingAttribute(SumoXMLAttr key) const override
get moving attribute
bool isMovingAttributeValid(SumoXMLAttr key, const std::string &value) const override
check if the given moving attribute is valid
GNEContour myMovingContourLeft
variable used for moving geometry point contour left
GNEContour myMovingContourRight
variable used for moving geometry point contour right
GNEContour myMovingContourUp
variable used for moving geometry point contour up
GNEContour myMovingContourDown
variable used for moving geometry point contour down
PositionVector myShapeWidth
shape width
PositionVector myShapeHeight
shape height
GNEAdditional * retrieveAdditional(SumoXMLTag type, const std::string &id, bool hardFail=true) const
Returns the named additional.
void addGLObjectIntoGrid(GNEAttributeCarrier *AC)
add GL Object into net
Definition GNENet.cpp:1476
void removeGLObjectFromGrid(GNEAttributeCarrier *AC)
add GL Object into net
Definition GNENet.cpp:1486
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
Definition GNENet.cpp:174
GNEViewNet * getViewNet() const
get view net (used for simplify code)
Definition GNENet.cpp:144
Position myPosOverView
position over view
GNEMoveElement * getMoveElement() const override
methods to retrieve the elements linked to this space
void calculateSpaceContour(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const double width, const double exaggeration, const bool movingGeometryPoints) const
calculate space contour
std::string getAdditionalProblem() const override
return a string with the current additional problem (must be reimplemented in all detector children)
std::string getParentName() const override
Returns the name of the parent object.
void splitEdgeGeometry(const double splitPosition, const GNENetworkElement *originalElement, const GNENetworkElement *newElement, GNEUndoList *undoList) override
split geometry
void drawSpace(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const double width, const bool movingGeometryPoints) const
draw space
PositionVector getAttributePositionVector(SumoXMLAttr key) const override
void updateCenteringBoundary(const bool updateGrid) override
update centering boundary (implies change in RTREE)
void writeAdditional(OutputDevice &device) const override
write additional element into a xml file
std::string getPopUpID() const override
get PopPup ID (Used in AC Hierarchy)
Position getPositionInView() const override
Returns position of additional in view.
double myWidth
width
std::string getAttribute(SumoXMLAttr key) const override
std::string getHierarchyName() const override
get Hierarchy Name (Used in AC Hierarchy)
double mySlope
Slope of Parking Space.
~GNEParkingSpace()
Destructor.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList) override
Position getAttributePosition(SumoXMLAttr key) const override
Parameterised * getParameters() override
get parameters associated with this space
GNEParkingSpace(GNENet *net)
Constructor.
bool isAdditionalValid() const override
check if current additional is valid to be written into XML (must be reimplemented in all detector ch...
bool checkDrawMoveContour() const override
check if draw move contour (red)
double myLength
length
GNEMoveElementViewResizable * myMoveElementViewResizable
move element view resizable
void drawGL(const GUIVisualizationSettings &s) const override
Draws the object.
void fixAdditionalProblem() override
fix additional problem (must be reimplemented in all detector children)
double myAngle
Angle of Parking Space.
void updateGeometry() override
update pre-computed geometry information
double getAttributeDouble(SumoXMLAttr key) const override
bool isValid(SumoXMLAttr key, const std::string &value) override
double getDefaultDoubleValue(SumoXMLAttr attr) const
get default double value
const GUIGlObject * getGUIGlObjectFront() const
get front GUIGLObject or a pointer to nullptr
bool isCurrentlyMovingElements() const
check if an element is being moved
const GNEViewNetHelper::DataViewOptions & getDataViewOptions() const
get data view options
const GNEViewNetHelper::EditModes & getEditModes() const
get edit modes
const GNEViewNetHelper::EditNetworkElementShapes & getEditNetworkElementShapes() const
get Edit Shape module
bool checkOverLockedElement(const GUIGlObject *GLObject, const bool isSelected) const
check if given element is locked (used for drawing select and delete contour)
const GNEViewNetHelper::ViewObjectsSelector & getViewObjectsSelector() const
get objects under cursor
const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
const GUIVisualizationSettings & getVisualisationSettings() const
get visualization settings (read only)
virtual Position getPositionInformation() const
Returns the cursor's x/y position within the network.
Stores the information about how to visualize structures.
bool checkDrawAdditional(Detail d, const bool selected) const
check if draw additionals
Detail getDetailLevel(const double exaggeration) const
return the detail level
GUIVisualizationColorSettings colorSettings
color settings
GUIVisualizationDottedContourSettings dottedContourSettings
dotted contour settings
GUIVisualizationAdditionalSettings additionalSettings
Additional settings.
GUIVisualizationNeteditSizeSettings neteditSizeSettings
netedit size settings
Static storage of an output device and its base (abstract) implementation.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
OutputDevice & writeAttr(const ATTR_TYPE &attr, const T &val, const bool isNull=false, const bool escape=false)
writes a named attribute
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
An upper class for objects with additional parameters.
std::map< std::string, std::string > Map
parameters map
A point in 2D or 3D with translation and scaling methods.
Definition Position.h:37
A list of positions.
void scaleAbsolute(double offset)
enlarges/shrinks the polygon by an absolute offset based at the centroid
double length2D() const
Returns the length.
void rotate2D(double angle)
Position getPolygonCenter() const
Returns the arithmetic of all corner points.
void add(double xoff, double yoff, double zoff)
void move2side(double amount, double maxExtension=100)
move position vector to side using certain amount
Position getCentroid() const
Returns the centroid (closes the polygon if unclosed)
static const RGBColor ORANGE
Definition RGBColor.h:210
static bool isValidAttribute(const std::string &value)
whether the given string is a valid attribute for a certain key (for example, a name)
static OutputDevice & writeParams(OutputDevice &device, const Parameterised &params)
write the parameters of the given object as param tags
bool showAdditionals() const
check if additionals has to be drawn
GNENetworkElement * getEditedNetworkElement() const
pointer to edited network element
static void drawLockIcon(const GUIVisualizationSettings::Detail d, const GNEAttributeCarrier *AC, GUIGlObjectType type, const Position position, const double exaggeration, const double size=0.5, const double offsetx=0, const double offsety=0)
draw lock icon
static const RGBColor connectionColor
connection color
RGBColor parkingSpaceColorContour
color for parkingSpace contour
RGBColor parkingSpaceColor
color for parkingSpace innen
RGBColor selectedAdditionalColor
additional selection color (busStops, Detectors...)
static const double segmentWidthSmall
width of small dotted contour segments
static const double segmentWidth
width of dotted contour segments
static const double additionalGeometryPointRadius
moving additional geometry point radius