Eclipse SUMO - Simulation of Urban MObility
GNEViewNetHelper::LockManager Class Reference

lock manager More...

#include <GNEViewNetHelper.h>

Collaboration diagram for GNEViewNetHelper::LockManager:
[legend]

Data Structures

class  OperationLocked
 operation locked More...
 

Public Member Functions

bool isObjectLocked (GUIGlObjectType objectType, const bool selected) const
 check if given GLObject is locked for inspect, select, delete and move More...
 
 LockManager (GNEViewNet *viewNet)
 constructor More...
 
void updateFlags ()
 update flags More...
 
void updateLockMenuBar ()
 update lock inspect menuBar More...
 
 ~LockManager ()
 destructor More...
 

Private Attributes

std::map< GUIGlObjectType, OperationLockedmyLockedElements
 map with locked elements More...
 
GNEViewNetmyViewNet
 pointer to viewNet More...
 

Detailed Description

lock manager

Definition at line 172 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ LockManager()

◆ ~LockManager()

GNEViewNetHelper::LockManager::~LockManager ( )

destructor

Definition at line 93 of file GNEViewNetHelper.cpp.

Member Function Documentation

◆ isObjectLocked()

bool GNEViewNetHelper::LockManager::isObjectLocked ( GUIGlObjectType  objectType,
const bool  selected 
) const

check if given GLObject is locked for inspect, select, delete and move

Definition at line 97 of file GNEViewNetHelper.cpp.

References GLO_ACCESS, GLO_ADDITIONALELEMENT, GLO_CONTAINER, GLO_CONTAINERFLOW, GLO_PERSON, GLO_PERSONFLOW, GLO_ROUTEFLOW, GLO_STOP, GLO_STOP_PLAN, GLO_TRACTIONSUBSTATION, GLO_VEHICLE, and GLO_WIRE.

Referenced by GNEViewNet::autoSelectNodes(), GNEViewNet::checkOverLockedElement(), GNEAdditional::isGLObjectLocked(), GNEDemandElement::isGLObjectLocked(), GNENetworkElement::isGLObjectLocked(), and GNESelectorFrame::selectAttributeCarrier().

Here is the caller graph for this function:

◆ updateFlags()

void GNEViewNetHelper::LockManager::updateFlags ( )

update flags

Definition at line 125 of file GNEViewNetHelper.cpp.

References MFXMenuCheckIcon::getCheck(), GLO_ADDITIONALELEMENT, GLO_CONNECTION, GLO_CONTAINER, GLO_CROSSING, GLO_EDGE, GLO_EDGEDATA, GLO_EDGERELDATA, GLO_JPS_OBSTACLE, GLO_JPS_WALKABLEAREA, GLO_JUNCTION, GLO_LANE, GLO_PERSON, GLO_PERSONTRIP, GLO_POI, GLO_POLYGON, GLO_RIDE, GLO_ROUTE, GLO_STOP, GLO_TAZ, GLO_TAZRELDATA, GLO_TRANSHIP, GLO_TRANSPORT, GLO_VEHICLE, GLO_WALK, GLO_WALKINGAREA, GLO_WIRE, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockAdditionals, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockConnections, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockContainers, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockCrossings, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockEdgeDatas, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockEdgeRelDatas, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockEdges, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockEdgeTAZRels, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockJpsObstacles, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockJpsWalkableAreas, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockJunction, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockLanes, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockPersons, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockPersonTrip, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockPOIs, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockPolygons, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockRides, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockRoutes, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockStops, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockTAZs, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockTranships, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockTransports, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockVehicles, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockWalk, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockWalkingAreas, and GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockWires.

Referenced by GNEApplicationWindow::onCmdLockAllElements(), GNEApplicationWindow::onCmdLockElements(), and GNEApplicationWindow::onCmdUnlockAllElements().

Here is the caller graph for this function:

◆ updateLockMenuBar()

void GNEViewNetHelper::LockManager::updateLockMenuBar ( )

update lock inspect menuBar

Definition at line 161 of file GNEViewNetHelper.cpp.

References GLO_ADDITIONALELEMENT, GLO_CONNECTION, GLO_CONTAINER, GLO_CROSSING, GLO_EDGE, GLO_EDGEDATA, GLO_EDGERELDATA, GLO_JPS_OBSTACLE, GLO_JPS_WALKABLEAREA, GLO_JUNCTION, GLO_LANE, GLO_PERSON, GLO_PERSONTRIP, GLO_POI, GLO_POLYGON, GLO_RIDE, GLO_ROUTE, GLO_STOP, GLO_TAZ, GLO_TAZRELDATA, GLO_TRANSHIP, GLO_TRANSPORT, GLO_VEHICLE, GLO_WALK, GLO_WALKINGAREA, GLO_WIRE, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockAdditionals, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockConnections, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockContainers, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockCrossings, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockEdgeDatas, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockEdgeRelDatas, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockEdges, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockEdgeTAZRels, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockJpsObstacles, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockJpsWalkableAreas, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockJunction, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockLanes, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockPersons, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockPersonTrip, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockPOIs, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockPolygons, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockRides, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockRoutes, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockStops, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockTAZs, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockTranships, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockTransports, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockVehicles, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockWalk, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockWalkingAreas, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockWires, and MFXMenuCheckIcon::setCheck().

Referenced by GNEViewNet::updateNetworkModeSpecificControls().

Here is the caller graph for this function:

Field Documentation

◆ myLockedElements

std::map<GUIGlObjectType, OperationLocked> GNEViewNetHelper::LockManager::myLockedElements
private

map with locked elements

Definition at line 219 of file GNEViewNetHelper.h.

Referenced by LockManager().

◆ myViewNet

GNEViewNet* GNEViewNetHelper::LockManager::myViewNet
private

pointer to viewNet

Definition at line 216 of file GNEViewNetHelper.h.


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