Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEViewNetHelper::EditModes Struct Reference

struct used to group all variables related with Supermodes More...

#include <GNEViewNetHelper.h>

Collaboration diagram for GNEViewNetHelper::EditModes:
[legend]

Public Member Functions

void buildSuperModeButtons ()
 build checkable buttons
 
 EditModes (GNEViewNet *viewNet)
 default constructor
 
bool isCurrentSupermodeData () const
 @check if current supermode is Data
 
bool isCurrentSupermodeDemand () const
 @check if current supermode is Demand
 
bool isCurrentSupermodeNetwork () const
 @check if current supermode is Network
 
void setDataEditMode (DataEditMode dataMode, const bool force=false)
 set Data edit mode
 
void setDemandEditMode (DemandEditMode demandMode, const bool force=false)
 set Demand edit mode
 
void setNetworkEditMode (NetworkEditMode networkMode, const bool force=false)
 set Network edit mode
 
void setSupermode (Supermode supermode, const bool force)
 set supermode
 

Data Fields

Supermode currentSupermode
 the current supermode
 
MFXCheckableButtondataButton
 checkable button for supermode Data
 
DataEditMode dataEditMode
 the current Data edit mode
 
MFXCheckableButtondemandButton
 checkable button for supermode Demand
 
DemandEditMode demandEditMode
 the current Demand edit mode
 
MFXCheckableButtonnetworkButton
 checkable button for supermode Network
 
NetworkEditMode networkEditMode
 the current Network edit mode
 

Private Member Functions

 EditModes (const EditModes &)=delete
 Invalidated copy constructor.
 
EditModesoperator= (const EditModes &)=delete
 Invalidated assignment operator.
 

Private Attributes

GNEViewNetmyViewNet
 pointer to net
 

Detailed Description

struct used to group all variables related with Supermodes

Definition at line 529 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ EditModes() [1/2]

GNEViewNetHelper::EditModes::EditModes ( GNEViewNet viewNet)

default constructor

Definition at line 2013 of file GNEViewNetHelper.cpp.

References OptionsCont::getOptions(), NETWORK_CREATE_EDGE, and networkEditMode.

◆ EditModes() [2/2]

GNEViewNetHelper::EditModes::EditModes ( const EditModes )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ buildSuperModeButtons()

void GNEViewNetHelper::EditModes::buildSuperModeButtons ( )

build checkable buttons

Definition at line 2033 of file GNEViewNetHelper.cpp.

References GUIIconSubSys::getIcon(), GUIDesignMFXCheckableButtonSupermode, MID_HOTKEY_F2_SUPERMODE_NETWORK, MID_HOTKEY_F3_SUPERMODE_DEMAND, MID_HOTKEY_F4_SUPERMODE_DATA, SUPERMODEDATA, SUPERMODEDEMAND, SUPERMODENETWORK, and TL.

Referenced by GNEViewNet::buildEditModeControls().

Here is the caller graph for this function:

◆ isCurrentSupermodeData()

◆ isCurrentSupermodeDemand()

bool GNEViewNetHelper::EditModes::isCurrentSupermodeDemand ( ) const

@check if current supermode is Demand

Definition at line 2276 of file GNEViewNetHelper.cpp.

References DEMAND.

