![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct used to group all variables related to view options in supermode Demand More...
#include <GNEViewNetHelper.h>
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 GNEDemandElement * | getLockedContainer () const |
get locked container More... | |
const GNEDemandElement * | getLockedPerson () 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 | lockContainer (const GNEDemandElement *container) |
lock container More... | |
void | lockPerson (const GNEDemandElement *person) |
lock person More... | |
bool | showAllContainerPlans () const |
check all container plans has to be show More... | |
bool | showAllPersonPlans () const |
check all person plans has to be show More... | |
bool | showAllTrips () const |
check if trips has to be drawn More... | |
bool | showNonInspectedDemandElements (const GNEDemandElement *demandElement) const |
check if non inspected element has to be hidden More... | |
bool | showOverlappedRoutes () const |
show overlapped routes More... | |
bool | showShapes () const |
check if shapes has to be drawn More... | |
void | unlockContainer () |
unlock container More... | |
void | unlockPerson () |
unlock person More... | |
Data Fields | |
MFXCheckableButton * | menuCheckDrawSpreadVehicles |
menu check to draw vehicles in begin position or spread in lane More... | |
MFXCheckableButton * | menuCheckHideNonInspectedDemandElements |
Hide non inspected demand elements. More... | |
MFXCheckableButton * | menuCheckHideShapes |
Hide shapes (Polygons and POIs) More... | |
MFXCheckableButton * | menuCheckLockContainer |
Lock Container. More... | |
MFXCheckableButton * | menuCheckLockPerson |
Lock Person. More... | |
MFXCheckableButton * | menuCheckShowAllContainerPlans |
show all container plans More... | |
MFXCheckableButton * | menuCheckShowAllPersonPlans |
show all person plans More... | |
MFXCheckableButton * | menuCheckShowAllTrips |
show all trips More... | |
MFXCheckableButton * | menuCheckShowOverlappedRoutes |
show overlapped routes More... | |
MFXCheckableButton * | menuCheckToggleDrawJunctionShape |
checkable button to show junction shapes More... | |
MFXCheckableButton * | menuCheckToggleGrid |
menu check to show grid button More... | |
Private Member Functions | |
DemandViewOptions (const DemandViewOptions &)=delete | |
Invalidated copy constructor. More... | |
DemandViewOptions & | operator= (const DemandViewOptions &)=delete |
Invalidated assignment operator. More... | |
Private Attributes | |
const GNEDemandElement * | myLockedContainer |
pointer to locked container More... | |
const GNEDemandElement * | myLockedPerson |
pointer to locked person More... | |
GNEViewNet * | myViewNet |
pointer to net More... | |
struct used to group all variables related to view options in supermode Demand
Definition at line 654 of file GNEViewNetHelper.h.
GNEViewNetHelper::DemandViewOptions::DemandViewOptions | ( | GNEViewNet * | viewNet | ) |
default constructor
Definition at line 2516 of file GNEViewNetHelper.cpp.
|
privatedelete |
Invalidated copy constructor.
void GNEViewNetHelper::DemandViewOptions::buildDemandViewOptionsMenuChecks | ( | ) |
build menu checks
Definition at line 2535 of file GNEViewNetHelper.cpp.
References COMMONMODE_CHECKBOX_SPREADVEHICLE, COMMONMODE_CHECKBOX_TOGGLEDRAWJUNCTIONSHAPE, COMMONMODE_CHECKBOX_TOGGLEGRID, DEMANDMODE_CHECKBOX_HIDENONINSPECTEDDEMANDELEMENTS, DEMANDMODE_CHECKBOX_HIDESHAPES, DEMANDMODE_CHECKBOX_LOCKCONTAINER, DEMANDMODE_CHECKBOX_LOCKPERSON, DEMANDMODE_CHECKBOX_SHOWCONTAINERPLANS, DEMANDMODE_CHECKBOX_SHOWOVERLAPPEDROUTES, DEMANDMODE_CHECKBOX_SHOWPERSONPLANS, DEMANDMODE_CHECKBOX_SHOWTRIPS, GUIIconSubSys::getIcon(), GUIDesignMFXCheckableButtonSquare, MID_GNE_DEMANDVIEWOPTIONS_DRAWSPREADVEHICLES, MID_GNE_DEMANDVIEWOPTIONS_HIDENONINSPECTED, MID_GNE_DEMANDVIEWOPTIONS_HIDESHAPES, MID_GNE_DEMANDVIEWOPTIONS_LOCKCONTAINER, MID_GNE_DEMANDVIEWOPTIONS_LOCKPERSON, MID_GNE_DEMANDVIEWOPTIONS_SHOWALLCONTAINERPLANS, MID_GNE_DEMANDVIEWOPTIONS_SHOWALLPERSONPLANS, MID_GNE_DEMANDVIEWOPTIONS_SHOWGRID, MID_GNE_DEMANDVIEWOPTIONS_SHOWOVERLAPPEDROUTES, MID_GNE_DEMANDVIEWOPTIONS_SHOWTRIPS, and MID_GNE_DEMANDVIEWOPTIONS_TOGGLEDRAWJUNCTIONSHAPE.
Referenced by GNEViewNet::buildEditModeControls().
bool GNEViewNetHelper::DemandViewOptions::drawSpreadVehicles | ( | ) | const |
check if vehicles must be drawn spread
Definition at line 2688 of file GNEViewNetHelper.cpp.
Referenced by GNEVehicle::drawGL().
const GNEDemandElement * GNEViewNetHelper::DemandViewOptions::getLockedContainer | ( | ) | const |
get locked container
Definition at line 2808 of file GNEViewNetHelper.cpp.
Referenced by GNEDemandElement::drawContainerPlan().
const GNEDemandElement * GNEViewNetHelper::DemandViewOptions::getLockedPerson | ( | ) | const |
get locked person
Definition at line 2770 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::doPaintGL(), and GNEDemandElement::drawPersonPlan().
void GNEViewNetHelper::DemandViewOptions::getVisibleDemandMenuCommands | ( | std::vector< MFXCheckableButton * > & | commands | ) | const |
get visible demand menu commands
Definition at line 2649 of file GNEViewNetHelper.cpp.
Referenced by GNEApplicationWindow::onCmdToggleEditOptions().
void GNEViewNetHelper::DemandViewOptions::hideDemandViewOptionsMenuChecks | ( | ) |
hide all options menu checks
Definition at line 2631 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
void GNEViewNetHelper::DemandViewOptions::lockContainer | ( | const GNEDemandElement * | container | ) |
lock container
Definition at line 2786 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::onCmdToggleLockContainer().
void GNEViewNetHelper::DemandViewOptions::lockPerson | ( | const GNEDemandElement * | person | ) |
lock person
Definition at line 2758 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::onCmdToggleLockPerson().
|
privatedelete |
Invalidated assignment operator.
bool GNEViewNetHelper::DemandViewOptions::showAllContainerPlans | ( | ) | const |
check all container plans has to be show
Definition at line 2776 of file GNEViewNetHelper.cpp.
Referenced by GNEDemandElement::drawContainerPlan().
bool GNEViewNetHelper::DemandViewOptions::showAllPersonPlans | ( | ) | const |
check all person plans has to be show
Definition at line 2748 of file GNEViewNetHelper.cpp.
Referenced by GNEDemandElement::drawPersonPlan().
bool GNEViewNetHelper::DemandViewOptions::showAllTrips | ( | ) | const |
check if trips has to be drawn
Definition at line 2742 of file GNEViewNetHelper.cpp.
Referenced by GNEStop::canDrawVehicleStop(), and GNEVehicle::drawPartialGL().
bool GNEViewNetHelper::DemandViewOptions::showNonInspectedDemandElements | ( | const GNEDemandElement * | demandElement | ) | const |
check if non inspected element has to be hidden
Definition at line 2694 of file GNEViewNetHelper.cpp.
References GNEHierarchicalElement::getChildDemandElements(), and GNEHierarchicalElement::getParentDemandElements().
Referenced by GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), and GNERoute::drawPartialGL().
bool GNEViewNetHelper::DemandViewOptions::showOverlappedRoutes | ( | ) | const |
show overlapped routes
Definition at line 2798 of file GNEViewNetHelper.cpp.
Referenced by GNEPathManager::drawLanePathElements().
bool GNEViewNetHelper::DemandViewOptions::showShapes | ( | ) | const |
check if shapes has to be drawn
Definition at line 2732 of file GNEViewNetHelper.cpp.
Referenced by GNETAZ::drawGL(), GNEPOI::drawGL(), and GNEPoly::drawGL().
void GNEViewNetHelper::DemandViewOptions::unlockContainer | ( | ) |
unlock container
Definition at line 2792 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::onCmdToggleLockContainer().
void GNEViewNetHelper::DemandViewOptions::unlockPerson | ( | ) |
unlock person
Definition at line 2764 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::onCmdToggleLockPerson().
MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckDrawSpreadVehicles |
menu check to draw vehicles in begin position or spread in lane
Definition at line 714 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::onCmdToggleDrawSpreadVehicles(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckHideNonInspectedDemandElements |
Hide non inspected demand elements.
Definition at line 735 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::onCmdToggleHideNonInspecteDemandElements(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckHideShapes |
Hide shapes (Polygons and POIs)
Definition at line 717 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::onCmdToggleHideShapes(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckLockContainer |
Lock Container.
Definition at line 732 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::onCmdToggleLockContainer(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckLockPerson |
Lock Person.
Definition at line 726 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::onCmdToggleLockPerson(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckShowAllContainerPlans |
show all container plans
Definition at line 729 of file GNEViewNetHelper.h.
Referenced by GNEContainerFrame::createPath(), GNEViewNet::onCmdToggleShowAllContainerPlans(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckShowAllPersonPlans |
show all person plans
Definition at line 723 of file GNEViewNetHelper.h.
Referenced by GNEStopFrame::addStop(), GNEContainerPlanFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNEViewNet::doPaintGL(), GNEViewNet::onCmdToggleShowAllPersonPlans(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckShowAllTrips |
show all trips
Definition at line 720 of file GNEViewNetHelper.h.
Referenced by GNEStopFrame::addStop(), GNEViewNet::onCmdToggleShowTrips(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckShowOverlappedRoutes |
show overlapped routes
Definition at line 738 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::onCmdToggleShowOverlappedRoutes(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckToggleDrawJunctionShape |
checkable button to show junction shapes
Definition at line 711 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::onCmdToggleDrawJunctionShape(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckToggleGrid |
menu check to show grid button
Definition at line 708 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::doPaintGL(), GNEViewNet::onCmdToggleShowGrid(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
|
private |
pointer to locked container
Definition at line 748 of file GNEViewNetHelper.h.
|
private |
pointer to locked person
Definition at line 745 of file GNEViewNetHelper.h.
|
private |
pointer to net
Definition at line 742 of file GNEViewNetHelper.h.