41 GNEFrame(viewParent, viewNet,
TL(
"Containers")),
86 for (
const auto& edge :
myViewNet->getNet()->getAttributeCarriers()->getEdges()) {
87 edge.second->resetCandidateFlags();
104 myViewNet->setStatusBarText(
TL(
"Current selected container isn't valid."));
109 myViewNet->setStatusBarText(
TL(
"Current selected container type isn't valid."));
114 myViewNet->setStatusBarText(
TL(
"Current selected container plan isn't valid."));
118 if (o->getTagProperty()->isStoppingPlace()) {
259 myViewNet->getViewParent()->getGNEAppWindows()->isUndoRedoAllowed());
273 myViewNet->getDemandViewOptions().menuCheckShowAllContainerPlans->setChecked(TRUE);
277 myViewNet->getUndoList()->abortAllChangeGroups();
303 myViewNet->getViewParent()->getGNEAppWindows()->isUndoRedoAllowed());
315 if (containerParameters) {
320 delete containerParameters;
336 if (containerFlowParameters) {
341 delete containerFlowParameters;
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
void tagSelected()
Tag selected in GNETagSelector.
GNEPlanCreator * getPlanCreator() const
get plan creator module
GNEPlanSelector * myPlanSelector
containerPlan selector
GNEAttributesEditor * myContainerPlanAttributesEditor
plan attributes editor
bool addContainer(const GNEViewNetHelper::ViewObjectsSelector &viewObjects)
add vehicle element
GNEDemandElementSelector * myTypeSelector
Container Type selectors.
GNEPlanSelector * getPlanSelector() const
get containerPlan selector
GNEPlanCreator * myPlanCreator
plan creator
CommonXMLStructure::SumoBaseObject * myContainerBaseObject
container base object
GNEDemandElementSelector * getTypeSelector() const
get Type selectors
GNEContainerFrame(GNEViewParent *viewParent, GNEViewNet *viewNet)
Constructor.
void demandElementSelected()
selected demand element in DemandElementSelector
GNEAttributesEditor * getContainerAttributesEditor() const
get attributes editor
GNEPlanCreatorLegend * myPlanCreatorLegend
plan creator legend
~GNEContainerFrame()
Destructor.
GNEAttributesEditor * myContainerAttributesEditor
attributes editor
GNETagSelector * myContainerTagSelector
container tag selector (used to select diffent kind of containers)
GNEDemandElement * buildContainer()
build container and return it (note: function includes a call to begin(...), but NOT a call to end(....
bool createPath(const bool useLastRoute)
create path
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+
bool buildContainerPlan(const GNEDemandElement *planTemplate, GNEDemandElement *containerParent, GNEAttributesEditor *containerPlanAttributesEditor, GNEPlanCreator *planCreator, const bool centerAfterCreation)
build container 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.