Referenced by GNEViewNet::abortOperation(), GNENet::computeDemandElements(), GNEViewNet::doPaintGL(), GNEDemandElement::drawContainerPlan(), GNEViewNet::drawDeleteContour(), GNETAZ::drawDottedContours(), GNEEdge::drawEdgeGeometryPoints(), GNEStop::drawGeometryPoints(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNEVehicle::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlan(), GNEViewNet::drawSelectContour(), GNEAttributeCarrier::drawUsingSelectColor(), GNEStop::getMoveOperation(), GNELane::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyDel(), GNEViewNet::hotkeyEnter(), GNEDemandElement::isGLObjectLocked(), GNEFrameAttributeModules::isSupermodeValid(), GNEFrameAttributeModules::isSupermodeValid(), GNEApplicationWindow::onCmdProcessButton(), GNEElementSet::onCmdSelectElementSet(), GNEViewNet::onCmdSetMode(), GNEViewNet::onLeftBtnPress(), GNEViewNet::onLeftBtnRelease(), GNEViewNet::onMouseMove(), GNEApplicationWindow::onUpdLockMenuTitle(), GNEAttributesCreator::refreshRows(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNESelectorFrame::selectAttributeCarrier(), GNEDeleteFrame::selectedACsToDelete(), GNEMoveFrame::show(), GNESelectorFrame::show(), GNEOverlappedInspection::showOverlappedInspection(), GNEViewNet::updateControls(), and GNEViewNet::updateCursor().

Here is the caller graph for this function:

◆ isCurrentSupermodeNetwork()

bool GNEViewNetHelper::EditModes::isCurrentSupermodeNetwork ( ) const

@check if current supermode is Network

Definition at line 2270 of file GNEViewNetHelper.cpp.

References NETWORK.

Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEJunction::drawAsBubble(), GNEEdge::drawBigGeometryPoints(), GNEDemandElement::drawContainerPlan(), GNEViewNet::drawDeleteContour(), GNEJunction::drawDottedContoursBubble(), GNEJunction::drawDottedContoursShape(), GNEEdge::drawEdgeGeometryPoints(), GNETAZ::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEWalkingArea::drawGL(), GNEPoly::drawGL(), GNEJunction::drawJunctionAsShape(), GNELaneAreaDetector::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlan(), GNEViewNet::drawSelectContour(), GNEAdditional::drawSemiCircleGeometryPoint(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalSplitJunction(), GNEAttributeCarrier::drawUsingSelectColor(), GNEDetector::getMoveOperation(), GNEOverheadWire::getMoveOperation(), GNEParkingSpace::getMoveOperation(), GNEStoppingPlace::getMoveOperation(), GNEPOI::getMoveOperation(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyDel(), GNEViewNet::hotkeyEnter(), GNEPOI::isAttributeEnabled(), GNEPoly::isAttributeEnabled(), GNEAdditional::isGLObjectLocked(), GNENetworkElement::isGLObjectLocked(), GNEFrameAttributeModules::isSupermodeValid(), GNEFrameAttributeModules::isSupermodeValid(), GNEApplicationWindow::onCmdProcessButton(), GNEElementSet::onCmdSelectElementSet(), GNEViewNet::onCmdSetMode(), GNEViewNet::onLeftBtnPress(), GNEViewNet::onLeftBtnRelease(), GNEViewNet::onMouseMove(), GNEApplicationWindow::onUpdComputePathManager(), GNEApplicationWindow::onUpdLockMenuTitle(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNESelectorFrame::selectAttributeCarrier(), GNEDeleteFrame::selectedACsToDelete(), GNEViewNet::selectingDetectorsTLSMode(), GNEViewNet::selectingJunctionsTLSMode(), GNEMoveFrame::show(), GNESelectorFrame::show(), GNEViewNet::updateControls(), and GNEViewNet::updateCursor().

◆ operator=()

EditModes & GNEViewNetHelper::EditModes::operator= ( const EditModes )
privatedelete

Invalidated assignment operator.

◆ setDataEditMode()

void GNEViewNetHelper::EditModes::setDataEditMode ( DataEditMode  dataMode,
const bool  force = false 
)

set Data edit mode

Definition at line 2233 of file GNEViewNetHelper.cpp.

References DATA_DELETE, DATA_INSPECT, DATA_SELECT, DEMAND_DELETE, DEMAND_INSPECT, DEMAND_SELECT, NETWORK_DELETE, NETWORK_INSPECT, NETWORK_SELECT, and TL.

Referenced by GNEViewNet::onCmdSetMode().

Here is the caller graph for this function:

◆ setDemandEditMode()

void GNEViewNetHelper::EditModes::setDemandEditMode ( DemandEditMode  demandMode,
const bool  force = false 
)

set Demand edit mode

Definition at line 2198 of file GNEViewNetHelper.cpp.

References DATA_DELETE, DATA_INSPECT, DATA_SELECT, DEMAND_DELETE, DEMAND_INSPECT, DEMAND_MOVE, DEMAND_SELECT, NETWORK_DELETE, NETWORK_INSPECT, NETWORK_MOVE, NETWORK_SELECT, and TL.

Referenced by GNEViewNet::onCmdSetMode().

Here is the caller graph for this function:

◆ setNetworkEditMode()

void GNEViewNetHelper::EditModes::setNetworkEditMode ( NetworkEditMode  networkMode,
const bool  force = false 
)

set Network edit mode

Definition at line 2148 of file GNEViewNetHelper.cpp.

References DATA_DELETE, DATA_INSPECT, DATA_SELECT, DEMAND_DELETE, DEMAND_INSPECT, DEMAND_MOVE, DEMAND_SELECT, NETWORK_CONNECT, NETWORK_DELETE, NETWORK_INSPECT, NETWORK_MOVE, NETWORK_PROHIBITION, NETWORK_SELECT, NETWORK_TLS, NETWORK_WIRE, and TL.

Referenced by GNEViewNet::onCmdAddJoinTLS(), GNEViewNet::onCmdAddTLS(), and GNEViewNet::onCmdSetMode().

Here is the caller graph for this function:

◆ setSupermode()

void GNEViewNetHelper::EditModes::setSupermode ( Supermode  supermode,
const bool  force 
)

set supermode

Definition at line 2063 of file GNEViewNetHelper.cpp.

References DATA, DEMAND, NETWORK, and TL.

Referenced by GNEViewNet::aksChangeSupermode(), GNEViewNet::forceSupermodeNetwork(), and GNEViewNet::onCmdSetSupermode().

Here is the caller graph for this function:

Field Documentation

◆ currentSupermode

Supermode GNEViewNetHelper::EditModes::currentSupermode

the current supermode

Definition at line 559 of file GNEViewNetHelper.h.

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

◆ dataButton

MFXCheckableButton* GNEViewNetHelper::EditModes::dataButton

checkable button for supermode Data

Definition at line 577 of file GNEViewNetHelper.h.

◆ dataEditMode

◆ demandButton

MFXCheckableButton* GNEViewNetHelper::EditModes::demandButton

checkable button for supermode Demand

Definition at line 574 of file GNEViewNetHelper.h.

◆ demandEditMode

◆ myViewNet

GNEViewNet* GNEViewNetHelper::EditModes::myViewNet
private

pointer to net

Definition at line 581 of file GNEViewNetHelper.h.

◆ networkButton

MFXCheckableButton* GNEViewNetHelper::EditModes::networkButton

checkable button for supermode Network

Definition at line 571 of file GNEViewNetHelper.h.

◆ networkEditMode

NetworkEditMode GNEViewNetHelper::EditModes::networkEditMode

the current Network edit mode

Definition at line 562 of file GNEViewNetHelper.h.

Referenced by GNEViewNet::abortOperation(), GNEEdge::drawBigGeometryPoints(), GNEViewNet::drawDeleteContour(), GNEJunction::drawDottedContoursBubble(), GNEJunction::drawDottedContoursShape(), GNERerouterSymbol::drawGL(), GNETAZ::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEWalkingArea::drawGL(), GNEPoly::drawGL(), GNEJunction::drawJunctionAsShape(), GNEViewNet::drawSelectContour(), GNEAdditional::drawSemiCircleGeometryPoint(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalSplitJunction(), GNEJunction::drawTLSIcon(), EditModes(), GNEDetector::getMoveOperation(), GNEOverheadWire::getMoveOperation(), GNEParkingSpace::getMoveOperation(), GNEStoppingPlace::getMoveOperation(), GNEPOI::getMoveOperation(), GNETAZ::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyDel(), GNEViewNet::hotkeyEnter(), GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), GNEViewNet::onRightBtnPress(), GNEViewNet::onRightBtnRelease(), GNEApplicationWindow::onUpdLockMenuTitle(), GNEViewNet::processLeftButtonPressNetwork(), GNEViewNet::processLeftButtonReleaseNetwork(), GNEViewNet::processMoveMouseNetwork(), GNEViewNet::selectingDetectorsTLSMode(), GNEViewNet::selectingJunctionsTLSMode(), GNEViewNet::showJunctionAsBubbles(), GNEViewNet::updateControls(), GNEViewNet::updateCursor(), GNELane::updateGeometry(), and GNEViewNet::updateNetworkModeSpecificControls().


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