Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEVehicleFrame Class Reference

#include <GNEVehicleFrame.h>

Inheritance diagram for GNEVehicleFrame:
[legend]
Collaboration diagram for GNEVehicleFrame:
[legend]

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
 
GNEPathCreatorgetPathCreator () const
 get GNEPathCreator module
 
int getScrollBarWidth () const
 get scrollBar width (zero if is hidden)
 
GNEDemandElementSelectorgetTypeSelector () const
 getVehicle Type selectors
 
GNEAttributesEditorgetVehicleAttributesEditor () const
 get attributes creator
 
GNETagSelectorgetVehicleTagSelector () const
 get vehicle tag selector (needed for transform vehicles)
 
GNEViewNetgetViewNet () 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
 
GNEViewNetmyViewNet = nullptr
 FOX need this.
 

Private Attributes

FXLabel * myFrameHeaderLabel = nullptr
 the label for the frame's header
 
HelpCreationmyHelpCreation = nullptr
 Help creation.
 
GNEPathCreatormyPathCreator = nullptr
 edge path creator (used for trips and flows)
 
GNEPathLegendModulemyPathLegend = 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
 
GNEDemandElementSelectormyTypeSelector = nullptr
 Vehicle Type selectors.
 
GNEAttributesEditormyVehicleAttributesEditor = nullptr
 attributes editor
 
CommonXMLStructure::SumoBaseObjectmyVehicleBaseObject = nullptr
 vehicle base object
 
GNETagSelectormyVehicleTagSelector = 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)
 

Detailed Description

Definition at line 40 of file GNEVehicleFrame.h.

Constructor & Destructor Documentation

◆ GNEVehicleFrame()

GNEVehicleFrame::GNEVehicleFrame ( GNEViewParent viewParent,
GNEViewNet viewNet 
)

◆ ~GNEVehicleFrame()

GNEVehicleFrame::~GNEVehicleFrame ( )

Destructor.

Definition at line 153 of file GNEVehicleFrame.cpp.

References myVehicleBaseObject.

Member Function Documentation

◆ addVehicle()

bool GNEVehicleFrame::addVehicle ( const GNEViewNetHelper::ViewObjectsSelector viewObjects,
const GNEViewNetHelper::MouseButtonKeyPressed mouseButtonKeyPressed 
)

add vehicle element

Parameters
viewObjectscollection of objects under cursor after click over view
mouseButtonKeyPressedkey pressed during click
Returns
true if element was successfully added

Definition at line 183 of file GNEVehicleFrame.cpp.

References GNEPathCreator::addEdge(), GNEPathCreator::addJunction(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), GNEPathCreator::addTAZ(), buildVehicleOverRoute(), CommonXMLStructure::SumoBaseObject::clear(), GNEViewNetHelper::MouseButtonKeyPressed::controlKeyPressed(), GNEDemandElementSelector::getCurrentDemandElement(), GNETagSelector::getCurrentTemplateAC(), GNEViewNetHelper::ViewObjectsSelector::getDemandElementFront(), GNEViewNetHelper::ViewObjectsSelector::getEdgeFront(), GNEAttributeCarrier::getID(), GNEViewNetHelper::ViewObjectsSelector::getJunctionFront(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), 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, GNEViewNet::setStatusBarText(), GNEViewNetHelper::MouseButtonKeyPressed::shiftKeyPressed(), SUMO_ATTR_TYPE, SUMO_TAG_FLOW, SUMO_TAG_NOTHING, SUMO_TAG_TRIP, TL, and GNETagProperties::vehicleRoute().

Referenced by GNEViewNet::processLeftButtonPressDemand().

Here is the caller graph for this function:

◆ attributeUpdated()

void GNEFrame::attributeUpdated ( SumoXMLAttr  attribute)
virtualinherited

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

Reimplemented in GNEMeanDataFrame, GNERouteDistributionFrame, GNETypeDistributionFrame, and GNETypeFrame.

Definition at line 227 of file GNEFrame.cpp.

Referenced by GNEAttributesEditorType::setAttribute(), and GNEAttributesEditorType::toggleEnableAttribute().

