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 /****************************************************************************/
14 // The Widget for add person elements
15 /****************************************************************************/
16 #ifndef GNEPersonFrame_h
17 #define GNEPersonFrame_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include "GNEFrame.h"
24 
25 
26 // ===========================================================================
27 // class definitions
28 // ===========================================================================
32 class GNEPersonFrame : public GNEFrame {
33 
34 public:
35  // ===========================================================================
36  // class HelpCreation
37  // ===========================================================================
38 
39  class HelpCreation : protected FXGroupBox {
40 
41  public:
43  HelpCreation(GNEPersonFrame* vehicleFrameParent);
44 
46  ~HelpCreation();
47 
49  void showHelpCreation();
50 
52  void hideHelpCreation();
53 
55  void updateHelpCreation();
56 
57  private:
60 
63  };
64 
69  GNEPersonFrame(FXHorizontalFrame* horizontalFrameParent, GNEViewNet* viewNet);
70 
73 
75  void show();
76 
81  bool addPerson(const GNEViewNetHelper::ObjectsUnderCursor& objectsUnderCursor);
82 
85 
86 protected:
88  void tagSelected();
89 
91  void demandElementSelected();
92 
94  void edgePathCreated();
95 
96 private:
99 
102 
105 
108 
111 
114 
117 
120 
123 
125  bool buildPersonOverStop(GNELane* lane, GNEAdditional* busStop);
126 
129 };
130 
131 
132 #endif
133 
134 /****************************************************************************/
GNEPersonFrame::GNEPersonFrame
GNEPersonFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
Definition: GNEPersonFrame.cpp:135
GNEPersonFrame::show
void show()
show Frame
Definition: GNEPersonFrame.cpp:174
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
GNEPersonFrame::edgePathCreated
void edgePathCreated()
finish edge path creation
Definition: GNEPersonFrame.cpp:406
GNEFrameAttributesModuls::NeteditAttributes
Definition: GNEFrameAttributesModuls.h:714
GNEPersonFrame::myPersonAttributes
GNEFrameAttributesModuls::AttributesCreator * myPersonAttributes
internal vehicle attributes
Definition: GNEPersonFrame.h:107
GNEFrameAttributesModuls::AttributesCreator
Definition: GNEFrameAttributesModuls.h:148
GNEPersonFrame::myEdgePathCreator
GNEFrameModuls::EdgePathCreator * myEdgePathCreator
edge path creator (used for Walks, rides and trips)
Definition: GNEPersonFrame.h:116
GNEFrame
Definition: GNEFrame.h:34
GNEPersonFrame::buildPersonOverStop
bool buildPersonOverStop(GNELane *lane, GNEAdditional *busStop)
build person over stop
Definition: GNEPersonFrame.cpp:530
GNEPersonFrame::myPersonPlanTagSelector
GNEFrameModuls::TagSelector * myPersonPlanTagSelector
person plan selector (used to select diffent kind of person plan)
Definition: GNEPersonFrame.h:104
GNEViewNet
Definition: GNEViewNet.h:42
GNEPersonFrame::myPTypeSelector
GNEFrameModuls::DemandElementSelector * myPTypeSelector
Person Type selectors.
Definition: GNEPersonFrame.h:101
GNEPersonFrame::myPersonPlanAttributes
GNEFrameAttributesModuls::AttributesCreator * myPersonPlanAttributes
internal person plan attributes
Definition: GNEPersonFrame.h:110
GNEPersonFrame::myHelpCreation
HelpCreation * myHelpCreation
Help creation.
Definition: GNEPersonFrame.h:119
GNEFrameModuls::EdgePathCreator
Definition: GNEFrameModuls.h:174
GNEPersonFrame::~GNEPersonFrame
~GNEPersonFrame()
Destructor.
Definition: GNEPersonFrame.cpp:170
GNEPersonFrame::HelpCreation::myPersonFrameParent
GNEPersonFrame * myPersonFrameParent
pointer to Person Frame Parent
Definition: GNEPersonFrame.h:59
GNEPersonFrame
Definition: GNEPersonFrame.h:32
GNEPersonFrame::tagSelected
void tagSelected()
Tag selected in TagSelector.
Definition: GNEPersonFrame.cpp:234
GNEPersonFrame::HelpCreation::showHelpCreation
void showHelpCreation()
show HelpCreation
Definition: GNEPersonFrame.cpp:54
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::TagSelector
Definition: GNEFrameModuls.h:44
GNEPersonFrame::buildPerson
GNEDemandElement * buildPerson()
build person and return it (note: function includes a call to p_begin(...), but NOT a call to p_end(....
Definition: GNEPersonFrame.cpp:557
GNEPersonFrame::HelpCreation::HelpCreation
HelpCreation(GNEPersonFrame *vehicleFrameParent)
constructor
Definition: GNEPersonFrame.cpp:43
GNEPersonFrame::HelpCreation::~HelpCreation
~HelpCreation()
destructor
Definition: GNEPersonFrame.cpp:50
GNEPersonFrame::getEdgePathCreator
GNEFrameModuls::EdgePathCreator * getEdgePathCreator() const
get EdgePathCreator modul
Definition: GNEPersonFrame.cpp:225
GNEPersonFrame::buildPersonOverRoute
bool buildPersonOverRoute(GNEDemandElement *route)
build person over route
Definition: GNEPersonFrame.cpp:507
GNEPersonFrame::myNeteditAttributes
GNEFrameAttributesModuls::NeteditAttributes * myNeteditAttributes
Netedit parameter.
Definition: GNEPersonFrame.h:113
GNEPersonFrame::HelpCreation
Definition: GNEPersonFrame.h:39
GNEPersonFrame::HelpCreation::updateHelpCreation
void updateHelpCreation()
update HelpCreation
Definition: GNEPersonFrame.cpp:69
GNEPersonFrame::demandElementSelected
void demandElementSelected()
selected demand element in DemandElementSelector
Definition: GNEPersonFrame.cpp:317
GNEPersonFrame::addPerson
bool addPerson(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
add vehicle element
Definition: GNEPersonFrame.cpp:191
GNEPersonFrame::HelpCreation::myInformationLabel
FXLabel * myInformationLabel
Label with creation information.
Definition: GNEPersonFrame.h:62
GNEFrame.h
GNELane
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:45
GNEPersonFrame::myPersonTagSelector
GNEFrameModuls::TagSelector * myPersonTagSelector
person tag selector (used to select diffent kind of persons)
Definition: GNEPersonFrame.h:98
GNEPersonFrame::HelpCreation::hideHelpCreation
void hideHelpCreation()
hide HelpCreation
Definition: GNEPersonFrame.cpp:63