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
 menu check to draw vehicles in begin position or spread in lane
 
MFXCheckableButtonmenuCheckHideNonInspectedDemandElements
 Hide non inspected demand elements.
 
MFXCheckableButtonmenuCheckHideShapes
 Hide shapes (Polygons and POIs)
 
MFXCheckableButtonmenuCheckLockContainer
 Lock Container.
 
MFXCheckableButtonmenuCheckLockPerson
 Lock Person.
 
MFXCheckableButtonmenuCheckShowAllContainerPlans
 show all container plans
 
MFXCheckableButtonmenuCheckShowAllPersonPlans
 show all person plans
 
MFXCheckableButtonmenuCheckShowAllTrips
 show all trips
 
MFXCheckableButtonmenuCheckShowOverlappedRoutes
 show overlapped routes
 
MFXCheckableButtonmenuCheckToggleDrawJunctionShape
 checkable button to show junction shapes
 
MFXCheckableButtonmenuCheckToggleGrid
 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
 pointer to locked container
 
const GNEDemandElementmyLockedPerson
 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 686 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ DemandViewOptions() [1/2]

GNEViewNetHelper::DemandViewOptions::DemandViewOptions ( GNEViewNet viewNet)

default constructor

Definition at line 2604 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 2776 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 2896 of file GNEViewNetHelper.cpp.

Referenced by GNEDemandElement::drawContainerPlan().

Here is the caller graph for this function:

◆ getLockedPerson()

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

get locked person

Definition at line 2858 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::doPaintGL(), and GNEDemandElement::drawPersonPlan().

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 2737 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 2719 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 2874 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 2846 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 2864 of file GNEViewNetHelper.cpp.

Referenced by GNEDemandElement::drawContainerPlan().

Here is the caller graph for this function:

◆ showAllPersonPlans()

bool GNEViewNetHelper::DemandViewOptions::showAllPersonPlans ( ) const

check all person plans has to be show

Definition at line 2836 of file GNEViewNetHelper.cpp.

Referenced by GNEDemandElement::drawPersonPlan().

Here is the caller graph for this function:

◆ showAllTrips()

bool GNEViewNetHelper::DemandViewOptions::showAllTrips ( ) const

check if trips has to be drawn

Definition at line 2830 of file GNEViewNetHelper.cpp.

Referenced by GNEStop::canDrawVehicleStop(), GNEVehicle::drawPartialGL(), and GNEVehicle::drawPartialGL().

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

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

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

Here is the caller graph for this function:

◆ showOverlappedRoutes()

bool GNEViewNetHelper::DemandViewOptions::showOverlappedRoutes ( ) const

show overlapped routes

Definition at line 2886 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 2820 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 2880 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 2852 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::onCmdToggleLockPerson().

Here is the caller graph for this function:

Field Documentation

◆ menuCheckDrawSpreadVehicles

MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckDrawSpreadVehicles

◆ menuCheckHideNonInspectedDemandElements

MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckHideNonInspectedDemandElements

◆ menuCheckHideShapes

MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckHideShapes

◆ menuCheckLockContainer

◆ menuCheckLockPerson

◆ menuCheckShowAllContainerPlans

◆ menuCheckShowAllPersonPlans

◆ menuCheckShowAllTrips

◆ menuCheckShowOverlappedRoutes

◆ menuCheckToggleDrawJunctionShape

MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckToggleDrawJunctionShape

◆ menuCheckToggleGrid

◆ myLockedContainer

const GNEDemandElement* GNEViewNetHelper::DemandViewOptions::myLockedContainer
private

pointer to locked container

Definition at line 780 of file GNEViewNetHelper.h.

◆ myLockedPerson

const GNEDemandElement* GNEViewNetHelper::DemandViewOptions::myLockedPerson
private

pointer to locked person

Definition at line 777 of file GNEViewNetHelper.h.

◆ myViewNet

GNEViewNet* GNEViewNetHelper::DemandViewOptions::myViewNet
private

pointer to net

Definition at line 774 of file GNEViewNetHelper.h.


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