38 GNEFrame(horizontalFrameParent, viewNet,
"ContainerPlans"),
39 myRouteHandler(
"", viewNet->getNet(), true) {
67 if ((containers.size() > 0) || (containerFlows.size() > 0)) {
73 if (containers.size() > 0) {
95 edge.second->resetCandidateFlags();
124 }
else if (requireEdge && objectsUnderCursor.
getEdgeFront()) {
SumoXMLTag
Numbers representing SUMO-XML - element names.
@ GNE_TAG_TRANSPORT_CONTAINERSTOP
@ SUMO_TAG_NOTHING
invalid tag
@ SUMO_TAG_CONTAINER_STOP
A container stop.
@ GNE_TAG_STOPCONTAINER_EDGE
@ GNE_TAG_STOPCONTAINER_CONTAINERSTOP
@ GNE_TAG_TRANSHIP_CONTAINERSTOP
const GNETagProperties & getTagProperty() const
get tagProperty associated with this Attribute Carrier
GNERouteHandler myRouteHandler
route handler
GNEContainerPlanFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
GNEFrameModules::PathCreator * getPathCreator() const
get path creator modul
GNEFrameAttributeModules::AttributesCreator * myContainerPlanAttributes
internal vehicle attributes
GNEFrameModules::HierarchicalElementTree * myContainerHierarchy
Container Hierarchy.
GNEFrameModules::DemandElementSelector * myContainerSelector
Container selectors.
bool addContainerPlanElement(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add container plan element
GNEFrameModules::TagSelector * myContainerPlanTagSelector
containerPlan selector
void demandElementSelected()
selected demand element in DemandElementSelector
void createPath()
create path
GNEFrameModules::PathCreator * myPathCreator
Path Creator.
~GNEContainerPlanFrame()
Destructor.
void tagSelected()
Tag selected in TagSelector.
A road/street connecting two junctions (netedit-version)
bool areValuesValid() const
check if parameters of attributes are valid
void refreshAttributesCreator()
refresh attribute creator
void showAttributesCreatorModule(GNEAttributeCarrier *templateAC, const std::vector< SumoXMLAttr > &hiddenAttributes)
show AttributesCreator modul
void hideAttributesCreatorModule()
hide group box
GNEViewNet * myViewNet
View Net.
virtual void show()
show Frame
virtual void hide()
hide Frame
void setDemandElement(GNEDemandElement *demandElement)
set current demand element
void showDemandElementSelector()
show demand element selector
GNEDemandElement * getCurrentDemandElement() const
get current demand element
GNEEdge * getContainerPlanPreviousEdge() const
get previous edge for the current container plan
void hideDemandElementSelector()
hide demand element selector
void hideHierarchicalElementTree()
hide HierarchicalElementTree
void refreshHierarchicalElementTree()
refresh HierarchicalElementTree
void showHierarchicalElementTree(GNEAttributeCarrier *AC)
show HierarchicalElementTree
bool addEdge(GNEEdge *edge, const bool shiftKeyPressed, const bool controlKeyPressed)
add edge
void abortPathCreation()
abort path creation
void hidePathCreatorModule()
show PathCreator
bool addStoppingPlace(GNEAdditional *stoppingPlace, const bool shiftKeyPressed, const bool controlKeyPressed)
add stoppingPlace
void showPathCreatorModule(SumoXMLTag element, const bool firstElement, const bool consecutives)
show PathCreator for the given tag
void hideTagSelector()
hide item selector
void refreshTagSelector()
refresh tagSelector (used when frameParent is show)
GNEAttributeCarrier * getCurrentTemplateAC() const
get current templateAC
void showTagSelector()
show item selector
const std::map< SumoXMLTag, std::set< GNEDemandElement * > > & getDemandElements() const
get demand elements
const std::map< std::string, GNEEdge * > & getEdges() const
map with the ID and pointer to edges of net
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
bool buildContainerPlan(SumoXMLTag tag, GNEDemandElement *containerParent, GNEFrameAttributeModules::AttributesCreator *containerPlanAttributes, GNEFrameModules::PathCreator *pathCreator)
build container plan
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
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