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 /****************************************************************************/
GNEPersonFrame::GNEPersonFrame
GNEPersonFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
Definition: GNEPersonFrame.cpp:136
GNEPersonFrame::show
void show()
show Frame
Definition: GNEPersonFrame.cpp:175
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
GNEPersonFrame::edgePathCreated
void edgePathCreated()
finish edge path creation
Definition: GNEPersonFrame.cpp:378
GNEFrameAttributesModuls::NeteditAttributes
Definition: GNEFrameAttributesModuls.h:548
GNEPersonFrame::myPersonAttributes
GNEFrameAttributesModuls::AttributesCreator * myPersonAttributes
internal vehicle attributes
Definition: GNEPersonFrame.h:108
GNEFrameAttributesModuls::AttributesCreator
Definition: GNEFrameAttributesModuls.h:157
GNEPersonFrame::myEdgePathCreator
GNEFrameModuls::EdgePathCreator * myEdgePathCreator
edge path creator (used for Walks, rides and trips)
Definition: GNEPersonFrame.h:117
GNEFrame
Definition: GNEFrame.h:35
GNEPersonFrame::buildPersonOverStop
bool buildPersonOverStop(GNELane *lane, GNEAdditional *busStop)
build person over stop
Definition: GNEPersonFrame.cpp:499
GNEPersonFrame::myPersonPlanTagSelector
GNEFrameModuls::TagSelector * myPersonPlanTagSelector
person plan selector (used to select diffent kind of person plan)
Definition: GNEPersonFrame.h:105
GNEViewNet
Definition: GNEViewNet.h:43
GNEPersonFrame::myPTypeSelector
GNEFrameModuls::DemandElementSelector * myPTypeSelector
Person Type selectors.
Definition: GNEPersonFrame.h:102
GNEPersonFrame::myPersonPlanAttributes
GNEFrameAttributesModuls::AttributesCreator * myPersonPlanAttributes
internal person plan attributes
Definition: GNEPersonFrame.h:111
GNEPersonFrame::myHelpCreation
HelpCreation * myHelpCreation
Help creation.
Definition: GNEPersonFrame.h:120
GNEFrameModuls::EdgePathCreator
Definition: GNEFrameModuls.h:177
GNEPersonFrame::~GNEPersonFrame
~GNEPersonFrame()
Destructor.
Definition: GNEPersonFrame.cpp:171
GNEPersonFrame::HelpCreation::myPersonFrameParent
GNEPersonFrame * myPersonFrameParent
pointer to Person Frame Parent
Definition: GNEPersonFrame.h:60
GNEPersonFrame
Definition: GNEPersonFrame.h:33
GNEPersonFrame::tagSelected
void tagSelected()
Tag selected in TagSelector.
Definition: GNEPersonFrame.cpp:235
GNEPersonFrame::HelpCreation::showHelpCreation
void showHelpCreation()
show HelpCreation
Definition: GNEPersonFrame.cpp:55
GNEViewNetHelper::ObjectsUnderCursor
class used to group all variables related with objects under cursor after a click over view
Definition: GNEViewNetHelper.h:149
GNEFrameModuls::DemandElementSelector
Definition: GNEFrameModuls.h:114
GNEFrameModuls::TagSelector
Definition: GNEFrameModuls.h:45
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:527
GNEPersonFrame::HelpCreation::HelpCreation
HelpCreation(GNEPersonFrame *vehicleFrameParent)
constructor
Definition: GNEPersonFrame.cpp:44
GNEPersonFrame::HelpCreation::~HelpCreation
~HelpCreation()
destructor
Definition: GNEPersonFrame.cpp:51
GNEPersonFrame::getEdgePathCreator
GNEFrameModuls::EdgePathCreator * getEdgePathCreator() const
get EdgePathCreator modul
Definition: GNEPersonFrame.cpp:226
GNEPersonFrame::buildPersonOverRoute
bool buildPersonOverRoute(GNEDemandElement *route)
build person over route
Definition: GNEPersonFrame.cpp:476
GNEPersonFrame::myNeteditAttributes
GNEFrameAttributesModuls::NeteditAttributes * myNeteditAttributes
Netedit parameter.
Definition: GNEPersonFrame.h:114
GNEPersonFrame::HelpCreation
Definition: GNEPersonFrame.h:40
GNEPersonFrame::HelpCreation::updateHelpCreation
void updateHelpCreation()
update HelpCreation
Definition: GNEPersonFrame.cpp:70
GNEPersonFrame::demandElementSelected
void demandElementSelected()
selected demand element in DemandElementSelector
Definition: GNEPersonFrame.cpp:313
GNEPersonFrame::addPerson
bool addPerson(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
add vehicle element
Definition: GNEPersonFrame.cpp:192
GNEPersonFrame::HelpCreation::myInformationLabel
FXLabel * myInformationLabel
Label with creation information.
Definition: GNEPersonFrame.h:63
GNEFrame.h
GNELane
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:46
GNEPersonFrame::myPersonTagSelector
GNEFrameModuls::TagSelector * myPersonTagSelector
person tag selector (used to select diffent kind of persons)
Definition: GNEPersonFrame.h:99
GNEPersonFrame::HelpCreation::hideHelpCreation
void hideHelpCreation()
hide HelpCreation
Definition: GNEPersonFrame.cpp:64