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 /****************************************************************************/
14 // Auxiliar class for GNEFrame Moduls
15 /****************************************************************************/
16 #ifndef GNEFrameModuls_h
17 #define GNEFrameModuls_h
18 
19 // ===========================================================================
20 // included modules
21 // ===========================================================================
22 #include <config.h>
23 
26 
27 // ===========================================================================
28 // class declaration
29 // ===========================================================================
30 
31 class GNEFrame;
32 
33 // ===========================================================================
34 // class definitions
35 // ===========================================================================
36 
38 
39 public:
40  // ===========================================================================
41  // class TagSelector
42  // ===========================================================================
43 
44  class TagSelector : protected FXGroupBox {
47 
48  public:
50  TagSelector(GNEFrame* frameParent, GNEAttributeCarrier::TagType type, bool onlyDrawables = true);
51 
53  ~TagSelector();
54 
56  void showTagSelector();
57 
59  void hideTagSelector();
60 
63 
66 
68  void setCurrentTag(SumoXMLTag newTag);
69 
71  void refreshTagProperties();
72 
76  long onCmdSelectTagType(FXObject*, FXSelector, void*);
77 
79  long onCmdSelectTag(FXObject*, FXSelector, void*);
81 
82  protected:
84 
85  private:
88 
90  FXComboBox* myTagTypesMatchBox;
91 
93  FXComboBox* myTagsMatchBox;
94 
97 
99  std::vector<std::pair<std::string, GNEAttributeCarrier::TagType> > myListOfTagTypes;
100 
102  std::vector<SumoXMLTag> myListOfTags;
103 
106  };
107 
108  // ===========================================================================
109  // class DemandElementSelector
110  // ===========================================================================
111 
112  class DemandElementSelector : protected FXGroupBox {
115 
116  public:
118  DemandElementSelector(GNEFrame* frameParent, SumoXMLTag demandElementTag);
119 
121  DemandElementSelector(GNEFrame* frameParent, const std::vector<GNEAttributeCarrier::TagType>& tagTypes);
122 
125 
128 
129  // @brief obtain allowed tags (derived from tagTypes)
130  const std::vector<SumoXMLTag>& getAllowedTags() const;
131 
133  void setDemandElement(GNEDemandElement* demandElement);
134 
137 
140 
142  bool isDemandElementSelectorShown() const;
143 
146 
150  long onCmdSelectDemandElement(FXObject*, FXSelector, void*);
152 
153  protected:
155 
156  private:
159 
162 
165 
167  std::vector<SumoXMLTag> myDemandElementTags;
168  };
169 
170  // ===========================================================================
171  // class EdgePathCreator
172  // ===========================================================================
173 
174  class EdgePathCreator : protected FXGroupBox {
177 
178  public:
179 
182  GNE_EDGEPATHCREATOR_CONSECUTIVE = 1 << 0, // Path must be consecutive
183  GNE_EDGEPATHCREATOR_FROM_TO_VIA = 1 << 1, // Path requires a from-via-to edges
184  GNE_EDGEPATHCREATOR_FROM_BUSSTOP = 1 << 2, // Path start in a BusStop
185  GNE_EDGEPATHCREATOR_TO_BUSSTOP = 1 << 3, // Path ends in a BusStop
186  };
187 
189  EdgePathCreator(GNEFrame* frameParent, int edgePathCreatorModes);
190 
193 
195  void edgePathCreatorName(const std::string& name);
196 
198  void showEdgePathCreator();
199 
201  void hideEdgePathCreator();
202 
204  void setVClass(SUMOVehicleClass vClass);
205 
207  void setEdgePathCreatorModes(int edgePathCreatorModes);
208 
210  std::vector<GNEEdge*> getClickedEdges() const;
211 
214 
216  bool addEdge(GNEEdge* edge);
217 
219  bool addBusStop(GNEAdditional* busStop);
220 
222  void clearEdges();
223 
225  void drawTemporalRoute() const;
226 
228  void abortEdgePathCreation();
229 
231  void finishEdgePathCreation();
232 
235 
239  long onCmdAbortRouteCreation(FXObject*, FXSelector, void*);
240 
242  long onCmdFinishRouteCreation(FXObject*, FXSelector, void*);
243 
245  long onCmdRemoveLastInsertedElement(FXObject*, FXSelector, void*);
247 
248  protected:
250 
251  private:
254 
257 
260 
263 
266 
268  std::vector<GNEEdge*> myClickedEdges;
269 
272 
274  std::vector<GNEEdge*> myTemporalRoute;
275 
278 
280  void restoreEdgeColor(const GNEEdge* edge);
281  };
282 
283  // ===========================================================================
284  // class AttributeCarrierHierarchy
285  // ===========================================================================
286 
287  class AttributeCarrierHierarchy : private FXGroupBox {
290 
291  public:
293  AttributeCarrierHierarchy(GNEFrame* frameParent);
294 
297 
300 
303 
306 
310  long onCmdShowChildMenu(FXObject*, FXSelector, void* data);
311 
313  long onCmdCenterItem(FXObject*, FXSelector, void*);
314 
316  long onCmdInspectItem(FXObject*, FXSelector, void*);
317 
319  long onCmdDeleteItem(FXObject*, FXSelector, void*);
320 
322  long onCmdMoveItemUp(FXObject*, FXSelector, void*);
323 
325  long onCmdMoveItemDown(FXObject*, FXSelector, void*);
327 
328  protected:
330 
331  // @brief create pop-up menu in the positions X-Y for the clicked attribute carrier
332  void createPopUpMenu(int X, int Y, GNEAttributeCarrier* clickedAC);
333 
335  FXTreeItem* showAttributeCarrierParents();
336 
338  void showAttributeCarrierChildren(GNEAttributeCarrier* AC, FXTreeItem* itemParent);
339 
341  FXTreeItem* addListItem(GNEAttributeCarrier* AC, FXTreeItem* itemParent = nullptr, std::string prefix = "", std::string sufix = "");
342 
344  FXTreeItem* addListItem(FXTreeItem* itemParent, const std::string& text, FXIcon* icon, bool expanded);
345  private:
348 
351 
354 
357 
360 
363 
366 
369 
372 
375 
378 
380  FXTreeList* myTreelist;
381 
383  std::map<FXTreeItem*, GNEAttributeCarrier*> myTreeItemToACMap;
384 
386  std::set<FXTreeItem*> myTreeItemsConnections;
387  };
388 
389  // ===========================================================================
390  // class DrawingShape
391  // ===========================================================================
392 
393  class DrawingShape : private FXGroupBox {
396 
397  public:
399  DrawingShape(GNEFrame* frameParent);
400 
402  ~DrawingShape();
403 
405  void showDrawingShape();
406 
408  void hideDrawingShape();
409 
411  void startDrawing();
412 
414  void stopDrawing();
415 
417  void abortDrawing();
418 
420  void addNewPoint(const Position& P);
421 
423  void removeLastPoint();
424 
426  const PositionVector& getTemporalShape() const;
427 
429  bool isDrawing() const;
430 
432  void setDeleteLastCreatedPoint(bool value);
433 
436 
440  long onCmdStartDrawing(FXObject*, FXSelector, void*);
441 
443  long onCmdStopDrawing(FXObject*, FXSelector, void*);
444 
446  long onCmdAbortDrawing(FXObject*, FXSelector, void*);
448 
449  protected:
451 
452  private:
455 
458 
461 
464 
467 
470 
473  };
474 
475  // ===========================================================================
476  // class SelectorParent
477  // ===========================================================================
478 
479  class SelectorParent : protected FXGroupBox {
480  public:
482  SelectorParent(GNEFrame* frameParent);
483 
485  ~SelectorParent();
486 
488  std::string getIdSelected() const;
489 
491  void setIDSelected(const std::string& id);
492 
494  bool showSelectorParentModul(SumoXMLTag additionalTypeParent);
495 
498 
501 
502  private:
505 
508 
510  FXLabel* myParentsLabel;
511 
513  FXList* myParentsList;
514  };
515 
516  // ===========================================================================
517  // class OverlappedInspection
518  // ===========================================================================
519 
520  class OverlappedInspection : private FXGroupBox {
523 
524  public:
526  OverlappedInspection(GNEFrame* frameParent);
527 
529  OverlappedInspection(GNEFrame* frameParent, const SumoXMLTag filteredTag);
530 
533 
535  void showOverlappedInspection(const GNEViewNetHelper::ObjectsUnderCursor& objectsUnderCursor, const Position& clickedPosition);
536 
539 
541  bool overlappedInspectionShown() const;
542 
544  int getNumberOfOverlappedACs() const;
545 
547  bool checkSavedPosition(const Position& clickedPosition) const;
548 
550  bool nextElement(const Position& clickedPosition);
551 
553  bool previousElement(const Position& clickedPosition);
554 
557 
559  long onCmdNextElement(FXObject*, FXSelector, void*);
560 
562  long onCmdPreviousElement(FXObject*, FXSelector, void*);
563 
565  long onCmdShowList(FXObject*, FXSelector, void*);
566 
568  long onCmdListItemSelected(FXObject*, FXSelector, void*);
569 
571  long onCmdOverlappingHelp(FXObject*, FXSelector, void*);
573 
574  protected:
577 
579  void buildFXElements();
580 
581  private:
584 
586  FXButton* myPreviousElement;
587 
590 
592  FXButton* myNextElement;
593 
596 
598  FXButton* myHelpButton;
599 
602 
604  std::vector<GNEAttributeCarrier*> myOverlappedACs;
605 
607  size_t myItemIndex;
608 
611  };
612 };
613 
614 
615 #endif
616 
617 /****************************************************************************/
GNEFrameModuls::OverlappedInspection::getNumberOfOverlappedACs
int getNumberOfOverlappedACs() const
get number of overlapped ACSs
Definition: GNEFrameModuls.cpp:1873
GNEFrameModuls::EdgePathCreator::myFinishCreationButton
FXButton * myFinishCreationButton
button for finish route creation
Definition: GNEFrameModuls.h:256
GNEFrameModuls::SelectorParent::myParentTag
SumoXMLTag myParentTag
current parent additional tag
Definition: GNEFrameModuls.h:507
GNEFrameModuls::AttributeCarrierHierarchy::myClickedDemandElement
GNEDemandElement * myClickedDemandElement
demand element (casted from myClickedAC)
Definition: GNEFrameModuls.h:377
GNEFrameModuls::SelectorParent::showSelectorParentModul
bool showSelectorParentModul(SumoXMLTag additionalTypeParent)
Show list of SelectorParent Modul.
Definition: GNEFrameModuls.cpp:1764
GNEFrameModuls::AttributeCarrierHierarchy::hideAttributeCarrierHierarchy
void hideAttributeCarrierHierarchy()
hide AttributeCarrierHierarchy
Definition: GNEFrameModuls.cpp:877
SUMOVehicleClass
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
Definition: SUMOVehicleClass.h:133
GNEFrameModuls::AttributeCarrierHierarchy::myClickedAC
GNEAttributeCarrier * myClickedAC
pointer to current clicked Attribute Carrier
Definition: GNEFrameModuls.h:353
GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierHierarchy
void showAttributeCarrierHierarchy(GNEAttributeCarrier *AC)
show AttributeCarrierHierarchy
Definition: GNEFrameModuls.cpp:866
GNEFrameModuls::DrawingShape::DrawingShape
DrawingShape(GNEFrame *frameParent)
FOX-declaration.
Definition: GNEFrameModuls.cpp:1567
GNEDemandElement
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEDemandElement.h:55
GNEAdditional
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:48
GNEFrameModuls::EdgePathCreator::~EdgePathCreator
~EdgePathCreator()
destructor
Definition: GNEFrameModuls.cpp:540
GNEFrameModuls::EdgePathCreator::finishEdgePathCreation
void finishEdgePathCreation()
finish edge path creation
Definition: GNEFrameModuls.cpp:759
GNEFrameModuls::AttributeCarrierHierarchy::addListItem
FXTreeItem * addListItem(GNEAttributeCarrier *AC, FXTreeItem *itemParent=nullptr, std::string prefix="", std::string sufix="")
add item into list
Definition: GNEFrameModuls.cpp:1541
GNEFrameModuls::TagSelector::myFrameParent
GNEFrame * myFrameParent
pointer to Frame Parent
Definition: GNEFrameModuls.h:87
GNEAttributeCarrier::TagProperties
struct with the attribute Properties
Definition: GNEAttributeCarrier.h:317
GNEFrameModuls::DrawingShape::showDrawingShape
void showDrawingShape()
show Drawing mode
Definition: GNEFrameModuls.cpp:1597
GNEFrameModuls::EdgePathCreator::setVClass
void setVClass(SUMOVehicleClass vClass)
set SUMOVehicleClass
Definition: GNEFrameModuls.cpp:581
GNEFrameModuls::TagSelector::~TagSelector
~TagSelector()
destructor
Definition: GNEFrameModuls.cpp:187
GNEFrameModuls::DrawingShape::setDeleteLastCreatedPoint
void setDeleteLastCreatedPoint(bool value)
enable or disable delete last created point
Definition: GNEFrameModuls.cpp:1684
GNEFrameModuls::AttributeCarrierHierarchy::onCmdShowChildMenu
long onCmdShowChildMenu(FXObject *, FXSelector, void *data)
Definition: GNEFrameModuls.cpp:908
GNEFrameModuls::EdgePathCreator::onCmdAbortRouteCreation
long onCmdAbortRouteCreation(FXObject *, FXSelector, void *)
Definition: GNEFrameModuls.cpp:775
GNEFrameModuls::DrawingShape::stopDrawing
void stopDrawing()
stop drawing and check if shape can be created
Definition: GNEFrameModuls.cpp:1626
GNEFrameModuls::OverlappedInspection
Definition: GNEFrameModuls.h:520
GNEFrameModuls::DemandElementSelector::setDemandElement
void setDemandElement(GNEDemandElement *demandElement)
set current demand element
Definition: GNEFrameModuls.cpp:372
GNEFrameModuls::DemandElementSelector::isDemandElementSelectorShown
bool isDemandElementSelectorShown() const
check if demand element selector is shown
Definition: GNEFrameModuls.cpp:411
GNEFrameModuls::EdgePathCreator::myClickedEdges
std::vector< GNEEdge * > myClickedEdges
current clicked edges
Definition: GNEFrameModuls.h:268
GNEFrameModuls::EdgePathCreator::showEdgePathCreator
void showEdgePathCreator()
show EdgePathCreator
Definition: GNEFrameModuls.cpp:555
GNEFrameModuls::SelectorParent::setIDSelected
void setIDSelected(const std::string &id)
select manually a element of the list
Definition: GNEFrameModuls.cpp:1747
GNEFrameModuls::AttributeCarrierHierarchy::onCmdInspectItem
long onCmdInspectItem(FXObject *, FXSelector, void *)
called when user click over option "inspect" of child menu
Definition: GNEFrameModuls.cpp:948
GNEFrameModuls::DrawingShape::addNewPoint
void addNewPoint(const Position &P)
add new point to temporal shape
Definition: GNEFrameModuls.cpp:1656
GNEFrameModuls::DrawingShape::myStopDrawingButton
FXButton * myStopDrawingButton
button for stop drawing
Definition: GNEFrameModuls.h:466
GNEFrameModuls::DrawingShape::myDeleteLastCreatedPoint
bool myDeleteLastCreatedPoint
flag to enable/disable delete point mode
Definition: GNEFrameModuls.h:457
GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren
void showAttributeCarrierChildren(GNEAttributeCarrier *AC, FXTreeItem *itemParent)
show child of current attributeCarrier
Definition: GNEFrameModuls.cpp:1377
GNEFrameModuls::DemandElementSelector::refreshDemandElementSelector
void refreshDemandElementSelector()
refresh demand element selector
Definition: GNEFrameModuls.cpp:417
GNEFrameModuls::DrawingShape::myInformationLabel
FXLabel * myInformationLabel
Label with information.
Definition: GNEFrameModuls.h:472
GNEFrameModuls::DemandElementSelector::showDemandElementSelector
void showDemandElementSelector()
show demand element selector
Definition: GNEFrameModuls.cpp:386
GNEFrameModuls::EdgePathCreator::addBusStop
bool addBusStop(GNEAdditional *busStop)
add busStop to route
Definition: GNEFrameModuls.cpp:669
GNEFrameModuls::EdgePathCreator::GNE_EDGEPATHCREATOR_FROM_TO_VIA
Definition: GNEFrameModuls.h:183
GNEFrameModuls::DrawingShape::myTemporalShapeShape
PositionVector myTemporalShapeShape
current drawed shape
Definition: GNEFrameModuls.h:460
GNEFrame
Definition: GNEFrame.h:34
GNEFrameModuls::OverlappedInspection::onCmdOverlappingHelp
long onCmdOverlappingHelp(FXObject *, FXSelector, void *)
Called when user press the help button.
Definition: GNEFrameModuls.cpp:2001
GNEFrameModuls::SelectorParent::myFrameParent
GNEFrame * myFrameParent
pointer to Frame Parent
Definition: GNEFrameModuls.h:504
GNEFrameModuls::OverlappedInspection::myItemIndex
size_t myItemIndex
current index item
Definition: GNEFrameModuls.h:607
GNEFrameModuls::DemandElementSelector::~DemandElementSelector
~DemandElementSelector()
destructor
Definition: GNEFrameModuls.cpp:357
GNEFrameModuls::AttributeCarrierHierarchy::myClickedJunction
GNEJunction * myClickedJunction
junction (casted from myClickedAC)
Definition: GNEFrameModuls.h:356
GNEFrameModuls::DrawingShape::hideDrawingShape
void hideDrawingShape()
hide Drawing mode
Definition: GNEFrameModuls.cpp:1605
GNEFrameModuls::OverlappedInspection::onCmdListItemSelected
long onCmdListItemSelected(FXObject *, FXSelector, void *)
called when a list item is selected
Definition: GNEFrameModuls.cpp:1983
GNEFrameModuls::AttributeCarrierHierarchy::onCmdMoveItemUp
long onCmdMoveItemUp(FXObject *, FXSelector, void *)
called when user click over option "Move up" of child menu
Definition: GNEFrameModuls.cpp:1005
PositionVector
A list of positions.
Definition: PositionVector.h:45
GNEFrameModuls::OverlappedInspection::OverlappedInspection
OverlappedInspection()
FOX needs this.
Definition: GNEFrameModuls.cpp:2019
GNEFrameModuls::DrawingShape::removeLastPoint
void removeLastPoint()
remove last added point
Definition: GNEFrameModuls.cpp:1666
GNEFrameModuls::DrawingShape::getDeleteLastCreatedPoint
bool getDeleteLastCreatedPoint()
get flag delete last created point
Definition: GNEFrameModuls.cpp:1690
GNEFrameModuls::TagSelector::setCurrentTagType
void setCurrentTagType(GNEAttributeCarrier::TagType tagType)
set current type manually
Definition: GNEFrameModuls.cpp:209
SumoXMLTag
SumoXMLTag
Numbers representing SUMO-XML - element names.
Definition: SUMOXMLDefinitions.h:41
GNEFrameModuls::EdgePathCreator::GNE_EDGEPATHCREATOR_TO_BUSSTOP
Definition: GNEFrameModuls.h:185
GNEFrameModuls::EdgePathCreator::addEdge
bool addEdge(GNEEdge *edge)
add edge to route
Definition: GNEFrameModuls.cpp:605
GNEFrameModuls::OverlappedInspection::myOverlappedACs
std::vector< GNEAttributeCarrier * > myOverlappedACs
objects under cursor
Definition: GNEFrameModuls.h:604
GNEFrameModuls::DrawingShape::myStartDrawingButton
FXButton * myStartDrawingButton
button for start drawing
Definition: GNEFrameModuls.h:463
GNEFrameModuls::EdgePathCreator
Definition: GNEFrameModuls.h:174
GNEEdge
A road/street connecting two junctions (netedit-version)
Definition: GNEEdge.h:51
GNEFrameModuls::EdgePathCreator::GNE_EDGEPATHCREATOR_CONSECUTIVE
Definition: GNEFrameModuls.h:182
GNEFrameModuls::AttributeCarrierHierarchy::myTreeItemToACMap
std::map< FXTreeItem *, GNEAttributeCarrier * > myTreeItemToACMap
map used to save the Tree items with their AC
Definition: GNEFrameModuls.h:383
GNEFrameModuls::AttributeCarrierHierarchy::myTreelist
FXTreeList * myTreelist
tree list to show the children of the element to erase
Definition: GNEFrameModuls.h:380
GNEFrameModuls::AttributeCarrierHierarchy::AttributeCarrierHierarchy
AttributeCarrierHierarchy(GNEFrame *frameParent)
FOX-declaration.
Definition: GNEFrameModuls.cpp:843
GNEFrameModuls::OverlappedInspection::overlappedInspectionShown
bool overlappedInspectionShown() const
check if overlappedInspection modul is shown
Definition: GNEFrameModuls.cpp:1867
GNEFrameModuls::AttributeCarrierHierarchy::onCmdCenterItem
long onCmdCenterItem(FXObject *, FXSelector, void *)
called when user click over option "center" of child Menu
Definition: GNEFrameModuls.cpp:922
GNEFrameModuls::OverlappedInspection::nextElement
bool nextElement(const Position &clickedPosition)
try to go to next element if clicked position is near to saved position
Definition: GNEFrameModuls.cpp:1885
GNEFrameModuls::EdgePathCreator::EdgePathCreatorModes
EdgePathCreatorModes
FOX-declaration.
Definition: GNEFrameModuls.h:181
GNEFrameModuls::TagSelector::myTagTypesMatchBox
FXComboBox * myTagTypesMatchBox
comboBox with tag type
Definition: GNEFrameModuls.h:90
GNEFrameModuls::TagSelector::myListOfTags
std::vector< SumoXMLTag > myListOfTags
list of tags that will be shown in Match Box
Definition: GNEFrameModuls.h:102
GNEFrameModuls::AttributeCarrierHierarchy::createPopUpMenu
void createPopUpMenu(int X, int Y, GNEAttributeCarrier *clickedAC)
Definition: GNEFrameModuls.cpp:1037
GNECrossing
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routete...
Definition: GNECrossing.h:44
GNEFrameModuls::SelectorParent
Definition: GNEFrameModuls.h:479
GNEShape
Definition: GNEShape.h:34
GNEFrameModuls::EdgePathCreator::EdgePathCreator
EdgePathCreator(GNEFrame *frameParent, int edgePathCreatorModes)
default constructor
Definition: GNEFrameModuls.cpp:519
GNEFrameModuls::AttributeCarrierHierarchy::~AttributeCarrierHierarchy
~AttributeCarrierHierarchy()
destructor
Definition: GNEFrameModuls.cpp:862
GNEFrameModuls::EdgePathCreator::hideEdgePathCreator
void hideEdgePathCreator()
show EdgePathCreator
Definition: GNEFrameModuls.cpp:566
GNEViewNetHelper::ObjectsUnderCursor
class used to group all variables related with objects under cursor after a click over view
Definition: GNEViewNetHelper.h:148
GNEFrameModuls::DemandElementSelector
Definition: GNEFrameModuls.h:112
GNEFrameModuls::EdgePathCreator::edgePathCreatorName
void edgePathCreatorName(const std::string &name)
update EdgePathCreator name
Definition: GNEFrameModuls.cpp:544
GNEFrameModuls::TagSelector
Definition: GNEFrameModuls.h:44
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:99
GNEFrameModuls::DemandElementSelector::myCurrentDemandElement
GNEDemandElement * myCurrentDemandElement
current demand element
Definition: GNEFrameModuls.h:164
GNEFrameModuls::AttributeCarrierHierarchy::myFrameParent
GNEFrame * myFrameParent
Frame Parent.
Definition: GNEFrameModuls.h:347
GNEFrameModuls::OverlappedInspection::myHelpButton
FXButton * myHelpButton
button for help
Definition: GNEFrameModuls.h:598
GNEFrameModuls::OverlappedInspection::buildFXElements
void buildFXElements()
build Fox Toolkit elemements
Definition: GNEFrameModuls.cpp:2025
GNEFrameModuls::DemandElementSelector::getCurrentDemandElement
GNEDemandElement * getCurrentDemandElement() const
get current demand element
Definition: GNEFrameModuls.cpp:361
GNEFrameModuls::AttributeCarrierHierarchy::onCmdDeleteItem
long onCmdDeleteItem(FXObject *, FXSelector, void *)
called when user click over option "delete" of child menu
Definition: GNEFrameModuls.cpp:957
GNEFrameModuls::TagSelector::TagSelector
TagSelector(GNEFrame *frameParent, GNEAttributeCarrier::TagType type, bool onlyDrawables=true)
FOX-declaration.
Definition: GNEFrameModuls.cpp:106
GNEFrameModuls::EdgePathCreator::setEdgePathCreatorModes
void setEdgePathCreatorModes(int edgePathCreatorModes)
set EdgePathCreatorModes
Definition: GNEFrameModuls.cpp:587
GNEFrameModuls::DrawingShape
Definition: GNEFrameModuls.h:393
FOX_CONSTRUCTOR
#define FOX_CONSTRUCTOR(classname)
Definition: config.h:13
GNEFrameModuls::DrawingShape::startDrawing
void startDrawing()
start drawing
Definition: GNEFrameModuls.cpp:1614
GNEFrameModuls::DemandElementSelector::getAllowedTags
const std::vector< SumoXMLTag > & getAllowedTags() const
Definition: GNEFrameModuls.cpp:367
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:38
GNEFrameModuls::OverlappedInspection::myFilteredTag
const SumoXMLTag myFilteredTag
filtered tag
Definition: GNEFrameModuls.h:601
GNEFrameModuls::DrawingShape::onCmdStartDrawing
long onCmdStartDrawing(FXObject *, FXSelector, void *)
Definition: GNEFrameModuls.cpp:1696
GNEFrameModuls::AttributeCarrierHierarchy::myClickedCrossing
GNECrossing * myClickedCrossing
crossing (casted from myClickedAC)
Definition: GNEFrameModuls.h:365
GNEFrameModuls::AttributeCarrierHierarchy
Definition: GNEFrameModuls.h:287
GNEFrameModuls::OverlappedInspection::showOverlappedInspection
void showOverlappedInspection(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const Position &clickedPosition)
show template editor
Definition: GNEFrameModuls.cpp:1826
GNEFrameModuls::OverlappedInspection::myPreviousElement
FXButton * myPreviousElement
Previous element button.
Definition: GNEFrameModuls.h:586
GNEFrameModuls::TagSelector::getCurrentTagProperties
const GNEAttributeCarrier::TagProperties & getCurrentTagProperties() const
get current type tag
Definition: GNEFrameModuls.cpp:203
GNEFrameModuls::EdgePathCreator::drawTemporalRoute
void drawTemporalRoute() const
draw temporal route
Definition: GNEFrameModuls.cpp:699
GNEFrameModuls::EdgePathCreator::restoreEdgeColor
void restoreEdgeColor(const GNEEdge *edge)
restore colors of given edge
Definition: GNEFrameModuls.cpp:832
GNEFrameModuls::AttributeCarrierHierarchy::onCmdMoveItemDown
long onCmdMoveItemDown(FXObject *, FXSelector, void *)
called when user click over option "Move down" of child menu
Definition: GNEFrameModuls.cpp:1021
GNEFrameModuls::EdgePathCreator::myFrameParent
GNEFrame * myFrameParent
pointer to GNEFrame Parent
Definition: GNEFrameModuls.h:253
GNEFrameModuls::DrawingShape::myFrameParent
GNEFrame * myFrameParent
pointer to frame parent
Definition: GNEFrameModuls.h:454
GNEFrameModuls::SelectorParent::getIdSelected
std::string getIdSelected() const
get currently parent additional selected
Definition: GNEFrameModuls.cpp:1736
GNEFrameModuls::AttributeCarrierHierarchy::myClickedShape
GNEShape * myClickedShape
shape (casted from myClickedAC)
Definition: GNEFrameModuls.h:371
GNEFrameModuls::DemandElementSelector::onCmdSelectDemandElement
long onCmdSelectDemandElement(FXObject *, FXSelector, void *)
Definition: GNEFrameModuls.cpp:487
GNEFrameModuls::EdgePathCreator::myRemoveLastInsertedEdge
FXButton * myRemoveLastInsertedEdge
button for removing last inserted edge
Definition: GNEFrameModuls.h:262
GNEFrameModuls::OverlappedInspection::onCmdPreviousElement
long onCmdPreviousElement(FXObject *, FXSelector, void *)
Inspect previous element (from top to bot)
Definition: GNEFrameModuls.cpp:1921
GNEFrameModuls::OverlappedInspection::myOverlappedElementList
FXList * myOverlappedElementList
list of overlapped elements
Definition: GNEFrameModuls.h:595
GNEFrameModuls::DrawingShape::onCmdAbortDrawing
long onCmdAbortDrawing(FXObject *, FXSelector, void *)
Called when the user press abort drawing button.
Definition: GNEFrameModuls.cpp:1710
GNEFrameModuls::EdgePathCreator::clearEdges
void clearEdges()
clear edges (and restore colors)
Definition: GNEFrameModuls.cpp:680
GNEFrameModuls::TagSelector::hideTagSelector
void hideTagSelector()
hide item selector
Definition: GNEFrameModuls.cpp:197
GNEFrameModuls::DrawingShape::~DrawingShape
~DrawingShape()
destructor
Definition: GNEFrameModuls.cpp:1594
GNEFrameModuls::SelectorParent::SelectorParent
SelectorParent(GNEFrame *frameParent)
constructor
Definition: GNEFrameModuls.cpp:1719
GNEFrameModuls::EdgePathCreator::GNE_EDGEPATHCREATOR_FROM_BUSSTOP
Definition: GNEFrameModuls.h:184
GNEAttributeCarrier::TagType
TagType
Definition: GNEAttributeCarrier.h:273
GNEFrameModuls::TagSelector::setCurrentTag
void setCurrentTag(SumoXMLTag newTag)
set current type manually
Definition: GNEFrameModuls.cpp:234
GNEFrameModuls::TagSelector::onCmdSelectTag
long onCmdSelectTag(FXObject *, FXSelector, void *)
Called when the user select an elementin ComboBox.
Definition: GNEFrameModuls.cpp:295
GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents
FXTreeItem * showAttributeCarrierParents()
show child of current attributeCarrier
Definition: GNEFrameModuls.cpp:1125
GNEFrameModuls::EdgePathCreator::myVClass
SUMOVehicleClass myVClass
VClass used for this trip.
Definition: GNEFrameModuls.h:265
GNEFrameModuls::AttributeCarrierHierarchy::myClickedEdge
GNEEdge * myClickedEdge
edge (casted from myClickedAC)
Definition: GNEFrameModuls.h:359
GNEFrameModuls::DrawingShape::abortDrawing
void abortDrawing()
abort drawing
Definition: GNEFrameModuls.cpp:1644
GNEFrameModuls::TagSelector::refreshTagProperties
void refreshTagProperties()
due myCurrentTagProperties is a Reference, we need to refresh it when frameParent is show
Definition: GNEFrameModuls.cpp:251
GNEFrameModuls::OverlappedInspection::myNextElement
FXButton * myNextElement
Next element button.
Definition: GNEFrameModuls.h:592
GNEFrameModuls::OverlappedInspection::onCmdNextElement
long onCmdNextElement(FXObject *, FXSelector, void *)
Inspect next Element (from top to bot)
Definition: GNEFrameModuls.cpp:1947
GNEFrameModuls::TagSelector::myCurrentTagProperties
GNEAttributeCarrier::TagProperties myCurrentTagProperties
current tag properties
Definition: GNEFrameModuls.h:96
GNEFrameModuls::TagSelector::onCmdSelectTagType
long onCmdSelectTagType(FXObject *, FXSelector, void *)
Definition: GNEFrameModuls.cpp:257
GNEFrameModuls::EdgePathCreator::mySelectedBusStop
GNEAdditional * mySelectedBusStop
pointer to selected busStop
Definition: GNEFrameModuls.h:271
GNEFrameModuls::OverlappedInspection::hideOverlappedInspection
void hideOverlappedInspection()
hide template editor
Definition: GNEFrameModuls.cpp:1860
GNEFrameModuls::OverlappedInspection::checkSavedPosition
bool checkSavedPosition(const Position &clickedPosition) const
check if given position is near to saved position
Definition: GNEFrameModuls.cpp:1879
GNEFrameModuls::EdgePathCreator::myTemporalRoute
std::vector< GNEEdge * > myTemporalRoute
vector with temporal route edges
Definition: GNEFrameModuls.h:274
GNEFrameModuls
Definition: GNEFrameModuls.h:37
GNEFrameModuls::TagSelector::myTagsMatchBox
FXComboBox * myTagsMatchBox
comboBox with the list of tags
Definition: GNEFrameModuls.h:93
GNEConnection
Definition: GNEConnection.h:38
GNEFrameModuls::OverlappedInspection::myFrameParent
GNEFrame * myFrameParent
current frame parent
Definition: GNEFrameModuls.h:583
GNEAttributeCarrier.h
GNEFrameModuls::DrawingShape::isDrawing
bool isDrawing() const
return true if currently a shape is drawed
Definition: GNEFrameModuls.cpp:1678
GNEFrameModuls::AttributeCarrierHierarchy::myAC
GNEAttributeCarrier * myAC
Attribute carrier.
Definition: GNEFrameModuls.h:350
GNEFrameModuls::AttributeCarrierHierarchy::myClickedAdditional
GNEAdditional * myClickedAdditional
additional (casted from myClickedAC)
Definition: GNEFrameModuls.h:374
config.h
GNEFrameModuls::DemandElementSelector::hideDemandElementSelector
void hideDemandElementSelector()
hide demand element selector
Definition: GNEFrameModuls.cpp:405
GNEFrameModuls::EdgePathCreator::abortEdgePathCreation
void abortEdgePathCreation()
abort edge path creation
Definition: GNEFrameModuls.cpp:751
GNEFrameModuls::DrawingShape::onCmdStopDrawing
long onCmdStopDrawing(FXObject *, FXSelector, void *)
Called when the user press stop drawing button.
Definition: GNEFrameModuls.cpp:1703
GNEFrameModuls::DemandElementSelector::DemandElementSelector
DemandElementSelector(GNEFrame *frameParent, SumoXMLTag demandElementTag)
FOX-declaration.
Definition: GNEFrameModuls.cpp:325
GNEViewNetHelper.h
GNEFrameModuls::EdgePathCreator::myAbortCreationButton
FXButton * myAbortCreationButton
button for abort route creation
Definition: GNEFrameModuls.h:259
GNEFrameModuls::AttributeCarrierHierarchy::myClickedLane
GNELane * myClickedLane
lane (casted from myClickedAC)
Definition: GNEFrameModuls.h:362
GNEFrameModuls::AttributeCarrierHierarchy::myClickedConnection
GNEConnection * myClickedConnection
junction (casted from myClickedAC)
Definition: GNEFrameModuls.h:368
GNEFrameModuls::SelectorParent::~SelectorParent
~SelectorParent()
destructor
Definition: GNEFrameModuls.cpp:1732
GNEFrameModuls::OverlappedInspection::previousElement
bool previousElement(const Position &clickedPosition)
try to go to previous element if clicked position is near to saved position
Definition: GNEFrameModuls.cpp:1903
GNEFrameModuls::TagSelector::myInvalidTagProperty
GNEAttributeCarrier::TagProperties myInvalidTagProperty
dummy tag properties used if user select an invalid tag
Definition: GNEFrameModuls.h:105
GNEFrameModuls::EdgePathCreator::getClickedEdges
std::vector< GNEEdge * > getClickedEdges() const
get current clicked edges
Definition: GNEFrameModuls.cpp:593
GNEFrameModuls::AttributeCarrierHierarchy::refreshAttributeCarrierHierarchy
void refreshAttributeCarrierHierarchy()
refresh AttributeCarrierHierarchy
Definition: GNEFrameModuls.cpp:895
GNEFrameModuls::TagSelector::showTagSelector
void showTagSelector()
show item selector
Definition: GNEFrameModuls.cpp:191
GNEFrameModuls::SelectorParent::myParentsList
FXList * myParentsList
List of parents.
Definition: GNEFrameModuls.h:513
GNEFrameModuls::SelectorParent::myParentsLabel
FXLabel * myParentsLabel
Label with parent name.
Definition: GNEFrameModuls.h:510
GNEJunction
Definition: GNEJunction.h:47
GNEFrameModuls::DemandElementSelector::myDemandElementTags
std::vector< SumoXMLTag > myDemandElementTags
demand element tags
Definition: GNEFrameModuls.h:167
GNEFrameModuls::EdgePathCreator::onCmdFinishRouteCreation
long onCmdFinishRouteCreation(FXObject *, FXSelector, void *)
Called when the user click over button "Finish route creation".
Definition: GNEFrameModuls.cpp:787
GNEFrameModuls::AttributeCarrierHierarchy::myTreeItemsConnections
std::set< FXTreeItem * > myTreeItemsConnections
set used to save tree items without AC assigned, the Incoming/Outcoming connections
Definition: GNEFrameModuls.h:386
GNEFrameModuls::OverlappedInspection::mySavedClickedPosition
Position mySavedClickedPosition
saved clicked position
Definition: GNEFrameModuls.h:610
GNELane
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:45
GNEFrameModuls::EdgePathCreator::myEdgePathCreatorModes
int myEdgePathCreatorModes
current edge path creator modes
Definition: GNEFrameModuls.h:277
GNEAttributeCarrier
Definition: GNEAttributeCarrier.h:54
GNEFrameModuls::EdgePathCreator::getClickedBusStop
GNEAdditional * getClickedBusStop() const
get current clicked edges
Definition: GNEFrameModuls.cpp:599
GNEFrameModuls::EdgePathCreator::onCmdRemoveLastInsertedElement
long onCmdRemoveLastInsertedElement(FXObject *, FXSelector, void *)
Called when the user click over button "Remove las inserted edge/busStop".
Definition: GNEFrameModuls.cpp:811
GNEFrameModuls::SelectorParent::refreshSelectorParentModul
void refreshSelectorParentModul()
Refresh list of Additional Parents Modul.
Definition: GNEFrameModuls.cpp:1788
GNEFrameModuls::OverlappedInspection::myCurrentIndexButton
FXButton * myCurrentIndexButton
Button for current index.
Definition: GNEFrameModuls.h:589
GNEFrameModuls::SelectorParent::hideSelectorParentModul
void hideSelectorParentModul()
hide SelectorParent Modul
Definition: GNEFrameModuls.cpp:1781
GNEFrameModuls::DrawingShape::getTemporalShape
const PositionVector & getTemporalShape() const
get Temporal shape
Definition: GNEFrameModuls.cpp:1672
GNEFrameModuls::OverlappedInspection::~OverlappedInspection
~OverlappedInspection()
destructor
Definition: GNEFrameModuls.cpp:1822
GNEFrameModuls::EdgePathCreator::removeLastInsertedElement
void removeLastInsertedElement()
remove last added element (either a BusStop or an edge)
Definition: GNEFrameModuls.cpp:767
GNEFrameModuls::DrawingShape::myAbortDrawingButton
FXButton * myAbortDrawingButton
button for abort drawing
Definition: GNEFrameModuls.h:469
GNEFrameModuls::DemandElementSelector::myFrameParent
GNEFrame * myFrameParent
pointer to frame Parent
Definition: GNEFrameModuls.h:158
GNEFrameModuls::DemandElementSelector::myDemandElementsMatchBox
FXComboBox * myDemandElementsMatchBox
comboBox with the list of elements type
Definition: GNEFrameModuls.h:161
GNEFrameModuls::OverlappedInspection::onCmdShowList
long onCmdShowList(FXObject *, FXSelector, void *)
show list of overlapped elements
Definition: GNEFrameModuls.cpp:1969