![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNERouteFrame.h>
Data Structures | |
class | ConsecutiveEdges |
class | NonConsecutiveEdges |
class | RouteModeSelector |
Public Types | |
enum | RouteMode { ROUTEMODE_INVALID, ROUTEMODE_CONSECUTIVE_EDGES, ROUTEMODE_NONCONSECUTIVE_EDGES } |
route creation modes More... | |
Public Member Functions | |
void | drawTemporalRoute () const |
draw temporal route More... | |
void | focusUpperElement () |
focus upper element of frame More... | |
FXFont * | getFrameHeaderFont () const |
get font of the header's frame More... | |
FXLabel * | getFrameHeaderLabel () const |
get the label for the frame's header More... | |
GNEViewNet * | getViewNet () const |
get view net More... | |
GNERouteFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet) | |
Constructor. More... | |
void | handleEdgeClick (GNEEdge *clickedEdge) |
handle edge click More... | |
void | hide () |
hide delete frame More... | |
void | hotkeyBackSpace () |
function called when user press BACKSPACE key More... | |
void | hotkeyEnter () |
function called when user press ENTER key More... | |
void | hotkeyEsc () |
function called when user press ESC key More... | |
void | setFrameWidth (int newWidth) |
set width of GNEFrame More... | |
void | show () |
show delete frame More... | |
virtual void | updateFrameAfterUndoRedo () |
function called after undo/redo in the current frame (can be reimplemented in frame children) More... | |
~GNERouteFrame () | |
Destructor. More... | |
Protected Member Functions | |
const RGBColor & | getEdgeCandidateColor () const |
get edge candidate color More... | |
const RGBColor & | getEdgeCandidateSelectedColor () 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... | |
functions called by moduls that can be reimplemented in frame children | |
virtual void | tagSelected () |
Tag selected in TagSelector. More... | |
virtual void | demandElementSelected () |
selected demand element in DemandElementSelector More... | |
virtual void | edgePathCreated () |
finish edge path creation More... | |
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/ParametersEditor/... More... | |
virtual void | attributesEditorExtendedDialogOpened () |
open AttributesCreator extended dialog (can be reimplemented in frame children) More... | |
virtual void | selectedOverlappedElement (GNEAttributeCarrier *AC) |
open AttributesCreator extended dialog (can be reimplemented in frame children) More... | |
Protected Attributes | |
FXVerticalFrame * | myContentFrame = nullptr |
Vertical frame that holds all widgets of frame. More... | |
FXHorizontalFrame * | myHeaderFrame = nullptr |
fame for header elements More... | |
FXHorizontalFrame * | myHeaderLeftFrame = nullptr |
fame for left header elements More... | |
FXHorizontalFrame * | myHeaderRightFrame = nullptr |
fame for right header elements More... | |
GNEViewNet * | myViewNet = nullptr |
View Net. More... | |
Private Attributes | |
ConsecutiveEdges * | myConsecutiveEdges |
Create routes using consecutive edges modul. More... | |
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... | |
FXLabel * | myFrameHeaderLabel = nullptr |
the label for the frame's header More... | |
NonConsecutiveEdges * | myNonConsecutiveEdges |
Create routes using non consecutive edges modul. More... | |
std::map< int, std::string > | myPredefinedTagsMML |
Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached) More... | |
GNEFrameAttributesModuls::AttributesCreator * | myRouteAttributes |
internal additional attributes More... | |
RouteModeSelector * | myRouteModeSelector |
route mode selector More... | |
FXScrollWindow * | myScrollWindowsContents = nullptr |
scroll windows that holds the content frame 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... | |
The Widget for create route elements
Definition at line 31 of file GNERouteFrame.h.
route creation modes
Enumerator | |
---|---|
ROUTEMODE_INVALID | |
ROUTEMODE_CONSECUTIVE_EDGES | |
ROUTEMODE_NONCONSECUTIVE_EDGES |
Definition at line 36 of file GNERouteFrame.h.
GNERouteFrame::GNERouteFrame | ( | FXHorizontalFrame * | horizontalFrameParent, |
GNEViewNet * | viewNet | ||
) |
Constructor.
parent FXHorizontalFrame in which this GNEFrame is placed
viewNet viewNet that uses this GNEFrame
Definition at line 726 of file GNERouteFrame.cpp.
References myConsecutiveEdges, myNonConsecutiveEdges, myRouteAttributes, myRouteModeSelector, ROUTEMODE_CONSECUTIVE_EDGES, and GNERouteFrame::RouteModeSelector::setCurrentRouteMode().
GNERouteFrame::~GNERouteFrame | ( | ) |
Destructor.
Definition at line 746 of file GNERouteFrame.cpp.
|
protectedvirtualinherited |
open AttributesCreator extended dialog (can be reimplemented in frame children)
Reimplemented in GNEVehicleTypeFrame.
Definition at line 190 of file GNEFrame.cpp.
|
protectedvirtualinherited |
function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/...
Reimplemented in GNEInspectorFrame, GNEVehicleTypeFrame, and GNEPersonTypeFrame.
Definition at line 184 of file GNEFrame.cpp.
|
protectedvirtualinherited |
selected demand element in DemandElementSelector
Reimplemented in GNEPersonPlanFrame, GNEStopFrame, GNEVehicleFrame, and GNEPersonFrame.
Definition at line 165 of file GNEFrame.cpp.
void GNERouteFrame::drawTemporalRoute | ( | ) | const |
draw temporal route
Definition at line 859 of file GNERouteFrame.cpp.
References GLHelper::drawLine(), GNERouteFrame::RouteModeSelector::getCurrentRouteMode(), GNERouteFrame::ConsecutiveEdges::getRouteEdges(), GNERouteFrame::NonConsecutiveEdges::getTemporalRoute(), GLO_MAX, myConsecutiveEdges, myNonConsecutiveEdges, myRouteModeSelector, RGBColor::ORANGE, ROUTEMODE_CONSECUTIVE_EDGES, ROUTEMODE_NONCONSECUTIVE_EDGES, and GLHelper::setColor().
Referenced by GNEViewNet::doPaintGL().
|
protectedvirtualinherited |
finish edge path creation
Reimplemented in GNEVehicleFrame, and GNEPersonFrame.
Definition at line 171 of file GNEFrame.cpp.
|
inherited |
focus upper element of frame
Definition at line 101 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEViewNet::hotkeyFocusFrame(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
|
protectedinherited |
get edge candidate color
Definition at line 269 of file GNEFrame.cpp.
References GNEFrame::myEdgeCandidateColor.
Referenced by GNECrossingFrame::GNECrossingFrame().
|
protectedinherited |
get selected color
Definition at line 275 of file GNEFrame.cpp.
References GNEFrame::myEdgeCandidateSelectedColor.
Referenced by GNECrossingFrame::GNECrossingFrame().
|
inherited |
get font of the header's frame
Definition at line 144 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 138 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
get predefinedTagsMML
Definition at line 281 of file GNEFrame.cpp.
References GNEFrame::myPredefinedTagsMML.
Referenced by GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::edgePathCreated(), and GNETAZFrame::shapeDrawed().
|
inherited |
get view net
Definition at line 132 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNEInternalLane::drawGL(), GNEInternalLane::getPopUpMenu(), and GNEDeleteFrame::removeAttributeCarrier().
void GNERouteFrame::handleEdgeClick | ( | GNEEdge * | clickedEdge | ) |
handle edge click
Definition at line 765 of file GNERouteFrame.cpp.
References GNERouteFrame::ConsecutiveEdges::addEdge(), GNERouteFrame::NonConsecutiveEdges::addEdge(), GNERouteFrame::RouteModeSelector::getCurrentRouteMode(), GNERouteFrame::RouteModeSelector::isValidVehicleClass(), myConsecutiveEdges, myNonConsecutiveEdges, myRouteModeSelector, GNEFrame::myViewNet, ROUTEMODE_CONSECUTIVE_EDGES, ROUTEMODE_NONCONSECUTIVE_EDGES, GNEViewNet::update(), and WRITE_DEBUG.
Referenced by GNEViewNet::processLeftButtonPressDemand().
|
virtual |
hide delete frame
Reimplemented from GNEFrame.
Definition at line 759 of file GNERouteFrame.cpp.
References GNEFrame::hide().
Referenced by GNERouteFrame::ConsecutiveEdges::hideConsecutiveEdgesModul(), and GNERouteFrame::NonConsecutiveEdges::hideNonConsecutiveEdgesModul().
void GNERouteFrame::hotkeyBackSpace | ( | ) |
function called when user press BACKSPACE key
Definition at line 817 of file GNERouteFrame.cpp.
References GNERouteFrame::RouteModeSelector::getCurrentRouteMode(), GNERouteFrame::RouteModeSelector::isValidVehicleClass(), myConsecutiveEdges, myNonConsecutiveEdges, myRouteModeSelector, GNEFrame::myViewNet, GNERouteFrame::ConsecutiveEdges::onCmdRemoveLastRouteEdge(), GNERouteFrame::NonConsecutiveEdges::onCmdRemoveLastRouteEdge(), ROUTEMODE_CONSECUTIVE_EDGES, ROUTEMODE_NONCONSECUTIVE_EDGES, and GNEViewNet::update().
Referenced by GNEViewNet::hotkeyBackSpace().
void GNERouteFrame::hotkeyEnter | ( | ) |
function called when user press ENTER key
Definition at line 796 of file GNERouteFrame.cpp.
References GNERouteFrame::RouteModeSelector::getCurrentRouteMode(), GNERouteFrame::RouteModeSelector::isValidVehicleClass(), myConsecutiveEdges, myNonConsecutiveEdges, myRouteModeSelector, GNEFrame::myViewNet, GNERouteFrame::ConsecutiveEdges::onCmdCreateRoute(), GNERouteFrame::NonConsecutiveEdges::onCmdCreateRoute(), ROUTEMODE_CONSECUTIVE_EDGES, ROUTEMODE_NONCONSECUTIVE_EDGES, and GNEViewNet::update().
Referenced by GNEViewNet::hotkeyEnter().
void GNERouteFrame::hotkeyEsc | ( | ) |
function called when user press ESC key
Definition at line 838 of file GNERouteFrame.cpp.
References GNERouteFrame::RouteModeSelector::getCurrentRouteMode(), GNERouteFrame::RouteModeSelector::isValidVehicleClass(), myConsecutiveEdges, myNonConsecutiveEdges, myRouteModeSelector, GNEFrame::myViewNet, GNERouteFrame::ConsecutiveEdges::onCmdAbortRoute(), GNERouteFrame::NonConsecutiveEdges::onCmdAbortRoute(), ROUTEMODE_CONSECUTIVE_EDGES, ROUTEMODE_NONCONSECUTIVE_EDGES, and GNEViewNet::update().
Referenced by GNEViewNet::abortOperation().
|
protectedinherited |
Open help attributes dialog.
Definition at line 202 of file GNEFrame.cpp.
References GUIIconSubSys::getIcon(), GNEAttributeCarrier::TagProperties::getNumberOfAttributes(), GNEAttributeCarrier::TagProperties::getTagStr(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonOK, GUIDesignDialogBoxResizable, GUIDesignHorizontalSeparator, GUIDesignTableNotEditable, ICON_ACCEPT, ICON_MODEINSPECT, MAX2(), MID_TABLE, GNEFrame::myScrollWindowsContents, toString(), and WRITE_DEBUG.
|
protectedvirtualinherited |
open AttributesCreator extended dialog (can be reimplemented in frame children)
Reimplemented in GNETLSEditorFrame, and GNEInspectorFrame.
Definition at line 196 of file GNEFrame.cpp.
|
inherited |
set width of GNEFrame
Definition at line 125 of file GNEFrame.cpp.
References GNEFrame::myScrollWindowsContents.
|
protectedvirtualinherited |
build a shaped element using the drawed shape (can be reimplemented in frame children)
Reimplemented in GNETAZFrame, and GNEPolygonFrame.
Definition at line 177 of file GNEFrame.cpp.
|
virtual |
show delete frame
Reimplemented from GNEFrame.
Definition at line 750 of file GNERouteFrame.cpp.
References GNERouteFrame::RouteModeSelector::getCurrentRouteMode(), myRouteModeSelector, GNERouteFrame::RouteModeSelector::setCurrentRouteMode(), and GNEFrame::show().
Referenced by GNERouteFrame::ConsecutiveEdges::ConsecutiveEdges(), GNERouteFrame::ConsecutiveEdges::showConsecutiveEdgesModul(), GNERouteFrame::NonConsecutiveEdges::showNonConsecutiveEdgesModul(), and GNEViewNet::updateDemandModeSpecificControls().
|
protectedvirtualinherited |
Tag selected in TagSelector.
Reimplemented in GNEAdditionalFrame, GNEPersonPlanFrame, GNEPolygonFrame, GNEStopFrame, GNEVehicleFrame, and GNEPersonFrame.
Definition at line 159 of file GNEFrame.cpp.
|
virtualinherited |
function called after undo/redo in the current frame (can be reimplemented in frame children)
Reimplemented in GNEInspectorFrame.
Definition at line 150 of file GNEFrame.cpp.
Referenced by GNEApplicationWindow::onCmdRedo(), and GNEApplicationWindow::onCmdUndo().
|
private |
Create routes using consecutive edges modul.
Definition at line 290 of file GNERouteFrame.h.
Referenced by drawTemporalRoute(), GNERouteFrame(), handleEdgeClick(), hotkeyBackSpace(), hotkeyEnter(), and hotkeyEsc().
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 124 of file GNEFrame.h.
Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), and GNEInspectorFrame::inspectMultisection().
|
privateinherited |
edge candidate color (used by some modulds to mark edges)
Definition at line 146 of file GNEFrame.h.
Referenced by GNEFrame::getEdgeCandidateColor().
|
privateinherited |
selected edge candidate color (used by some modulds to selected mark edges)
Definition at line 149 of file GNEFrame.h.
Referenced by GNEFrame::getEdgeCandidateSelectedColor().
|
staticprivateinherited |
static Font for the Header (it's common for all headers, then create only one time)
Definition at line 140 of file GNEFrame.h.
Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().
|
privateinherited |
the label for the frame's header
Definition at line 143 of file GNEFrame.h.
Referenced by GNEFrame::focusUpperElement(), GNEFrame::getFrameHeaderLabel(), and GNEFrame::GNEFrame().
|
protectedinherited |
fame for header elements
Definition at line 127 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 130 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 133 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
private |
Create routes using non consecutive edges modul.
Definition at line 293 of file GNERouteFrame.h.
Referenced by drawTemporalRoute(), GNERouteFrame(), handleEdgeClick(), hotkeyBackSpace(), hotkeyEnter(), and hotkeyEsc().
|
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().
|
private |
internal additional attributes
Definition at line 287 of file GNERouteFrame.h.
Referenced by GNERouteFrame().
|
private |
route mode selector
Definition at line 284 of file GNERouteFrame.h.
Referenced by drawTemporalRoute(), GNERouteFrame(), handleEdgeClick(), hotkeyBackSpace(), hotkeyEnter(), hotkeyEsc(), and show().
|
privateinherited |
scroll windows that holds the content frame
Definition at line 137 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEFrame::openHelpAttributesDialog(), and GNEFrame::setFrameWidth().
|
protectedinherited |
View Net.
Definition at line 121 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(), GNEVehicleFrame::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(), GNEVehicleFrame::edgePathCreated(), GNETLSEditorFrame::editJunction(), GNETLSEditorFrame::editTLS(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNETLSEditorFrame::handleChange(), handleEdgeClick(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEFrame::hide(), GNEInspectorFrame::hide(), hotkeyBackSpace(), hotkeyEnter(), 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(), GNEInspectorFrame::selectedOverlappedElement(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEFrame::show(), GNEStopFrame::show(), GNEDeleteFrame::show(), and GNEPersonPlanFrame::show().