86 for (
const auto& edge :
myViewNet->getNet()->getAttributeCarriers()->getEdges()) {
87 edge.second->resetCandidateFlags();
104 myViewNet->setStatusBarText(
TL(
"Current selected person isn't valid."));
109 myViewNet->setStatusBarText(
TL(
"Current selected person type isn't valid."));
114 myViewNet->setStatusBarText(
TL(
"Current selected person plan isn't valid."));
118 if (o->getTagProperty()->isStoppingPlace()) {
257 myViewNet->getViewParent()->getGNEAppWindows()->isUndoRedoAllowed());
271 myViewNet->getDemandViewOptions().menuCheckShowAllPersonPlans->setChecked(TRUE);
275 myViewNet->getUndoList()->abortAllChangeGroups();
302 myViewNet->getViewParent()->getGNEAppWindows()->isUndoRedoAllowed());
314 if (personParameters) {
319 delete personParameters;
335 if (personFlowParameters) {
340 delete personFlowParameters;
SumoXMLTag
Numbers representing SUMO-XML - element names.
@ SUMO_TAG_VTYPE
description of a vehicle/person/container type
@ SUMO_TAG_NOTHING
invalid tag, must be the last one
@ SUMO_TAG_ROUTE
description of a route
@ GNE_ATTR_DEMAND_FILE
demand demand file
@ SUMO_ATTR_BEGIN
weights: time range begin
@ GNE_ATTR_POISSON
poisson definition (used in flow)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
virtual std::string getAttribute(SumoXMLAttr key) const =0
GNEViewNet * myViewNet
FOX need this.
virtual void show()
show Frame
virtual void hide()
hide Frame
GNEFrame(GNEViewParent *viewParent, GNEViewNet *viewNet, const std::string &frameLabel)
Constructor.
const std::vector< std::string > & getPredefinedTagsMML() const
get predefinedTagsMML
GNEPathManager * getDemandPathManager()
get demand path manager
virtual void computePathElement()=0
implement in children+
GNEPlanCreator * myPlanCreator
plan creator
GNEPlanSelector * myPlanSelector
personPlan selector
GNEDemandElementSelector * myTypeSelector
Person Type selectors.
GNEAttributesEditor * myPersonAttributesEditor
person attributes editor
~GNEPersonFrame()
Destructor.
GNEDemandElementSelector * getTypeSelector() const
get Type selectors
GNEAttributesEditor * getPersonAttributesEditor() const
get attributes creator
GNEPersonFrame(GNEViewParent *viewParent, GNEViewNet *viewNet)
Constructor.
void demandElementSelected()
selected demand element in DemandElementSelector
GNEPlanCreator * getPlanCreator() const
get plan creator module
void tagSelected()
Tag selected in GNETagSelector.
GNEDemandElement * buildPerson()
build person and return it (note: function includes a call to begin(...), but NOT a call to end(....
GNEPlanSelector * getPlanSelector() const
get personPlan selector
CommonXMLStructure::SumoBaseObject * myPersonBaseObject
person base object
GNEPlanCreatorLegend * myPlanCreatorLegend
plan creator legend
GNEAttributesEditor * myPersonPlanAttributesEditor
person plan attributes editor
bool createPath(const bool useLastRoute)
create path
bool addPerson(const GNEViewNetHelper::ViewObjectsSelector &viewObjects)
add vehicle element
GNETagSelector * myPersonTagSelector
person tag selector (used to select diffent kind of persons)
bool buildPersonPlan(const GNEDemandElement *planTemplate, GNEDemandElement *personParent, GNEAttributesEditor *personPlanAttributesEditor, GNEPlanCreator *planCreator, const bool centerAfterCreation)
build person plan
class used to group all variables related with objects under cursor after a click over view
const std::vector< GNETAZ * > & getTAZs() const
get vector with TAZs
GNEAttributeCarrier * getAttributeCarrierFront() const
get front attribute carrier or a pointer to nullptr
const std::vector< GNEDemandElement * > & getDemandElements() const
get vector with Demand Elements
GNETAZ * getTAZFront() const
get front TAZ or a pointer to nullptr
GNELane * getLaneFront() const
get front lane or a pointer to nullptr
GNEJunction * getJunctionFront() const
get front junction or a pointer to nullptr
const std::vector< GNEJunction * > & getJunctions() const
get vector with junctions
const std::vector< GNELane * > & getLanes() const
get lanes
const std::vector< GNEAdditional * > & getAdditionals() const
get vector with additionals
GNENet * getNet() const
get the net object
A single child window which contains a view of the simulation area.
void parseSumoBaseObject(CommonXMLStructure::SumoBaseObject *obj)
parse SumoBaseObject (it's called recursivelly)
Encapsulated Xerces-SAX-attributes.
Structure representing possible vehicle parameter.
static SUMOVehicleParameter * parseVehicleAttributes(int element, const SUMOSAXAttributes &attrs, const bool hardFail, const bool optionalID=false, const bool skipDepart=false, const bool allowInternalRoutes=false)
Parses a vehicle's attributes.
static SUMOVehicleParameter * parseFlowAttributes(SumoXMLTag tag, const SUMOSAXAttributes &attrs, const bool hardFail, const bool needID, const SUMOTime beginDefault, const SUMOTime endDefault, const bool allowInternalRoutes=false)
Parses a flow's attributes.