![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEPersonPlanFrame.h>
Data Structures | |
class | HelpCreation |
class | PersonPlanCreator |
Public Member Functions | |
bool | addPersonPlan (const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor) |
add vehicle element More... | |
void | focusUpperElement () |
focus upper element of frame More... | |
FXFont * | getFrameHeaderFont () const |
get font of the header's frame More... | |
FXLabel * | getFrameHeaderLabel () const |
get the label for the frame's header More... | |
PersonPlanCreator * | getPersonPlanCreator () const |
get PersonPlanCreator modul More... | |
GNEViewNet * | getViewNet () const |
get view net More... | |
GNEPersonPlanFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet) | |
Constructor. More... | |
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... | |
~GNEPersonPlanFrame () | |
Destructor. More... | |
Protected Member Functions | |
void | demandElementSelected () |
selected demand element in DemandElementSelector More... | |
const RGBColor & | getEdgeCandidateColor () const |
get edge candidate color More... | |
const RGBColor & | getEdgeCandidateSelectedColor () 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... | |
bool | personPlanCreated (GNEAdditional *busStop, GNEDemandElement *route) |
finish person plan creation More... | |
void | tagSelected () |
Tag selected in TagSelector. More... | |
functions called by moduls that can be reimplemented in frame children | |
virtual void | edgePathCreated () |
finish edge path creation More... | |
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/GenericParametersEditor/... More... | |
virtual void | attributesEditorExtendedDialogOpened () |
open AttributesCreator extended dialog (can be reimplemented in frame children) More... | |
Protected Attributes | |
FXVerticalFrame * | myContentFrame |
Vertical frame that holds all widgets of frame. More... | |
FXHorizontalFrame * | myHeaderFrame |
fame for header elements More... | |
FXHorizontalFrame * | myHeaderLeftFrame |
fame for left header elements More... | |
FXHorizontalFrame * | myHeaderRightFrame |
fame for right header elements More... | |
GNEViewNet * | myViewNet |
View Net. 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... | |
Definition at line 33 of file GNEPersonPlanFrame.h.
GNEPersonPlanFrame::GNEPersonPlanFrame | ( | FXHorizontalFrame * | horizontalFrameParent, |
GNEViewNet * | viewNet | ||
) |
Constructor.
parent FXHorizontalFrame in which this GNEFrame is placed
viewNet viewNet that uses this GNEFrame
Definition at line 404 of file GNEPersonPlanFrame.cpp.
References myHelpCreation, myPersonHierarchy, myPersonPlanAttributes, myPersonPlanCreator, myPersonPlanTagSelector, myPersonSelector, and GNEFrameModuls::TagSelector::setCurrentTagType().
GNEPersonPlanFrame::~GNEPersonPlanFrame | ( | ) |
Destructor.
Definition at line 430 of file GNEPersonPlanFrame.cpp.
bool GNEPersonPlanFrame::addPersonPlan | ( | const GNEViewNetHelper::ObjectsUnderCursor & | objectsUnderCursor | ) |
add vehicle element
objectsUnderCursor | collection of objects under cursor after click over view |
Definition at line 474 of file GNEPersonPlanFrame.cpp.
References GNEPersonPlanFrame::PersonPlanCreator::addEdge(), GNEViewNetHelper::ObjectsUnderCursor::getAdditionalFront(), GNEFrameModuls::DemandElementSelector::getCurrentDemandElement(), GNEFrameModuls::TagSelector::getCurrentTagProperties(), GNEViewNetHelper::ObjectsUnderCursor::getDemandElementFront(), GNEViewNetHelper::ObjectsUnderCursor::getEdgeFront(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myPersonPlanCreator, myPersonPlanTagSelector, myPersonSelector, GNEFrame::myViewNet, personPlanCreated(), GNEViewNet::setStatusBarText(), SUMO_TAG_BUS_STOP, SUMO_TAG_NOTHING, SUMO_TAG_PERSONSTOP_BUSSTOP, SUMO_TAG_PERSONTRIP_BUSSTOP, SUMO_TAG_PERSONTRIP_FROMTO, SUMO_TAG_RIDE_BUSSTOP, SUMO_TAG_RIDE_FROMTO, SUMO_TAG_ROUTE, SUMO_TAG_WALK_BUSSTOP, SUMO_TAG_WALK_EDGES, SUMO_TAG_WALK_FROMTO, and SUMO_TAG_WALK_ROUTE.
Referenced by GNEViewNet::processLeftButtonPressDemand().
|
protectedvirtualinherited |
open AttributesCreator extended dialog (can be reimplemented in frame children)
Reimplemented in GNEVehicleTypeFrame.
Definition at line 191 of file GNEFrame.cpp.
|
protectedvirtualinherited |
function called after set a valid attribute in AttributeCreator/AttributeEditor/GenericParametersEditor/...
Reimplemented in GNEInspectorFrame, GNEVehicleTypeFrame, and GNEPersonTypeFrame.
Definition at line 185 of file GNEFrame.cpp.
|
protectedvirtual |
selected demand element in DemandElementSelector
Reimplemented from GNEFrame.
Definition at line 547 of file GNEPersonPlanFrame.cpp.
References GNEPersonPlanFrame::PersonPlanCreator::edgePathCreatorName(), GNEFrameModuls::DemandElementSelector::getCurrentDemandElement(), GNEFrameModuls::TagSelector::getCurrentTagProperties(), GNEAttributeCarrier::TagProperties::getTag(), GNEFrameModuls::AttributeCarrierHierarchy::hideAttributeCarrierHierarchy(), GNEFrameAttributesModuls::AttributesCreator::hideAttributesCreatorModul(), GNEPersonPlanFrame::HelpCreation::hideHelpCreation(), GNEPersonPlanFrame::PersonPlanCreator::hidePersonPlanCreator(), GNEFrameModuls::TagSelector::hideTagSelector(), GNEAttributeCarrier::TagProperties::isPersonTrip(), GNEAttributeCarrier::TagProperties::isRide(), GNEAttributeCarrier::TagProperties::isWalk(), myHelpCreation, myPersonHierarchy, myPersonPlanAttributes, myPersonPlanCreator, myPersonPlanTagSelector, myPersonSelector, GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierHierarchy(), GNEFrameAttributesModuls::AttributesCreator::showAttributesCreatorModul(), GNEPersonPlanFrame::HelpCreation::showHelpCreation(), GNEPersonPlanFrame::PersonPlanCreator::showPersonPlanCreator(), GNEFrameModuls::TagSelector::showTagSelector(), and SUMO_TAG_NOTHING.
|
protectedvirtualinherited |
finish edge path creation
Reimplemented in GNEVehicleFrame, and GNEPersonFrame.
Definition at line 172 of file GNEFrame.cpp.
|
inherited |
focus upper element of frame
Definition at line 102 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEViewNet::hotkeyFocusFrame(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
|
protectedinherited |
get edge candidate color
Definition at line 264 of file GNEFrame.cpp.
References GNEFrame::myEdgeCandidateColor.
Referenced by GNECrossingFrame::GNECrossingFrame().
|
protectedinherited |
get selected color
Definition at line 270 of file GNEFrame.cpp.
References GNEFrame::myEdgeCandidateSelectedColor.
Referenced by GNECrossingFrame::GNECrossingFrame().
|
inherited |
get font of the header's frame
Definition at line 145 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 139 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().
GNEPersonPlanFrame::PersonPlanCreator * GNEPersonPlanFrame::getPersonPlanCreator | ( | ) | const |
get PersonPlanCreator modul
Definition at line 508 of file GNEPersonPlanFrame.cpp.
References myPersonPlanCreator.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEViewNet::hotkeyBackSpace(), and GNEViewNet::hotkeyEnter().
|
protectedinherited |
get predefinedTagsMML
Definition at line 276 of file GNEFrame.cpp.
References GNEFrame::myPredefinedTagsMML.
Referenced by GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::edgePathCreated(), and GNETAZFrame::shapeDrawed().
|
inherited |
get view net
Definition at line 133 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNEDeleteFrame::removeAttributeCarrier().
|
virtual |
hide Frame
Reimplemented from GNEFrame.
Definition at line 465 of file GNEPersonPlanFrame.cpp.
References GNEFrame::hide(), GNEPersonPlanFrame::PersonPlanCreator::hidePersonPlanCreator(), and myPersonPlanCreator.
Referenced by GNEPersonPlanFrame::HelpCreation::hideHelpCreation(), GNEPersonPlanFrame::PersonPlanCreator::hidePersonPlanCreator(), and GNEPersonPlanFrame::PersonPlanCreator::refreshPersonPlanCreator().
|
protectedinherited |
Open help attributes dialog.
Definition at line 197 of file GNEFrame.cpp.
References GUIIconSubSys::getIcon(), GNEAttributeCarrier::TagProperties::getNumberOfAttributes(), GNEAttributeCarrier::TagProperties::getTagStr(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonOK, GUIDesignDialogBoxResizable, GUIDesignHorizontalSeparator, GUIDesignTableNotEditable, ICON_ACCEPT, ICON_MODEINSPECT, MAX2(), MID_TABLE, GNEFrame::myScrollWindowsContents, toString(), and WRITE_DEBUG.
|
protected |
finish person plan creation
Definition at line 588 of file GNEPersonPlanFrame.cpp.
References GNEPersonPlanFrame::PersonPlanCreator::addEdge(), GNEFrameAttributesModuls::AttributesCreator::areValuesValid(), GNERouteHandler::buildPersonTripBusStop(), GNERouteHandler::buildPersonTripFromTo(), GNERouteHandler::buildRideBusStop(), GNERouteHandler::buildRideFromTo(), GNERouteHandler::buildWalkBusStop(), GNERouteHandler::buildWalkEdges(), GNERouteHandler::buildWalkFromTo(), GNERouteHandler::buildWalkRoute(), GNEFrameAttributesModuls::AttributesCreator::getAttributesAndValues(), GNEPersonPlanFrame::PersonPlanCreator::getClickedEdges(), GNEFrameModuls::DemandElementSelector::getCurrentDemandElement(), GNEFrameModuls::TagSelector::getCurrentTagProperties(), GNEPersonPlanFrame::PersonPlanCreator::getEdgePath(), GNEHierarchicalElementParents::getLaneParents(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::TagProperties::getTagStr(), myPersonHierarchy, myPersonPlanAttributes, myPersonPlanCreator, myPersonPlanTagSelector, myPersonSelector, GNEFrame::myViewNet, GNEFrameModuls::AttributeCarrierHierarchy::refreshAttributeCarrierHierarchy(), GNEPersonPlanFrame::PersonPlanCreator::refreshPersonPlanCreator(), GNEViewNet::setStatusBarText(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_LINES, SUMO_ATTR_MODES, SUMO_ATTR_VTYPES, SUMO_TAG_PERSONTRIP_BUSSTOP, SUMO_TAG_PERSONTRIP_FROMTO, SUMO_TAG_RIDE_BUSSTOP, SUMO_TAG_RIDE_FROMTO, SUMO_TAG_WALK_BUSSTOP, SUMO_TAG_WALK_EDGES, SUMO_TAG_WALK_FROMTO, and SUMO_TAG_WALK_ROUTE.
Referenced by addPersonPlan().
|
inherited |
set width of GNEFrame
Definition at line 126 of file GNEFrame.cpp.
References GNEFrame::myScrollWindowsContents.
|
protectedvirtualinherited |
build a shaped element using the drawed shape (can be reimplemented in frame children)
Reimplemented in GNETAZFrame, and GNEPolygonFrame.
Definition at line 178 of file GNEFrame.cpp.
|
virtual |
show Frame
Reimplemented from GNEFrame.
Definition at line 434 of file GNEPersonPlanFrame.cpp.
References GNENet::AttributeCarriers::demandElements, GNENet::getAttributeCarriers(), GNEViewNet::getNet(), GNEFrameModuls::AttributeCarrierHierarchy::hideAttributeCarrierHierarchy(), GNEFrameAttributesModuls::AttributesCreator::hideAttributesCreatorModul(), GNEFrameModuls::DemandElementSelector::hideDemandElementSelector(), GNEPersonPlanFrame::PersonPlanCreator::hidePersonPlanCreator(), GNEFrameModuls::TagSelector::hideTagSelector(), myHelpCreation, myPersonHierarchy, myPersonPlanAttributes, myPersonPlanCreator, myPersonPlanTagSelector, myPersonSelector, GNEFrame::myViewNet, GNEFrameModuls::DemandElementSelector::refreshDemandElementSelector(), GNEFrameModuls::TagSelector::refreshTagProperties(), GNEFrameModuls::DemandElementSelector::setDemandElement(), GNEFrame::show(), GNEPersonPlanFrame::HelpCreation::showHelpCreation(), GNEPersonPlanFrame::PersonPlanCreator::showPersonPlanCreator(), SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.
Referenced by GNEPersonPlanFrame::PersonPlanCreator::refreshPersonPlanCreator(), GNEPersonPlanFrame::HelpCreation::showHelpCreation(), GNEPersonPlanFrame::PersonPlanCreator::showPersonPlanCreator(), and GNEViewNet::updateDemandModeSpecificControls().
|
protectedvirtual |
Tag selected in TagSelector.
Reimplemented from GNEFrame.
Definition at line 517 of file GNEPersonPlanFrame.cpp.
References GNEPersonPlanFrame::PersonPlanCreator::edgePathCreatorName(), GNEFrameModuls::DemandElementSelector::getCurrentDemandElement(), GNEFrameModuls::TagSelector::getCurrentTagProperties(), GNEAttributeCarrier::TagProperties::getTag(), GNEFrameModuls::AttributeCarrierHierarchy::hideAttributeCarrierHierarchy(), GNEFrameAttributesModuls::AttributesCreator::hideAttributesCreatorModul(), GNEPersonPlanFrame::HelpCreation::hideHelpCreation(), GNEPersonPlanFrame::PersonPlanCreator::hidePersonPlanCreator(), GNEAttributeCarrier::TagProperties::isPersonTrip(), GNEAttributeCarrier::TagProperties::isRide(), GNEAttributeCarrier::TagProperties::isWalk(), myHelpCreation, myPersonHierarchy, myPersonPlanAttributes, myPersonPlanCreator, myPersonPlanTagSelector, myPersonSelector, GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierHierarchy(), GNEFrameAttributesModuls::AttributesCreator::showAttributesCreatorModul(), GNEPersonPlanFrame::HelpCreation::showHelpCreation(), GNEPersonPlanFrame::PersonPlanCreator::showPersonPlanCreator(), and SUMO_TAG_NOTHING.
|
virtualinherited |
function called after undo/redo in the current frame (can be reimplemented in frame children)
Reimplemented in GNEInspectorFrame.
Definition at line 151 of file GNEFrame.cpp.
Referenced by GNEApplicationWindow::onCmdRedo(), and GNEApplicationWindow::onCmdUndo().
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 123 of file GNEFrame.h.
Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), and GNEInspectorFrame::inspectMultisection().
|
privateinherited |
edge candidate color (used by some modulds to mark edges)
Definition at line 145 of file GNEFrame.h.
Referenced by GNEFrame::getEdgeCandidateColor().
|
privateinherited |
selected edge candidate color (used by some modulds to selected mark edges)
Definition at line 148 of file GNEFrame.h.
Referenced by GNEFrame::getEdgeCandidateSelectedColor().
|
staticprivateinherited |
static Font for the Header (it's common for all headers, then create only one time)
Definition at line 139 of file GNEFrame.h.
Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().
|
privateinherited |
the label for the frame's header
Definition at line 142 of file GNEFrame.h.
Referenced by GNEFrame::focusUpperElement(), GNEFrame::getFrameHeaderLabel(), and GNEFrame::GNEFrame().
|
protectedinherited |
fame for header elements
Definition at line 126 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 129 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 132 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
private |
Help creation.
Definition at line 205 of file GNEPersonPlanFrame.h.
Referenced by demandElementSelected(), GNEPersonPlanFrame(), show(), and tagSelected().
|
private |
Person Hierarchy.
Definition at line 202 of file GNEPersonPlanFrame.h.
Referenced by demandElementSelected(), GNEPersonPlanFrame(), personPlanCreated(), show(), and tagSelected().
|
private |
internal vehicle attributes
Definition at line 196 of file GNEPersonPlanFrame.h.
Referenced by demandElementSelected(), GNEPersonPlanFrame(), personPlanCreated(), show(), and tagSelected().
|
private |
Person Plan Creator.
Definition at line 199 of file GNEPersonPlanFrame.h.
Referenced by addPersonPlan(), demandElementSelected(), getPersonPlanCreator(), GNEPersonPlanFrame(), hide(), personPlanCreated(), show(), and tagSelected().
|
private |
personPlan selector
Definition at line 193 of file GNEPersonPlanFrame.h.
Referenced by addPersonPlan(), demandElementSelected(), GNEPersonPlanFrame(), personPlanCreated(), show(), and tagSelected().
|
private |
Person selectors.
Definition at line 190 of file GNEPersonPlanFrame.h.
Referenced by addPersonPlan(), demandElementSelected(), GNEPersonPlanFrame(), personPlanCreated(), show(), and tagSelected().
|
privateinherited |
Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached)
Definition at line 151 of file GNEFrame.h.
Referenced by GNEFrame::getPredefinedTagsMML(), and GNEFrame::GNEFrame().
|
privateinherited |
scroll windows that holds the content frame
Definition at line 136 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEFrame::openHelpAttributesDialog(), and GNEFrame::setFrameWidth().
|
protectedinherited |
View Net.
Definition at line 120 of file GNEFrame.h.
Referenced by GNEDeleteFrame::ACsToDelete(), GNESelectorFrame::ACsToSelected(), GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), 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(), GNEPersonFrame::buildPerson(), GNEPersonFrame::buildPersonOverRoute(), GNEPersonFrame::buildPersonOverStop(), GNEProhibitionFrame::buildProhibition(), GNETLSEditorFrame::cleanup(), GNESelectorFrame::clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNETAZFrame::dropTAZMembers(), GNEPersonFrame::edgePathCreated(), GNEVehicleFrame::edgePathCreated(), GNETLSEditorFrame::editJunction(), 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(), personPlanCreated(), GNECreateEdgeFrame::processClick(), GNEPolygonFrame::processClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEProhibitionFrame::ProhibitionLegend::ProhibitionLegend(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEFrame::show(), GNEStopFrame::show(), GNEDeleteFrame::show(), and show().