38 GNEFrame(horizontalFrameParent, viewNet,
"PersonPlans") {
69 if ((persons.size() > 0) || (personFlows.size() > 0)) {
75 if (persons.size() > 0) {
97 edge.second->resetCandidateFlags();
128 }
else if (requireEdge && objectsUnderCursor.
getEdgeFront()) {
SumoXMLTag
Numbers representing SUMO-XML - element names.
@ GNE_TAG_PERSONTRIP_EDGE_EDGE
@ GNE_TAG_PERSONSTOP_BUSSTOP
@ SUMO_TAG_NOTHING
invalid tag
@ SUMO_TAG_BUS_STOP
A bus stop.
@ SUMO_TAG_ROUTE
begin/end of the description of a route
@ GNE_TAG_PERSONTRIP_EDGE_BUSSTOP
@ GNE_TAG_RIDE_EDGE_BUSSTOP
@ GNE_TAG_WALK_EDGE_BUSSTOP
const GNETagProperties & getTagProperty() const
get Tag Property assigned to this object
A road/street connecting two junctions (netedit-version)
void hideAttributesCreatorModul()
hide group box
void refreshRows()
refresh rows (called after creating an element)
void showAttributesCreatorModul(const GNETagProperties &tagProperties, const std::vector< SumoXMLAttr > &hiddenAttributes)
show AttributesCreator modul
bool areValuesValid() const
check if parameters of attributes are valid
GNEViewNet * myViewNet
View Net.
virtual void show()
show Frame
virtual void hide()
hide Frame
GNEDemandElement * getCurrentDemandElement() const
get current demand element
void setDemandElement(GNEDemandElement *demandElement)
set current demand element
GNEEdge * getPersonPlanPreviousEdge() const
get previous edge for the current selected demand elemnt
void showDemandElementSelector()
show demand element selector
void hideDemandElementSelector()
hide demand element selector
void refreshHierarchicalElementTree()
refresh HierarchicalElementTree
void showHierarchicalElementTree(GNEAttributeCarrier *AC)
show HierarchicalElementTree
void hideHierarchicalElementTree()
hide HierarchicalElementTree
bool addRoute(GNEDemandElement *route, const bool shiftKeyPressed, const bool controlKeyPressed)
add route
void abortPathCreation()
abort path creation
void showPathCreatorModul(SumoXMLTag tag, const bool firstElement, const bool consecutives)
show PathCreator for the given tag
bool addEdge(GNEEdge *edge, const bool shiftKeyPressed, const bool controlKeyPressed)
add edge
bool addStoppingPlace(GNEAdditional *stoppingPlace, const bool shiftKeyPressed, const bool controlKeyPressed)
add stoppingPlace
void hidePathCreatorModul()
show PathCreator
void hideTagSelector()
hide item selector
void setCurrentTagType(GNETagProperties::TagType tagType)
set current type manually
void refreshTagProperties()
due myCurrentTagProperties is a Reference, we need to refresh it when frameParent is show
const GNETagProperties & getCurrentTagProperties() const
get current type tag
void showTagSelector()
show item selector
const std::map< std::string, GNEEdge * > & getEdges() const
map with the ID and pointer to edges of net
const std::map< SumoXMLTag, std::map< std::string, GNEDemandElement * > > & getDemandElements() const
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
retrieve all attribute carriers of Net
bool addPersonPlanElement(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add person plan element
GNEFrameModuls::PathCreator * myPathCreator
Path Creator.
GNEFrameModuls::PathCreator * getPathCreator() const
get path creator modul
~GNEPersonPlanFrame()
Destructor.
GNEFrameAttributesModuls::AttributesCreator * myPersonPlanAttributes
internal vehicle attributes
void createPath()
create path
GNEFrameModuls::DemandElementSelector * myPersonSelector
Person selectors.
GNEFrameModuls::TagSelector * myPersonPlanTagSelector
personPlan selector
void tagSelected()
Tag selected in TagSelector.
GNEFrameModuls::HierarchicalElementTree * myPersonHierarchy
Person Hierarchy.
GNEPersonPlanFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
void demandElementSelected()
selected demand element in DemandElementSelector
static bool buildPersonPlan(SumoXMLTag tag, GNEDemandElement *personParent, GNEFrameAttributesModuls::AttributesCreator *personPlanAttributes, GNEFrameModuls::PathCreator *pathCreator)
const std::string & getTagStr() const
get Tag vinculated with this attribute Property in String Format (used to avoid multiple calls to toS...
SumoXMLTag getTag() const
get Tag vinculated with this attribute Property
class used to group all variables related with objects under cursor after a click over view
GNEAdditional * getAdditionalFront() const
get front additional element or a pointer to nullptr
GNEDemandElement * getDemandElementFront() const
get front demand element or a pointer to nullptr
GNEEdge * getEdgeFront() const
get front edge or a pointer to nullptr
GNENet * getNet() const
get the net object
void setStatusBarText(const std::string &text)
set staturBar text