![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct used to group all variables related to view options in supermode Network More...
#include <GNEViewNetHelper.h>
Public Member Functions | |
void | buildNetworkViewOptionsMenuChecks () |
build menu checks More... | |
bool | editingElevation () const |
check if we're editing elevation More... | |
void | getVisibleNetworkMenuCommands (std::vector< FXMenuCheck *> &commands) const |
get visible network menu commands More... | |
void | hideNetworkViewOptionsMenuChecks () |
hide all options menu checks More... | |
NetworkViewOptions (GNEViewNet *viewNet) | |
default constructor More... | |
bool | selectEdges () const |
check if select edges checkbox is enabled More... | |
bool | showConnections () const |
check if select show connections checkbox is enabled More... | |
bool | showDemandElements () const |
check if show demand elements checkbox is enabled More... | |
Data Fields | |
FXMenuCheck * | menuCheckAutoOppositeEdge |
menu check to create auto create opposite edge More... | |
FXMenuCheck * | menuCheckChainEdges |
menu check to the endpoint for a created edge should be set as the new source More... | |
FXMenuCheck * | menuCheckChangeAllPhases |
menu check to set change all phases More... | |
FXMenuCheck * | menuCheckExtendSelection |
menu check to extend to edge nodes More... | |
FXMenuCheck * | menuCheckHideConnections |
menu check to hide connections in connect mode More... | |
FXMenuCheck * | menuCheckMoveElevation |
menu check to apply movement to elevation More... | |
FXMenuCheck * | menuCheckSelectEdges |
menu check to select only edges More... | |
FXMenuCheck * | menuCheckShowConnections |
menu check to show connections More... | |
FXMenuCheck * | menuCheckShowDemandElements |
menu check to show Demand Elements More... | |
FXMenuCheck * | menuCheckShowJunctionBubble |
menu check to show connection as buuble in "Move" mode. More... | |
FXMenuCheck * | menuCheckWarnAboutMerge |
menu check to we should warn about merging junctions More... | |
Private Member Functions | |
NetworkViewOptions (const NetworkViewOptions &)=delete | |
Invalidated copy constructor. More... | |
NetworkViewOptions & | operator= (const NetworkViewOptions &)=delete |
Invalidated assignment operator. More... | |
Private Attributes | |
GNEViewNet * | myViewNet |
pointer to viewNet More... | |
struct used to group all variables related to view options in supermode Network
Definition at line 364 of file GNEViewNetHelper.h.
GNEViewNetHelper::NetworkViewOptions::NetworkViewOptions | ( | GNEViewNet * | viewNet | ) |
default constructor
Definition at line 1468 of file GNEViewNetHelper.cpp.
|
privatedelete |
Invalidated copy constructor.
void GNEViewNetHelper::NetworkViewOptions::buildNetworkViewOptionsMenuChecks | ( | ) |
build menu checks
Definition at line 1474 of file GNEViewNetHelper.cpp.
References GNEViewParent::getGNEAppWindows(), GNEApplicationWindow::getToolbarsGrip(), GUISUMOAbstractView::getVisualisationSettings(), menuCheckAutoOppositeEdge, menuCheckChainEdges, menuCheckChangeAllPhases, menuCheckExtendSelection, menuCheckHideConnections, menuCheckMoveElevation, menuCheckSelectEdges, menuCheckShowConnections, menuCheckShowDemandElements, menuCheckShowJunctionBubble, menuCheckWarnAboutMerge, MID_GNE_NETWORKVIEWOPTIONS_ASKFORMERGE, MID_GNE_NETWORKVIEWOPTIONS_AUTOOPPOSITEEDGES, MID_GNE_NETWORKVIEWOPTIONS_CHAINEDGES, MID_GNE_NETWORKVIEWOPTIONS_CHANGEALLPHASES, MID_GNE_NETWORKVIEWOPTIONS_EXTENDSELECTION, MID_GNE_NETWORKVIEWOPTIONS_HIDECONNECTIONS, MID_GNE_NETWORKVIEWOPTIONS_MOVEELEVATION, MID_GNE_NETWORKVIEWOPTIONS_SELECTEDGES, MID_GNE_NETWORKVIEWOPTIONS_SHOWBUBBLES, MID_GNE_NETWORKVIEWOPTIONS_SHOWCONNECTIONS, MID_GNE_NETWORKVIEWOPTIONS_SHOWDEMANDELEMENTS, GNEApplicationWindow::ToolbarsGrip::modeOptions, myViewNet, GNEViewNet::myViewParent, GUIVisualizationSettings::showLane2Lane, SUMO_TAG_CONNECTION, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, SUMO_TAG_LANE, SUMO_TAG_TRAFFIC_LIGHT, and toString().
Referenced by GNEViewNet::buildEditModeControls().
bool GNEViewNetHelper::NetworkViewOptions::editingElevation | ( | ) | const |
check if we're editing elevation
Definition at line 1652 of file GNEViewNetHelper.cpp.
References menuCheckMoveElevation.
Referenced by GNEEdge::drawGeometryPoints(), GNEJunction::drawGL(), and GNEPoly::drawGL().
void GNEViewNetHelper::NetworkViewOptions::getVisibleNetworkMenuCommands | ( | std::vector< FXMenuCheck *> & | commands | ) | const |
get visible network menu commands
Definition at line 1576 of file GNEViewNetHelper.cpp.
References menuCheckAutoOppositeEdge, menuCheckChainEdges, menuCheckChangeAllPhases, menuCheckExtendSelection, menuCheckHideConnections, menuCheckMoveElevation, menuCheckSelectEdges, menuCheckShowConnections, menuCheckShowDemandElements, menuCheckShowJunctionBubble, and menuCheckWarnAboutMerge.
Referenced by GNEApplicationWindow::onCmdToogleEditOptions().
void GNEViewNetHelper::NetworkViewOptions::hideNetworkViewOptionsMenuChecks | ( | ) |
hide all options menu checks
Definition at line 1558 of file GNEViewNetHelper.cpp.
References GNEViewParent::getGNEAppWindows(), GNEApplicationWindow::getToolbarsGrip(), menuCheckAutoOppositeEdge, menuCheckChainEdges, menuCheckChangeAllPhases, menuCheckExtendSelection, menuCheckHideConnections, menuCheckMoveElevation, menuCheckSelectEdges, menuCheckShowConnections, menuCheckShowDemandElements, menuCheckShowJunctionBubble, menuCheckWarnAboutMerge, GNEApplicationWindow::ToolbarsGrip::modeOptions, myViewNet, and GNEViewNet::myViewParent.
Referenced by GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
|
privatedelete |
Invalidated assignment operator.
bool GNEViewNetHelper::NetworkViewOptions::selectEdges | ( | ) | const |
check if select edges checkbox is enabled
Definition at line 1626 of file GNEViewNetHelper.cpp.
References menuCheckSelectEdges.
Referenced by GNEViewNet::getAttributeCarriersInBoundary(), GNEInspectorFrame::OverlappedInspection::inspectOverlappedAttributeCarrier(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNEViewNet::processLeftButtonPressNetwork(), and GNEInspectorFrame::processNetworkSupermodeClick().
bool GNEViewNetHelper::NetworkViewOptions::showConnections | ( | ) | const |
check if select show connections checkbox is enabled
Definition at line 1637 of file GNEViewNetHelper.cpp.
References GUISUMOAbstractView::getVisualisationSettings(), GNE_NMODE_CONNECT, GNE_NMODE_PROHIBITION, menuCheckHideConnections, menuCheckShowConnections, GNEViewNet::myEditModes, myViewNet, GNEViewNetHelper::EditModes::networkEditMode, and GUIVisualizationSettings::showLane2Lane.
Referenced by GNEDetectorE2::drawGL(), and GNEConnection::drawGL().
bool GNEViewNetHelper::NetworkViewOptions::showDemandElements | ( | ) | const |
check if show demand elements checkbox is enabled
Definition at line 1615 of file GNEViewNetHelper.cpp.
References menuCheckShowDemandElements.
Referenced by GNEJunction::drawGL(), GNEStop::drawGL(), GNEEdge::drawGL(), GNEPerson::drawGL(), and GNEVehicle::drawGL().
FXMenuCheck* GNEViewNetHelper::NetworkViewOptions::menuCheckAutoOppositeEdge |
menu check to create auto create opposite edge
Definition at line 421 of file GNEViewNetHelper.h.
Referenced by buildNetworkViewOptionsMenuChecks(), getVisibleNetworkMenuCommands(), hideNetworkViewOptionsMenuChecks(), GNEViewNet::onCmdToogleAutoOppositeEdge(), GNEApplicationWindow::onCmdToogleEditOptions(), GNEViewNet::processLeftButtonPressNetwork(), and GNEViewNet::updateNetworkModeSpecificControls().
FXMenuCheck* GNEViewNetHelper::NetworkViewOptions::menuCheckChainEdges |
menu check to the endpoint for a created edge should be set as the new source
Definition at line 418 of file GNEViewNetHelper.h.
Referenced by buildNetworkViewOptionsMenuChecks(), getVisibleNetworkMenuCommands(), hideNetworkViewOptionsMenuChecks(), GNEViewNet::onCmdToogleChainEdges(), GNEApplicationWindow::onCmdToogleEditOptions(), GNEViewNet::processLeftButtonPressNetwork(), and GNEViewNet::updateNetworkModeSpecificControls().
FXMenuCheck* GNEViewNetHelper::NetworkViewOptions::menuCheckChangeAllPhases |
menu check to set change all phases
Definition at line 406 of file GNEViewNetHelper.h.
Referenced by buildNetworkViewOptionsMenuChecks(), GNEViewNet::changeAllPhases(), getVisibleNetworkMenuCommands(), hideNetworkViewOptionsMenuChecks(), GNEViewNet::onCmdToogleChangeAllPhases(), GNEApplicationWindow::onCmdToogleEditOptions(), and GNEViewNet::updateNetworkModeSpecificControls().
FXMenuCheck* GNEViewNetHelper::NetworkViewOptions::menuCheckExtendSelection |
menu check to extend to edge nodes
Definition at line 403 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::autoSelectNodes(), buildNetworkViewOptionsMenuChecks(), getVisibleNetworkMenuCommands(), hideNetworkViewOptionsMenuChecks(), GNEApplicationWindow::onCmdToogleEditOptions(), GNEViewNet::onCmdToogleExtendSelection(), and GNEViewNet::updateNetworkModeSpecificControls().
FXMenuCheck* GNEViewNetHelper::NetworkViewOptions::menuCheckHideConnections |
menu check to hide connections in connect mode
Definition at line 400 of file GNEViewNetHelper.h.
Referenced by buildNetworkViewOptionsMenuChecks(), getVisibleNetworkMenuCommands(), hideNetworkViewOptionsMenuChecks(), GNEApplicationWindow::onCmdToogleEditOptions(), GNEViewNet::onCmdToogleHideConnections(), showConnections(), and GNEViewNet::updateNetworkModeSpecificControls().
FXMenuCheck* GNEViewNetHelper::NetworkViewOptions::menuCheckMoveElevation |
menu check to apply movement to elevation
Definition at line 415 of file GNEViewNetHelper.h.
Referenced by buildNetworkViewOptionsMenuChecks(), GNEViewNetHelper::MoveSingleElementValues::calculateEdgeValues(), GNEViewNetHelper::MoveSingleElementValues::calculatePolyValues(), editingElevation(), getVisibleNetworkMenuCommands(), hideNetworkViewOptionsMenuChecks(), GNEViewNetHelper::MoveMultipleElementValues::moveSelection(), GNEViewNetHelper::MoveSingleElementValues::moveSingleElement(), GNEApplicationWindow::onCmdToogleEditOptions(), GNEViewNet::onCmdToogleMoveElevation(), and GNEViewNet::updateNetworkModeSpecificControls().
FXMenuCheck* GNEViewNetHelper::NetworkViewOptions::menuCheckSelectEdges |
menu check to select only edges
Definition at line 394 of file GNEViewNetHelper.h.
Referenced by buildNetworkViewOptionsMenuChecks(), getVisibleNetworkMenuCommands(), hideNetworkViewOptionsMenuChecks(), GNEApplicationWindow::onCmdToogleEditOptions(), GNEViewNet::onCmdToogleSelectEdges(), selectEdges(), and GNEViewNet::updateNetworkModeSpecificControls().
FXMenuCheck* GNEViewNetHelper::NetworkViewOptions::menuCheckShowConnections |
menu check to show connections
Definition at line 397 of file GNEViewNetHelper.h.
Referenced by buildNetworkViewOptionsMenuChecks(), GNEViewNet::doPaintGL(), getVisibleNetworkMenuCommands(), hideNetworkViewOptionsMenuChecks(), GNEApplicationWindow::onCmdToogleEditOptions(), GNEViewNet::onCmdToogleShowConnections(), showConnections(), and GNEViewNet::updateNetworkModeSpecificControls().
FXMenuCheck* GNEViewNetHelper::NetworkViewOptions::menuCheckShowDemandElements |
menu check to show Demand Elements
Definition at line 391 of file GNEViewNetHelper.h.
Referenced by buildNetworkViewOptionsMenuChecks(), getVisibleNetworkMenuCommands(), hideNetworkViewOptionsMenuChecks(), GNEApplicationWindow::onCmdToogleEditOptions(), GNEViewNet::onCmdToogleShowDemandElements(), showDemandElements(), and GNEViewNet::updateNetworkModeSpecificControls().
FXMenuCheck* GNEViewNetHelper::NetworkViewOptions::menuCheckShowJunctionBubble |
menu check to show connection as buuble in "Move" mode.
Definition at line 412 of file GNEViewNetHelper.h.
Referenced by buildNetworkViewOptionsMenuChecks(), getVisibleNetworkMenuCommands(), hideNetworkViewOptionsMenuChecks(), GNEApplicationWindow::onCmdToogleEditOptions(), GNEViewNet::onCmdToogleShowJunctionBubbles(), GNEViewNet::showJunctionAsBubbles(), and GNEViewNet::updateNetworkModeSpecificControls().
FXMenuCheck* GNEViewNetHelper::NetworkViewOptions::menuCheckWarnAboutMerge |
menu check to we should warn about merging junctions
Definition at line 409 of file GNEViewNetHelper.h.
Referenced by buildNetworkViewOptionsMenuChecks(), getVisibleNetworkMenuCommands(), hideNetworkViewOptionsMenuChecks(), GNEViewNet::mergeJunctions(), GNEApplicationWindow::onCmdToogleEditOptions(), GNEViewNet::onCmdToogleWarnAboutMerge(), and GNEViewNet::updateNetworkModeSpecificControls().
|
private |
pointer to viewNet
Definition at line 424 of file GNEViewNetHelper.h.
Referenced by buildNetworkViewOptionsMenuChecks(), hideNetworkViewOptionsMenuChecks(), and showConnections().