44 myVehicleFrameParent(vehicleFrameParent) {
69 std::ostringstream information;
74 <<
"- Click over a route to\n" 75 <<
" create a vehicle.";
79 <<
"- Select two edges to\n" 84 <<
"- Click over a route to\n" 85 <<
" create a routeFlow.";
89 <<
"- Select two edges to\n" 104 GNEFrame(horizontalFrameParent, viewNet,
"Vehicles") {
196 if (vehicleParameters) {
204 delete vehicleParameters;
219 if (routeFlowParameters) {
227 delete routeFlowParameters;
317 delete tripParameters;
333 delete flowParameters;
SumoXMLTag
Numbers representing SUMO-XML - element names.
description of a vehicle type
GNEFrameModuls::EdgePathCreator * getEdgePathCreator() const
get EdgePathCreator modul
HelpCreation(GNEVehicleFrame *vehicleFrameParent)
constructor
void hideAttributesCreatorModul()
hide group box
GNEFrameAttributesModuls::AttributesCreator * myVehicleAttributes
internal vehicle attributes
void edgePathCreated()
finish edge path creation
a flow definitio nusing a from-to edges instead of a route (used by router)
void setVClass(SUMOVehicleClass vClass)
set SUMOVehicleClass
static void buildTrip(GNEViewNet *viewNet, bool undoDemandElements, const SUMOVehicleParameter &vehicleParameters, const std::vector< GNEEdge *> &edges)
build trip
GNEFrameModuls::EdgePathCreator * myEdgePathCreator
edge path creator (used for trips and flows)
a flow definition nusing a route instead of a from-to edges route (used in NETEDIT) ...
GNEFrameModuls::DemandElementSelector * myVTypeSelector
Vehicle Type selectors.
void showAttributesCreatorModul(const GNEAttributeCarrier::TagProperties &myTagProperties)
show AttributesCreator modul
static SUMOVehicleParameter * parseVehicleAttributes(const SUMOSAXAttributes &attrs, const bool hardFail, const bool optionalID=false, const bool skipDepart=false, const bool isPerson=false)
Parses a vehicle's attributes.
void showEdgePathCreator()
show EdgePathCreator
~GNEVehicleFrame()
Destructor.
weights: time range begin
void showDemandElementSelector()
show demand element selector
virtual double getAttributeDouble(SumoXMLAttr key) const =0
bool addEdge(GNEEdge *edge)
add edge to route
Encapsulated Xerces-SAX-attributes.
static void buildFlow(GNEViewNet *viewNet, bool undoDemandElements, const SUMOVehicleParameter &vehicleParameters, const std::vector< GNEEdge *> &edges)
build flow
std::map< SumoXMLAttr, std::string > getAttributesAndValues(bool includeAll) const
get attributes and their values
const std::map< int, std::string > & getPredefinedTagsMML() const
get predefinedTagsMML
begin/end of the description of a route
bool areValuesValid() const
check if parameters of attributes are valid
const std::vector< GNEEdge * > & getEdgeParents() const
get edge parents
GNEViewNet * myViewNet
View Net.
FXLabel * myInformationLabel
Label with creation information.
GNEDemandElement * getDemandElementFront() const
get front net element element (or a pointer to nullptr if there isn't)
virtual SUMOVehicleClass getVClass() const =0
obtain VClass related with this demand element
GNEDemandElement * getCurrentDemandElement() const
get current demand element
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
SumoXMLTag getTag() const
get Tag vinculated with this attribute Property
void hideEdgePathCreator()
show EdgePathCreator
GNEFrameModuls::TagSelector * myVehicleTagSelector
vehicle tag selector (used to select diffent kind of vehicles)
void refreshTagProperties()
due myCurrentTagProperties is a Reference, we need to refresh it when frameParent is show ...
static SUMOVehicleParameter * parseFlowAttributes(const SUMOSAXAttributes &attrs, const bool hardFail, const SUMOTime beginDefault, const SUMOTime endDefault, bool isPerson=false)
Parses a flow's attributes.
bool isRoute() const
return true if tag correspond to a route element
class used to group all variables related with objects under cursor after a click over view ...
GNEEdge * getEdgeFront() const
get front edge (or a pointer to nullptr if there isn't)
const std::string getID() const
function to support debugging
void tagSelected()
Tag selected in TagSelector.
#define GUIDesignLabelFrameInformation
label extended over frame without thick and with text justify to left, used to show information in fr...
std::string generateDemandElementID(const std::string &prefix, SumoXMLTag type) const
generate demand element id
GNEVehicleFrame * myVehicleFrameParent
pointer to Vehicle Frame Parent
~HelpCreation()
destructor
Structure representing possible vehicle parameter.
virtual void show()
show Frame
GNEVehicleFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
#define GUIDesignGroupBoxFrame
Group box design extended over frame.
void showHelpCreation()
show HelpCreation
const GNEAttributeCarrier::TagProperties & getCurrentTagProperties() const
get current type tag
bool addVehicle(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
add vehicle element
virtual void hide()
hide Frame
void showWarningMessage(std::string extra="") const
show warning message with information about non-valid attributes
GNENet * getNet() const
get the net object
void setStatusBarText(const std::string &text)
set staturBar text
static void buildVehicleWithEmbeddedRoute(GNEViewNet *viewNet, bool undoDemandElements, SUMOVehicleParameter vehicleParameters, GNEDemandElement *embeddedRouteCopy)
build vehicle with a embedded route
const TagProperties & getTagProperty() const
get Tag Property assigned to this object
HelpCreation * myHelpCreation
Help creation.
static void buildFlowOverRoute(GNEViewNet *viewNet, bool undoDemandElements, const SUMOVehicleParameter &vehicleParameters)
build a flow over an existent route
a single trip definition (used by router)
void hideDemandElementSelector()
hide demand element selector
void setCurrentTag(SumoXMLTag newTag)
set current type manually
std::vector< GNEEdge * > getClickedEdges() const
get current clicked edges
void hideHelpCreation()
hide HelpCreation
void updateHelpCreation()
update HelpCreation
static void buildVehicleOverRoute(GNEViewNet *viewNet, bool undoDemandElements, const SUMOVehicleParameter &vehicleParameters)
build functions
void demandElementSelected()
selected vehicle type in DemandElementSelector
static void buildFlowWithEmbeddedRoute(GNEViewNet *viewNet, bool undoDemandElements, SUMOVehicleParameter vehicleParameters, GNEDemandElement *embeddedRouteCopy)
build flow with a embedded route