![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEVehicleFrame.h>
Data Structures | |
| class | HelpCreation |
Public Member Functions | |
| bool | addVehicle (const GNEViewNetHelper::ViewObjectsSelector &viewObjects, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed) |
| add vehicle element | |
| void | focusUpperElement () |
| focus upper element of frame | |
| virtual void | frameWidthUpdated () |
| function called after setting new width in current frame (can be reimplemented in frame children) | |
| FXVerticalFrame * | getContentFrame () const |
| get vertical frame that holds all widgets of frame | |
| FXFont * | getFrameHeaderFont () const |
| get font of the header's frame | |
| FXLabel * | getFrameHeaderLabel () const |
| get the label for the frame's header | |
| GNEPathCreator * | getPathCreator () const |
| get GNEPathCreator module | |
| int | getScrollBarWidth () const |
| get scrollBar width (zero if is hidden) | |
| GNEDemandElementSelector * | getTypeSelector () const |
| getVehicle Type selectors | |
| GNEAttributesEditor * | getVehicleAttributesEditor () const |
| get attributes creator | |
| GNETagSelector * | getVehicleTagSelector () const |
| get vehicle tag selector (needed for transform vehicles) | |
| GNEViewNet * | getViewNet () const |
| get view net | |
| GNEVehicleFrame (GNEViewParent *viewParent, GNEViewNet *viewNet) | |
| Constructor. | |
| void | hide () |
| hide Frame | |
| void | openHelpAttributesDialog (const GNEAttributeCarrier *AC) const |
| Open help attributes dialog. | |
| void | setFrameWidth (const int newWidth) |
| set width of GNEFrame | |
| void | show () |
| show Frame | |
| virtual void | updateFrameAfterUndoRedo () |
| function called after undo/redo in the current frame (can be reimplemented in frame children) | |
| ~GNEVehicleFrame () | |
| Destructor. | |
functions called by moduls that can be reimplemented in frame children (note: reimplement as protected, just for safety) | |
| virtual bool | shapeDrawed () |
| build a shaped element using the drawed shape | |
| virtual void | attributeUpdated (SumoXMLAttr attribute) |
| function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/... | |
| virtual void | selectedOverlappedElement (GNEAttributeCarrier *AC) |
| open GNEAttributesCreator extended dialog | |
Protected Member Functions | |
| bool | buildVehicleOverRoute (SumoXMLTag vehicleTag, GNEDemandElement *route) |
| build vehicle over route | |
| bool | createPath (const bool useLastRoute) |
| create path | |
| void | demandElementSelected () |
| selected vehicle type in DemandElementSelector | |
| const std::vector< std::string > & | getPredefinedTagsMML () const |
| get predefinedTagsMML | |
| void | tagSelected () |
| Tag selected in GNETagSelector. | |
| void | updateFlowAttributes () |
| update flow attributes | |
Static Protected Member Functions | |
| static FXLabel * | buildRainbow (FXComposite *parent) |
| build rainbow in frame modul | |
Protected Attributes | |
| FXVerticalFrame * | myContentFrame = nullptr |
| Vertical frame that holds all widgets of frame. | |
| FXHorizontalFrame * | myHeaderFrame = nullptr |
| fame for header elements | |
| FXHorizontalFrame * | myHeaderLeftFrame = nullptr |
| fame for left header elements | |
| FXHorizontalFrame * | myHeaderRightFrame = nullptr |
| fame for right header elements | |
| GNEViewNet * | myViewNet = nullptr |
| FOX need this. | |
Private Attributes | |
| FXLabel * | myFrameHeaderLabel = nullptr |
| the label for the frame's header | |
| HelpCreation * | myHelpCreation = nullptr |
| Help creation. | |
| GNEPathCreator * | myPathCreator = nullptr |
| edge path creator (used for trips and flows) | |
| GNEPathLegendModule * | myPathLegend = nullptr |
| path legend modul | |
| std::vector< std::string > | myPredefinedTagsMML |
| Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached). | |
| FXScrollWindow * | myScrollWindowsContents = nullptr |
| scroll windows that holds the content frame | |
| GNEDemandElementSelector * | myTypeSelector = nullptr |
| Vehicle Type selectors. | |
| GNEAttributesEditor * | myVehicleAttributesEditor = nullptr |
| attributes editor | |
| CommonXMLStructure::SumoBaseObject * | myVehicleBaseObject = nullptr |
| vehicle base object | |
| GNETagSelector * | myVehicleTagSelector = nullptr |
| vehicle tag selector (used to select diffent kind of vehicles) | |
Static Private Attributes | |
| static FXFont * | myFrameHeaderFont = nullptr |
| static Font for the Header (it's common for all headers, then create only one time) | |
Definition at line 41 of file GNEVehicleFrame.h.
| GNEVehicleFrame::GNEVehicleFrame | ( | GNEViewParent * | viewParent, |
| GNEViewNet * | viewNet ) |
Constructor.
viewParent GNEViewParent in which this GNEFrame is placed
viewNet viewNet that uses this GNEFrame
Definition at line 129 of file GNEVehicleFrame.cpp.
References GNEAttributesEditorType::CREATOR, GNENet::getDemandPathManager(), GNEViewNet::getNet(), GNEFrame::GNEFrame(), myHelpCreation, myPathCreator, myPathLegend, myTypeSelector, myVehicleAttributesEditor, myVehicleBaseObject, myVehicleTagSelector, SUMO_TAG_TRIP, SUMO_TAG_VTYPE, TL, and GNETagProperties::VEHICLE.
Referenced by GNEVehicleFrame::HelpCreation::HelpCreation().
| GNEVehicleFrame::~GNEVehicleFrame | ( | ) |
| bool GNEVehicleFrame::addVehicle | ( | const GNEViewNetHelper::ViewObjectsSelector & | viewObjects, |
| const GNEViewNetHelper::MouseButtonKeyPressed & | mouseButtonKeyPressed ) |
add vehicle element
| viewObjects | collection of objects under cursor after click over view |
| mouseButtonKeyPressed | key pressed during click |
Definition at line 183 of file GNEVehicleFrame.cpp.
References buildVehicleOverRoute(), GNEViewNetHelper::MouseButtonKeyPressed::controlKeyPressed(), GNEViewNetHelper::ViewObjectsSelector::getDemandElementFront(), GNEViewNetHelper::ViewObjectsSelector::getEdgeFront(), GNEViewNetHelper::ViewObjectsSelector::getJunctionFront(), GNEViewNetHelper::ViewObjectsSelector::getTAZFront(), GNE_TAG_FLOW_JUNCTIONS, GNE_TAG_FLOW_TAZS, GNE_TAG_FLOW_WITHROUTE, GNE_TAG_TRIP_JUNCTIONS, GNE_TAG_TRIP_TAZS, GNE_TAG_VEHICLE_WITHROUTE, myPathCreator, myTypeSelector, myVehicleBaseObject, myVehicleTagSelector, GNEFrame::myViewNet, GNEViewNetHelper::MouseButtonKeyPressed::shiftKeyPressed(), SUMO_ATTR_TYPE, SUMO_TAG_FLOW, SUMO_TAG_NOTHING, SUMO_TAG_TRIP, and TL.
|
virtualinherited |
function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/...
Reimplemented in GNEMeanDataFrame, GNERouteDistributionFrame, GNETypeDistributionFrame, and GNETypeFrame.
Definition at line 220 of file GNEFrame.cpp.
|
staticprotectedinherited |
build rainbow in frame modul
Definition at line 245 of file GNEFrame.cpp.
References MFXUtils::getFXColor(), GNEViewNetHelper::getRainbowScaledColors(), GUIDesignAuxiliarHorizontalFrame, GUIDesignLabel, GUIDesignLabelThick, and TL.
Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), and GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic().
|
protected |
build vehicle over route
Definition at line 540 of file GNEVehicleFrame.cpp.
References GNEAttributeCarrier::canParse(), GNEAttributeCarrier::getID(), GNEHierarchicalElement::getParentEdges(), GNEFrame::getPredefinedTagsMML(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNE_ATTR_DEMAND_FILE, GNETagProperties::isRoute(), myTypeSelector, myVehicleAttributesEditor, myVehicleBaseObject, GNEFrame::myViewNet, GNEAttributeCarrier::parse(), SUMOVehicleParserHelper::parseFlowAttributes(), RouteHandler::parseSumoBaseObject(), SUMOVehicleParserHelper::parseVehicleAttributes(), SUMOVehicleParameter::routeid, Parameterised::setParameters(), SUMO_ATTR_DEPART, SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_ID, SUMO_ATTR_MAXSPEED, SUMO_TAG_FLOW, SUMO_TAG_ROUTE, SUMO_TAG_VEHICLE, SUMOTime_MAX, toString(), and updateFlowAttributes().
Referenced by addVehicle(), and createPath().
|
protectedvirtual |
create path
Reimplemented from GNEFrame.
Definition at line 301 of file GNEVehicleFrame.cpp.
References CommonXMLStructure::SumoBaseObject::addColorAttribute(), CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addIntAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonXMLStructure::SumoBaseObject::addTimeAttribute(), buildVehicleOverRoute(), GNEFrame::getPredefinedTagsMML(), GNE_ATTR_DEMAND_FILE, GNE_TAG_FLOW_JUNCTIONS, GNE_TAG_FLOW_TAZS, GNE_TAG_FLOW_WITHROUTE, GNE_TAG_TRIP_JUNCTIONS, GNE_TAG_TRIP_TAZS, GNE_TAG_VEHICLE_WITHROUTE, RGBColor::INVISIBLE, myPathCreator, myTypeSelector, myVehicleAttributesEditor, myVehicleBaseObject, myVehicleTagSelector, GNEFrame::myViewNet, SUMOVehicleParserHelper::parseFlowAttributes(), RouteHandler::parseSumoBaseObject(), SUMOVehicleParserHelper::parseVehicleAttributes(), Parameterised::setParameters(), CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_COLOR, SUMO_ATTR_CYCLETIME, SUMO_ATTR_DEPART, SUMO_ATTR_EDGES, SUMO_ATTR_FROM, SUMO_ATTR_FROM_JUNCTION, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_PROB, SUMO_ATTR_REPEAT, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, SUMO_ATTR_TYPE, SUMO_ATTR_VIA, SUMO_TAG_FLOW, SUMO_TAG_ROUTE, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, SUMOTime_MAX, toString(), and updateFlowAttributes().
|
protectedvirtual |
selected vehicle type in DemandElementSelector
Reimplemented from GNEFrame.
Definition at line 277 of file GNEVehicleFrame.cpp.
References myHelpCreation, myPathCreator, myPathLegend, myTypeSelector, myVehicleAttributesEditor, and myVehicleTagSelector.
|
inherited |
focus upper element of frame
Definition at line 104 of file GNEFrame.cpp.
References myFrameHeaderLabel.
Referenced by GNEInspectorFrame::inspectClickedElements().
|
virtualinherited |
function called after setting new width in current frame (can be reimplemented in frame children)
Reimplemented in GNETLSEditorFrame.
Definition at line 192 of file GNEFrame.cpp.
Referenced by setFrameWidth().
|
inherited |
get vertical frame that holds all widgets of frame
Definition at line 151 of file GNEFrame.cpp.
References myContentFrame.
|
inherited |
get font of the header's frame
Definition at line 163 of file GNEFrame.cpp.
References myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 157 of file GNEFrame.cpp.
References myFrameHeaderLabel.
Referenced by GNEInspectorFrame::refreshInspection().
| GNEPathCreator * GNEVehicleFrame::getPathCreator | ( | ) | const |
get GNEPathCreator module
Definition at line 238 of file GNEVehicleFrame.cpp.
References myPathCreator.
|
protectedinherited |
get predefinedTagsMML
Definition at line 239 of file GNEFrame.cpp.
References myPredefinedTagsMML.
Referenced by GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::buildVehicleOverRoute(), and GNEVehicleFrame::createPath().
|
inherited |
get scrollBar width (zero if is hidden)
Definition at line 169 of file GNEFrame.cpp.
References myScrollWindowsContents.
| GNEDemandElementSelector * GNEVehicleFrame::getTypeSelector | ( | ) | const |
getVehicle Type selectors
Definition at line 232 of file GNEVehicleFrame.cpp.
References myTypeSelector.
| GNEAttributesEditor * GNEVehicleFrame::getVehicleAttributesEditor | ( | ) | const |
get attributes creator
Definition at line 244 of file GNEVehicleFrame.cpp.
References myVehicleAttributesEditor.
| GNETagSelector * GNEVehicleFrame::getVehicleTagSelector | ( | ) | const |
get vehicle tag selector (needed for transform vehicles)
Definition at line 226 of file GNEVehicleFrame.cpp.
References myVehicleTagSelector.
|
inherited |
get view net
Definition at line 145 of file GNEFrame.cpp.
References myViewNet.
Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEAttributesEditorType::buildRows(), GNEDeleteFrame::SubordinatedElements::checkElements(), GNETLSTable::Column::Column(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEMatchAttribute::GNEMatchAttribute(), GNEPathLegendModule::GNEPathLegendModule(), GNECrossingFrame::Information::Information(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), and GNETLSEditorFrame::TLSPrograms::TLSPrograms().
|
virtual |
hide Frame
Reimplemented from GNEFrame.
Definition at line 168 of file GNEVehicleFrame.cpp.
References GNEFrame::hide(), and GNEFrame::myViewNet.
Referenced by GNEVehicleFrame::HelpCreation::hideHelpCreation().
|
inherited |
|
virtualinherited |
open GNEAttributesCreator extended dialog
Reimplemented in GNEInspectorFrame, and GNETLSEditorFrame.
Definition at line 226 of file GNEFrame.cpp.
|
inherited |
set width of GNEFrame
Definition at line 128 of file GNEFrame.cpp.
References frameWidthUpdated(), GUIDesignFrameAreaMargin, myContentFrame, and myScrollWindowsContents.
Referenced by GNEInspectorFrame::refreshInspection().
|
virtualinherited |
build a shaped element using the drawed shape
Reimplemented in GNEShapeFrame, and GNETAZFrame.
Definition at line 213 of file GNEFrame.cpp.
|
virtual |
show Frame
Reimplemented from GNEFrame.
Definition at line 159 of file GNEVehicleFrame.cpp.
References myVehicleTagSelector, and GNEFrame::show().
Referenced by GNEVehicleFrame::HelpCreation::showHelpCreation().
|
protectedvirtual |
Tag selected in GNETagSelector.
Reimplemented from GNEFrame.
Definition at line 253 of file GNEVehicleFrame.cpp.
References myHelpCreation, myPathCreator, myPathLegend, myTypeSelector, myVehicleAttributesEditor, and myVehicleTagSelector.
|
protected |
update flow attributes
Definition at line 628 of file GNEVehicleFrame.cpp.
References GNE_ATTR_POISSON, myVehicleBaseObject, SUMO_ATTR_PERIOD, and toString().
Referenced by buildVehicleOverRoute(), and createPath().
|
virtualinherited |
function called after undo/redo in the current frame (can be reimplemented in frame children)
Reimplemented in GNEGenericDataFrame, GNEInspectorFrame, GNEMeanDataFrame, and GNESelectorFrame.
Definition at line 186 of file GNEFrame.cpp.
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 125 of file GNEFrame.h.
Referenced by getContentFrame(), GNESelectorFrame::getContentFrame(), GNEFrame(), and setFrameWidth().
|
staticprivateinherited |
static Font for the Header (it's common for all headers, then create only one time)
Definition at line 147 of file GNEFrame.h.
Referenced by getFrameHeaderFont(), GNEFrame(), and ~GNEFrame().
|
privateinherited |
the label for the frame's header
Definition at line 150 of file GNEFrame.h.
Referenced by focusUpperElement(), getFrameHeaderLabel(), and GNEFrame().
|
protectedinherited |
|
protectedinherited |
fame for left header elements
Definition at line 131 of file GNEFrame.h.
Referenced by GNEFrame(), GNEInspectorFrame::GNEInspectorFrame(), and GNEInspectorFrame::refreshInspection().
|
protectedinherited |
|
private |
Help creation.
Definition at line 142 of file GNEVehicleFrame.h.
Referenced by demandElementSelected(), GNEVehicleFrame(), and tagSelected().
|
private |
edge path creator (used for trips and flows)
Definition at line 139 of file GNEVehicleFrame.h.
Referenced by addVehicle(), createPath(), demandElementSelected(), getPathCreator(), GNEVehicleFrame(), and tagSelected().
|
private |
path legend modul
Definition at line 145 of file GNEVehicleFrame.h.
Referenced by demandElementSelected(), GNEVehicleFrame(), and tagSelected().
|
privateinherited |
Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached).
Definition at line 153 of file GNEFrame.h.
Referenced by getPredefinedTagsMML(), and GNEFrame().
|
privateinherited |
scroll windows that holds the content frame
Definition at line 144 of file GNEFrame.h.
Referenced by getScrollBarWidth(), GNEFrame(), and setFrameWidth().
|
private |
Vehicle Type selectors.
Definition at line 133 of file GNEVehicleFrame.h.
Referenced by addVehicle(), buildVehicleOverRoute(), createPath(), demandElementSelected(), getTypeSelector(), GNEVehicleFrame(), and tagSelected().
|
private |
attributes editor
Definition at line 136 of file GNEVehicleFrame.h.
Referenced by buildVehicleOverRoute(), createPath(), demandElementSelected(), getVehicleAttributesEditor(), GNEVehicleFrame(), and tagSelected().
|
private |
vehicle base object
Definition at line 127 of file GNEVehicleFrame.h.
Referenced by addVehicle(), buildVehicleOverRoute(), createPath(), GNEVehicleFrame(), updateFlowAttributes(), and ~GNEVehicleFrame().
|
private |
vehicle tag selector (used to select diffent kind of vehicles)
Definition at line 130 of file GNEVehicleFrame.h.
Referenced by addVehicle(), createPath(), demandElementSelected(), getVehicleTagSelector(), GNEVehicleFrame(), show(), and tagSelected().
|
protectedinherited |
FOX need this.
View Net
Definition at line 122 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), GNECreateEdgeFrame::addBikelane(), GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNECrossingFrame::addCrossing(), GNEEdgeDataFrame::addEdgeData(), GNERouteFrame::addEdgeRoute(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNECreateEdgeFrame::addSidewalk(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEWireFrame::addWire(), GNEConnectorFrame::buildConnection(), GNEContainerFrame::buildContainer(), GNETLSEditorFrame::buildInternalLanes(), GNEPersonFrame::buildPerson(), GNEProhibitionFrame::buildProhibition(), GNETAZRelDataFrame::buildTAZRelationData(), GNEVehicleFrame::buildVehicleOverRoute(), GNEWireFrame::buildWireOverView(), GNETLSEditorFrame::cleanup(), GNEWireFrame::createBaseWireObject(), GNEAdditionalFrame::createPath(), GNEContainerFrame::createPath(), GNEContainerPlanFrame::createPath(), GNEEdgeRelDataFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNEWireFrame::createPath(), GNECreateEdgeFrame::disablePedestrians(), GNETAZFrame::dropTAZMembers(), GNETLSEditorFrame::editJunction(), GNETLSEditorFrame::editTLS(), GNEStopFrame::getStopParameter(), getViewNet(), GNEFrame(), GNETypeFrame::GNETypeFrame(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEContainerFrame::hide(), GNEContainerPlanFrame::hide(), hide(), GNEGenericDataFrame::hide(), GNEInspectorFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), GNEAdditionalFrame::initBaseAdditionalObject(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectClickedElements(), GNEInspectorFrame::inspectElement(), GNEInspectorFrame::inspectElements(), GNETLSEditorFrame::isTLSSaved(), GNEProhibitionFrame::Legend::Legend(), openHelpAttributesDialog(), GNETLSEditorFrame::parseTLSPrograms(), GNECreateEdgeFrame::processClick(), GNEShapeFrame::processClick(), GNEShapeFrame::processClickPOI(), GNEShapeFrame::processClickPOIGeo(), GNEShapeFrame::processClickPOILanes(), GNEInspectorFrame::refreshInspection(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeGeometryPoint(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNESelectorFrame::selectAttributeCarrier(), GNEDeleteFrame::selectedACsToDelete(), GNEInspectorFrame::selectedOverlappedElement(), GNEShapeFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEContainerPlanFrame::show(), show(), GNEMoveFrame::show(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), GNEWireFrame::show(), and GNEAdditionalFrame::tagSelected().