Eclipse SUMO - Simulation of Urban MObility
GNEPersonFrame Class Reference

#include <GNEPersonFrame.h>

Inheritance diagram for GNEPersonFrame:
Collaboration diagram for GNEPersonFrame:

Data Structures

class  HelpCreation
 

Public Member Functions

bool addPerson (const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
 add vehicle element More...
 
void focusUpperElement ()
 focus upper element of frame More...
 
GNEFrameModuls::EdgePathCreatorgetEdgePathCreator () const
 get EdgePathCreator modul More...
 
FXFont * getFrameHeaderFont () const
 get font of the header's frame More...
 
FXLabel * getFrameHeaderLabel () const
 get the label for the frame's header More...
 
GNEViewNetgetViewNet () const
 get view net More...
 
 GNEPersonFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
 Constructor. More...
 
virtual void hide ()
 hide Frame More...
 
void setFrameWidth (int newWidth)
 set width of GNEFrame More...
 
void show ()
 show Frame More...
 
virtual void updateFrameAfterUndoRedo ()
 function called after undo/redo in the current frame (can be reimplemented in frame children) More...
 
 ~GNEPersonFrame ()
 Destructor. More...
 

Protected Member Functions

void demandElementSelected ()
 selected demand element in DemandElementSelector More...
 
void edgePathCreated ()
 finish edge path creation More...
 
const RGBColorgetEdgeCandidateColor () const
 get edge candidate color More...
 
const RGBColorgetEdgeCandidateSelectedColor () const
 get selected color More...
 
const std::map< int, std::string > & getPredefinedTagsMML () const
 get predefinedTagsMML More...
 
void openHelpAttributesDialog (const GNEAttributeCarrier::TagProperties &tagProperties) const
 Open help attributes dialog. More...
 
void tagSelected ()
 Tag selected in TagSelector. More...
 
functions called by moduls that can be reimplemented in frame children
virtual bool shapeDrawed ()
 build a shaped element using the drawed shape (can be reimplemented in frame children) More...
 
virtual void attributeUpdated ()
 function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/... More...
 
virtual void attributesEditorExtendedDialogOpened ()
 open AttributesCreator extended dialog (can be reimplemented in frame children) More...
 
virtual void selectedOverlappedElement (GNEAttributeCarrier *AC)
 open AttributesCreator extended dialog (can be reimplemented in frame children) More...
 

Protected Attributes

FXVerticalFrame * myContentFrame = nullptr
 Vertical frame that holds all widgets of frame. More...
 
FXHorizontalFrame * myHeaderFrame = nullptr
 fame for header elements More...
 
FXHorizontalFrame * myHeaderLeftFrame = nullptr
 fame for left header elements More...
 
FXHorizontalFrame * myHeaderRightFrame = nullptr
 fame for right header elements More...
 
GNEViewNetmyViewNet = nullptr
 View Net. More...
 

Private Member Functions

GNEDemandElementbuildPerson ()
 build person and return it (note: function includes a call to p_begin(...), but NOT a call to p_end(...)) More...
 
bool buildPersonOverRoute (GNEDemandElement *route)
 build person over route More...
 
bool buildPersonOverStop (GNELane *lane, GNEAdditional *busStop)
 build person over stop More...
 

Private Attributes

RGBColor myEdgeCandidateColor
 edge candidate color (used by some modulds to mark edges) More...
 
RGBColor myEdgeCandidateSelectedColor
 selected edge candidate color (used by some modulds to selected mark edges) More...
 
GNEFrameModuls::EdgePathCreatormyEdgePathCreator
 edge path creator (used for Walks, rides and trips) More...
 
FXLabel * myFrameHeaderLabel = nullptr
 the label for the frame's header More...
 
HelpCreationmyHelpCreation
 Help creation. More...
 
GNEFrameAttributesModuls::NeteditAttributesmyNeteditAttributes
 Netedit parameter. More...
 
GNEFrameAttributesModuls::AttributesCreatormyPersonAttributes
 internal vehicle attributes More...
 
GNEFrameAttributesModuls::AttributesCreatormyPersonPlanAttributes
 internal person plan attributes More...
 
GNEFrameModuls::TagSelectormyPersonPlanTagSelector
 person plan selector (used to select diffent kind of person plan) More...
 
GNEFrameModuls::TagSelectormyPersonTagSelector
 person tag selector (used to select diffent kind of persons) More...
 
std::map< int, std::string > myPredefinedTagsMML
 Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached) More...
 
GNEFrameModuls::DemandElementSelectormyPTypeSelector
 Person Type selectors. More...
 
FXScrollWindow * myScrollWindowsContents = nullptr
 scroll windows that holds the content frame More...
 

Static Private Attributes

