Eclipse SUMO - Simulation of Urban MObility
GNEDetectorE3.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 /****************************************************************************/
15 //
16 /****************************************************************************/
17 
18 // ===========================================================================
19 // included modules
20 // ===========================================================================
21 
22 #include <netedit/GNENet.h>
23 #include <netedit/GNEUndoList.h>
24 #include <netedit/GNEViewNet.h>
26 #include <utils/gui/div/GLHelper.h>
29 
30 #include "GNEDetectorE3.h"
31 
32 
33 // ===========================================================================
34 // member method definitions
35 // ===========================================================================
36 
37 GNEDetectorE3::GNEDetectorE3(const std::string& id, GNEViewNet* viewNet, Position pos, SUMOTime freq, const std::string& filename, const std::string& vehicleTypes, const std::string& name, SUMOTime timeThreshold, double speedThreshold, bool blockMovement) :
38  GNEAdditional(id, viewNet, GLO_E3DETECTOR, SUMO_TAG_E3DETECTOR, name, blockMovement, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}),
39  myPosition(pos),
40  myFreq(freq),
41  myFilename(filename),
42  myVehicleTypes(vehicleTypes),
43  myTimeThreshold(timeThreshold),
44 mySpeedThreshold(speedThreshold) {
45 }
46 
47 
49 
50 
51 void
53  // Set block icon position
55 
56  // Set block icon offset
57  myBlockIcon.offset = Position(-0.5, -0.5);
58 
59  // Set block icon rotation, and using their rotation for draw logo
61 
62  // Update connection's geometry
64 }
65 
66 
69  return myPosition;
70 }
71 
72 
75  // Return Boundary depending if myMovingGeometryBoundary is initialised (important for move geometry)
78  } else {
79  Boundary b;
80  b.add(myPosition);
81  b.grow(5);
82  return b;
83  }
84 }
85 
86 
87 void
89  // restore old position, apply offset and update Geometry
91  myPosition.add(offset);
92  // filtern position using snap to active grid
93  // filtern position using snap to active grid
96 }
97 
98 
99 void
101  // commit new position allowing undo/redo
102  undoList->p_begin("position of " + getTagStr());
104  undoList->p_end();
105 }
106 
107 
108 std::string
110  return myViewNet->getNet()->getMicrosimID();
111 }
112 
113 
114 void
116  // Obtain exaggeration of the draw
117  const double exaggeration = s.addSize.getExaggeration(s, this);
118  // check if boundary has to be drawn
119  if (s.drawBoundaries) {
121  }
122  // Start drawing adding an gl identificator
123  glPushName(getGlID());
124  // Add a draw matrix for drawing logo
125  glPushMatrix();
126  glTranslated(myPosition.x(), myPosition.y(), getType());
127  // Draw icon depending of detector is selected and if isn't being drawn for selecting
128  if (!s.drawForSelecting && s.drawDetail(s.detailSettings.laneTextures, exaggeration)) {
129  glColor3d(1, 1, 1);
130  glRotated(180, 0, 0, 1);
131  if (drawUsingSelectColor()) {
133  } else {
135  }
136  } else {
138  GLHelper::drawBoxLine(Position(0, 1), 0, 2, 1);
139  }
140  // Pop logo matrix
141  glPopMatrix();
142  // Show Lock icon depending
143  myBlockIcon.drawIcon(s, exaggeration, 0.4);
144  // Draw child connections
146  // Draw name if isn't being drawn for selecting
147  if (!s.drawForSelecting) {
149  }
150  // check if dotted contour has to be drawn
151  if (myViewNet->getDottedAC() == this) {
153  // draw shape dotte contour aroud alld connections between child and parents
154  for (auto i : myChildConnections.connectionPositions) {
156  }
157  }
158  // Pop name
159  glPopName();
160 }
161 
162 
163 std::string
165  switch (key) {
166  case SUMO_ATTR_ID:
167  return getAdditionalID();
168  case SUMO_ATTR_POSITION:
169  return toString(myPosition);
170  case SUMO_ATTR_FREQUENCY:
171  return time2string(myFreq);
172  case SUMO_ATTR_NAME:
173  return myAdditionalName;
174  case SUMO_ATTR_FILE:
175  return myFilename;
176  case SUMO_ATTR_VTYPES:
177  return myVehicleTypes;
181  return toString(mySpeedThreshold);
183  return toString(myBlockMovement);
184  case GNE_ATTR_SELECTED:
186  case GNE_ATTR_GENERIC:
187  return getGenericParametersStr();
188  default:
189  throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
190  }
191 }
192 
193 
194 void
195 GNEDetectorE3::setAttribute(SumoXMLAttr key, const std::string& value, GNEUndoList* undoList) {
196  if (value == getAttribute(key)) {
197  return; //avoid needless changes, later logic relies on the fact that attributes have changed
198  }
199  switch (key) {
200  case SUMO_ATTR_ID: {
201  // change ID of Entry
202  undoList->p_add(new GNEChange_Attribute(this, myViewNet->getNet(), key, value));
203  // Change Ids of all Entry/Exits children
204  for (auto i : getAdditionalChildren()) {
205  i->setAttribute(SUMO_ATTR_ID, generateChildID(i->getTagProperty().getTag()), undoList);
206  }
207  break;
208  }
209  case SUMO_ATTR_FREQUENCY:
210  case SUMO_ATTR_POSITION:
211  case SUMO_ATTR_NAME:
212  case SUMO_ATTR_FILE:
213  case SUMO_ATTR_VTYPES:
217  case GNE_ATTR_SELECTED:
218  case GNE_ATTR_GENERIC:
219  undoList->p_add(new GNEChange_Attribute(this, myViewNet->getNet(), key, value));
220  break;
221  default:
222  throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
223  }
224 }
225 
226 
227 bool
228 GNEDetectorE3::isValid(SumoXMLAttr key, const std::string& value) {
229  switch (key) {
230  case SUMO_ATTR_ID:
231  return isValidDetectorID(value);
232  case SUMO_ATTR_POSITION:
233  return canParse<Position>(value);
234  case SUMO_ATTR_FREQUENCY:
235  return canParse<SUMOTime>(value);
236  case SUMO_ATTR_NAME:
238  case SUMO_ATTR_FILE:
240  case SUMO_ATTR_VTYPES:
241  if (value.empty()) {
242  return true;
243  } else {
245  }
247  return canParse<SUMOTime>(value);
249  return canParse<double>(value) && (parse<double>(value) >= 0);
251  return canParse<bool>(value);
252  case GNE_ATTR_SELECTED:
253  return canParse<bool>(value);
254  case GNE_ATTR_GENERIC:
255  return isGenericParametersValid(value);
256  default:
257  throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
258  }
259 }
260 
261 
262 bool
264  int numEntrys = 0;
265  int numExits = 0;
266  // iterate over additional chidls and obtain number of entrys and exits
267  for (auto i : getAdditionalChildren()) {
268  if (i->getTagProperty().getTag() == SUMO_TAG_DET_ENTRY) {
269  numEntrys++;
270  } else if (i->getTagProperty().getTag() == SUMO_TAG_DET_EXIT) {
271  numExits++;
272  }
273  }
274  // write warnings
275  if (numEntrys == 0) {
276  WRITE_WARNING("An " + toString(SUMO_TAG_E3DETECTOR) + " need at least one " + toString(SUMO_TAG_DET_ENTRY) + " detector");
277  }
278  if (numExits == 0) {
279  WRITE_WARNING("An " + toString(SUMO_TAG_E3DETECTOR) + " need at least one " + toString(SUMO_TAG_DET_EXIT) + " detector");
280  }
281  // return false depending of number of Entrys and Exits
282  return ((numEntrys != 0) && (numExits != 0));
283 }
284 
285 
286 std::string
288  return getTagStr() + ":" + getID();
289 }
290 
291 
292 std::string
294  return getTagStr();
295 }
296 
297 
298 void
301 }
302 
303 // ===========================================================================
304 // private
305 // ===========================================================================
306 
307 void
308 GNEDetectorE3::setAttribute(SumoXMLAttr key, const std::string& value) {
309  switch (key) {
310  case SUMO_ATTR_ID:
311  changeAdditionalID(value);
312  break;
313  case SUMO_ATTR_POSITION:
315  myPosition = parse<Position>(value);
317  break;
318  case SUMO_ATTR_FREQUENCY:
319  myFreq = parse<SUMOTime>(value);
320  break;
321  case SUMO_ATTR_NAME:
322  myAdditionalName = value;
323  break;
324  case SUMO_ATTR_FILE:
325  myFilename = value;
326  break;
327  case SUMO_ATTR_VTYPES:
328  myVehicleTypes = value;
329  break;
331  myTimeThreshold = parse<SUMOTime>(value);
332  break;
334  mySpeedThreshold = parse<double>(value);
335  break;
337  myBlockMovement = parse<bool>(value);
338  break;
339  case GNE_ATTR_SELECTED:
340  if (parse<bool>(value)) {
342  } else {
344  }
345  break;
346  case GNE_ATTR_GENERIC:
348  break;
349  default:
350  throw InvalidArgument(getTagStr() + " doesn't have an attribute of type '" + toString(key) + "'");
351  }
352 }
353 
354 /****************************************************************************/
GUIGlObject::getType
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
Definition: GUIGlObject.cpp:181
RGBColor::GREY
static const RGBColor GREY
Definition: RGBColor.h:199
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:988
GNEAdditional::BlockIcon::position
Position position
position of the block icon
Definition: GNEAdditional.h:351
GNEDetectorE3::drawGL
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GNEDetectorE3.cpp:115
GNEAdditional
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:47
SUMO_ATTR_HALTING_SPEED_THRESHOLD
Definition: SUMOXMLDefinitions.h:748
GNEAdditional::setGenericParametersStr
void setGenericParametersStr(const std::string &value)
set generic parameters in string format
Definition: GNEAdditional.cpp:704
GNEAdditional::getAdditionalID
const std::string & getAdditionalID() const
Definition: GNEAdditional.cpp:578
GNEAttributeCarrier::getID
const std::string getID() const
function to support debugging
Definition: GNEAttributeCarrier.cpp:1187
WRITE_WARNING
#define WRITE_WARNING(msg)
Definition: MsgHandler.h:239
GNETEXTURE_E3SELECTED
Definition: GUITextures.h:36
SUMOXMLDefinitions::isValidFilename
static bool isValidFilename(const std::string &value)
whether the given string is a valid attribute for a filename (for example, a name)
Definition: SUMOXMLDefinitions.cpp:994
GNEAdditional::BlockIcon::setRotation
void setRotation(GNELane *additionalLane=nullptr)
set Rotation of block Icon (must be called in updateGeometry() function)
Definition: GNEAdditional.cpp:502
GNEAdditional::AdditionalMove::movingGeometryBoundary
Boundary movingGeometryBoundary
boundary used during moving of elements (to avoid insertion in RTREE
Definition: GNEAdditional.h:326
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:355
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:80
GNEHierarchicalElementChildren::myChildConnections
ChildConnections myChildConnections
variable ChildConnections
Definition: GNEHierarchicalElementChildren.h:238
GUIVisualizationSettings::drawBoundaries
bool drawBoundaries
enable or disable draw boundaries
Definition: GUIVisualizationSettings.h:629
GNENet::removeGLObjectFromGrid
void removeGLObjectFromGrid(GUIGlObject *o)
add GL Object into net
Definition: GNENet.cpp:1279
GNEAdditional::generateChildID
std::string generateChildID(SumoXMLTag childTag)
gererate a new ID for an element child
Definition: GNEAdditional.cpp:183
GNEDetectorE3::commitGeometryMoving
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
Definition: GNEDetectorE3.cpp:100
GNEAttributeCarrier::isGenericParametersValid
static bool isGenericParametersValid(const std::string &value)
check if given string can be parsed to a map/list of generic parameters
Definition: GNEAttributeCarrier.cpp:1354
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:35
GNEDetectorE3::updateGeometry
void updateGeometry()
update pre-computed geometry information
Definition: GNEDetectorE3.cpp:52
GNEDetectorE3::myPosition
Position myPosition
position of E3 in view
Definition: GNEDetectorE3.h:127
GNEDetectorE3::mySpeedThreshold
double mySpeedThreshold
The speed-based threshold that describes how slow a vehicle has to be to be recognized as halting.
Definition: GNEDetectorE3.h:142
GNEViewNet
Definition: GNEViewNet.h:43
SUMO_ATTR_ID
Definition: SUMOXMLDefinitions.h:379
SUMO_TAG_DET_ENTRY
an e3 entry point
Definition: SUMOXMLDefinitions.h:82
GLHelper.h
GNEAdditional::changeAdditionalID
void changeAdditionalID(const std::string &newID)
change ID of additional
Definition: GNEAdditional.cpp:604
GNEAdditional::unselectAttributeCarrier
void unselectAttributeCarrier(bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
Definition: GNEAdditional.cpp:634
GNEAdditional::myBlockIcon
BlockIcon myBlockIcon
variable BlockIcon
Definition: GNEAdditional.h:380
GLHelper::setColor
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
Definition: GLHelper.cpp:616
SUMO_ATTR_FILE
Definition: SUMOXMLDefinitions.h:662
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:194
GUITexturesHelper::drawTexturedBox
static void drawTexturedBox(int which, double size)
Draws a named texture as a box with the given size.
Definition: GUITexturesHelper.cpp:73
GNEAdditional::myMove
AdditionalMove myMove
variable AdditionalMove
Definition: GNEAdditional.h:371
GNEAdditional::myViewNet
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
Definition: GNEAdditional.h:365
GLHelper::drawBoundary
static void drawBoundary(const Boundary &b)
Draw a boundary (used for debugging)
Definition: GLHelper.cpp:812
GNEDetectorE3::myVehicleTypes
std::string myVehicleTypes
attribute vehicle types
Definition: GNEDetectorE3.h:136
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:132
GNEViewNet::getNet
GNENet * getNet() const
get the net object
Definition: GNEViewNet.cpp:927
GNEAdditional::isAttributeCarrierSelected
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
Definition: GNEAdditional.cpp:650
GNEDetectorE3::getParentName
std::string getParentName() const
Returns the name of the parent object (if any)
Definition: GNEDetectorE3.cpp:109
GUIVisualizationSettings::addName
GUIVisualizationTextSettings addName
Definition: GUIVisualizationSettings.h:582
GNEDetectorE3.h
GNEAdditional::isValidDetectorID
bool isValidDetectorID(const std::string &newID) const
check if a new detector ID is valid
Definition: GNEAdditional.cpp:594
GUIVisualizationSettings::detailSettings
GUIVisualizationDetailSettings detailSettings
detail settings
Definition: GUIVisualizationSettings.h:655
GNEDetectorE3::checkAdditionalChildRestriction
bool checkAdditionalChildRestriction() const
check restriction with the number of children
Definition: GNEDetectorE3.cpp:263
GNEDetectorE3::getPopUpID
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
Definition: GNEDetectorE3.cpp:287
GNEAdditional::selectAttributeCarrier
void selectAttributeCarrier(bool changeFlag=true)
Definition: GNEAdditional.cpp:619
GNEDetectorE3::myTimeThreshold
SUMOTime myTimeThreshold
The time-based threshold that describes how much time has to pass until a vehicle is recognized as ha...
Definition: GNEDetectorE3.h:139
GNEViewNet.h
GNEHierarchicalElementChildren::drawChildConnections
void drawChildConnections(const GUIVisualizationSettings &s, const GUIGlObjectType GLTypeParent) const
Definition: GNEHierarchicalElementChildren.cpp:90
GUIGlObject::getGlID
GUIGlID getGlID() const
Returns the numerical id of the object.
Definition: GUIGlObject.cpp:150
GNEViewNet::getDottedAC
const GNEAttributeCarrier * getDottedAC() const
get AttributeCarrier under cursor
Definition: GNEViewNet.cpp:939
Boundary
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:42
GUITextureSubSys::getTexture
static GUIGlID getTexture(GUITexture which)
returns a texture previously defined in the enum GUITexture
Definition: GUITextureSubSys.cpp:102
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:555
GUIVisualizationSettings::scale
double scale
information about a lane's width (temporary, used for a single view)
Definition: GUIVisualizationSettings.h:623
GNEDetectorE3::getHierarchyName
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
Definition: GNEDetectorE3.cpp:293
GNEDetectorE3::isValid
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
Definition: GNEDetectorE3.cpp:228
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
Position::x
double x() const
Returns the x-position.
Definition: Position.h:57
Boundary::add
void add(double x, double y, double z=0)
Makes the boundary include the given coordinate.
Definition: Boundary.cpp:79
time2string
std::string time2string(SUMOTime t)
Definition: SUMOTime.cpp:65
GNEAdditional::myAdditionalName
std::string myAdditionalName
name of additional
Definition: GNEAdditional.h:374
GUIVisualizationDetailSettings::laneTextures
static const double laneTextures
details for lane textures
Definition: GUIVisualizationSettings.h:284
GNEAdditional::myBlockMovement
bool myBlockMovement
boolean to check if additional element is blocked (i.e. cannot be moved with mouse)
Definition: GNEAdditional.h:377
GLHelper::drawShapeDottedContourAroundShape
static void drawShapeDottedContourAroundShape(const GUIVisualizationSettings &s, const int type, const PositionVector &shape, const double width)
draw a dotted contour around the given Non closed shape with certain width
Definition: GLHelper.cpp:461
SUMO_ATTR_FREQUENCY
Definition: SUMOXMLDefinitions.h:660
SUMO_ATTR_POSITION
Definition: SUMOXMLDefinitions.h:658
GNETEXTURE_E3
Definition: GUITextures.h:35
GNEDetectorE3::moveGeometry
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
Definition: GNEDetectorE3.cpp:88
GNEHierarchicalElementChildren::ChildConnections::connectionPositions
std::vector< PositionVector > connectionPositions
Matrix with the Vertex's positions of connections between parents an their children.
Definition: GNEHierarchicalElementChildren.h:224
GLO_E3DETECTOR
a E3 detector
Definition: GUIGlObjectTypes.h:80
GLIncludes.h
toString
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
Definition: ToString.h:48
GNE_ATTR_GENERIC
generic attribute
Definition: SUMOXMLDefinitions.h:986
GNEAdditional::BlockIcon::drawIcon
void drawIcon(const GUIVisualizationSettings &s, const double exaggeration, const double size=0.5) const
draw lock icon
Definition: GNEAdditional.cpp:518
GNENet::addGLObjectIntoGrid
void addGLObjectIntoGrid(GUIGlObject *o)
add GL Object into net
Definition: GNENet.cpp:1273
Position::y
double y() const
Returns the y-position.
Definition: Position.h:62
SUMO_ATTR_HALTING_TIME_THRESHOLD
Definition: SUMOXMLDefinitions.h:747
SUMO_ATTR_VTYPES
Definition: SUMOXMLDefinitions.h:630
InvalidArgument
Definition: UtilExceptions.h:57
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
GNEDetectorE3::setAttribute
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes
Definition: GNEDetectorE3.cpp:195
GNEAdditional::getGenericParametersStr
std::string getGenericParametersStr() const
return generic parameters in string format
Definition: GNEAdditional.cpp:678
GNEHierarchicalElementChildren::getAdditionalChildren
const std::vector< GNEAdditional * > & getAdditionalChildren() const
return vector of additionals that have as Parent this edge (For example, Calibrators)
Definition: GNEHierarchicalElementChildren.cpp:132
GNE_ATTR_BLOCK_MOVEMENT
block movement of a graphic element
Definition: SUMOXMLDefinitions.h:978
GNEDetectorE3::myFilename
std::string myFilename
fielname of E3 detector
Definition: GNEDetectorE3.h:133
GNEAdditional::drawUsingSelectColor
bool drawUsingSelectColor() const
check if attribute carrier must be drawn using selecting color.
Definition: GNEAdditional.cpp:656
GNEDetectorE3::getCenteringBoundary
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GNEDetectorE3.cpp:74
SUMO_TAG_E3DETECTOR
an e3 detector
Definition: SUMOXMLDefinitions.h:74
GUIVisualizationSettings::addSize
GUIVisualizationSizeSettings addSize
Definition: GUIVisualizationSettings.h:580
Position::add
void add(const Position &pos)
Adds the given position to this one.
Definition: Position.h:127
Boundary::isInitialised
bool isInitialised() const
check if Boundary is Initialised
Definition: Boundary.cpp:217
GNE_ATTR_SELECTED
element is selected
Definition: SUMOXMLDefinitions.h:968
GNEDetectorE3::myFreq
SUMOTime myFreq
frequency of E3 detector
Definition: GNEDetectorE3.h:130
Boundary::grow
Boundary & grow(double by)
extends the boundary by the given amount
Definition: Boundary.cpp:301
GNEHierarchicalElementChildren::ChildConnections::update
void update()
update Connection's geometry
Definition: GNEHierarchicalElementChildren.cpp:518
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:1621
GNEAttributeCarrier::getTagStr
const std::string & getTagStr() const
get tag assigned to this object in string format
Definition: GNEAttributeCarrier.cpp:1165
SUMOXMLDefinitions::isValidListOfTypeID
static bool isValidListOfTypeID(const std::string &value)
whether the given string is a valid list of ids for an edge or vehicle type (empty aren't allowed)
Definition: SUMOXMLDefinitions.cpp:1017
SUMO_ATTR_NAME
Definition: SUMOXMLDefinitions.h:381
GNEUndoList
Definition: GNEUndoList.h:49
GUIVisualizationSettings
Stores the information about how to visualize structures.
Definition: GUIVisualizationSettings.h:346
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:73
SumoXMLAttr
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
Definition: SUMOXMLDefinitions.h:373
GNEAdditional::AdditionalMove::originalViewPosition
Position originalViewPosition
value for saving first original position over lane before moving
Definition: GNEAdditional.h:329
GUIGlObject::getMicrosimID
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
Definition: GUIGlObject.cpp:164
SUMO_TAG_DET_EXIT
an e3 exit point
Definition: SUMOXMLDefinitions.h:84
GNEDetectorE3::updateAdditionalParent
void updateAdditionalParent()
update parent after add or remove a child (can be reimplemented, for example used for statistics)
Definition: GNEDetectorE3.cpp:299
GUITextureSubSys.h
GNEDetectorE3::~GNEDetectorE3
~GNEDetectorE3()
GNEDetectorE3 Destructor.
Definition: GNEDetectorE3.cpp:48
GNEChange_Attribute.h
GNENet.h
GNEDetectorE3::GNEDetectorE3
GNEDetectorE3(const std::string &id, GNEViewNet *viewNet, Position pos, SUMOTime freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, SUMOTime timeThreshold, double speedThreshold, bool blockMovement)
GNEDetectorE3 Constructor.
Definition: GNEDetectorE3.cpp:37
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:354
GNEUndoList.h
GUIVisualizationSettings::drawForSelecting
bool drawForSelecting
whether drawing is performed for the purpose of selecting objects
Definition: GUIVisualizationSettings.h:635
GNEDetectorE3::getAttribute
std::string getAttribute(SumoXMLAttr key) const
Definition: GNEDetectorE3.cpp:164
GNEDetectorE3::getPositionInView
Position getPositionInView() const
Returns position of additional in view.
Definition: GNEDetectorE3.cpp:68