Eclipse SUMO - Simulation of Urban MObility
GNEPersonFrame.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 // The Widget for add person elements
16 /****************************************************************************/
17 #ifndef GNEPersonFrame_h
18 #define GNEPersonFrame_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include "GNEFrame.h"
25 
26 
27 // ===========================================================================
28 // class definitions
29 // ===========================================================================
33 class GNEPersonFrame : public GNEFrame {
34 
35 public:
36  // ===========================================================================
37  // class HelpCreation
38  // ===========================================================================
39 
40  class HelpCreation : protected FXGroupBox {
41 
42  public:
44  HelpCreation(GNEPersonFrame* vehicleFrameParent);
45 
47  ~HelpCreation();
48 
50  void showHelpCreation();
51 
53  void hideHelpCreation();
54 
56  void updateHelpCreation();
57 
58  private:
61 
64  };
65 
70  GNEPersonFrame(FXHorizontalFrame* horizontalFrameParent, GNEViewNet* viewNet);
71 
74 
76  void show();
77 
82  bool addPerson(const GNEViewNetHelper::ObjectsUnderCursor& objectsUnderCursor);
83 
86 
87 protected:
89  void tagSelected();
90 
92  void demandElementSelected();
93 
95  void edgePathCreated();
96 
97 private:
100 
103 
106 
109 
112 
115 
118 
121 
124 
126  bool buildPersonOverStop(GNELane* lane, GNEAdditional* busStop);
127 
130 };
131 
132 
133 #endif
134 
135 /****************************************************************************/
void show()
show Frame
GNEFrameAttributesModuls::NeteditAttributes * myNeteditAttributes
Netedit parameter.
HelpCreation * myHelpCreation
Help creation.
GNEFrameModuls::EdgePathCreator * getEdgePathCreator() const
get EdgePathCreator modul
GNEFrameAttributesModuls::AttributesCreator * myPersonAttributes
internal vehicle attributes
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:46
GNEPersonFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
GNEDemandElement * buildPerson()
build person and return it (note: function includes a call to p_begin(...), but NOT a call to p_end(...
GNEFrameModuls::TagSelector * myPersonTagSelector
person tag selector (used to select diffent kind of persons)
class used to group all variables related with objects under cursor after a click over view ...
HelpCreation(GNEPersonFrame *vehicleFrameParent)
constructor
GNEFrameModuls::EdgePathCreator * myEdgePathCreator
edge path creator (used for Walks, rides and trips)
GNEFrameModuls::TagSelector * myPersonPlanTagSelector
person plan selector (used to select diffent kind of person plan)
void showHelpCreation()
show HelpCreation
void tagSelected()
Tag selected in TagSelector.
GNEFrameAttributesModuls::AttributesCreator * myPersonPlanAttributes
internal person plan attributes
void hideHelpCreation()
hide HelpCreation
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:47
bool addPerson(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
add vehicle element
void edgePathCreated()
finish edge path creation
void updateHelpCreation()
update HelpCreation
GNEFrameModuls::DemandElementSelector * myPTypeSelector
Person Type selectors.
void demandElementSelected()
selected demand element in DemandElementSelector
GNEPersonFrame * myPersonFrameParent
pointer to Person Frame Parent
bool buildPersonOverStop(GNELane *lane, GNEAdditional *busStop)
build person over stop
bool buildPersonOverRoute(GNEDemandElement *route)
build person over route
FXLabel * myInformationLabel
Label with creation information.
~GNEPersonFrame()
Destructor.
An Element which don't belongs to GNENet but has influency in the simulation.