static FXFont * myFrameHeaderFont = nullptr
 static Font for the Header (it's common for all headers, then create only one time) More...
 

Detailed Description

Definition at line 32 of file GNEPersonFrame.h.

Constructor & Destructor Documentation

◆ GNEPersonFrame()

GNEPersonFrame::GNEPersonFrame ( FXHorizontalFrame *  horizontalFrameParent,
GNEViewNet viewNet 
)

◆ ~GNEPersonFrame()

GNEPersonFrame::~GNEPersonFrame ( )

Destructor.

Definition at line 170 of file GNEPersonFrame.cpp.

Member Function Documentation

◆ addPerson()

◆ attributesEditorExtendedDialogOpened()

void GNEFrame::attributesEditorExtendedDialogOpened ( )
protectedvirtualinherited

open AttributesCreator extended dialog (can be reimplemented in frame children)

Reimplemented in GNEVehicleTypeFrame.

Definition at line 190 of file GNEFrame.cpp.

◆ attributeUpdated()

void GNEFrame::attributeUpdated ( )
protectedvirtualinherited

function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/...

Reimplemented in GNEVehicleTypeFrame, GNEPersonTypeFrame, and GNEInspectorFrame.

Definition at line 184 of file GNEFrame.cpp.

◆ buildPerson()

◆ buildPersonOverRoute()

◆ buildPersonOverStop()

◆ demandElementSelected()

void GNEPersonFrame::demandElementSelected ( )
protectedvirtual

selected demand element in DemandElementSelector

Reimplemented from GNEFrame.

Definition at line 317 of file GNEPersonFrame.cpp.

References GNEFrameModuls::EdgePathCreator::edgePathCreatorName(), GNEFrameModuls::DemandElementSelector::getCurrentDemandElement(), GNEFrameModuls::TagSelector::getCurrentTagProperties(), GNEAttributeCarrier::TagProperties::getTag(), GNEFrameAttributesModuls::AttributesCreator::hideAttributesCreatorModul(), GNEFrameModuls::EdgePathCreator::hideEdgePathCreator(), GNEPersonFrame::HelpCreation::hideHelpCreation(), GNEFrameAttributesModuls::NeteditAttributes::hideNeteditAttributesModul(), GNEFrameModuls::TagSelector::hideTagSelector(), GNEAttributeCarrier::TagProperties::isPersonStop(), GNEAttributeCarrier::TagProperties::isPersonTrip(), GNEAttributeCarrier::TagProperties::isRide(), GNEAttributeCarrier::TagProperties::isWalk(), myEdgePathCreator, myHelpCreation, myNeteditAttributes, myPersonAttributes, myPersonPlanAttributes, myPersonPlanTagSelector, myPersonTagSelector, myPTypeSelector, GNEFrameModuls::EdgePathCreator::setEdgePathCreatorModes(), GNEFrameModuls::EdgePathCreator::setVClass(), GNEFrameAttributesModuls::AttributesCreator::showAttributesCreatorModul(), GNEFrameModuls::EdgePathCreator::showEdgePathCreator(), GNEPersonFrame::HelpCreation::showHelpCreation(), GNEFrameAttributesModuls::NeteditAttributes::showNeteditAttributesModul(), GNEFrameModuls::TagSelector::showTagSelector(), SUMO_TAG_NOTHING, SUMO_TAG_PERSONTRIP_BUSSTOP, SUMO_TAG_RIDE_BUSSTOP, SUMO_TAG_WALK_BUSSTOP, SUMO_TAG_WALK_EDGES, SUMO_TAG_WALK_ROUTE, SVC_PASSENGER, and SVC_PEDESTRIAN.

◆ edgePathCreated()

◆ focusUpperElement()

◆ getEdgeCandidateColor()

const RGBColor & GNEFrame::getEdgeCandidateColor ( ) const
protectedinherited

get edge candidate color

Definition at line 269 of file GNEFrame.cpp.

References GNEFrame::myEdgeCandidateColor.

Referenced by GNECrossingFrame::GNECrossingFrame().

◆ getEdgeCandidateSelectedColor()

const RGBColor & GNEFrame::getEdgeCandidateSelectedColor ( ) const
protectedinherited

get selected color

Definition at line 275 of file GNEFrame.cpp.

References GNEFrame::myEdgeCandidateSelectedColor.

Referenced by GNECrossingFrame::GNECrossingFrame().

◆ getEdgePathCreator()

GNEFrameModuls::EdgePathCreator * GNEPersonFrame::getEdgePathCreator ( ) const

get EdgePathCreator modul

Definition at line 225 of file GNEPersonFrame.cpp.

References myEdgePathCreator.

Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEViewNet::hotkeyBackSpace(), and GNEViewNet::hotkeyEnter().

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 144 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 138 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().

◆ getPredefinedTagsMML()

◆ getViewNet()

GNEViewNet * GNEFrame::getViewNet ( ) const
inherited

◆ hide()

◆ openHelpAttributesDialog()

◆ selectedOverlappedElement()

void GNEFrame::selectedOverlappedElement ( GNEAttributeCarrier AC)
protectedvirtualinherited

open AttributesCreator extended dialog (can be reimplemented in frame children)

Reimplemented in GNETLSEditorFrame, and GNEInspectorFrame.

Definition at line 196 of file GNEFrame.cpp.

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 125 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

◆ shapeDrawed()

bool GNEFrame::shapeDrawed ( )
protectedvirtualinherited

build a shaped element using the drawed shape (can be reimplemented in frame children)

Reimplemented in GNETAZFrame, and GNEPolygonFrame.

Definition at line 177 of file GNEFrame.cpp.

◆ show()

◆ tagSelected()

void GNEPersonFrame::tagSelected ( )
protectedvirtual

Tag selected in TagSelector.

Reimplemented from GNEFrame.

Definition at line 234 of file GNEPersonFrame.cpp.

References GNEFrameModuls::EdgePathCreator::edgePathCreatorName(), GNEFrameModuls::DemandElementSelector::getCurrentDemandElement(), GNEFrameModuls::TagSelector::getCurrentTagProperties(), GNEAttributeCarrier::TagProperties::getTag(), GNEFrameAttributesModuls::AttributesCreator::hideAttributesCreatorModul(), GNEFrameModuls::DemandElementSelector::hideDemandElementSelector(), GNEFrameModuls::EdgePathCreator::hideEdgePathCreator(), GNEPersonFrame::HelpCreation::hideHelpCreation(), GNEFrameAttributesModuls::NeteditAttributes::hideNeteditAttributesModul(), GNEFrameModuls::TagSelector::hideTagSelector(), GNEAttributeCarrier::TagProperties::isPersonStop(), GNEAttributeCarrier::TagProperties::isPersonTrip(), GNEAttributeCarrier::TagProperties::isRide(), GNEAttributeCarrier::TagProperties::isWalk(), myEdgePathCreator, myHelpCreation, myNeteditAttributes, myPersonAttributes, myPersonPlanAttributes, myPersonPlanTagSelector, myPersonTagSelector, myPTypeSelector, GNEFrameModuls::EdgePathCreator::setVClass(), GNEFrameAttributesModuls::AttributesCreator::showAttributesCreatorModul(), GNEFrameModuls::DemandElementSelector::showDemandElementSelector(), GNEFrameModuls::EdgePathCreator::showEdgePathCreator(), GNEPersonFrame::HelpCreation::showHelpCreation(), GNEFrameAttributesModuls::NeteditAttributes::showNeteditAttributesModul(), GNEFrameModuls::TagSelector::showTagSelector(), SUMO_TAG_NOTHING, SUMO_TAG_WALK_BUSSTOP, SUMO_TAG_WALK_ROUTE, SVC_PASSENGER, and SVC_PEDESTRIAN.

◆ updateFrameAfterUndoRedo()

void GNEFrame::updateFrameAfterUndoRedo ( )
virtualinherited

function called after undo/redo in the current frame (can be reimplemented in frame children)

Reimplemented in GNEInspectorFrame.

Definition at line 150 of file GNEFrame.cpp.

Referenced by GNEApplicationWindow::onCmdRedo(), and GNEApplicationWindow::onCmdUndo().

Field Documentation

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame = nullptr
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 124 of file GNEFrame.h.

Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), and GNEInspectorFrame::inspectMultisection().

