Eclipse SUMO - Simulation of Urban MObility
|
struct used to group all variables related with Supermodes More...
#include <GNEViewNetHelper.h>
Public Member Functions | |
void | buildSuperModeButtons () |
build checkable buttons | |
EditModes (GNEViewNet *viewNet) | |
constructor | |
bool | isCurrentSupermodeData () const |
@check if current supermode is Data | |
bool | isCurrentSupermodeDemand () const |
@check if current supermode is Demand | |
bool | isCurrentSupermodeNetwork () const |
@check if current supermode is Network | |
bool | isDefaultView () const |
check if default view is enabled | |
bool | isJuPedSimView () const |
check if default view is enabled | |
void | setDataEditMode (DataEditMode dataMode, const bool force=false) |
set Data edit mode | |
void | setDemandEditMode (DemandEditMode demandMode, const bool force=false) |
set Demand edit mode | |
void | setNetworkEditMode (NetworkEditMode networkMode, const bool force=false) |
set Network edit mode | |
void | setSupermode (Supermode supermode, const bool force) |
set supermode | |
void | setView (FXSelector sel) |
set view | |
~EditModes () | |
destructor | |
Data Fields | |
Supermode | currentSupermode |
the current supermode | |
MFXCheckableButton * | dataButton = nullptr |
checkable button for supermode Data | |
DataEditMode | dataEditMode |
the current Data edit mode | |
MFXCheckableButton * | demandButton = nullptr |
checkable button for supermode Demand | |
DemandEditMode | demandEditMode |
the current Demand edit mode | |
MFXCheckableButton * | networkButton = nullptr |
checkable button for supermode Network | |
NetworkEditMode | networkEditMode |
the current Network edit mode | |
Private Member Functions | |
EditModes (const EditModes &)=delete | |
Invalidated copy constructor. | |
EditModes & | operator= (const EditModes &)=delete |
Invalidated assignment operator. | |
Private Attributes | |
MFXButtonTooltip * | myDefaultViewButton = nullptr |
The default view button. | |
MFXButtonTooltip * | myJuPedSimViewButton = nullptr |
The jupedsim view button. | |
MFXMenuButtonTooltip * | myNeteditViewsButton = nullptr |
The netedit views button. | |
FXPopup * | myNeteditViewsPopup = nullptr |
The netedit views menu. | |
GNEViewNet * | myViewNet |
pointer to net | |
struct used to group all variables related with Supermodes
Definition at line 566 of file GNEViewNetHelper.h.
GNEViewNetHelper::EditModes::EditModes | ( | GNEViewNet * | viewNet | ) |
constructor
Definition at line 2047 of file GNEViewNetHelper.cpp.
References OptionsCont::getOptions(), NETWORK_CREATE_EDGE, and networkEditMode.
GNEViewNetHelper::EditModes::~EditModes | ( | ) |
destructor
Definition at line 2063 of file GNEViewNetHelper.cpp.
|
privatedelete |
Invalidated copy constructor.
void GNEViewNetHelper::EditModes::buildSuperModeButtons | ( | ) |
build checkable buttons
Definition at line 2069 of file GNEViewNetHelper.cpp.
References GUIIconSubSys::getIcon(), GUIDesignButtonLeft, GUIDesignMFXCheckableButtonSupermode, GUIDesignTLSTableCheckableButtonIcon, MID_GNE_VIEW_DEFAULT, MID_GNE_VIEW_JUPEDSIM, MID_HOTKEY_F2_SUPERMODE_NETWORK, MID_HOTKEY_F3_SUPERMODE_DEMAND, MID_HOTKEY_F4_SUPERMODE_DATA, SUPERMODEDATA, SUPERMODEDEMAND, SUPERMODENETWORK, TL, VIEWDEFAULT, and VIEWJUPEDSIM.
Referenced by GNEViewNet::buildEditModeControls().
bool GNEViewNetHelper::EditModes::isCurrentSupermodeData | ( | ) | const |
@check if current supermode is Data
Definition at line 2337 of file GNEViewNetHelper.cpp.
References DATA.
Referenced by GNEViewNet::abortOperation(), GNECrossing::checkDrawCrossing(), GNETAZ::drawGL(), GNEEdgeRelData::drawJunctionPartialGL(), GNEEdgeData::drawLanePartialGL(), GNEEdgeRelData::drawLanePartialGL(), GNETAZRelData::drawTAZRel(), GNEAttributeCarrier::drawUsingSelectColor(), GNECrossing::getCrossingColor(), GNELane::getPopUpMenu(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyDel(), GNEViewNet::hotkeyEnter(), GNEFrameAttributeModules::isSupermodeValid(), GNEFrameAttributeModules::isSupermodeValid(), GNEElementSet::onCmdSelectElementSet(), GNEViewNet::onCmdSetMode(), GNEViewNet::onLeftBtnPress(), GNEViewNet::onLeftBtnRelease(), GNEViewNet::onMouseMove(), GNEApplicationWindow::onUpdLockMenuTitle(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNESelectorFrame::selectAttributeCarrier(), GNEDeleteFrame::selectedACsToDelete(), GNEJunction::setColor(), GNESelectorFrame::show(), GNEOverlappedInspection::showOverlappedInspection(), GNEViewNet::updateControls(), GNEViewNet::updateCursor(), and GNEViewNet::viewUpdated().
bool GNEViewNetHelper::EditModes::isCurrentSupermodeDemand | ( | ) | const |
@check if current supermode is Demand
Definition at line 2331 of file GNEViewNetHelper.cpp.
References DEMAND.
Referenced by GNEViewNet::abortOperation(), GNEConnection::checkDrawConnection(), GNENet::computeDemandElements(), GNEViewNet::doPaintGL(), GNEStop::drawGeometryPoints(), GNEViewNet::drawGrid(), GNEVehicle::drawJunctionPartialGL(), GNEVehicle::drawLanePartialGL(), GNEAttributeCarrier::drawUsingSelectColor(), GNEStop::getMoveOperation(), GNERoute::getPopUpMenu(), GNELane::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyDel(), GNEViewNet::hotkeyEnter(), GNEDemandElement::isGLObjectLocked(), GNEFrameAttributeModules::isSupermodeValid(), GNEFrameAttributeModules::isSupermodeValid(), GNEApplicationWindow::onCmdProcessButton(), GNEElementSet::onCmdSelectElementSet(), GNEViewNet::onCmdSetMode(), GNEViewNet::onLeftBtnPress(), GNEViewNet::onLeftBtnRelease(), GNEViewNet::onMouseMove(), GNEApplicationWindow::onUpdLockMenuTitle(), GNEAttributesCreator::refreshRows(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNESelectorFrame::selectAttributeCarrier(), GNEDeleteFrame::selectedACsToDelete(), GNEMoveFrame::show(), GNESelectorFrame::show(), GNEOverlappedInspection::showOverlappedInspection(), GNEViewNet::updateControls(), and GNEViewNet::updateCursor().
bool GNEViewNetHelper::EditModes::isCurrentSupermodeNetwork | ( | ) | const |
@check if current supermode is Network
Definition at line 2325 of file GNEViewNetHelper.cpp.
References NETWORK.
Referenced by GNEViewNet::abortOperation(), GNEConnection::checkDrawConnection(), GNECrossing::drawCrossing(), GNEEdge::drawEdgeGeometryPoints(), GNEPoly::drawGeometryPoints(), GNETAZ::drawGL(), GNEViewNet::drawGrid(), GNEJunction::drawJunctionAsShape(), GNELaneAreaDetector::drawJunctionPartialGL(), GNEVehicle::drawJunctionPartialGL(), GNEVehicle::drawLanePartialGL(), GNEViewNet::drawNeteditAttributesReferences(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalSplitJunction(), GNEAttributeCarrier::drawUsingSelectColor(), GNEDetector::getMoveOperation(), GNEOverheadWire::getMoveOperation(), GNEParkingSpace::getMoveOperation(), GNEPOI::getMoveOperation(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyDel(), GNEViewNet::hotkeyEnter(), GNEPOI::isAttributeEnabled(), GNEPoly::isAttributeEnabled(), GNEAdditional::isGLObjectLocked(), GNENetworkElement::isGLObjectLocked(), GNEFrameAttributeModules::isSupermodeValid(), GNEFrameAttributeModules::isSupermodeValid(), GNEApplicationWindow::onCmdProcessButton(), GNEElementSet::onCmdSelectElementSet(), GNEViewNet::onCmdSetMode(), GNEViewNet::onLeftBtnPress(), GNEViewNet::onLeftBtnRelease(), GNEViewNet::onMouseMove(), GNEApplicationWindow::onUpdComputePathManager(), GNEApplicationWindow::onUpdLockMenuTitle(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNESelectorFrame::selectAttributeCarrier(), GNEDeleteFrame::selectedACsToDelete(), GNEViewNet::selectingDetectorsTLSMode(), GNEViewNet::selectingJunctionsTLSMode(), GNEMoveFrame::show(), GNESelectorFrame::show(), GNEViewNet::updateControls(), GNEViewNet::updateCursor(), and GNEViewNet::updateObjectsInPosition().
bool GNEViewNetHelper::EditModes::isDefaultView | ( | ) | const |
check if default view is enabled
Definition at line 2366 of file GNEViewNetHelper.cpp.
References GUIIconSubSys::getIcon(), and VIEWDEFAULT.
Referenced by GNEApplicationWindow::updateSuperModeMenuCommands().
bool GNEViewNetHelper::EditModes::isJuPedSimView | ( | ) | const |
check if default view is enabled
Definition at line 2372 of file GNEViewNetHelper.cpp.
References GUIIconSubSys::getIcon(), and VIEWJUPEDSIM.
Referenced by GNEViewNet::onCmdSetMode(), GNEApplicationWindow::updateSuperModeMenuCommands(), and GNEViewNet::viewUpdated().
Invalidated assignment operator.
void GNEViewNetHelper::EditModes::setDataEditMode | ( | DataEditMode | dataMode, |
const bool | force = false |
||
) |
set Data edit mode
Definition at line 2288 of file GNEViewNetHelper.cpp.
References DATA_DELETE, DATA_INSPECT, DATA_SELECT, DEMAND_DELETE, DEMAND_INSPECT, DEMAND_SELECT, NETWORK_DELETE, NETWORK_INSPECT, NETWORK_SELECT, and TL.
Referenced by GNEViewNet::onCmdSetMode().
void GNEViewNetHelper::EditModes::setDemandEditMode | ( | DemandEditMode | demandMode, |
const bool | force = false |
||
) |
set Demand edit mode
Definition at line 2253 of file GNEViewNetHelper.cpp.
References DATA_DELETE, DATA_INSPECT, DATA_SELECT, DEMAND_DELETE, DEMAND_INSPECT, DEMAND_MOVE, DEMAND_SELECT, NETWORK_DELETE, NETWORK_INSPECT, NETWORK_MOVE, NETWORK_SELECT, and TL.
Referenced by GNEViewNet::onCmdSetMode(), and GNEViewNet::viewUpdated().
void GNEViewNetHelper::EditModes::setNetworkEditMode | ( | NetworkEditMode | networkMode, |
const bool | force = false |
||
) |
set Network edit mode
Definition at line 2203 of file GNEViewNetHelper.cpp.
References DATA_DELETE, DATA_INSPECT, DATA_SELECT, DEMAND_DELETE, DEMAND_INSPECT, DEMAND_MOVE, DEMAND_SELECT, NETWORK_CONNECT, NETWORK_DELETE, NETWORK_INSPECT, NETWORK_MOVE, NETWORK_PROHIBITION, NETWORK_SELECT, NETWORK_TLS, NETWORK_WIRE, and TL.
Referenced by GNEViewNet::onCmdAddJoinTLS(), GNEViewNet::onCmdAddTLS(), GNEViewNet::onCmdSetMode(), and GNEViewNet::viewUpdated().
void GNEViewNetHelper::EditModes::setSupermode | ( | Supermode | supermode, |
const bool | force | ||
) |
set supermode
Definition at line 2116 of file GNEViewNetHelper.cpp.
References DATA, DEMAND, NETWORK, SUMO_TAG_TAZ, TAZ, and TL.
Referenced by GNEViewNet::aksChangeSupermode(), GNEViewNet::forceSupemodeNetwork(), GNEViewNet::onCmdSetSupermode(), and GNEViewNet::viewUpdated().
void GNEViewNetHelper::EditModes::setView | ( | FXSelector | sel | ) |
set view
Definition at line 2343 of file GNEViewNetHelper.cpp.
References GUIIconSubSys::getIcon(), MID_GNE_VIEW_DEFAULT, MID_GNE_VIEW_JUPEDSIM, VIEWDEFAULT, and VIEWJUPEDSIM.
Referenced by GNEViewNet::onCmdSetNeteditView().
Supermode GNEViewNetHelper::EditModes::currentSupermode |
the current supermode
Definition at line 608 of file GNEViewNetHelper.h.
Referenced by GNEUndoList::begin(), GNEApplicationWindow::onCmdRedo(), GNEApplicationWindow::onCmdUndo(), and GNEViewNet::viewUpdated().
MFXCheckableButton* GNEViewNetHelper::EditModes::dataButton = nullptr |
checkable button for supermode Data
Definition at line 626 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::onCmdSetSupermode(), and GNEViewNet::viewUpdated().
DataEditMode GNEViewNetHelper::EditModes::dataEditMode |
the current Data edit mode
Definition at line 617 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::abortOperation(), GNETAZRelData::drawTAZRel(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyEnter(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEApplicationWindow::onUpdLockMenuTitle(), GNEViewNet::processLeftButtonPressData(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), GNEViewNet::updateControls(), GNEViewNet::updateCursor(), and GNEViewNet::updateDataModeSpecificControls().
MFXCheckableButton* GNEViewNetHelper::EditModes::demandButton = nullptr |
checkable button for supermode Demand
Definition at line 623 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::onCmdSetSupermode().
DemandEditMode GNEViewNetHelper::EditModes::demandEditMode |
the current Demand edit mode
Definition at line 614 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::abortOperation(), GNEStop::drawGeometryPoints(), GNEStop::getMoveOperation(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyDel(), GNEViewNet::hotkeyEnter(), GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), GNEApplicationWindow::onUpdLockMenuTitle(), GNEViewNet::processLeftButtonPressDemand(), GNEAttributesCreator::refreshRows(), GNEViewNet::updateControls(), GNEViewNet::updateCursor(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::viewUpdated().
|
private |
The default view button.
Definition at line 639 of file GNEViewNetHelper.h.
|
private |
The jupedsim view button.
Definition at line 642 of file GNEViewNetHelper.h.
|
private |
The netedit views button.
Definition at line 636 of file GNEViewNetHelper.h.
|
private |
The netedit views menu.
Definition at line 633 of file GNEViewNetHelper.h.
|
private |
pointer to net
Definition at line 630 of file GNEViewNetHelper.h.
MFXCheckableButton* GNEViewNetHelper::EditModes::networkButton = nullptr |
checkable button for supermode Network
Definition at line 620 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::onCmdSetSupermode().
NetworkEditMode GNEViewNetHelper::EditModes::networkEditMode |
the current Network edit mode
Definition at line 611 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::abortOperation(), GNEEdge::calculateEdgeContour(), GNECrossing::drawCrossing(), GNEPoly::drawGeometryPoints(), GNETAZ::drawGL(), GNEViewNet::drawNeteditAttributesReferences(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalSplitJunction(), GNEJunction::drawTLSIcon(), EditModes(), GNEDetector::getMoveOperation(), GNEOverheadWire::getMoveOperation(), GNEParkingSpace::getMoveOperation(), GNEPOI::getMoveOperation(), GNETAZ::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyDel(), GNEViewNet::hotkeyEnter(), GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), GNEViewNet::onRightBtnPress(), GNEViewNet::onRightBtnRelease(), GNEApplicationWindow::onUpdLockMenuTitle(), GNEViewNet::processLeftButtonPressNetwork(), GNEViewNet::processLeftButtonReleaseNetwork(), GNEViewNet::processMoveMouseNetwork(), GNEViewNet::selectingDetectorsTLSMode(), GNEViewNet::selectingJunctionsTLSMode(), GNEViewNet::showJunctionAsBubbles(), GNEViewNet::updateControls(), GNEViewNet::updateCursor(), GNELane::updateGeometry(), GNEViewNet::updateNetworkModeSpecificControls(), GNEViewNet::updateObjectsInPosition(), and GNEViewNet::viewUpdated().