Here is the caller graph for this function:

◆ buildRainbow()

FXLabel * GNEFrame::buildRainbow ( FXComposite *  parent)
staticprotectedinherited

build rainbow in frame modul

Definition at line 252 of file GNEFrame.cpp.

References MFXUtils::getFXColor(), GNEViewNetHelper::getRainbowScaledColors(), GUIDesignAuxiliarHorizontalFrame, GUIDesignLabel, GUIDesignLabelThick, and TL.

Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), and GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic().

Here is the caller graph for this function:

◆ buildVehicleOverRoute()

bool GNEVehicleFrame::buildVehicleOverRoute ( SumoXMLTag  vehicleTag,
GNEDemandElement route 
)
protected

build vehicle over route

Definition at line 540 of file GNEVehicleFrame.cpp.

References CommonXMLStructure::SumoBaseObject::addStringAttribute(), Boundary::around(), GUISUMOAbstractView::centerTo(), GNEAttributesEditor::checkAttributes(), GNEAttributesEditor::fillSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getAllAttributes(), GNENet::getAttributeCarriers(), GNEDemandElement::getAttributeDouble(), GNEDemandElementSelector::getCurrentDemandElement(), GNEViewParent::getGNEAppWindows(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), CommonXMLStructure::SumoBaseObject::getParameters(), GNEHierarchicalElement::getParentEdges(), GNEFrame::getPredefinedTagsMML(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), GNETagProperties::getTag(), CommonXMLStructure::SumoBaseObject::getTag(), GNEAttributeCarrier::getTagProperty(), GNEViewNet::getViewParent(), GUISUMOAbstractView::getVisibleBoundary(), GNE_ATTR_DEMAND_FILE, CommonXMLStructure::SumoBaseObject::hasStringAttribute(), GNETagProperties::isRoute(), GNEApplicationWindow::isUndoRedoAllowed(), myTypeSelector, myVehicleAttributesEditor, myVehicleBaseObject, GNEFrame::myViewNet, SUMOVehicleParserHelper::parseFlowAttributes(), SUMOVehicleParserHelper::parseVehicleAttributes(), GNEAttributesEditor::refreshAttributesEditor(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMOVehicleParameter::routeid, Parameterised::setParameters(), GNEViewNet::setStatusBarText(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), 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().

Here is the caller graph for this function:

◆ createPath()

bool GNEVehicleFrame::createPath ( const bool  useLastRoute)
protectedvirtual

create path

Reimplemented from GNEFrame.

Definition at line 301 of file GNEVehicleFrame.cpp.

References GNEPathCreator::abortPathCreation(), CommonXMLStructure::SumoBaseObject::addColorAttribute(), CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addIntAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonXMLStructure::SumoBaseObject::addTimeAttribute(), buildVehicleOverRoute(), GNEAttributesEditor::checkAttributes(), CommonXMLStructure::SumoBaseObject::clear(), GNEAttributesEditor::fillSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getAllAttributes(), GNEDemandElementSelector::getCurrentDemandElement(), GNETagSelector::getCurrentTemplateAC(), GNEViewParent::getGNEAppWindows(), GNEAttributeCarrier::getID(), GNEViewNet::getLastCreatedRoute(), GNEViewNet::getNet(), CommonXMLStructure::SumoBaseObject::getParameters(), GNEPathCreator::getPath(), GNEFrame::getPredefinedTagsMML(), GNEPathCreator::getSelectedEdges(), GNEPathCreator::getSelectedJunctions(), GNEPathCreator::getSelectedTAZs(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEViewNet::getViewParent(), 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, CommonXMLStructure::SumoBaseObject::hasStringAttribute(), RGBColor::INVISIBLE, GNEApplicationWindow::isUndoRedoAllowed(), myPathCreator, myTypeSelector, myVehicleAttributesEditor, myVehicleBaseObject, myVehicleTagSelector, GNEFrame::myViewNet, SUMOVehicleParserHelper::parseFlowAttributes(), SUMOVehicleParserHelper::parseVehicleAttributes(), GNEAttributesEditor::refreshAttributesEditor(), Parameterised::setParameters(), CommonXMLStructure::SumoBaseObject::setTag(), CommonXMLStructure::SumoBaseObject::setVehicleParameter(), 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().

◆ demandElementSelected()

◆ focusUpperElement()

void GNEFrame::focusUpperElement ( )
inherited

focus upper element of frame

Definition at line 111 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEViewNet::hotkeyFocusFrame(), GNEInspectorFrame::inspectClickedElements(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().

Here is the caller graph for this function:

◆ frameWidthUpdated()

void GNEFrame::frameWidthUpdated ( )
virtualinherited

function called after setting new width in current frame (can be reimplemented in frame children)

Reimplemented in GNETLSEditorFrame.

Definition at line 199 of file GNEFrame.cpp.

Referenced by GNEFrame::setFrameWidth().

Here is the caller graph for this function:

◆ getContentFrame()

FXVerticalFrame * GNEFrame::getContentFrame ( ) const
inherited

get vertical frame that holds all widgets of frame

Definition at line 158 of file GNEFrame.cpp.

References GNEFrame::myContentFrame.

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 170 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 164 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEInspectorFrame::refreshInspection().

Here is the caller graph for this function:

◆ getPathCreator()

GNEPathCreator * GNEVehicleFrame::getPathCreator ( ) const

get GNEPathCreator module

Definition at line 238 of file GNEVehicleFrame.cpp.

References myPathCreator.

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

Here is the caller graph for this function:

◆ getPredefinedTagsMML()

const std::vector< std::string > & GNEFrame::getPredefinedTagsMML ( ) const
protectedinherited

get predefinedTagsMML

Definition at line 246 of file GNEFrame.cpp.

References GNEFrame::myPredefinedTagsMML.

Referenced by GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), buildVehicleOverRoute(), and createPath().

Here is the caller graph for this function:

◆ getScrollBarWidth()

int GNEFrame::getScrollBarWidth ( ) const
inherited

get scrollBar width (zero if is hidden)

Definition at line 176 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

Referenced by MFXGroupBoxModule::onCmdExtendButton(), and GNETLSTable::recalcTableWidth().

Here is the caller graph for this function:

◆ getTypeSelector()

GNEDemandElementSelector * GNEVehicleFrame::getTypeSelector ( ) const

getVehicle Type selectors

Definition at line 232 of file GNEVehicleFrame.cpp.

References myTypeSelector.

◆ getVehicleAttributesEditor()

GNEAttributesEditor * GNEVehicleFrame::getVehicleAttributesEditor ( ) const

get attributes creator

Definition at line 244 of file GNEVehicleFrame.cpp.

References myVehicleAttributesEditor.

Referenced by GNEApplicationWindow::onCmdToggleTimeFormat().

Here is the caller graph for this function:

◆ getVehicleTagSelector()

GNETagSelector * GNEVehicleFrame::getVehicleTagSelector ( ) const

get vehicle tag selector (needed for transform vehicles)

Definition at line 226 of file GNEVehicleFrame.cpp.

References myVehicleTagSelector.

Referenced by GNEDemandElement::checkDrawOverContour().

Here is the caller graph for this function:

◆ getViewNet()

GNEViewNet * GNEFrame::getViewNet ( ) const
inherited

get view net

Definition at line 152 of file GNEFrame.cpp.

References GNEFrame::myViewNet.

Referenced by GNEConsecutiveSelector::abortPathCreation(), GNEPathCreator::abortPathCreation(), GNEPlanCreator::abortPathCreation(), GNEPathCreator::addEdge(), GNEPlanCreator::addFromToStoppingPlace(), GNEPathCreator::addJunction(), GNEConsecutiveSelector::addLane(), GNEPlanCreator::addSingleEdge(), GNEPathCreator::addTAZ(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEAttributesEditorType::buildRows(), GNETLSTable::Cell::Cell(), GNEAttributesEditorType::checkAttributes(), GNEDeleteFrame::SubordinatedElements::checkElements(), GNEPathCreator::clearEdgeColors(), GNEPlanSelector::clearEdgeColors(), GNEPathCreator::clearJunctionColors(), GNEPlanSelector::clearJunctionColors(), GNEConsecutiveSelector::clearPath(), GNEViewObjectSelector::clearSelection(), GNETLSTable::Column::Column(), GNEElementTree::createPopUpMenu(), GNEMatchAttribute::CurrentEditedProperties::CurrentEditedProperties(), GNEDistributionFrame::DistributionRow::DistributionRow(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEConsecutiveSelector::drawTemporalConsecutiveLanePath(), GNEPlanCreator::drawTemporalRoute(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNEAttributesEditorRow::enableElements(), GNEAttributesEditorType::enableReparent(), GNEAttributesEditorRow::getAttributeValue(), GNEMatchAttribute::getMatches(), GNEInternalLane::getPopUpMenu(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEMatchAttribute::GNEMatchAttribute(), GNEPathLegendModule::GNEPathLegendModule(), GNECrossingFrame::Information::Information(), GNEAttributesEditorType::inspectParent(), GNEElementTree::isSupermodeValid(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNEAttributesEditorType::moveLaneDown(), GNEAttributesEditorType::moveLaneUp(), GNEAttributesEditorType::onCmdAttributesEditorReset(), GNEElementTree::onCmdCenterItem(), GNEElementTree::onCmdDeleteItem(), MFXGroupBoxModule::onCmdExtendButton(), GNEMatchAttribute::onCmdHelp(), GNEElementTree::onCmdInspectItem(), GNEElementTree::onCmdMoveItemDown(), GNEElementTree::onCmdMoveItemUp(), GNEAttributesEditorRow::onCmdOpenColorDialog(), GNEAttributesEditorType::onCmdOpenEditParametersDialog(), GNEAttributesEditorType::onCmdOpenExtendedAttributesDialog(), GNEAttributesEditorRow::onCmdOpenFileDialog(), GNEAttributesEditorRow::onCmdOpenVClassDialog(), GNEOverlappedInspection::onCmdOverlappingHelp(), MFXGroupBoxModule::onCmdResetButton(), GNEDemandElementSelector::onCmdSelectDemandElement(), GNETagSelector::onCmdSelectTag(), GNEViewObjectSelector::onCmdUseSelectedElements(), MFXGroupBoxModule::onUpdResetButton(), GNEPathCreator::onUpdUseLastRoute(), GNEPlanCreator::onUpdUseLastRoute(), GNETLSTable::recalcTableWidth(), GNEPlanCreator::recalculatePath(), GNEDemandElementSelector::refreshDemandElementSelector(), GNESelectorParent::refreshSelectorParentModule(), GNEConsecutiveSelector::removeLastElement(), GNEPathCreator::removeLastElement(), GNETLSTable::Row::Row(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNEAttributesEditorType::setAttribute(), GNETagSelector::setCurrentTag(), GNEDrawingShape::setDeleteLastCreatedPoint(), GNEAttributesEditorType::setNewParent(), GNEPathCreator::setPossibleCandidates(), GNEPathCreator::setSpecialCandidates(), GNEElementTree::showAttributeCarrierParents(), GNEAttributesEditorRow::showAttributeRow(), GNEDemandElementSelector::showDemandElementSelector(), GNEElementTree::showHierarchicalElementChildren(), GNEAttributesEditorRow::showMoveLaneButtons(), GNEAttributesEditorRow::showValueComboBox(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETLSEditorFrame::TLSPrograms::TLSPrograms(), GNEAttributesEditorType::toggleEnableAttribute(), GNEViewObjectSelector::toggleSelectedElement(), GNEPathCreator::updateEdgeColors(), GNEPlanSelector::updateEdgeColors(), GNEPathCreator::updateJunctionColors(), GNEPlanSelector::updateJunctionColors(), GNEConsecutiveSelector::updateLaneColors(), and GNETagSelector::updateTagTypes().

◆ hide()

void GNEVehicleFrame::hide ( )
virtual

hide Frame

Reimplemented from GNEFrame.

Definition at line 168 of file GNEVehicleFrame.cpp.

References GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getEdges(), GNENetHelper::AttributeCarriers::getJunctions(), GNEViewNet::getNet(), GNEFrame::hide(), and GNEFrame::myViewNet.

Referenced by GNEVehicleFrame::HelpCreation::hideHelpCreation().

Here is the caller graph for this function:

◆ openHelpAttributesDialog()

void GNEFrame::openHelpAttributesDialog ( const GNEAttributeCarrier AC) const
inherited

Open help attributes dialog.

Definition at line 186 of file GNEFrame.cpp.

References GNEViewParent::getGNEAppWindows(), GNEViewNet::getViewParent(), and GNEFrame::myViewNet.

Referenced by GNEAttributesEditorType::onCmdAttributesEditorHelp().

Here is the caller graph for this function:

◆ selectedOverlappedElement()

void GNEFrame::selectedOverlappedElement ( GNEAttributeCarrier AC)
virtualinherited

open GNEAttributesCreator extended dialog

Reimplemented in GNEInspectorFrame, and GNETLSEditorFrame.

Definition at line 233 of file GNEFrame.cpp.

Referenced by GNEOverlappedInspection::refreshOverlappedInspection().

Here is the caller graph for this function:

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( const int  newWidth)
inherited

set width of GNEFrame

Definition at line 135 of file GNEFrame.cpp.

References GNEFrame::frameWidthUpdated(), GUIDesignFrameAreaMargin, GNEFrame::myContentFrame, and GNEFrame::myScrollWindowsContents.

Referenced by GNEInspectorFrame::refreshInspection().

Here is the caller graph for this function:

◆ shapeDrawed()

bool GNEFrame::shapeDrawed ( )
virtualinherited

build a shaped element using the drawed shape

Reimplemented in GNEShapeFrame, and GNETAZFrame.

Definition at line 220 of file GNEFrame.cpp.

Referenced by GNEDrawingShape::stopDrawing().

Here is the caller graph for this function:

◆ show()

void GNEVehicleFrame::show ( )
virtual

show Frame

Reimplemented from GNEFrame.

Definition at line 159 of file GNEVehicleFrame.cpp.

References myVehicleTagSelector, GNETagSelector::refreshTagSelector(), and GNEFrame::show().

Referenced by GNEVehicleFrame::HelpCreation::showHelpCreation(), GNEViewNet::updateControls(), and GNEViewNet::updateDemandModeSpecificControls().

Here is the caller graph for this function:

◆ tagSelected()

◆ updateFlowAttributes()

void GNEVehicleFrame::updateFlowAttributes ( )
protected

update flow attributes

Definition at line 628 of file GNEVehicleFrame.cpp.

References CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::getDoubleAttribute(), GNE_ATTR_POISSON, CommonXMLStructure::SumoBaseObject::hasDoubleAttribute(), myVehicleBaseObject, SUMO_ATTR_PERIOD, and toString().

Referenced by buildVehicleOverRoute(), and createPath().

Here is the caller graph for this function:

◆ updateFrameAfterUndoRedo()

void GNEFrame::updateFrameAfterUndoRedo ( )
virtualinherited

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

Reimplemented in GNEInspectorFrame, GNESelectorFrame, GNEGenericDataFrame, and GNEMeanDataFrame.

Definition at line 193 of file GNEFrame.cpp.

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

Here is the caller graph for this function:

Field Documentation

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame = nullptr
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 124 of file GNEFrame.h.

Referenced by GNESelectorFrame::getContentFrame(), GNEFrame::getContentFrame(), GNEFrame::GNEFrame(), and GNEFrame::setFrameWidth().

◆ 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 146 of file GNEFrame.h.

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

◆ myFrameHeaderLabel

FXLabel* GNEFrame::myFrameHeaderLabel = nullptr
privateinherited

the label for the frame's header

Definition at line 149 of file GNEFrame.h.

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

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame = nullptr
protectedinherited

fame for header elements

Definition at line 127 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame = nullptr
protectedinherited

fame for left header elements

Definition at line 130 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::GNEInspectorFrame(), and GNEInspectorFrame::refreshInspection().

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame = nullptr
protectedinherited

fame for right header elements

Definition at line 133 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHelpCreation

HelpCreation* GNEVehicleFrame::myHelpCreation = nullptr
private

Help creation.

Definition at line 141 of file GNEVehicleFrame.h.

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

◆ myPathCreator

GNEPathCreator* GNEVehicleFrame::myPathCreator = nullptr
private

edge path creator (used for trips and flows)

Definition at line 138 of file GNEVehicleFrame.h.

Referenced by addVehicle(), createPath(), demandElementSelected(), getPathCreator(), GNEVehicleFrame(), and tagSelected().

◆ myPathLegend

GNEPathLegendModule* GNEVehicleFrame::myPathLegend = nullptr
private

path legend modul

Definition at line 144 of file GNEVehicleFrame.h.

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

◆ myPredefinedTagsMML

std::vector<std::string> GNEFrame::myPredefinedTagsMML
privateinherited

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

Definition at line 152 of file GNEFrame.h.

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

◆ myScrollWindowsContents

FXScrollWindow* GNEFrame::myScrollWindowsContents = nullptr
privateinherited

scroll windows that holds the content frame

Definition at line 143 of file GNEFrame.h.

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

◆ myTypeSelector

GNEDemandElementSelector* GNEVehicleFrame::myTypeSelector = nullptr
private

◆ myVehicleAttributesEditor

GNEAttributesEditor* GNEVehicleFrame::myVehicleAttributesEditor = nullptr
private

◆ myVehicleBaseObject

CommonXMLStructure::SumoBaseObject* GNEVehicleFrame::myVehicleBaseObject = nullptr
private

vehicle base object

Definition at line 126 of file GNEVehicleFrame.h.

Referenced by addVehicle(), buildVehicleOverRoute(), createPath(), updateFlowAttributes(), and ~GNEVehicleFrame().

◆ myVehicleTagSelector

GNETagSelector* GNEVehicleFrame::myVehicleTagSelector = nullptr
private

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

Definition at line 129 of file GNEVehicleFrame.h.

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

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet = nullptr
protectedinherited

FOX need this.

View Net

Definition at line 121 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(), addVehicle(), GNEWireFrame::addWire(), GNEConnectorFrame::buildConnection(), GNEContainerFrame::buildContainer(), GNETLSEditorFrame::buildInternalLanes(), GNEPersonFrame::buildPerson(), GNEProhibitionFrame::buildProhibition(), GNETAZRelDataFrame::buildTAZRelationData(), buildVehicleOverRoute(), GNEWireFrame::buildWireOverView(), GNETLSEditorFrame::cleanup(), GNEWireFrame::createBaseWireObject(), GNEEdgeRelDataFrame::createPath(), GNEContainerFrame::createPath(), GNEContainerPlanFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), createPath(), GNEAdditionalFrame::createPath(), GNEWireFrame::createPath(), GNECreateEdgeFrame::disablePedestrians(), GNETAZFrame::dropTAZMembers(), GNETLSEditorFrame::editJunction(), GNETLSEditorFrame::editTLS(), GNEStopFrame::getStopParameter(), GNEFrame::getViewNet(), GNETypeFrame::GNETypeFrame(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEInspectorFrame::hide(), GNEGenericDataFrame::hide(), GNEContainerFrame::hide(), GNEContainerPlanFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), hide(), GNEFrame::hide(), GNEAdditionalFrame::initBaseAdditionalObject(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectClickedElements(), GNEInspectorFrame::inspectElement(), GNEInspectorFrame::inspectElements(), GNETLSEditorFrame::isTLSSaved(), GNEProhibitionFrame::Legend::Legend(), GNEFrame::openHelpAttributesDialog(), GNEDeleteFrame::SubordinatedElements::openWarningDialog(), GNETLSEditorFrame::parseTLSPrograms(), GNEShapeFrame::processClick(), GNECreateEdgeFrame::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(), GNEMoveFrame::show(), GNEContainerPlanFrame::show(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), GNEFrame::show(), GNEWireFrame::show(), and GNEAdditionalFrame::tagSelected().


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