41 myDemandElement(demandElement) {
42 myDemandElement->incRef(
"GNEChange_DemandElement");
89 if (parentEdges.size() > 0) {
91 parentEdges.front()->updatePersonStackLabels();
92 parentEdges.front()->updateContainerStackLabels();
126 if (parentEdges.size() > 0) {
128 parentEdges.front()->updatePersonStackLabels();
129 parentEdges.front()->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
const std::string getID() const
get ID (all Attribute Carriers have one)
void selectAttributeCarrier()
select attribute carrier using GUIGlobalSelection
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.
A road/street connecting two junctions (netedit-version)
void updateVehicleStackLabels()
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
GNEViewNet * getViewNet() const
get view net
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
void refreshTypeSelector(const bool updateModuls)
refresh vehicle type selector
TypeSelector * getTypeSelector() const
get vehicle type selector
GNEViewParent * getViewParent() const
get the net object
GNETypeFrame * getTypeFrame() const
get frame for DEMAND_TYPE
GNEApplicationWindow * getGNEAppWindows() const
get GNE Application Windows