Eclipse SUMO - Simulation of Urban MObility
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 More...
 
 DemandViewOptions (GNEViewNet *viewNet)
 default constructor More...
 
bool drawSpreadVehicles () const
 check if vehicles must be drawn spread More...
 
const GNEDemandElementgetLockedPerson () const
 get locked person More...
 
void getVisibleDemandMenuCommands (std::vector< MFXCheckableButton * > &commands) const
 get visible demand menu commands More...
 
void hideDemandViewOptionsMenuChecks ()
 hide all options menu checks More...
 
void lockPerson (const GNEDemandElement *person)
 lock person More...
 
bool showAllPersonPlans () const
 check all person plans has to be show More...
 
bool showNonInspectedDemandElements (const GNEDemandElement *demandElement) const
 check if non inspected element has to be hidden More...
 
bool showShapes () const
 check if shapes has to be drawn More...
 
void unlockPerson ()
 unlock person More...
 

Data Fields

MFXCheckableButtonmenuCheckDrawSpreadVehicles
 menu check to draw vehicles in begin position or spread in lane More...
 
MFXCheckableButtonmenuCheckHideNonInspectedDemandElements
 Hide non inspected demand elements. More...
 
MFXCheckableButtonmenuCheckHideShapes
 Hide shapes (Polygons and POIs) More...
 
MFXCheckableButtonmenuCheckLockPerson
 Lock Person. More...
 
MFXCheckableButtonmenuCheckShowAllPersonPlans
 show all person plans More...
 
MFXCheckableButtonmenuCheckShowGrid
 menu check to show grid button More...
 

Private Member Functions

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

Private Attributes

const GNEDemandElementmyLockedPerson
 pointer to locked person More...
 
GNEViewNetmyViewNet
 pointer to net More...
 

Detailed Description

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

Definition at line 590 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ DemandViewOptions() [1/2]

GNEViewNetHelper::DemandViewOptions::DemandViewOptions ( GNEViewNet viewNet)

default constructor

Definition at line 2176 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 2276 of file GNEViewNetHelper.cpp.

Referenced by GNEVehicle::drawGL(), and GNEVehicle::drawPartialGL().

Here is the caller graph for this function:

◆ getLockedPerson()

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

get locked person

Definition at line 2352 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::doPaintGL(), GNEPersonStop::drawGL(), GNEStop::drawGL(), GNEDemandElement::drawPersonPlanPartialJunction(), and GNEDemandElement::drawPersonPlanPartialLane().

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

Referenced by GNEApplicationWindow::onCmdToogleEditOptions().

Here is the caller graph for this function:

◆ hideDemandViewOptionsMenuChecks()

void GNEViewNetHelper::DemandViewOptions::hideDemandViewOptionsMenuChecks ( )

hide all options menu checks

Definition at line 2239 of file GNEViewNetHelper.cpp.

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

Here is the caller graph for this function:

◆ lockPerson()

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

lock person

Definition at line 2340 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::onCmdToogleLockPerson().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ showAllPersonPlans()

bool GNEViewNetHelper::DemandViewOptions::showAllPersonPlans ( ) const

check all person plans has to be show

Definition at line 2330 of file GNEViewNetHelper.cpp.

Referenced by GNEPersonStop::drawGL(), GNEStop::drawGL(), GNEDemandElement::drawPersonPlanPartialJunction(), and GNEDemandElement::drawPersonPlanPartialLane().

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

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

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

Here is the caller graph for this function:

◆ showShapes()

bool GNEViewNetHelper::DemandViewOptions::showShapes ( ) const

check if shapes has to be drawn

Definition at line 2320 of file GNEViewNetHelper.cpp.

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

Here is the caller graph for this function:

◆ unlockPerson()

void GNEViewNetHelper::DemandViewOptions::unlockPerson ( )

unlock person

Definition at line 2346 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::onCmdToogleLockPerson().

Here is the caller graph for this function:

Field Documentation

◆ menuCheckDrawSpreadVehicles

MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckDrawSpreadVehicles

menu check to draw vehicles in begin position or spread in lane

Definition at line 629 of file GNEViewNetHelper.h.

Referenced by GNEViewNet::onCmdToogleDrawSpreadVehicles(), GNEApplicationWindowHelper::toogleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().

◆ menuCheckHideNonInspectedDemandElements

MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckHideNonInspectedDemandElements

◆ menuCheckHideShapes

MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckHideShapes

◆ menuCheckLockPerson

◆ menuCheckShowAllPersonPlans

MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckShowAllPersonPlans

◆ menuCheckShowGrid

MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckShowGrid

◆ myLockedPerson

const GNEDemandElement* GNEViewNetHelper::DemandViewOptions::myLockedPerson
private

pointer to locked person

Definition at line 648 of file GNEViewNetHelper.h.

◆ myViewNet

GNEViewNet* GNEViewNetHelper::DemandViewOptions::myViewNet
private

pointer to net

Definition at line 645 of file GNEViewNetHelper.h.


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