◆ myEdgeCandidateColor

RGBColor GNEFrame::myEdgeCandidateColor
privateinherited

edge candidate color (used by some modulds to mark edges)

Definition at line 146 of file GNEFrame.h.

Referenced by GNEFrame::getEdgeCandidateColor().

◆ myEdgeCandidateSelectedColor

RGBColor GNEFrame::myEdgeCandidateSelectedColor
privateinherited

selected edge candidate color (used by some modulds to selected mark edges)

Definition at line 149 of file GNEFrame.h.

Referenced by GNEFrame::getEdgeCandidateSelectedColor().

◆ myEdgePathCreator

GNEFrameModuls::EdgePathCreator* GNEPersonFrame::myEdgePathCreator
private

edge path creator (used for Walks, rides and trips)

Definition at line 116 of file GNEPersonFrame.h.

Referenced by addPerson(), demandElementSelected(), edgePathCreated(), getEdgePathCreator(), GNEPersonFrame(), show(), and tagSelected().

◆ myFrameHeaderFont

FXFont * GNEFrame::myFrameHeaderFont = nullptr
staticprivateinherited

static Font for the Header (it's common for all headers, then create only one time)

Definition at line 140 of file GNEFrame.h.

Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().

◆ myFrameHeaderLabel

FXLabel* GNEFrame::myFrameHeaderLabel = nullptr
privateinherited

the label for the frame's header

Definition at line 143 of file GNEFrame.h.

Referenced by GNEFrame::focusUpperElement(), GNEFrame::getFrameHeaderLabel(), and GNEFrame::GNEFrame().

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame = nullptr
protectedinherited

fame for header elements

Definition at line 127 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame = nullptr
protectedinherited

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame = nullptr
protectedinherited

fame for right header elements

Definition at line 133 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHelpCreation

HelpCreation* GNEPersonFrame::myHelpCreation
private

Help creation.

Definition at line 119 of file GNEPersonFrame.h.

Referenced by demandElementSelected(), GNEPersonFrame(), and tagSelected().

◆ myNeteditAttributes

GNEFrameAttributesModuls::NeteditAttributes* GNEPersonFrame::myNeteditAttributes
private

Netedit parameter.

Definition at line 113 of file GNEPersonFrame.h.

Referenced by buildPersonOverStop(), demandElementSelected(), GNEPersonFrame(), and tagSelected().

◆ myPersonAttributes

GNEFrameAttributesModuls::AttributesCreator* GNEPersonFrame::myPersonAttributes
private

◆ myPersonPlanAttributes

GNEFrameAttributesModuls::AttributesCreator* GNEPersonFrame::myPersonPlanAttributes
private

◆ myPersonPlanTagSelector

GNEFrameModuls::TagSelector* GNEPersonFrame::myPersonPlanTagSelector
private

person plan selector (used to select diffent kind of person plan)

Definition at line 104 of file GNEPersonFrame.h.

Referenced by addPerson(), buildPerson(), buildPersonOverRoute(), buildPersonOverStop(), demandElementSelected(), edgePathCreated(), GNEPersonFrame(), show(), and tagSelected().

◆ myPersonTagSelector

GNEFrameModuls::TagSelector* GNEPersonFrame::myPersonTagSelector
private

person tag selector (used to select diffent kind of persons)

Definition at line 98 of file GNEPersonFrame.h.

Referenced by addPerson(), buildPerson(), buildPersonOverRoute(), demandElementSelected(), GNEPersonFrame(), show(), and tagSelected().

◆ myPredefinedTagsMML

std::map<int, std::string> GNEFrame::myPredefinedTagsMML
privateinherited

Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached)

