Eclipse SUMO - Simulation of Urban MObility
GNEVehicleFrame Class Reference

#include <GNEVehicleFrame.h>

Inheritance diagram for GNEVehicleFrame:
Collaboration diagram for GNEVehicleFrame:

Data Structures

class  HelpCreation
 

Public Member Functions

bool addVehicle (const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
 add vehicle element More...
 
void focusUpperElement ()
 focus upper element of frame More...
 
GNEFrameModuls::EdgePathCreatorgetEdgePathCreator () const
 get EdgePathCreator modul More...
 
FXFont * getFrameHeaderFont () const
 get font of the header's frame More...
 
FXLabel * getFrameHeaderLabel () const
 get the label for the frame's header More...
 
GNEViewNetgetViewNet () const
 get view net More...
 
 GNEVehicleFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
 Constructor. More...
 
virtual void hide ()
 hide Frame More...
 
void setFrameWidth (int newWidth)
 set width of GNEFrame More...
 
void show ()
 show Frame More...
 
virtual void updateFrameAfterUndoRedo ()
 function called after undo/redo in the current frame (can be reimplemented in frame children) More...
 
 ~GNEVehicleFrame ()
 Destructor. More...
 

Protected Member Functions

void demandElementSelected ()
 selected vehicle type in DemandElementSelector More...
 
void edgePathCreated ()
 finish edge path creation More...
 
const RGBColorgetEdgeCandidateColor () const
 get edge candidate color More...
 
const RGBColorgetEdgeCandidateSelectedColor () const
 get selected color More...
 
const std::map< int, std::string > & getPredefinedTagsMML () const
 get predefinedTagsMML More...
 
void openHelpAttributesDialog (const GNEAttributeCarrier::TagProperties &tagProperties) const
 Open help attributes dialog. More...
 
void tagSelected ()
 Tag selected in TagSelector. More...
 
functions called by moduls that can be reimplemented in frame children
virtual bool shapeDrawed ()
 build a shaped element using the drawed shape (can be reimplemented in frame children) More...
 
virtual void attributeUpdated ()
 function called after set a valid attribute in AttributeCreator/AttributeEditor/GenericParametersEditor/... More...
 
virtual void attributesEditorExtendedDialogOpened ()
 open AttributesCreator extended dialog (can be reimplemented in frame children) More...
 

Protected Attributes

FXVerticalFrame * myContentFrame
 Vertical frame that holds all widgets of frame. More...
 
FXHorizontalFrame * myHeaderFrame
 fame for header elements More...
 
FXHorizontalFrame * myHeaderLeftFrame
 fame for left header elements More...
 
FXHorizontalFrame * myHeaderRightFrame
 fame for right header elements More...
 
GNEViewNetmyViewNet
 View Net. More...
 

Private Attributes

RGBColor myEdgeCandidateColor
 edge candidate color (used by some modulds to mark edges) More...
 
RGBColor myEdgeCandidateSelectedColor
 selected edge candidate color (used by some modulds to selected mark edges) More...
 
GNEFrameModuls::EdgePathCreatormyEdgePathCreator
 edge path creator (used for trips and flows) More...
 
FXLabel * myFrameHeaderLabel
 the label for the frame's header More...
 
HelpCreationmyHelpCreation
 Help creation. More...
 
std::map< int, std::string > myPredefinedTagsMML
 Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached) More...
 
FXScrollWindow * myScrollWindowsContents
 scroll windows that holds the content frame More...
 
GNEFrameAttributesModuls::AttributesCreatormyVehicleAttributes
 internal vehicle attributes More...
 
GNEFrameModuls::TagSelectormyVehicleTagSelector
 vehicle tag selector (used to select diffent kind of vehicles) More...
 
GNEFrameModuls::DemandElementSelectormyVTypeSelector
 Vehicle Type selectors. More...
 

Static Private Attributes

