Eclipse SUMO - Simulation of Urban MObility
GNEFrameModuls.h
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 // Auxiliar class for GNEFrame Moduls
16 /****************************************************************************/
17 #ifndef GNEFrameModuls_h
18 #define GNEFrameModuls_h
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
27 
28 // ===========================================================================
29 // class declaration
30 // ===========================================================================
31 
32 class GNEFrame;
33 
34 // ===========================================================================
35 // class definitions
36 // ===========================================================================
37 
39 
40 public:
41  // ===========================================================================
42  // class TagSelector
43  // ===========================================================================
44 
45  class TagSelector : protected FXGroupBox {
48 
49  public:
51  TagSelector(GNEFrame* frameParent, GNEAttributeCarrier::TagType type, bool onlyDrawables = true);
52 
54  ~TagSelector();
55 
57  void showTagSelector();
58 
60  void hideTagSelector();
61 
64 
67 
69  void setCurrentTag(SumoXMLTag newTag);
70 
72  void refreshTagProperties();
73 
77  long onCmdSelectTagType(FXObject*, FXSelector, void*);
78 
80  long onCmdSelectTag(FXObject*, FXSelector, void*);
82 
83  protected:
86 
87  private:
90 
92  FXComboBox* myTagTypesMatchBox;
93 
95  FXComboBox* myTagsMatchBox;
96 
99 
101  std::vector<std::pair<std::string, GNEAttributeCarrier::TagType> > myListOfTagTypes;
102 
104  std::vector<SumoXMLTag> myListOfTags;
105 
108  };
109 
110  // ===========================================================================
111  // class DemandElementSelector
112  // ===========================================================================
113 
114  class DemandElementSelector : protected FXGroupBox {
117 
118  public:
120  DemandElementSelector(GNEFrame* frameParent, SumoXMLTag demandElementTag);
121 
123  DemandElementSelector(GNEFrame* frameParent, const std::vector<GNEAttributeCarrier::TagType>& tagTypes);
124 
127 
130 
131  // @brief obtain allowed tags (derived from tagTypes)
132  const std::vector<SumoXMLTag>& getAllowedTags() const;
133 
135  void setDemandElement(GNEDemandElement* demandElement);
136 
139 
142 
144  bool isDemandElementSelectorShown() const;
145 
148 
152  long onCmdSelectDemandElement(FXObject*, FXSelector, void*);
154 
155  protected:
158 
159  private:
162 
165 
168 
170  std::vector<SumoXMLTag> myDemandElementTags;
171  };
172 
173  // ===========================================================================
174  // class EdgePathCreator
175  // ===========================================================================
176 
177  class EdgePathCreator : protected FXGroupBox {
180 
181  public:
182 
185  GNE_EDGEPATHCREATOR_CONSECUTIVE = 1 << 0, // Path must be consecutive
186  GNE_EDGEPATHCREATOR_FROM_TO_VIA = 1 << 1, // Path requieres a from-via-to edges
187  GNE_EDGEPATHCREATOR_FROM_BUSSTOP = 1 << 2, // Path start in a BusStop
188  GNE_EDGEPATHCREATOR_TO_BUSSTOP = 1 << 3, // Path ends in a BusStop
189  };
190 
192  EdgePathCreator(GNEFrame* frameParent, int edgePathCreatorModes);
193 
196 
198  void edgePathCreatorName(const std::string& name);
199 
201  void showEdgePathCreator();
202 
204  void hideEdgePathCreator();
205 
207  void setVClass(SUMOVehicleClass vClass);
208 
210  void setEdgePathCreatorModes(int edgePathCreatorModes);
211 
213  std::vector<GNEEdge*> getClickedEdges() const;
214 
217 
219  bool addEdge(GNEEdge* edge);
220 
222  bool addBusStop(GNEAdditional* busStop);
223 
225  void clearEdges();
226 
228  void drawTemporalRoute() const;
229 
231  void abortEdgePathCreation();
232 
234  void finishEdgePathCreation();
235 
238 
242  long onCmdAbortRouteCreation(FXObject*, FXSelector, void*);
243 
245  long onCmdFinishRouteCreation(FXObject*, FXSelector, void*);
246 
248  long onCmdRemoveLastInsertedElement(FXObject*, FXSelector, void*);
250 
251  protected:
254 
255  private:
258 
261 
264 
267 
270 
272  std::vector<GNEEdge*> myClickedEdges;
273 
276 
278  std::vector<GNEEdge*> myTemporalRoute;
279 
282 
284  void restoreEdgeColor(const GNEEdge* edge);
285  };
286 
287  // ===========================================================================
288  // class AttributeCarrierHierarchy
289  // ===========================================================================
290 
291  class AttributeCarrierHierarchy : private FXGroupBox {
294 
295  public:
297  AttributeCarrierHierarchy(GNEFrame* frameParent);
298 
301 
304 
307 
310 
314  long onCmdShowChildMenu(FXObject*, FXSelector, void* data);
315 
317  long onCmdCenterItem(FXObject*, FXSelector, void*);
318 
320  long onCmdInspectItem(FXObject*, FXSelector, void*);
321 
323  long onCmdDeleteItem(FXObject*, FXSelector, void*);
324 
326  long onCmdMoveItemUp(FXObject*, FXSelector, void*);
327 
329  long onCmdMoveItemDown(FXObject*, FXSelector, void*);
331 
332  protected:
335 
336  // @brief create pop-up menu in the positions X-Y for the clicked attribute carrier
337  void createPopUpMenu(int X, int Y, GNEAttributeCarrier* clickedAC);
338 
340  FXTreeItem* showAttributeCarrierParents();
341 
343  void showAttributeCarrierChildren(GNEAttributeCarrier* AC, FXTreeItem* itemParent);
344 
346  FXTreeItem* addListItem(GNEAttributeCarrier* AC, FXTreeItem* itemParent = nullptr, std::string prefix = "", std::string sufix = "");
347 
349  FXTreeItem* addListItem(FXTreeItem* itemParent, const std::string& text, FXIcon* icon, bool expanded);
350  private:
353 
356 
359 
362 
365 
368 
371 
374 
377 
380 
383 
385  FXTreeList* myTreelist;
386 
388  std::map<FXTreeItem*, GNEAttributeCarrier*> myTreeItemToACMap;
389 
391  std::set<FXTreeItem*> myTreeItemsConnections;
392  };
393 
394  // ===========================================================================
395  // class DrawingShape
396  // ===========================================================================
397 
398  class DrawingShape : private FXGroupBox {
401 
402  public:
404  DrawingShape(GNEFrame* frameParent);
405 
407  ~DrawingShape();
408 
410  void showDrawingShape();
411 
413  void hideDrawingShape();
414 
416  void startDrawing();
417 
419  void stopDrawing();
420 
422  void abortDrawing();
423 
425  void addNewPoint(const Position& P);
426 
428  void removeLastPoint();
429 
431  const PositionVector& getTemporalShape() const;
432 
434  bool isDrawing() const;
435 
437  void setDeleteLastCreatedPoint(bool value);
438 
441 
445  long onCmdStartDrawing(FXObject*, FXSelector, void*);
446 
448  long onCmdStopDrawing(FXObject*, FXSelector, void*);
449 
451  long onCmdAbortDrawing(FXObject*, FXSelector, void*);
453 
454  protected:
457 
458  private:
461 
464 
467 
470 
473 
476 
479  };
480 
481  // ===========================================================================
482  // class SelectorParent
483  // ===========================================================================
484 
485  class SelectorParent : protected FXGroupBox {
486  public:
488  SelectorParent(GNEFrame* frameParent);
489 
491  ~SelectorParent();
492 
494  std::string getIdSelected() const;
495 
497  void setIDSelected(const std::string& id);
498 
500  bool showSelectorParentModul(SumoXMLTag additionalTypeParent);
501 
504 
507 
508  private:
511 
514 
516  FXLabel* myParentsLabel;
517 
519  FXList* myParentsList;
520  };
521 };
522 
523 
524 #endif
525 
526 /****************************************************************************/
GNEFrameModuls::EdgePathCreator::myFinishCreationButton
FXButton * myFinishCreationButton
button for finish route creation
Definition: GNEFrameModuls.h:260
GNEFrameModuls::SelectorParent::myParentTag
SumoXMLTag myParentTag
current additional parent tag
Definition: GNEFrameModuls.h:513
GNEFrameModuls::AttributeCarrierHierarchy::myClickedDemandElement
GNEDemandElement * myClickedDemandElement
demand element (casted from myClickedAC)
Definition: GNEFrameModuls.h:382
GNEFrameModuls::SelectorParent::showSelectorParentModul
bool showSelectorParentModul(SumoXMLTag additionalTypeParent)
Show list of SelectorParent Modul.
Definition: GNEFrameModuls.cpp:1729
GNEFrameModuls::AttributeCarrierHierarchy::hideAttributeCarrierHierarchy
void hideAttributeCarrierHierarchy()
hide AttributeCarrierHierarchy
Definition: GNEFrameModuls.cpp:845
SUMOVehicleClass
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
Definition: SUMOVehicleClass.h:134
GNEFrameModuls::AttributeCarrierHierarchy::myClickedAC
GNEAttributeCarrier * myClickedAC
pointer to current clicked Attribute Carrier
Definition: GNEFrameModuls.h:358
GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierHierarchy
void showAttributeCarrierHierarchy(GNEAttributeCarrier *AC)
show AttributeCarrierHierarchy
Definition: GNEFrameModuls.cpp:834
GNEDemandElement
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEDemandElement.h:54
GNEAdditional
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:47
GNEFrameModuls::EdgePathCreator::~EdgePathCreator
~EdgePathCreator()
destructor
Definition: GNEFrameModuls.cpp:532
GNEFrameModuls::EdgePathCreator::finishEdgePathCreation
void finishEdgePathCreation()
finish edge path creation
Definition: GNEFrameModuls.cpp:732
GNEFrameModuls::AttributeCarrierHierarchy::addListItem
FXTreeItem * addListItem(GNEAttributeCarrier *AC, FXTreeItem *itemParent=nullptr, std::string prefix="", std::string sufix="")
add item into list
Definition: GNEFrameModuls.cpp:1506
GNEFrameModuls::TagSelector::myFrameParent
GNEFrame * myFrameParent
pointer to Frame Parent
Definition: GNEFrameModuls.h:89
GNEAttributeCarrier::TagProperties
struct with the attribute Properties
Definition: GNEAttributeCarrier.h:324
GNEFrameModuls::DrawingShape::showDrawingShape
void showDrawingShape()
show Drawing mode
Definition: GNEFrameModuls.cpp:1562
GNEFrameModuls::EdgePathCreator::setVClass
void setVClass(SUMOVehicleClass vClass)
set SUMOVehicleClass
Definition: GNEFrameModuls.cpp:573
GNEFrameModuls::TagSelector::~TagSelector
~TagSelector()
destructor
Definition: GNEFrameModuls.cpp:179
GNEFrameModuls::DrawingShape::setDeleteLastCreatedPoint
void setDeleteLastCreatedPoint(bool value)
enable or disable delete last created point
Definition: GNEFrameModuls.cpp:1649
GNEFrameModuls::AttributeCarrierHierarchy::onCmdShowChildMenu
long onCmdShowChildMenu(FXObject *, FXSelector, void *data)
Definition: GNEFrameModuls.cpp:876
GNEFrameModuls::EdgePathCreator::onCmdAbortRouteCreation
long onCmdAbortRouteCreation(FXObject *, FXSelector, void *)
Definition: GNEFrameModuls.cpp:748
GNEFrameModuls::EdgePathCreator::EdgePathCreator
EdgePathCreator()
FOX needs this.
Definition: GNEFrameModuls.h:253
GNEFrameModuls::DrawingShape::stopDrawing
void stopDrawing()
stop drawing and check if shape can be created
Definition: GNEFrameModuls.cpp:1591
GNEFrameModuls::DemandElementSelector::setDemandElement
void setDemandElement(GNEDemandElement *demandElement)
set current demand element
Definition: GNEFrameModuls.cpp:364
GNEFrameModuls::DemandElementSelector::isDemandElementSelectorShown
bool isDemandElementSelectorShown() const
check if demand element selector is shown
Definition: GNEFrameModuls.cpp:403
GNEFrameModuls::EdgePathCreator::myClickedEdges
std::vector< GNEEdge * > myClickedEdges
current clicked edges
Definition: GNEFrameModuls.h:272
GNEFrameModuls::EdgePathCreator::showEdgePathCreator
void showEdgePathCreator()
show EdgePathCreator
Definition: GNEFrameModuls.cpp:547
GNEFrameModuls::SelectorParent::setIDSelected
void setIDSelected(const std::string &id)
select manually a element of the list
Definition: GNEFrameModuls.cpp:1712
GNEFrameModuls::AttributeCarrierHierarchy::onCmdInspectItem
long onCmdInspectItem(FXObject *, FXSelector, void *)
called when user click over option "inspect" of child menu
Definition: GNEFrameModuls.cpp:916
GNEFrameModuls::DrawingShape::addNewPoint
void addNewPoint(const Position &P)
add new point to temporal shape
Definition: GNEFrameModuls.cpp:1621
GNEFrameModuls::DemandElementSelector::DemandElementSelector
DemandElementSelector()
FOX needs this.
Definition: GNEFrameModuls.h:157
GNEFrameModuls::DrawingShape::myStopDrawingButton
FXButton * myStopDrawingButton
button for stop drawing
Definition: GNEFrameModuls.h:472
GNEFrameModuls::DrawingShape::myDeleteLastCreatedPoint
bool myDeleteLastCreatedPoint
flag to enable/disable delete point mode
Definition: GNEFrameModuls.h:463
GNEFrameModuls::AttributeCarrierHierarchy::AttributeCarrierHierarchy
AttributeCarrierHierarchy()
FOX needs this.
Definition: GNEFrameModuls.h:334
GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren
void showAttributeCarrierChildren(GNEAttributeCarrier *AC, FXTreeItem *itemParent)
show child of current attributeCarrier
Definition: GNEFrameModuls.cpp:1342
GNEFrameModuls::DemandElementSelector::refreshDemandElementSelector
void refreshDemandElementSelector()
refresh demand element selector
Definition: GNEFrameModuls.cpp:409
GNEFrameModuls::DrawingShape::myInformationLabel
FXLabel * myInformationLabel
Label with information.
Definition: GNEFrameModuls.h:478
GNEFrameModuls::DemandElementSelector::showDemandElementSelector
void showDemandElementSelector()
show demand element selector
Definition: GNEFrameModuls.cpp:378
GNEFrameModuls::EdgePathCreator::addBusStop
bool addBusStop(GNEAdditional *busStop)
add busStop to route
Definition: GNEFrameModuls.cpp:661
GNEFrameModuls::EdgePathCreator::GNE_EDGEPATHCREATOR_FROM_TO_VIA
Definition: GNEFrameModuls.h:186
GNEFrameModuls::DrawingShape::myTemporalShapeShape
PositionVector myTemporalShapeShape
current drawed shape
Definition: GNEFrameModuls.h:466
GNEFrame
Definition: GNEFrame.h:35
GNEFrameModuls::SelectorParent::myFrameParent
GNEFrame * myFrameParent
pointer to Frame Parent
Definition: GNEFrameModuls.h:510
GNEFrameModuls::DemandElementSelector::~DemandElementSelector
~DemandElementSelector()
destructor
Definition: GNEFrameModuls.cpp:349
GNEFrameModuls::AttributeCarrierHierarchy::myClickedJunction
GNEJunction * myClickedJunction
junction (casted from myClickedAC)
Definition: GNEFrameModuls.h:361
GNEFrameModuls::DrawingShape::hideDrawingShape
void hideDrawingShape()
hide Drawing mode
Definition: GNEFrameModuls.cpp:1570
GNEFrameModuls::AttributeCarrierHierarchy::onCmdMoveItemUp
long onCmdMoveItemUp(FXObject *, FXSelector, void *)
called when user click over option "Move up" of child menu
Definition: GNEFrameModuls.cpp:970
PositionVector
A list of positions.
Definition: PositionVector.h:46
GNEFrameModuls::DrawingShape::removeLastPoint
void removeLastPoint()
remove last added point
Definition: GNEFrameModuls.cpp:1631
GNEFrameModuls::DrawingShape::getDeleteLastCreatedPoint
bool getDeleteLastCreatedPoint()
get flag delete last created point
Definition: GNEFrameModuls.cpp:1655
GNEFrameModuls::TagSelector::setCurrentTagType
void setCurrentTagType(GNEAttributeCarrier::TagType tagType)
set current type manually
Definition: GNEFrameModuls.cpp:201
SumoXMLTag
SumoXMLTag
Numbers representing SUMO-XML - element names.
Definition: SUMOXMLDefinitions.h:42
GNEFrameModuls::EdgePathCreator::GNE_EDGEPATHCREATOR_TO_BUSSTOP
Definition: GNEFrameModuls.h:188
GNEFrameModuls::EdgePathCreator::addEdge
bool addEdge(GNEEdge *edge)
add edge to route
Definition: GNEFrameModuls.cpp:597
GNEFrameModuls::DrawingShape::myStartDrawingButton
FXButton * myStartDrawingButton
button for start drawing
Definition: GNEFrameModuls.h:469
GNEFrameModuls::EdgePathCreator
Definition: GNEFrameModuls.h:177
GNEEdge
A road/street connecting two junctions (netedit-version)
Definition: GNEEdge.h:50
GNEFrameModuls::EdgePathCreator::GNE_EDGEPATHCREATOR_CONSECUTIVE
Definition: GNEFrameModuls.h:185
GNEFrameModuls::AttributeCarrierHierarchy::myTreeItemToACMap
std::map< FXTreeItem *, GNEAttributeCarrier * > myTreeItemToACMap
map used to save the Tree items with their AC
Definition: GNEFrameModuls.h:388
GNEFrameModuls::AttributeCarrierHierarchy::myTreelist
FXTreeList * myTreelist
tree list to show the children of the element to erase
Definition: GNEFrameModuls.h:385
GNEFrameModuls::AttributeCarrierHierarchy::onCmdCenterItem
long onCmdCenterItem(FXObject *, FXSelector, void *)
called when user click over option "center" of child Menu
Definition: GNEFrameModuls.cpp:890
GNEFrameModuls::EdgePathCreator::EdgePathCreatorModes
EdgePathCreatorModes
FOX-declaration.
Definition: GNEFrameModuls.h:184
GNEFrameModuls::TagSelector::myTagTypesMatchBox
FXComboBox * myTagTypesMatchBox
comboBox with tag type
Definition: GNEFrameModuls.h:92
GNEFrameModuls::TagSelector::myListOfTags
std::vector< SumoXMLTag > myListOfTags
list of tags that will be shown in Match Box
Definition: GNEFrameModuls.h:104
GNEFrameModuls::AttributeCarrierHierarchy::createPopUpMenu
void createPopUpMenu(int X, int Y, GNEAttributeCarrier *clickedAC)
Definition: GNEFrameModuls.cpp:1002
GNECrossing
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routete...
Definition: GNECrossing.h:45
GNEFrameModuls::SelectorParent
Definition: GNEFrameModuls.h:485
GNEShape
Definition: GNEShape.h:35
GNEFrameModuls::AttributeCarrierHierarchy::~AttributeCarrierHierarchy
~AttributeCarrierHierarchy()
destructor
Definition: GNEFrameModuls.cpp:830
GNEFrameModuls::EdgePathCreator::hideEdgePathCreator
void hideEdgePathCreator()
show EdgePathCreator
Definition: GNEFrameModuls.cpp:558
GNEFrameModuls::DemandElementSelector
Definition: GNEFrameModuls.h:114
GNEFrameModuls::EdgePathCreator::edgePathCreatorName
void edgePathCreatorName(const std::string &name)
update EdgePathCreator name
Definition: GNEFrameModuls.cpp:536
GNEFrameModuls::TagSelector
Definition: GNEFrameModuls.h:45
GNEFrameModuls::TagSelector::myListOfTagTypes
std::vector< std::pair< std::string, GNEAttributeCarrier::TagType > > myListOfTagTypes
list of tags types that will be shown in Match Box
Definition: GNEFrameModuls.h:101
GNEFrameModuls::DemandElementSelector::myCurrentDemandElement
GNEDemandElement * myCurrentDemandElement
current demand element
Definition: GNEFrameModuls.h:167
GNEFrameModuls::AttributeCarrierHierarchy::myFrameParent
GNEFrame * myFrameParent
Frame Parent.
Definition: GNEFrameModuls.h:352
GNEFrameModuls::DemandElementSelector::getCurrentDemandElement
GNEDemandElement * getCurrentDemandElement() const
get current demand element
Definition: GNEFrameModuls.cpp:353
GNEFrameModuls::AttributeCarrierHierarchy::onCmdDeleteItem
long onCmdDeleteItem(FXObject *, FXSelector, void *)
called when user click over option "delete" of child menu
Definition: GNEFrameModuls.cpp:925
GNEFrameModuls::EdgePathCreator::setEdgePathCreatorModes
void setEdgePathCreatorModes(int edgePathCreatorModes)
set EdgePathCreatorModes
Definition: GNEFrameModuls.cpp:579
GNEFrameModuls::DrawingShape
Definition: GNEFrameModuls.h:398
GNEFrameModuls::DrawingShape::startDrawing
void startDrawing()
start drawing
Definition: GNEFrameModuls.cpp:1579
GNEFrameModuls::DemandElementSelector::getAllowedTags
const std::vector< SumoXMLTag > & getAllowedTags() const
Definition: GNEFrameModuls.cpp:359
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
GNEFrameModuls::DrawingShape::onCmdStartDrawing
long onCmdStartDrawing(FXObject *, FXSelector, void *)
Definition: GNEFrameModuls.cpp:1661
GNEFrameModuls::AttributeCarrierHierarchy::myClickedCrossing
GNECrossing * myClickedCrossing
crossing (casted from myClickedAC)
Definition: GNEFrameModuls.h:370
GNEFrameModuls::AttributeCarrierHierarchy
Definition: GNEFrameModuls.h:291
GNEFrameModuls::TagSelector::getCurrentTagProperties
const GNEAttributeCarrier::TagProperties & getCurrentTagProperties() const
get current type tag
Definition: GNEFrameModuls.cpp:195
GNEFrameModuls::EdgePathCreator::drawTemporalRoute
void drawTemporalRoute() const
draw temporal route
Definition: GNEFrameModuls.cpp:691
GNEFrameModuls::EdgePathCreator::restoreEdgeColor
void restoreEdgeColor(const GNEEdge *edge)
restore colors of given edge
Definition: GNEFrameModuls.cpp:800
GNEFrameModuls::TagSelector::TagSelector
TagSelector()
FOX needs this.
Definition: GNEFrameModuls.h:85
GNEFrameModuls::AttributeCarrierHierarchy::onCmdMoveItemDown
long onCmdMoveItemDown(FXObject *, FXSelector, void *)
called when user click over option "Move down" of child menu
Definition: GNEFrameModuls.cpp:986
GNEFrameModuls::EdgePathCreator::myFrameParent
GNEFrame * myFrameParent
pointer to GNEFrame Parent
Definition: GNEFrameModuls.h:257
GNEFrameModuls::DrawingShape::myFrameParent
GNEFrame * myFrameParent
pointer to frame parent
Definition: GNEFrameModuls.h:460
GNEFrameModuls::SelectorParent::getIdSelected
std::string getIdSelected() const
get currently additional parent selected
Definition: GNEFrameModuls.cpp:1701
GNEFrameModuls::AttributeCarrierHierarchy::myClickedShape
GNEShape * myClickedShape
shape (casted from myClickedAC)
Definition: GNEFrameModuls.h:376
GNEFrameModuls::DemandElementSelector::onCmdSelectDemandElement
long onCmdSelectDemandElement(FXObject *, FXSelector, void *)
Definition: GNEFrameModuls.cpp:479
GNEFrameModuls::EdgePathCreator::myRemoveLastInsertedEdge
FXButton * myRemoveLastInsertedEdge
button for removing last inserted edge
Definition: GNEFrameModuls.h:266
GNEFrameModuls::DrawingShape::onCmdAbortDrawing
long onCmdAbortDrawing(FXObject *, FXSelector, void *)
Called when the user press abort drawing button.
Definition: GNEFrameModuls.cpp:1675
GNEFrameModuls::EdgePathCreator::clearEdges
void clearEdges()
clear edges (and restore colors)
Definition: GNEFrameModuls.cpp:672
GNEFrameModuls::TagSelector::hideTagSelector
void hideTagSelector()
hide item selector
Definition: GNEFrameModuls.cpp:189
GNEFrameModuls::DrawingShape::~DrawingShape
~DrawingShape()
destructor
Definition: GNEFrameModuls.cpp:1559
GNEFrameModuls::SelectorParent::SelectorParent
SelectorParent(GNEFrame *frameParent)
constructor
Definition: GNEFrameModuls.cpp:1684
GNEFrameModuls::EdgePathCreator::GNE_EDGEPATHCREATOR_FROM_BUSSTOP
Definition: GNEFrameModuls.h:187
GNEAttributeCarrier::TagType
TagType
Definition: GNEAttributeCarrier.h:281
GNEFrameModuls::TagSelector::setCurrentTag
void setCurrentTag(SumoXMLTag newTag)
set current type manually
Definition: GNEFrameModuls.cpp:226
GNEFrameModuls::TagSelector::onCmdSelectTag
long onCmdSelectTag(FXObject *, FXSelector, void *)
Called when the user select an elementin ComboBox.
Definition: GNEFrameModuls.cpp:287
GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents
FXTreeItem * showAttributeCarrierParents()
show child of current attributeCarrier
Definition: GNEFrameModuls.cpp:1090
GNEFrameModuls::EdgePathCreator::myVClass
SUMOVehicleClass myVClass
VClass used for this trip.
Definition: GNEFrameModuls.h:269
GNEFrameModuls::AttributeCarrierHierarchy::myClickedEdge
GNEEdge * myClickedEdge
edge (casted from myClickedAC)
Definition: GNEFrameModuls.h:364
GNEFrameModuls::DrawingShape::abortDrawing
void abortDrawing()
abort drawing
Definition: GNEFrameModuls.cpp:1609
GNEFrameModuls::TagSelector::refreshTagProperties
void refreshTagProperties()
due myCurrentTagProperties is a Reference, we need to refresh it when frameParent is show
Definition: GNEFrameModuls.cpp:243
GNEFrameModuls::TagSelector::myCurrentTagProperties
GNEAttributeCarrier::TagProperties myCurrentTagProperties
current tag properties
Definition: GNEFrameModuls.h:98
GNEFrameModuls::TagSelector::onCmdSelectTagType
long onCmdSelectTagType(FXObject *, FXSelector, void *)
Definition: GNEFrameModuls.cpp:249
GNEFrameModuls::EdgePathCreator::mySelectedBusStop
GNEAdditional * mySelectedBusStop
pointer to selected busStop
Definition: GNEFrameModuls.h:275
GNEFrameModuls::EdgePathCreator::myTemporalRoute
std::vector< GNEEdge * > myTemporalRoute
vector with temporal route edges
Definition: GNEFrameModuls.h:278
GNEFrameModuls
Definition: GNEFrameModuls.h:38
GNEFrameModuls::TagSelector::myTagsMatchBox
FXComboBox * myTagsMatchBox
comboBox with the list of tags
Definition: GNEFrameModuls.h:95
GNEConnection
Definition: GNEConnection.h:38
GNEAttributeCarrier.h
GNEFrameModuls::DrawingShape::isDrawing
bool isDrawing() const
return true if currently a shape is drawed
Definition: GNEFrameModuls.cpp:1643
GNEFrameModuls::AttributeCarrierHierarchy::myAC
GNEAttributeCarrier * myAC
Attribute carrier.
Definition: GNEFrameModuls.h:355
GNEFrameModuls::AttributeCarrierHierarchy::myClickedAdditional
GNEAdditional * myClickedAdditional
additional (casted from myClickedAC)
Definition: GNEFrameModuls.h:379
config.h
GNEFrameModuls::DemandElementSelector::hideDemandElementSelector
void hideDemandElementSelector()
hide demand element selector
Definition: GNEFrameModuls.cpp:397
GNEFrameModuls::EdgePathCreator::abortEdgePathCreation
void abortEdgePathCreation()
abort edge path creation
Definition: GNEFrameModuls.cpp:724
GNEFrameModuls::DrawingShape::onCmdStopDrawing
long onCmdStopDrawing(FXObject *, FXSelector, void *)
Called when the user press stop drawing button.
Definition: GNEFrameModuls.cpp:1668
GNEViewNetHelper.h
GNEFrameModuls::EdgePathCreator::myAbortCreationButton
FXButton * myAbortCreationButton
button for abort route creation
Definition: GNEFrameModuls.h:263
GNEFrameModuls::AttributeCarrierHierarchy::myClickedLane
GNELane * myClickedLane
lane (casted from myClickedAC)
Definition: GNEFrameModuls.h:367
GNEFrameModuls::AttributeCarrierHierarchy::myClickedConnection
GNEConnection * myClickedConnection
junction (casted from myClickedAC)
Definition: GNEFrameModuls.h:373
GNEFrameModuls::SelectorParent::~SelectorParent
~SelectorParent()
destructor
Definition: GNEFrameModuls.cpp:1697
GNEFrameModuls::TagSelector::myInvalidTagProperty
GNEAttributeCarrier::TagProperties myInvalidTagProperty
dummy tag properties used if user select an invalid tag
Definition: GNEFrameModuls.h:107
GNEFrameModuls::EdgePathCreator::getClickedEdges
std::vector< GNEEdge * > getClickedEdges() const
get current clicked edges
Definition: GNEFrameModuls.cpp:585
GNEFrameModuls::AttributeCarrierHierarchy::refreshAttributeCarrierHierarchy
void refreshAttributeCarrierHierarchy()
refresh AttributeCarrierHierarchy
Definition: GNEFrameModuls.cpp:863
GNEFrameModuls::TagSelector::showTagSelector
void showTagSelector()
show item selector
Definition: GNEFrameModuls.cpp:183
GNEFrameModuls::SelectorParent::myParentsList
FXList * myParentsList
List of parents.
Definition: GNEFrameModuls.h:519
GNEFrameModuls::SelectorParent::myParentsLabel
FXLabel * myParentsLabel
Label with parent name.
Definition: GNEFrameModuls.h:516
GNEJunction
Definition: GNEJunction.h:48
GNEFrameModuls::DemandElementSelector::myDemandElementTags
std::vector< SumoXMLTag > myDemandElementTags
demand element tags
Definition: GNEFrameModuls.h:170
GNEFrameModuls::EdgePathCreator::onCmdFinishRouteCreation
long onCmdFinishRouteCreation(FXObject *, FXSelector, void *)
Called when the user click over button "Finish route creation".
Definition: GNEFrameModuls.cpp:760
GNEFrameModuls::AttributeCarrierHierarchy::myTreeItemsConnections
std::set< FXTreeItem * > myTreeItemsConnections
set used to save tree items without AC assigned, the Incoming/Outcoming connections
Definition: GNEFrameModuls.h:391
GNELane
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:46
GNEFrameModuls::EdgePathCreator::myEdgePathCreatorModes
int myEdgePathCreatorModes
current edge path creator modes
Definition: GNEFrameModuls.h:281
GNEAttributeCarrier
Definition: GNEAttributeCarrier.h:54
GNEFrameModuls::EdgePathCreator::getClickedBusStop
GNEAdditional * getClickedBusStop() const
get current clicked edges
Definition: GNEFrameModuls.cpp:591
GNEFrameModuls::EdgePathCreator::onCmdRemoveLastInsertedElement
long onCmdRemoveLastInsertedElement(FXObject *, FXSelector, void *)
Called when the user click over button "Remove las inserted edge/busStop".
Definition: GNEFrameModuls.cpp:779
GNEFrameModuls::SelectorParent::refreshSelectorParentModul
void refreshSelectorParentModul()
Refresh list of Additional Parents Modul.
Definition: GNEFrameModuls.cpp:1753
GNEFrameModuls::SelectorParent::hideSelectorParentModul
void hideSelectorParentModul()
hide SelectorParent Modul
Definition: GNEFrameModuls.cpp:1746
GNEFrameModuls::DrawingShape::getTemporalShape
const PositionVector & getTemporalShape() const
get Temporal shape
Definition: GNEFrameModuls.cpp:1637
GNEFrameModuls::EdgePathCreator::removeLastInsertedElement
void removeLastInsertedElement()
remove last added element (either a BusStop or an edge)
Definition: GNEFrameModuls.cpp:740
GNEFrameModuls::DrawingShape::myAbortDrawingButton
FXButton * myAbortDrawingButton
button for abort drawing
Definition: GNEFrameModuls.h:475
GNEFrameModuls::DrawingShape::DrawingShape
DrawingShape()
FOX needs this.
Definition: GNEFrameModuls.h:456
GNEFrameModuls::DemandElementSelector::myFrameParent
GNEFrame * myFrameParent
pointer to frame Parent
Definition: GNEFrameModuls.h:161
GNEFrameModuls::DemandElementSelector::myDemandElementsMatchBox
FXComboBox * myDemandElementsMatchBox
comboBox with the list of elements type
Definition: GNEFrameModuls.h:164