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

struct used to group all variables related to view options in supermode Demand More...

#include <GNEViewNetHelper.h>

Collaboration diagram for GNEViewNetHelper::DemandViewOptions:
[legend]

Public Member Functions

void buildDemandViewOptionsMenuChecks ()
 build menu checks
 
 DemandViewOptions (GNEViewNet *viewNet)
 default constructor
 
bool drawSpreadVehicles () const
 check if vehicles must be drawn spread
 
const GNEDemandElementgetLockedContainer () const
 get locked container
 
const GNEDemandElementgetLockedPerson () const
 get locked person
 
void getVisibleDemandMenuCommands (std::vector< MFXCheckableButton * > &commands) const
 get visible demand menu commands
 
void hideDemandViewOptionsMenuChecks ()
 hide all options menu checks
 
void lockContainer (const GNEDemandElement *container)
 lock container
 
void lockPerson (const GNEDemandElement *person)
 lock person
 
bool showAllContainerPlans () const
 check all container plans has to be show
 
bool showAllPersonPlans () const
 check all person plans has to be show
 
bool showAllTrips () const
 check if trips has to be drawn
 
bool showNonInspectedDemandElements (const GNEDemandElement *demandElement) const
 check if non inspected element has to be hidden
 
bool showOverlappedRoutes () const
 show overlapped routes
 
bool showShapes () const
 check if shapes has to be drawn
 
void unlockContainer ()
 unlock container
 
void unlockPerson ()
 unlock person
 

Data Fields

MFXCheckableButtonmenuCheckDrawSpreadVehicles = nullptr
 menu check to draw vehicles in begin position or spread in lane
 
MFXCheckableButtonmenuCheckHideNonInspectedDemandElements = nullptr
 Hide non inspected demand elements.
 
MFXCheckableButtonmenuCheckHideShapes = nullptr
 Hide shapes (Polygons and POIs)
 
MFXCheckableButtonmenuCheckLockContainer = nullptr
 Lock Container.
 
MFXCheckableButtonmenuCheckLockPerson = nullptr
 Lock Person.
 
MFXCheckableButtonmenuCheckShowAllContainerPlans = nullptr
 show all container plans
 
MFXCheckableButtonmenuCheckShowAllPersonPlans = nullptr
 show all person plans
 
MFXCheckableButtonmenuCheckShowAllTrips = nullptr
 show all trips
 
MFXCheckableButtonmenuCheckShowOverlappedRoutes = nullptr
 show overlapped routes
 
MFXCheckableButtonmenuCheckToggleDrawJunctionShape = nullptr
 checkable button to show junction shapes
 
MFXCheckableButtonmenuCheckToggleGrid = nullptr
 menu check to show grid button
 

Private Member Functions

 DemandViewOptions (const DemandViewOptions &)=delete
 Invalidated copy constructor.
 
DemandViewOptionsoperator= (const DemandViewOptions &)=delete
 Invalidated assignment operator.
 

Private Attributes

const GNEDemandElementmyLockedContainer = nullptr
 pointer to locked container
 
const GNEDemandElementmyLockedPerson = nullptr
 pointer to locked person
 
GNEViewNetmyViewNet
 pointer to net
 

Detailed Description

struct used to group all variables related to view options in supermode Demand

Definition at line 901 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ DemandViewOptions() [1/2]

GNEViewNetHelper::DemandViewOptions::DemandViewOptions ( GNEViewNet viewNet)

default constructor

Definition at line 2985 of file GNEViewNetHelper.cpp.

◆ DemandViewOptions() [2/2]

GNEViewNetHelper::DemandViewOptions::DemandViewOptions ( const DemandViewOptions )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ buildDemandViewOptionsMenuChecks()

◆ drawSpreadVehicles()

bool GNEViewNetHelper::DemandViewOptions::drawSpreadVehicles ( ) const

check if vehicles must be drawn spread

Definition at line 3135 of file GNEViewNetHelper.cpp.

Referenced by GNEVehicle::drawGL().

Here is the caller graph for this function:

◆ getLockedContainer()

const GNEDemandElement * GNEViewNetHelper::DemandViewOptions::getLockedContainer ( ) const

get locked container

Definition at line 3256 of file GNEViewNetHelper.cpp.

◆ getLockedPerson()

const GNEDemandElement * GNEViewNetHelper::DemandViewOptions::getLockedPerson ( ) const

get locked person

Definition at line 3218 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::doPaintGL().

Here is the caller graph for this function:

◆ getVisibleDemandMenuCommands()

void GNEViewNetHelper::DemandViewOptions::getVisibleDemandMenuCommands ( std::vector< MFXCheckableButton * > &  commands) const

get visible demand menu commands