Definition at line 152 of file GNEFrame.h.

Referenced by GNEFrame::getPredefinedTagsMML(), and GNEFrame::GNEFrame().

◆ myPTypeSelector

GNEFrameModuls::DemandElementSelector* GNEPersonFrame::myPTypeSelector
private

Person Type selectors.

Definition at line 101 of file GNEPersonFrame.h.

Referenced by addPerson(), buildPerson(), demandElementSelected(), GNEPersonFrame(), show(), and tagSelected().

◆ myScrollWindowsContents

FXScrollWindow* GNEFrame::myScrollWindowsContents = nullptr
privateinherited

scroll windows that holds the content frame

Definition at line 137 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame(), GNEFrame::openHelpAttributesDialog(), and GNEFrame::setFrameWidth().

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet = nullptr
protectedinherited

View Net.

Definition at line 121 of file GNEFrame.h.

Referenced by GNEDeleteFrame::ACsToDelete(), GNESelectorFrame::ACsToSelected(), GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNETAZFrame::addOrRemoveTAZMember(), addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), GNETLSEditorFrame::buildIinternalLanes(), buildPerson(), buildPersonOverRoute(), buildPersonOverStop(), GNEProhibitionFrame::buildProhibition(), GNETLSEditorFrame::cleanup(), GNESelectorFrame::clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNETAZFrame::dropTAZMembers(), edgePathCreated(), GNEVehicleFrame::edgePathCreated(), GNETLSEditorFrame::editJunction(), GNETLSEditorFrame::editTLS(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNETLSEditorFrame::handleChange(), GNERouteFrame::handleEdgeClick(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEFrame::hide(), GNEInspectorFrame::hide(), GNERouteFrame::hotkeyBackSpace(), GNERouteFrame::hotkeyEnter(), GNERouteFrame::hotkeyEsc(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectSingleElement(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNETLSEditorFrame::parseTLSPrograms(), GNEPersonPlanFrame::personPlanCreated(), GNEPolygonFrame::processClick(), GNECreateEdgeFrame::processClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEProhibitionFrame::ProhibitionLegend::ProhibitionLegend(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEInspectorFrame::selectedOverlappedElement(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEDeleteFrame::show(), GNEFrame::show(), GNEPersonPlanFrame::show(), and GNEStopFrame::show().


The documentation for this class was generated from the following files: