41 myDemandElement(demandElement) {
42 myDemandElement->incRef(
"GNEChange_DemandElement");
89 if (parentEdges.size() > 0) {
91 parentEdges.front()->updatePersonStackLabels();
92 parentEdges.front()->updateContainerStackLabels();
97 firstRouteEdge->updateVehicleStackLabels();
98 firstRouteEdge->updatePersonStackLabels();
99 firstRouteEdge->updateContainerStackLabels();
133 if (parentEdges.size() > 0) {
135 parentEdges.front()->updatePersonStackLabels();
136 parentEdges.front()->updateContainerStackLabels();
141 firstRouteEdge->updateVehicleStackLabels();
142 firstRouteEdge->updatePersonStackLabels();
143 firstRouteEdge->updateContainerStackLabels();
Supermode
@brie enum for supermodes
@ DEMAND
Demand mode (Routes, Vehicles etc..)
@ SUMO_TAG_VTYPE
description of a vehicle/person/container type
bool isUndoRedoAllowed() const
void selectAttributeCarrier()
const std::string getID() const override
get ID (all Attribute Carriers have one)
void unselectAttributeCarrier()
unselect attribute carrier using GUIGlobalSelection
const std::string & getTagStr() const
get tag assigned to this object in string format
const GNETagProperties * getTagProperty() const
get tagProperty associated with this Attribute Carrier
GNENet * getNet() const
get pointer to net
~GNEChange_DemandElement()
Destructor.
std::string redoName() const
get Redo name
std::string undoName() const
return undoName
GNEDemandElement * myDemandElement
full information regarding the demand element element that is to be created/deleted
the function-object for an editing operation (abstract base)
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
const bool mySelectedElement
flag for check if element is selected
void addElementInParentsAndChildren(T *element)
add given element in parents and children
void removeElementFromParentsAndChildren(T *element)
remove given element from parents and children
const GNEHierarchicalStructureParents myParents
Hierarchical container with parents.
void updateVehicleStackLabels()
const GNEHierarchicalContainerParents< GNEEdge * > & getParentEdges() const
get parent edges
const GNEHierarchicalContainerParents< ParentType > & get() const
get parents
void deleteDemandElement(GNEDemandElement *demandElement, const bool updateFrames)
delete demand element of container
void insertDemandElement(GNEDemandElement *demandElement)
Insert a demand element in container.
GNEDemandElement * retrieveDemandElement(SumoXMLTag type, const std::string &id, bool hardFail=true) const
Returns the named demand element.
void requireSaveDemandElements()
inform that demand elements has to be saved
GNENetHelper::SavingStatus * getSavingStatus() const
get saving status
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
GNEApplicationWindow * getGNEApplicationWindow() const
get tag properties database
GNEViewParent * getViewParent() const
get view parent (used for simplify code)
void decRef(const std::string &debugMsg="")
Decrease reference.
bool unreferenced()
check if object ins't referenced
SumoXMLTag getTag() const
get Tag vinculated with this attribute Property
bool vehicleRoute() const
plan parents
void refreshTypeSelector(const bool updateModuls)
refresh vehicle type selector
TypeSelector * getTypeSelector() const
get vehicle type selector
GNETypeFrame * getTypeFrame() const
get frame for DEMAND_TYPE