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-2023 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#include <netedit/GNENet.h>
21#include <netedit/GNEUndoList.h>
22#include <netedit/GNEViewNet.h>
27
28#include "GNEParkingSpace.h"
29
30
31// ===========================================================================
32// method definitions
33// ===========================================================================
34
37{}, {}, {}, {}, {}, {}),
38mySlope(0) {
39 // reset default values
41}
42
43
45 const std::string& width, const std::string& length, const std::string& angle, double slope,
46 const std::string& name, const Parameterised::Map& parameters) :
48{}, {}, {}, {parkingAreaParent}, {}, {}),
49Parameterised(parameters),
50myPosition(pos),
51myWidth(width),
52myLength(length),
53myAngle(angle),
54mySlope(slope) {
55 // update centering boundary without updating grid
56 updateCenteringBoundary(false);
57}
58
59
61
62
68 // get snap radius
70 // get mouse position
71 const Position mousePosition = myNet->getViewNet()->getPositionInformation();
72 // check if we're editing width or height
73 if (myShapeLength.back().distanceSquaredTo2D(mousePosition) <= (snap_radius * snap_radius)) {
74 // edit length
76 } else if (myShapeWidth.front().distanceSquaredTo2D(mousePosition) <= (snap_radius * snap_radius)) {
77 // edit width
79 } else if (myShapeWidth.back().distanceSquaredTo2D(mousePosition) <= (snap_radius * snap_radius)) {
80 // edit width
82 } else {
83 return nullptr;
84 }
85 } else {
86 // move entire space
87 return new GNEMoveOperation(this, myPosition);
88 }
89}
90
91
92void
94 device.openTag(getTagProperty().getTag());
95 if (!myAdditionalName.empty()) {
97 }
100 if (myPosition.z() != 0) {
102 }
103 if (myWidth.size() > 0) {
105 }
106 if (myLength.size() > 0) {
108 }
109 if (myAngle.size() > 0) {
111 }
114 }
115 // write parameters (Always after children to avoid problems with additionals.xsd)
116 writeParams(device);
117 device.closeTag();
118}
119
120
122 return true;
123}
124
125
127 return "";
128}
129
130
132 // nothing to fix
133}
134
135
136void
138 // get width an length
139 const double width = getAttributeDouble(SUMO_ATTR_WIDTH) <= 0 ? POSITION_EPS : getAttributeDouble(SUMO_ATTR_WIDTH);
140 const double length = getAttributeDouble(SUMO_ATTR_LENGTH) <= 0 ? POSITION_EPS : getAttributeDouble(SUMO_ATTR_LENGTH);
141 // calculate shape length
142 myShapeLength.clear();
143 myShapeLength.push_back(Position(0, 0));
144 myShapeLength.push_back(Position(0, length));
145 // rotate
147 // move
149 // calculate shape width
150 PositionVector leftShape = myShapeLength;
151 leftShape.move2side(width * -0.5);
152 PositionVector rightShape = myShapeLength;
153 rightShape.move2side(width * 0.5);
154 myShapeWidth = {leftShape.getCentroid(), rightShape.getCentroid()};
155 // update centering boundary
157}
158
159
164
165
166void
168 // remove additional from grid
169 if (updateGrid) {
171 }
172 // first reset boundary
174 // add position
176 // grow width and length
179 // grow
181 // add additional into RTREE again
182 if (updateGrid) {
184 }
185}
186
187
188void
189GNEParkingSpace::splitEdgeGeometry(const double /*splitPosition*/, const GNENetworkElement* /*originalElement*/, const GNENetworkElement* /*newElement*/, GNEUndoList* /*undoList*/) {
190 // geometry of this element cannot be splitted
191}
192
193
194std::string
196 return getParentAdditionals().at(0)->getID();
197}
198
199
200void
202 // Set initial values
203 const double parkingAreaExaggeration = getExaggeration(s);
204 // first check if additional has to be drawn
205 if (myNet->getViewNet()->getDataViewOptions().showAdditionals() && s.drawAdditionals(parkingAreaExaggeration)) {
206 // check if boundary has to be drawn
207 if (s.drawBoundaries) {
209 }
210 // obtain values
211 const double width = myShapeWidth.length2D() * 0.5 + (parkingAreaExaggeration * 0.1);
212 const double angle = getAttributeDouble(SUMO_ATTR_ANGLE);
213 // get colors
216 // avoid draw invisible elements
217 if (baseColor.alpha() != 0) {
218 // draw parent and child lines
220 // push name
222 // push later matrix
224 // translate to front
226 // set contour color
227 GLHelper::setColor(contourColor);
228 // draw extern
230 // make a copy of myShapeLength and scale
231 PositionVector shapeLengthInner = myShapeLength;
232 shapeLengthInner.scaleAbsolute(-0.1);
233 // draw intern
235 // Traslate to front
236 glTranslated(0, 0, 0.1);
237 // set base color
238 GLHelper::setColor(baseColor);
239 //draw intern
240 GLHelper::drawBoxLines(shapeLengthInner, width - 0.1);
241 }
242 // draw geometry points
243 drawUpGeometryPoint(myNet->getViewNet(), myShapeLength.back(), angle, contourColor);
244 drawLeftGeometryPoint(myNet->getViewNet(), myShapeWidth.back(), angle - 90, contourColor);
245 drawRightGeometryPoint(myNet->getViewNet(), myShapeWidth.front(), angle - 90, contourColor);
246 // pop layer matrix
248 // pop name
250 // draw lock icon
252 }
253 // check if mouse is over element
255 // inspect contour
258 }
259 // front contour
260 if (myNet->getViewNet()->getFrontAttributeCarrier() == this) {
262 }
263 // delete contour
264 if (myNet->getViewNet()->drawDeleteContour(this, this)) {
266 }
267 // select contour
268 if (myNet->getViewNet()->drawSelectContour(this, this)) {
270 }
271 // Draw additional ID
273 // draw additional name
275 }
276}
277
278
279std::string
281 switch (key) {
282 case SUMO_ATTR_ID:
283 return getMicrosimID();
285 return toString(myPosition);
286 case SUMO_ATTR_NAME:
287 return myAdditionalName;
288 case SUMO_ATTR_WIDTH:
289 return myWidth;
290 case SUMO_ATTR_LENGTH:
291 return myLength;
292 case SUMO_ATTR_ANGLE:
293 return myAngle;
294 case SUMO_ATTR_SLOPE:
295 return toString(mySlope);
296 case GNE_ATTR_PARENT:
297 return getParentAdditionals().at(0)->getID();
301 return getParametersStr();
302 default:
303 throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
304 }
305}
306
307
308double
310 switch (key) {
311 case SUMO_ATTR_WIDTH:
312 return myWidth.empty() ? getParentAdditionals().front()->getAttributeDouble(SUMO_ATTR_WIDTH) : parse<double>(myWidth);
313 case SUMO_ATTR_LENGTH:
314 return myLength.empty() ? getParentAdditionals().front()->getAttributeDouble(SUMO_ATTR_LENGTH) : parse<double>(myLength);
315 case SUMO_ATTR_ANGLE:
316 return myAngle.empty() ? getParentAdditionals().front()->getAttributeDouble(SUMO_ATTR_ANGLE) : parse<double>(myAngle);
317 default:
318 throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
319 }
320}
321
322
327
328
329void
330GNEParkingSpace::setAttribute(SumoXMLAttr key, const std::string& value, GNEUndoList* undoList) {
331 if (value == getAttribute(key)) {
332 return; //avoid needless changes, later logic relies on the fact that attributes have changed
333 }
334 switch (key) {
336 case SUMO_ATTR_NAME:
337 case SUMO_ATTR_WIDTH:
338 case SUMO_ATTR_LENGTH:
339 case SUMO_ATTR_ANGLE:
340 case SUMO_ATTR_SLOPE:
341 case GNE_ATTR_PARENT:
344 undoList->changeAttribute(new GNEChange_Attribute(this, key, value));
345 break;
346 default:
347 throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
348 }
349}
350
351
352bool
353GNEParkingSpace::isValid(SumoXMLAttr key, const std::string& value) {
354 switch (key) {
356 return canParse<Position>(value);
357 case SUMO_ATTR_NAME:
359 case SUMO_ATTR_WIDTH:
360 return value.empty() || (canParse<double>(value) && (parse<double>(value) > 0));
361 case SUMO_ATTR_LENGTH:
362 return value.empty() || (canParse<double>(value) && (parse<double>(value) > 0));
363 case SUMO_ATTR_ANGLE:
364 return value.empty() || canParse<double>(value);
365 case SUMO_ATTR_SLOPE:
366 return canParse<double>(value);
367 case GNE_ATTR_PARENT:
368 return (myNet->getAttributeCarriers()->retrieveAdditional(SUMO_TAG_PARKING_AREA, value, false) != nullptr);
370 return canParse<bool>(value);
372 return areParametersValid(value);
373 default:
374 throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
375 }
376}
377
378
379std::string
381 return getTagStr();
382}
383
384
385std::string
389
390// ===========================================================================
391// private
392// ===========================================================================
393
394void
395GNEParkingSpace::setAttribute(SumoXMLAttr key, const std::string& value) {
396 switch (key) {
398 myPosition = parse<Position>(value);
399 // update geometry
401 break;
402 case SUMO_ATTR_NAME:
403 myAdditionalName = value;
404 break;
405 case SUMO_ATTR_WIDTH:
406 myWidth = value;
407 // update geometry (except for template)
408 if (getParentAdditionals().size() > 0) {
410 }
411 break;
412 case SUMO_ATTR_LENGTH:
413 myLength = value;
414 // update geometry (except for template)
415 if (getParentAdditionals().size() > 0) {
417 }
418 break;
419 case SUMO_ATTR_ANGLE:
420 myAngle = value;
421 // update geometry (except for template)
422 if (getParentAdditionals().size() > 0) {
424 }
425 break;
426 case SUMO_ATTR_SLOPE:
427 mySlope = parse<double>(value);
428 break;
429 case GNE_ATTR_PARENT:
431 break;
433 if (parse<bool>(value)) {
435 } else {
437 }
438 break;
440 setParametersStr(value);
441 break;
442 default:
443 throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
444 }
445}
446
447
448void
450 // check what are being updated
452 myShapeLength[1] = moveResult.shapeToUpdate[1];
453 } else if (moveResult.operationType == GNEMoveOperation::OperationType::WIDTH) {
454 myShapeWidth = moveResult.shapeToUpdate;
455 } else {
456 myPosition = moveResult.shapeToUpdate.front();
457 // update geometry
459 }
460}
461
462
463void
465 // check what are being updated
467 undoList->begin(myTagProperty.getGUIIcon(), "length of " + getTagStr());
468 setAttribute(SUMO_ATTR_LENGTH, toString(myShapeLength[0].distanceTo2D(moveResult.shapeToUpdate[1])), undoList);
469 undoList->end();
470 } else if (moveResult.operationType == GNEMoveOperation::OperationType::WIDTH) {
471 undoList->begin(myTagProperty.getGUIIcon(), "width of " + getTagStr());
473 undoList->end();
474 } else {
475 undoList->begin(myTagProperty.getGUIIcon(), "position of " + getTagStr());
476 setAttribute(SUMO_ATTR_POSITION, toString(moveResult.shapeToUpdate.front()), undoList);
477 undoList->end();
478 }
479}
480
481/****************************************************************************/
@ NETWORK_MOVE
mode for moving network elements
@ GLO_PARKING_SPACE
a ParkingSpace
GUIIcon
An enumeration of icons used by the gui applications.
Definition GUIIcons.h:33
@ 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.
@ SUMO_ATTR_Y
@ SUMO_ATTR_Z
@ GNE_ATTR_PARENT
parent of an additional element
@ SUMO_ATTR_X
@ GNE_ATTR_SELECTED
element is selected
@ GNE_ATTR_PARAMETERS
parameters "key1=value1|key2=value2|...|keyN=valueN"
@ SUMO_ATTR_NAME
@ SUMO_ATTR_SLOPE
@ SUMO_ATTR_ANGLE
@ SUMO_ATTR_LENGTH
@ SUMO_ATTR_ID
@ SUMO_ATTR_WIDTH
@ SUMO_ATTR_POSITION
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
Definition ToString.h:46
void add(double x, double y, double z=0)
Makes the boundary include the given coordinate.
Definition Boundary.cpp:78
void reset()
Resets the boundary.
Definition Boundary.cpp:66
Boundary & grow(double by)
extends the boundary by the given amount
Definition Boundary.cpp:300
static void drawBoundary(const Boundary &b)
Draw a boundary (used for debugging)
Definition GLHelper.cpp:897
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
Definition GLHelper.cpp:583
static void pushName(unsigned int name)
push Name
Definition GLHelper.cpp:139
static void popMatrix()
pop matrix
Definition GLHelper.cpp:130
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:329
static void popName()
pop Name
Definition GLHelper.cpp:148
static void pushMatrix()
push matrix
Definition GLHelper.cpp:117
An Element which don't belong to GNENet but has influence in the simulation.
void replaceAdditionalParent(SumoXMLTag tag, const std::string &value, const int parentIndex)
replace additional parent
static void drawRightGeometryPoint(const GNEViewNet *viewNet, const Position &pos, const double rot, const RGBColor &baseColor, const bool ignoreShift=false)
draw right geometry point
void drawAdditionalID(const GUIVisualizationSettings &s) const
draw additional ID
double getExaggeration(const GUIVisualizationSettings &s) const
return exaggeration associated with this GLObject
std::string myAdditionalName
name of additional
static void drawUpGeometryPoint(const GNEViewNet *viewNet, const Position &pos, const double rot, const RGBColor &baseColor, const bool ignoreShift=false)
draw up geometry point
void drawAdditionalName(const GUIVisualizationSettings &s) const
draw additional name
Boundary myAdditionalBoundary
Additional Boundary.
static void drawLeftGeometryPoint(const GNEViewNet *viewNet, const Position &pos, const double rot, const RGBColor &baseColor, const bool ignoreShift=false)
draw left geometry point
void drawParentChildLines(const GUIVisualizationSettings &s, const RGBColor &color, const bool onlySymbols=false) const
draw parent and child lines
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
friend class GNEChange_Attribute
declare friend class
const std::string & getTagStr() const
get tag assigned to this object in string format
const GNETagProperties & getTagProperty() const
get tagProperty associated with this Attribute Carrier
void unselectAttributeCarrier(const bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
bool drawUsingSelectColor() const
check if attribute carrier must be drawn using selecting color.
void resetDefaultValues()
reset attribute carrier to their default values
GNENet * myNet
pointer to net
void selectAttributeCarrier(const bool changeFlag=true)
select attribute carrier using GUIGlobalSelection
const GNETagProperties & myTagProperty
reference to tagProperty associated with this attribute carrier
const std::vector< GNEAdditional * > & getParentAdditionals() const
get parent additionals
move operation
move result
const GNEMoveOperation::OperationType operationType
move operation
PositionVector shapeToUpdate
shape to update (edited in moveElement)
GNEAdditional * retrieveAdditional(SumoXMLTag type, const std::string &id, bool hardFail=true) const
Returns the named additional.
A NBNetBuilder extended by visualisation and editing capabilities.
Definition GNENet.h:42
void addGLObjectIntoGrid(GNEAttributeCarrier *AC)
add GL Object into net
Definition GNENet.cpp:1248
void removeGLObjectFromGrid(GNEAttributeCarrier *AC)
add GL Object into net
Definition GNENet.cpp:1260
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
Definition GNENet.cpp:120
GNEViewNet * getViewNet() const
get view net
Definition GNENet.cpp:2030
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
void setMoveShape(const GNEMoveResult &moveResult)
set move shape
double getAttributeDouble(SumoXMLAttr key) const
PositionVector myShapeWidth
shape width of Parking Space
std::string getAttribute(SumoXMLAttr key) const
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes
void splitEdgeGeometry(const double splitPosition, const GNENetworkElement *originalElement, const GNENetworkElement *newElement, GNEUndoList *undoList)
split geometry
Position myPosition
position of Parking Space in view
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their correspondent attribute are valids
bool isAdditionalValid() const
check if current additional is valid to be writed into XML (must be reimplemented in all detector chi...
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
double mySlope
Slope of Parking Space.
~GNEParkingSpace()
Destructor.
std::string getParentName() const
Returns the name of the parent object.
std::string myAngle
Angle of Parking Space.
Position getPositionInView() const
Returns position of additional in view.
void writeAdditional(OutputDevice &device) const
write additional element into a xml file
void commitMoveShape(const GNEMoveResult &moveResult, GNEUndoList *undoList)
commit move shape
void fixAdditionalProblem()
fix additional problem (must be reimplemented in all detector children)
GNEParkingSpace(GNENet *net)
Constructor.
std::string myLength
Length of Parking Space.
std::string getAdditionalProblem() const
return a string with the current additional problem (must be reimplemented in all detector children)
void updateCenteringBoundary(const bool updateGrid)
update centering boundary (implies change in RTREE)
GNEMoveOperation * getMoveOperation()
get move operation
const Parameterised::Map & getACParametersMap() const
get parameters map
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
std::string myWidth
width of Parking Space
PositionVector myShapeLength
shape length of Parking Space
void updateGeometry()
update pre-computed geometry information
GUIIcon getGUIIcon() const
get GUI icon associated to this Tag
const std::string & getDefaultValue(SumoXMLAttr attr) const
return the default value of the attribute of an element
void end()
End undo command sub-group. If the sub-group is still empty, it will be deleted; otherwise,...
void begin(GUIIcon icon, const std::string &description)
Begin undo command sub-group with current supermode. This begins a new group of commands that are tre...
void changeAttribute(GNEChange_Attribute *change)
special method for change attributes, avoid empty changes, always execute
const GNEViewNetHelper::DataViewOptions & getDataViewOptions() const
get data view options
const GNEAttributeCarrier * getFrontAttributeCarrier() const
get front attributeCarrier
const GNEViewNetHelper::EditModes & getEditModes() const
get edit modes
const GNEViewNetHelper::MouseButtonKeyPressed & getMouseButtonKeyPressed() const
get Key Pressed module
bool drawSelectContour(const GUIGlObject *GLObject, const GNEAttributeCarrier *AC) const
check if draw select contour
bool drawDeleteContour(const GUIGlObject *GLObject, const GNEAttributeCarrier *AC) const
check if draw delete contour
void drawTranslateFrontAttributeCarrier(const GNEAttributeCarrier *AC, double typeOrLayer, const double extraOffset=0)
draw front attributeCarrier
bool isAttributeCarrierInspected(const GNEAttributeCarrier *AC) const
check if attribute carrier is being inspected
static void drawDottedContourShape(const GUIVisualizationSettings &s, const DottedContourType type, const PositionVector &shape, const double width, const double exaggeration, const bool drawFirstExtrem, const bool drawLastExtrem)
draw dotted contour for the given shape (used by additionals)
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.
bool mouseWithinGeometry(const Position center, const double radius) const
check if mouse is within elements geometry (for circles)
GUIGlID getGlID() const
Returns the numerical id of the object.
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 drawBoundaries
enable or disable draw boundaries
bool drawForRectangleSelection
whether drawing is performed for the purpose of selecting objects using a rectangle
bool drawAdditionals(const double exaggeration) const
check if additionals must be drawn
GUIVisualizationColorSettings colorSettings
color settings
GUIVisualizationAdditionalSettings additionalSettings
Additional settings.
GUIVisualizationNeteditSizeSettings neteditSizeSettings
netedit size settings
Static storage of an output device and its base (abstract) implementation.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
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.
static bool areParametersValid(const std::string &value, bool report=false, const std::string kvsep="=", const std::string sep="|")
check if given string can be parsed to a parameters map "key1=value1|key2=value2|....
std::map< std::string, std::string > Map
parameters map
void setParametersStr(const std::string &paramsString, const std::string kvsep="=", const std::string sep="|")
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"
const Parameterised::Map & getParametersMap() const
Returns the inner key/value map.
void writeParams(OutputDevice &device) const
write Params in the given outputdevice
std::string getParametersStr(const std::string kvsep="=", const std::string sep="|") const
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".
A point in 2D or 3D with translation and scaling methods.
Definition Position.h:37
double x() const
Returns the x-position.
Definition Position.h:55
double z() const
Returns the z-position.
Definition Position.h:65
double y() const
Returns the y-position.
Definition Position.h:60
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 ammount
Position getCentroid() const
Returns the centroid (closes the polygon if unclosed)
unsigned char alpha() const
Returns the alpha-amount of the color.
Definition RGBColor.cpp:92
static bool isValidAttribute(const std::string &value)
whether the given string is a valid attribute for a certain key (for example, a name)
static std::string escapeXML(const std::string &orig, const bool maskDoubleHyphen=false)
Replaces the standard escapes by their XML entities.
bool showAdditionals() const
check if additionals has to be drawn
NetworkEditMode networkEditMode
the current Network edit mode
bool isCurrentSupermodeNetwork() const
@check if current supermode is Network
static void drawLockIcon(const GNEAttributeCarrier *AC, GUIGlObjectType type, const Position viewPosition, const double exaggeration, const double size=0.5, const double offsetx=0, const double offsety=0)
draw lock icon
bool shiftKeyPressed() const
check if SHIFT is pressed during current event
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 additionalGeometryPointRadius
moving additional geometry point radius