![]() |
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 | |
| DemandViewOptions (GNEViewNet *viewNet) | |
| default constructor | |
| bool | drawSpreadVehicles () const |
| check if vehicles must be drawn spread | |
| const GNEDemandElement * | getLockedContainer () const |
| get locked container | |
| const GNEDemandElement * | getLockedPerson () 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 | |
| MFXCheckableButton * | menuCheckDrawSpreadVehicles = nullptr |
| menu check to draw vehicles in begin position or spread in lane | |
| MFXCheckableButton * | menuCheckHideNonInspectedDemandElements = nullptr |
| Hide non inspected demand elements. | |
| MFXCheckableButton * | menuCheckHideShapes = nullptr |
| Hide shapes (Polygons and POIs) | |
| MFXCheckableButton * | menuCheckLockContainer = nullptr |
| Lock Container. | |
| MFXCheckableButton * | menuCheckLockPerson = nullptr |
| Lock Person. | |
| MFXCheckableButton * | menuCheckShowAllContainerPlans = nullptr |
| show all container plans | |
| MFXCheckableButton * | menuCheckShowAllPersonPlans = nullptr |
| show all person plans | |
| MFXCheckableButton * | menuCheckShowAllTrips = nullptr |
| show all trips | |
| MFXCheckableButton * | menuCheckShowOverlappedRoutes = nullptr |
| show overlapped routes | |
| MFXCheckableButton * | menuCheckToggleDrawJunctionShape = nullptr |
| checkable button to show junction shapes | |
| MFXCheckableButton * | menuCheckToggleGrid = nullptr |
| menu check to show grid button | |
Private Member Functions | |
| DemandViewOptions (const DemandViewOptions &)=delete | |
| Invalidated copy constructor. | |
| DemandViewOptions & | operator= (const DemandViewOptions &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| const GNEDemandElement * | myLockedContainer = nullptr |
| pointer to locked container | |
| const GNEDemandElement * | myLockedPerson = nullptr |
| pointer to locked person | |
| GNEViewNet * | myViewNet |
| pointer to net | |
struct used to group all variables related to view options in supermode Demand
Definition at line 905 of file GNEViewNetHelper.h.
| GNEViewNetHelper::DemandViewOptions::DemandViewOptions | ( | GNEViewNet * | viewNet | ) |
default constructor
Definition at line 2980 of file GNEViewNetHelper.cpp.
|
privatedelete |
Invalidated copy constructor.
| void GNEViewNetHelper::DemandViewOptions::buildDemandViewOptionsMenuChecks | ( | ) |
build menu checks
Definition at line 2986 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, MID_GNE_DEMANDVIEWOPTIONS_TOGGLEDRAWJUNCTIONSHAPE, and TL.
Referenced by GNEViewNet::buildEditModeControls().
| bool GNEViewNetHelper::DemandViewOptions::drawSpreadVehicles | ( | ) | const |
check if vehicles must be drawn spread
Definition at line 3130 of file GNEViewNetHelper.cpp.
Referenced by GNEVehicle::drawGL().
| const GNEDemandElement * GNEViewNetHelper::DemandViewOptions::getLockedContainer | ( | ) | const |
get locked container
Definition at line 3251 of file GNEViewNetHelper.cpp.
| const GNEDemandElement * GNEViewNetHelper::DemandViewOptions::getLockedPerson | ( | ) | const |
get locked person
Definition at line 3213 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::doPaintGL().
| void GNEViewNetHelper::DemandViewOptions::getVisibleDemandMenuCommands | ( | std::vector< MFXCheckableButton * > & | commands | ) | const |
get visible demand menu commands
Definition at line 3091 of file GNEViewNetHelper.cpp.
Referenced by GNEApplicationWindow::onCmdToggleEditOptions().
| void GNEViewNetHelper::DemandViewOptions::hideDemandViewOptionsMenuChecks | ( | ) |
hide all options menu checks
Definition at line 3075 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 3229 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::onCmdToggleLockContainer().
| void GNEViewNetHelper::DemandViewOptions::lockPerson | ( | const GNEDemandElement * | person | ) |
lock person
Definition at line 3201 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 3219 of file GNEViewNetHelper.cpp.
| bool GNEViewNetHelper::DemandViewOptions::showAllPersonPlans | ( | ) | const |
check all person plans has to be show
Definition at line 3191 of file GNEViewNetHelper.cpp.
| bool GNEViewNetHelper::DemandViewOptions::showAllTrips | ( | ) | const |
check if trips has to be drawn
Definition at line 3185 of file GNEViewNetHelper.cpp.
Referenced by GNEStop::canDrawVehicleStop(), GNEVehicle::drawJunctionPartialGL(), and GNEVehicle::drawLanePartialGL().
| bool GNEViewNetHelper::DemandViewOptions::showNonInspectedDemandElements | ( | const GNEDemandElement * | demandElement | ) | const |
check if non inspected element has to be hidden
Definition at line 3136 of file GNEViewNetHelper.cpp.
References GNEHierarchicalElement::getChildDemandElements(), and GNEHierarchicalElement::getParentDemandElements().
Referenced by GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNERoute::drawJunctionPartialGL(), and GNERoute::drawLanePartialGL().
| bool GNEViewNetHelper::DemandViewOptions::showOverlappedRoutes | ( | ) | const |
show overlapped routes
Definition at line 3241 of file GNEViewNetHelper.cpp.
Referenced by GNEPathManager::drawLanePathElements().
| bool GNEViewNetHelper::DemandViewOptions::showShapes | ( | ) | const |
check if shapes has to be drawn
Definition at line 3175 of file GNEViewNetHelper.cpp.
Referenced by GNEPOI::drawGL(), GNEPoly::drawGL(), and GNETAZ::drawGL().
| void GNEViewNetHelper::DemandViewOptions::unlockContainer | ( | ) |
unlock container
Definition at line 3235 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::onCmdToggleLockContainer().
| void GNEViewNetHelper::DemandViewOptions::unlockPerson | ( | ) |
unlock person
Definition at line 3207 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::onCmdToggleLockPerson().
| MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckDrawSpreadVehicles = nullptr |
menu check to draw vehicles in begin position or spread in lane
Definition at line 965 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::onCmdToggleDrawSpreadVehicles(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
| MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckHideNonInspectedDemandElements = nullptr |
Hide non inspected demand elements.
Definition at line 986 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::onCmdToggleHideNonInspecteDemandElements(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
| MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckHideShapes = nullptr |
Hide shapes (Polygons and POIs)
Definition at line 968 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::onCmdToggleHideShapes(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
| MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckLockContainer = nullptr |
Lock Container.
Definition at line 983 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::onCmdToggleLockContainer(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
| MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckLockPerson = nullptr |
Lock Person.
Definition at line 977 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::onCmdToggleLockPerson(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
| MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckShowAllContainerPlans = nullptr |
show all container plans
Definition at line 980 of file GNEViewNetHelper.h.
Referenced by GNEContainerFrame::createPath(), GNEContainerPlanFrame::createPath(), GNEViewNet::onCmdToggleShowAllContainerPlans(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
| MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckShowAllPersonPlans = nullptr |
show all person plans
Definition at line 974 of file GNEViewNetHelper.h.
Referenced by GNEStopFrame::addStop(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNEViewNet::doPaintGL(), GNEViewNet::onCmdToggleShowAllPersonPlans(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
| MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckShowAllTrips = nullptr |
show all trips
Definition at line 971 of file GNEViewNetHelper.h.
Referenced by GNEStopFrame::addStop(), GNEViewNet::onCmdToggleShowTrips(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
| MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckShowOverlappedRoutes = nullptr |
show overlapped routes
Definition at line 989 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::onCmdToggleShowOverlappedRoutes(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
| MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckToggleDrawJunctionShape = nullptr |
checkable button to show junction shapes
Definition at line 962 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::GNEViewNet(), GNEViewNet::onCmdToggleDrawJunctionShape(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
| MFXCheckableButton* GNEViewNetHelper::DemandViewOptions::menuCheckToggleGrid = nullptr |
menu check to show grid button
Definition at line 959 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::drawGrid(), GNEViewNet::GNEViewNet(), GNEViewNet::onCmdToggleShowGrid(), GNEApplicationWindow::onUpdToggleViewOption(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEViewNet::updateDemandModeSpecificControls().
|
private |
pointer to locked container
Definition at line 999 of file GNEViewNetHelper.h.
|
private |
pointer to locked person
Definition at line 996 of file GNEViewNetHelper.h.
|
private |
pointer to net
Definition at line 993 of file GNEViewNetHelper.h.