Definition at line 3096 of file GNEViewNetHelper.cpp.

Referenced by GNEApplicationWindow::onCmdToggleEditOptions().

Here is the caller graph for this function:

◆ hideDemandViewOptionsMenuChecks()

void GNEViewNetHelper::DemandViewOptions::hideDemandViewOptionsMenuChecks ( )

hide all options menu checks

Definition at line 3080 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().

Here is the caller graph for this function:

◆ lockContainer()

void GNEViewNetHelper::DemandViewOptions::lockContainer ( const GNEDemandElement container)

lock container

Definition at line 3234 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::onCmdToggleLockContainer().

Here is the caller graph for this function:

◆ lockPerson()

void GNEViewNetHelper::DemandViewOptions::lockPerson ( const GNEDemandElement person)

lock person

Definition at line 3206 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::onCmdToggleLockPerson().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ showAllContainerPlans()

bool GNEViewNetHelper::DemandViewOptions::showAllContainerPlans ( ) const

check all container plans has to be show

Definition at line 3224 of file GNEViewNetHelper.cpp.

◆ showAllPersonPlans()

bool GNEViewNetHelper::DemandViewOptions::showAllPersonPlans ( ) const

check all person plans has to be show

Definition at line 3196 of file GNEViewNetHelper.cpp.

◆ showAllTrips()

bool GNEViewNetHelper::DemandViewOptions::showAllTrips ( ) const

check if trips has to be drawn

Definition at line 3190 of file GNEViewNetHelper.cpp.

Referenced by GNEStop::canDrawVehicleStop(), GNEVehicle::drawJunctionPartialGL(), and GNEVehicle::drawLanePartialGL().

Here is the caller graph for this function:

◆ showNonInspectedDemandElements()

bool GNEViewNetHelper::DemandViewOptions::showNonInspectedDemandElements ( const GNEDemandElement demandElement) const

check if non inspected element has to be hidden

Definition at line 3141 of file GNEViewNetHelper.cpp.

References GNEHierarchicalElement::getChildDemandElements(), and GNEHierarchicalElement::getParentDemandElements().

Referenced by GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNERoute::drawJunctionPartialGL(), and GNERoute::drawLanePartialGL().

Here is the caller graph for this function:

◆ showOverlappedRoutes()

bool GNEViewNetHelper::DemandViewOptions::showOverlappedRoutes ( ) const

show overlapped routes

Definition at line 3246 of file GNEViewNetHelper.cpp.

Referenced by GNEPathManager::drawLanePathElements().

Here is the caller graph for this function:

◆ showShapes()

bool GNEViewNetHelper::DemandViewOptions::showShapes ( ) const

check if shapes has to be drawn

Definition at line 3180 of file GNEViewNetHelper.cpp.

Referenced by GNETAZ::drawGL(), GNEPOI::drawGL(), and GNEPoly::drawGL().

Here is the caller graph for this function:

◆ unlockContainer()

void GNEViewNetHelper::DemandViewOptions::unlockContainer ( )

unlock container

Definition at line 3240 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::onCmdToggleLockContainer().

Here is the caller graph for this function:

◆ unlockPerson()

void GNEViewNetHelper::DemandViewOptions::unlockPerson ( )

unlock person

Definition at line 3212 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::onCmdToggleLockPerson().

Here is the caller graph for this function:

Field Documentation

◆ menuCheckDrawSpreadVehicles

MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckDrawSpreadVehicles = nullptr

◆ menuCheckHideNonInspectedDemandElements

MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckHideNonInspectedDemandElements = nullptr

◆ menuCheckHideShapes

MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckHideShapes = nullptr

◆ menuCheckLockContainer

◆ menuCheckLockPerson

◆ menuCheckShowAllContainerPlans

◆ menuCheckShowAllPersonPlans

◆ menuCheckShowAllTrips

◆ menuCheckShowOverlappedRoutes

MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckShowOverlappedRoutes = nullptr

◆ menuCheckToggleDrawJunctionShape

MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckToggleDrawJunctionShape = nullptr

◆ menuCheckToggleGrid

◆ myLockedContainer

const GNEDemandElement* GNEViewNetHelper::DemandViewOptions::myLockedContainer = nullptr
private

pointer to locked container

Definition at line 995 of file GNEViewNetHelper.h.

◆ myLockedPerson

const GNEDemandElement* GNEViewNetHelper::DemandViewOptions::myLockedPerson = nullptr
private

pointer to locked person

Definition at line 992 of file GNEViewNetHelper.h.

◆ myViewNet

GNEViewNet* GNEViewNetHelper::DemandViewOptions::myViewNet
private

pointer to net

Definition at line 989 of file GNEViewNetHelper.h.


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