static FXFont * myFrameHeaderFont = nullptr
 static Font for the Header (it's common for all headers, then create only one time) More...
 

Detailed Description

Definition at line 33 of file GNEVehicleFrame.h.

Constructor & Destructor Documentation

◆ GNEVehicleFrame()

GNEVehicleFrame::GNEVehicleFrame ( FXHorizontalFrame *  horizontalFrameParent,
GNEViewNet viewNet 
)

Constructor.

parent FXHorizontalFrame in which this GNEFrame is placed

viewNet viewNet that uses this GNEFrame

Definition at line 103 of file GNEVehicleFrame.cpp.

References myEdgePathCreator, myHelpCreation, myVehicleAttributes, myVehicleTagSelector, myVTypeSelector, GNEFrameModuls::TagSelector::setCurrentTag(), SUMO_TAG_VEHICLE, and SUMO_TAG_VTYPE.

◆ ~GNEVehicleFrame()

GNEVehicleFrame::~GNEVehicleFrame ( )

Destructor.

Definition at line 126 of file GNEVehicleFrame.cpp.

Member Function Documentation

◆ addVehicle()

bool GNEVehicleFrame::addVehicle ( const GNEViewNetHelper::ObjectsUnderCursor objectsUnderCursor)

add vehicle element

Parameters
objectsUnderCursorcollection of objects under cursor after click over view
Returns
true if vehicle was sucesfully added

Definition at line 139 of file GNEVehicleFrame.cpp.

References GNEFrameModuls::EdgePathCreator::addEdge(), GNEFrameAttributesModuls::AttributesCreator::areValuesValid(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowWithEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVehicleWithEmbeddedRoute(), GNENet::generateDemandElementID(), GNEDemandElement::getAttributeDouble(), GNEFrameAttributesModuls::AttributesCreator::getAttributesAndValues(), GNEFrameModuls::DemandElementSelector::getCurrentDemandElement(), GNEFrameModuls::TagSelector::getCurrentTagProperties(), GNEViewNetHelper::ObjectsUnderCursor::getDemandElementFront(), GNEViewNetHelper::ObjectsUnderCursor::getEdgeFront(), GNEHierarchicalElementParents::getEdgeParents(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), GNEFrame::getPredefinedTagsMML(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::TagProperties::isRoute(), myEdgePathCreator, myVehicleAttributes, myVehicleTagSelector, GNEFrame::myViewNet, myVTypeSelector, SUMOVehicleParserHelper::parseFlowAttributes(), SUMOVehicleParserHelper::parseVehicleAttributes(), GNEViewNet::setStatusBarText(), GNEFrameAttributesModuls::AttributesCreator::showWarningMessage(), SUMO_ATTR_BEGIN, SUMO_ATTR_DEPART, SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_END, SUMO_ATTR_ID, SUMO_ATTR_MAXSPEED, SUMO_ATTR_ROUTE, SUMO_ATTR_TYPE, SUMO_TAG_FLOW, SUMO_TAG_NOTHING, SUMO_TAG_ROUTE, SUMO_TAG_ROUTEFLOW, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, SUMOTime_MAX, and toString().

Referenced by GNEViewNet::processLeftButtonPressDemand().

◆ attributesEditorExtendedDialogOpened()

void GNEFrame::attributesEditorExtendedDialogOpened ( )
protectedvirtualinherited

open AttributesCreator extended dialog (can be reimplemented in frame children)

Reimplemented in GNEVehicleTypeFrame.

Definition at line 191 of file GNEFrame.cpp.

◆ attributeUpdated()

void GNEFrame::attributeUpdated ( )
protectedvirtualinherited

function called after set a valid attribute in AttributeCreator/AttributeEditor/GenericParametersEditor/...

Reimplemented in GNEInspectorFrame, GNEVehicleTypeFrame, and GNEPersonTypeFrame.

Definition at line 185 of file GNEFrame.cpp.

◆ demandElementSelected()

◆ edgePathCreated()

◆ focusUpperElement()

◆ getEdgeCandidateColor()

const RGBColor & GNEFrame::getEdgeCandidateColor ( ) const
protectedinherited

get edge candidate color

Definition at line 264 of file GNEFrame.cpp.

References GNEFrame::myEdgeCandidateColor.

Referenced by GNECrossingFrame::GNECrossingFrame().

◆ getEdgeCandidateSelectedColor()

const RGBColor & GNEFrame::getEdgeCandidateSelectedColor ( ) const
protectedinherited

get selected color

Definition at line 270 of file GNEFrame.cpp.

References GNEFrame::myEdgeCandidateSelectedColor.

Referenced by GNECrossingFrame::GNECrossingFrame().

◆ getEdgePathCreator()

GNEFrameModuls::EdgePathCreator * GNEVehicleFrame::getEdgePathCreator ( ) const

get EdgePathCreator modul

Definition at line 246 of file GNEVehicleFrame.cpp.

References myEdgePathCreator.

Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEViewNet::hotkeyBackSpace(), and GNEViewNet::hotkeyEnter().

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 145 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 139 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().

◆ getPredefinedTagsMML()

◆ getViewNet()

GNEViewNet * GNEFrame::getViewNet ( ) const
inherited

get view net

Definition at line 133 of file GNEFrame.cpp.

References GNEFrame::myViewNet.

Referenced by GNEDeleteFrame::removeAttributeCarrier().

◆ hide()

◆ openHelpAttributesDialog()

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 126 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

◆ shapeDrawed()

bool GNEFrame::shapeDrawed ( )
protectedvirtualinherited

build a shaped element using the drawed shape (can be reimplemented in frame children)

Reimplemented in GNETAZFrame, and GNEPolygonFrame.

Definition at line 178 of file GNEFrame.cpp.

◆ show()

void GNEVehicleFrame::show ( )
virtual

◆ tagSelected()

◆ updateFrameAfterUndoRedo()

void GNEFrame::updateFrameAfterUndoRedo ( )
virtualinherited

function called after undo/redo in the current frame (can be reimplemented in frame children)

Reimplemented in GNEInspectorFrame.

Definition at line 151 of file GNEFrame.cpp.

Referenced by GNEApplicationWindow::onCmdRedo(), and GNEApplicationWindow::onCmdUndo().

Field Documentation

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 123 of file GNEFrame.h.

Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), and GNEInspectorFrame::inspectMultisection().

◆ myEdgeCandidateColor

RGBColor GNEFrame::myEdgeCandidateColor
privateinherited

edge candidate color (used by some modulds to mark edges)

Definition at line 145 of file GNEFrame.h.

Referenced by GNEFrame::getEdgeCandidateColor().

◆ myEdgeCandidateSelectedColor

RGBColor GNEFrame::myEdgeCandidateSelectedColor
privateinherited

selected edge candidate color (used by some modulds to selected mark edges)

Definition at line 148 of file GNEFrame.h.

Referenced by GNEFrame::getEdgeCandidateSelectedColor().

◆ myEdgePathCreator

GNEFrameModuls::EdgePathCreator* GNEVehicleFrame::myEdgePathCreator
private

edge path creator (used for trips and flows)

Definition at line 109 of file GNEVehicleFrame.h.

Referenced by addVehicle(), demandElementSelected(), edgePathCreated(), getEdgePathCreator(), GNEVehicleFrame(), and tagSelected().

◆ myFrameHeaderFont

FXFont * GNEFrame::myFrameHeaderFont = nullptr
staticprivateinherited

static Font for the Header (it's common for all headers, then create only one time)

Definition at line 139 of file GNEFrame.h.

Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().

◆ myFrameHeaderLabel

FXLabel* GNEFrame::myFrameHeaderLabel
privateinherited

the label for the frame's header

Definition at line 142 of file GNEFrame.h.

Referenced by GNEFrame::focusUpperElement(), GNEFrame::getFrameHeaderLabel(), and GNEFrame::GNEFrame().

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

Definition at line 126 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame
protectedinherited

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame
protectedinherited

fame for right header elements

Definition at line 132 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHelpCreation

HelpCreation* GNEVehicleFrame::myHelpCreation
private

Help creation.

Definition at line 112 of file GNEVehicleFrame.h.

Referenced by demandElementSelected(), GNEVehicleFrame(), and tagSelected().

◆ myPredefinedTagsMML

std::map<int, std::string> GNEFrame::myPredefinedTagsMML
privateinherited

Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached)

Definition at line 151 of file GNEFrame.h.

Referenced by GNEFrame::getPredefinedTagsMML(), and GNEFrame::GNEFrame().

◆ myScrollWindowsContents

FXScrollWindow* GNEFrame::myScrollWindowsContents
privateinherited

scroll windows that holds the content frame

Definition at line 136 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame(), GNEFrame::openHelpAttributesDialog(), and GNEFrame::setFrameWidth().

◆ myVehicleAttributes

GNEFrameAttributesModuls::AttributesCreator* GNEVehicleFrame::myVehicleAttributes
private

internal vehicle attributes

Definition at line 106 of file GNEVehicleFrame.h.

Referenced by addVehicle(), demandElementSelected(), edgePathCreated(), GNEVehicleFrame(), and tagSelected().

◆ myVehicleTagSelector

GNEFrameModuls::TagSelector* GNEVehicleFrame::myVehicleTagSelector
private

vehicle tag selector (used to select diffent kind of vehicles)

Definition at line 100 of file GNEVehicleFrame.h.

Referenced by addVehicle(), demandElementSelected(), edgePathCreated(), GNEVehicleFrame(), show(), and tagSelected().

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet
protectedinherited

View Net.

Definition at line 120 of file GNEFrame.h.

Referenced by GNEDeleteFrame::ACsToDelete(), GNESelectorFrame::ACsToSelected(), GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEStopFrame::addStop(), addVehicle(), GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), GNETLSEditorFrame::buildIinternalLanes(), GNEPersonFrame::buildPerson(), GNEPersonFrame::buildPersonOverRoute(), GNEPersonFrame::buildPersonOverStop(), GNEProhibitionFrame::buildProhibition(), GNETLSEditorFrame::cleanup(), GNESelectorFrame::clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNETAZFrame::dropTAZMembers(), GNEPersonFrame::edgePathCreated(), edgePathCreated(), GNETLSEditorFrame::editJunction(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNETLSEditorFrame::handleChange(), GNERouteFrame::handleEdgeClick(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEFrame::hide(), GNEInspectorFrame::hide(), GNERouteFrame::hotkeyBackSpace(), GNERouteFrame::hotkeyEnter(), GNERouteFrame::hotkeyEsc(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectSingleElement(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNETLSEditorFrame::parseTLSPrograms(), GNEPersonPlanFrame::personPlanCreated(), GNECreateEdgeFrame::processClick(), GNEPolygonFrame::processClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEProhibitionFrame::ProhibitionLegend::ProhibitionLegend(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEFrame::show(), GNEStopFrame::show(), GNEDeleteFrame::show(), and GNEPersonPlanFrame::show().

◆ myVTypeSelector

GNEFrameModuls::DemandElementSelector* GNEVehicleFrame::myVTypeSelector
private

Vehicle Type selectors.

Definition at line 103 of file GNEVehicleFrame.h.

Referenced by addVehicle(), demandElementSelected(), edgePathCreated(), GNEVehicleFrame(), and tagSelected().


The documentation for this class was generated from the following files: