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)
 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
 
bool isDefaultView () const
 check if default view is enabled
 
bool isJuPedSimView () const
 check if default view is enabled
 
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
 
void setView (FXSelector sel)
 set view
 
 ~EditModes ()
 destructor
 

Data Fields

Supermode currentSupermode
 the current supermode
 
MFXCheckableButtondataButton = nullptr
 checkable button for supermode Data
 
DataEditMode dataEditMode
 the current Data edit mode
 
MFXCheckableButtondemandButton = nullptr
 checkable button for supermode Demand
 
DemandEditMode demandEditMode
 the current Demand edit mode
 
MFXCheckableButtonnetworkButton = nullptr
 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

MFXButtonTooltipmyDefaultViewButton = nullptr
 The default view button.
 
MFXButtonTooltipmyJuPedSimViewButton = nullptr
 The jupedsim view button.
 
MFXMenuButtonTooltipmyNeteditViewsButton = nullptr
 The netedit views button.
 
FXPopup * myNeteditViewsPopup = nullptr
 The netedit views menu.
 
GNEViewNetmyViewNet
 pointer to net
 

Detailed Description

struct used to group all variables related with Supermodes

Definition at line 566 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ EditModes() [1/2]

GNEViewNetHelper::EditModes::EditModes ( GNEViewNet viewNet)

constructor

Definition at line 2047 of file GNEViewNetHelper.cpp.

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

◆ ~EditModes()

GNEViewNetHelper::EditModes::~EditModes ( )

destructor

Definition at line 2063 of file GNEViewNetHelper.cpp.

◆ 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 2069 of file GNEViewNetHelper.cpp.

References GUIIconSubSys::getIcon(), GUIDesignButtonLeft, GUIDesignMFXCheckableButtonSupermode, GUIDesignTLSTableCheckableButtonIcon, MID_GNE_VIEW_DEFAULT, MID_GNE_VIEW_JUPEDSIM, MID_HOTKEY_F2_SUPERMODE_NETWORK, MID_HOTKEY_F3_SUPERMODE_DEMAND, MID_HOTKEY_F4_SUPERMODE_DATA, SUPERMODEDATA, SUPERMODEDEMAND, SUPERMODENETWORK, TL, VIEWDEFAULT, and VIEWJUPEDSIM.

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 2331 of file GNEViewNetHelper.cpp.

References DEMAND.

Referenced by GNEViewNet::abortOperation(), GNEConnection::checkDrawConnection(), GNENet::computeDemandElements(), GNEViewNet::doPaintGL(), GNEStop::drawGeometryPoints(), GNEViewNet::drawGrid(), GNEVehicle::drawJunctionPartialGL(), GNEVehicle::drawLanePartialGL(), GNEAttributeCarrier::drawUsingSelectColor(), GNEStop::getMoveOperation(), GNERoute::getPopUpMenu(), 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 2325 of file GNEViewNetHelper.cpp.

References NETWORK.

Referenced by GNEViewNet::abortOperation(), GNEConnection::checkDrawConnection(), GNECrossing::drawCrossing(), GNEEdge::drawEdgeGeometryPoints(), GNEPoly::drawGeometryPoints(), GNETAZ::drawGL(), GNEViewNet::drawGrid(), GNEJunction::drawJunctionAsShape(), GNELaneAreaDetector::drawJunctionPartialGL(), GNEVehicle::drawJunctionPartialGL(), GNEVehicle::drawLanePartialGL(), GNEViewNet::drawNeteditAttributesReferences(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalSplitJunction(), GNEAttributeCarrier::drawUsingSelectColor(), GNEDetector::getMoveOperation(), GNEOverheadWire::getMoveOperation(), GNEParkingSpace::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(), GNEViewNet::updateCursor(), and GNEViewNet::updateObjectsInPosition().

◆ isDefaultView()

bool GNEViewNetHelper::EditModes::isDefaultView ( ) const

check if default view is enabled

Definition at line 2366 of file GNEViewNetHelper.cpp.

References GUIIconSubSys::getIcon(), and VIEWDEFAULT.

Referenced by GNEApplicationWindow::updateSuperModeMenuCommands().

Here is the caller graph for this function:

◆ isJuPedSimView()

bool GNEViewNetHelper::EditModes::isJuPedSimView ( ) const

check if default view is enabled

Definition at line 2372 of file GNEViewNetHelper.cpp.

References GUIIconSubSys::getIcon(), and VIEWJUPEDSIM.

Referenced by GNEViewNet::onCmdSetMode(), GNEApplicationWindow::updateSuperModeMenuCommands(), and GNEViewNet::viewUpdated().

Here is the caller graph for this function:

◆ 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 2288 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 2253 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(), and GNEViewNet::viewUpdated().

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 2203 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(), GNEViewNet::onCmdSetMode(), and GNEViewNet::viewUpdated().

Here is the caller graph for this function:

◆ setSupermode()

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

set supermode

Definition at line 2116 of file GNEViewNetHelper.cpp.

References DATA, DEMAND, NETWORK, SUMO_TAG_TAZ, TAZ, and TL.

Referenced by GNEViewNet::aksChangeSupermode(), GNEViewNet::forceSupemodeNetwork(), GNEViewNet::onCmdSetSupermode(), and GNEViewNet::viewUpdated().

Here is the caller graph for this function:

◆ setView()

void GNEViewNetHelper::EditModes::setView ( FXSelector  sel)

set view

Definition at line 2343 of file GNEViewNetHelper.cpp.

References GUIIconSubSys::getIcon(), MID_GNE_VIEW_DEFAULT, MID_GNE_VIEW_JUPEDSIM, VIEWDEFAULT, and VIEWJUPEDSIM.

Referenced by GNEViewNet::onCmdSetNeteditView().

Here is the caller graph for this function:

Field Documentation

◆ currentSupermode

Supermode GNEViewNetHelper::EditModes::currentSupermode

◆ dataButton

MFXCheckableButton* GNEViewNetHelper::EditModes::dataButton = nullptr

checkable button for supermode Data

Definition at line 626 of file GNEViewNetHelper.h.

Referenced by GNEViewNet::onCmdSetSupermode(), and GNEViewNet::viewUpdated().

◆ dataEditMode

◆ demandButton

MFXCheckableButton* GNEViewNetHelper::EditModes::demandButton = nullptr

checkable button for supermode Demand

Definition at line 623 of file GNEViewNetHelper.h.

Referenced by GNEViewNet::onCmdSetSupermode().

◆ demandEditMode

◆ myDefaultViewButton

MFXButtonTooltip* GNEViewNetHelper::EditModes::myDefaultViewButton = nullptr
private

The default view button.

Definition at line 639 of file GNEViewNetHelper.h.

◆ myJuPedSimViewButton

MFXButtonTooltip* GNEViewNetHelper::EditModes::myJuPedSimViewButton = nullptr
private

The jupedsim view button.

Definition at line 642 of file GNEViewNetHelper.h.

◆ myNeteditViewsButton

MFXMenuButtonTooltip* GNEViewNetHelper::EditModes::myNeteditViewsButton = nullptr
private

The netedit views button.

Definition at line 636 of file GNEViewNetHelper.h.

◆ myNeteditViewsPopup

FXPopup* GNEViewNetHelper::EditModes::myNeteditViewsPopup = nullptr
private

The netedit views menu.

Definition at line 633 of file GNEViewNetHelper.h.

◆ myViewNet

GNEViewNet* GNEViewNetHelper::EditModes::myViewNet
private

pointer to net

Definition at line 630 of file GNEViewNetHelper.h.

◆ networkButton

MFXCheckableButton* GNEViewNetHelper::EditModes::networkButton = nullptr

checkable button for supermode Network

Definition at line 620 of file GNEViewNetHelper.h.

Referenced by GNEViewNet::onCmdSetSupermode().

◆ networkEditMode


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