![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNESelectorFrame.h>
Public Member Functions | |
SelectionOperation (GNESelectorFrame *selectorFrameParent) | |
FOX-declaration. More... | |
~SelectionOperation () | |
destructor More... | |
FOX-callbacks | |
long | onCmdLoad (FXObject *, FXSelector, void *) |
Called when the user presses the Load-button. More... | |
long | onCmdSave (FXObject *, FXSelector, void *) |
Called when the user presses the Save-button. More... | |
long | onCmdClear (FXObject *, FXSelector, void *) |
Called when the user presses the Clear-button. More... | |
long | onCmdInvert (FXObject *, FXSelector, void *) |
Called when the user presses the Invert-button. More... | |
Protected Member Functions | |
SelectionOperation () | |
FOX needs this. More... | |
Private Attributes | |
GNESelectorFrame * | mySelectorFrameParent |
pointer to Selector Frame Parent More... | |
Definition at line 338 of file GNESelectorFrame.h.
GNESelectorFrame::SelectionOperation::SelectionOperation | ( | GNESelectorFrame * | selectorFrameParent | ) |
FOX-declaration.
constructor
Definition at line 1153 of file GNESelectorFrame.cpp.
References GUIDesignButton, MID_CHOOSEN_CLEAR, MID_CHOOSEN_INVERT, MID_CHOOSEN_LOAD, and MID_CHOOSEN_SAVE.
GNESelectorFrame::SelectionOperation::~SelectionOperation | ( | ) |
destructor
Definition at line 1167 of file GNESelectorFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 378 of file GNESelectorFrame.h.
long GNESelectorFrame::SelectionOperation::onCmdClear | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user presses the Clear-button.
Definition at line 1253 of file GNESelectorFrame.cpp.
References GNESelectorFrame::clearCurrentSelection(), and mySelectorFrameParent.
long GNESelectorFrame::SelectionOperation::onCmdInvert | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user presses the Invert-button.
Definition at line 1261 of file GNESelectorFrame.cpp.
References GNESelectorFrame::ACsToSelected(), GNENet::AttributeCarriers::additionals, GNEViewNetHelper::EditModes::currentSupermode, GNENet::AttributeCarriers::demandElements, GNENet::getAttributeCarriers(), GNEViewNet::getEditModes(), GNESelectorFrame::getLockGLObjectTypes(), GNEViewNet::getNet(), GNEViewNet::getNetworkViewOptions(), ShapeContainer::getPOIs(), ShapeContainer::getPolygons(), GNEAttributeCarrier::getTagProperties(), GNEViewNet::getUndoList(), GLO_ADDITIONAL, GLO_CONNECTION, GLO_CROSSING, GLO_EDGE, GLO_EMBEDDEDROUTE, GLO_FLOW, GLO_JUNCTION, GLO_LANE, GLO_PERSON, GLO_PERSONFLOW, GLO_PERSONSTOP, GLO_PERSONTRIP, GLO_POI, GLO_POLYGON, GLO_RIDE, GLO_ROUTE, GLO_ROUTEFLOW, GLO_STOP, GLO_TRIP, GLO_VEHICLE, GLO_WALK, GNE_ATTR_SELECTED, GNE_SUPERMODE_NETWORK, GNEShape::isAttributeCarrierSelected(), GNESelectorFrame::LockGLObjectTypes::IsObjectTypeLocked(), GNEAttributeCarrier::TagProperties::isSelectable(), GNENet::AttributeCarriers::junctions, mySelectorFrameParent, GNEFrame::myViewNet, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEViewNetHelper::NetworkViewOptions::selectEdges(), GNEShape::setAttribute(), SUMO_TAG_EMBEDDEDROUTE, SUMO_TAG_FLOW, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_PERSONSTOP_BUSSTOP, SUMO_TAG_PERSONSTOP_LANE, SUMO_TAG_PERSONTRIP_BUSSTOP, SUMO_TAG_PERSONTRIP_FROMTO, SUMO_TAG_RIDE_BUSSTOP, SUMO_TAG_RIDE_FROMTO, SUMO_TAG_ROUTE, SUMO_TAG_ROUTEFLOW, SUMO_TAG_STOP_BUSSTOP, SUMO_TAG_STOP_CHARGINGSTATION, SUMO_TAG_STOP_CONTAINERSTOP, SUMO_TAG_STOP_LANE, SUMO_TAG_STOP_PARKINGAREA, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, SUMO_TAG_WALK_BUSSTOP, SUMO_TAG_WALK_FROMTO, SUMO_TAG_WALK_ROUTE, and GNEViewNet::update().
long GNESelectorFrame::SelectionOperation::onCmdLoad | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user presses the Load-button.
Definition at line 1171 of file GNESelectorFrame.cpp.
References GNEViewNetHelper::EditModes::currentSupermode, gCurrentFolder, GNEViewNet::getEditModes(), GUIGlObject::getGlID(), GUIIconSubSys::getIcon(), GNEViewNet::getNet(), GUIGlObjectStorage::getObjectBlocking(), GNEAttributeCarrier::getTagProperty(), GUIGlObject::getType(), GNEViewNet::getUndoList(), GUIGlObjectStorage::gIDStorage, GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, GNESelectorFrame::handleIDs(), ICON_EMPTY, GNEAttributeCarrier::TagProperties::isDemandElement(), GNESelectorFrame::LockGLObjectTypes::IsObjectTypeLocked(), GNEAttributeCarrier::TagProperties::isSelectable(), GNESelectorFrame::myLockGLObjectTypes, mySelectorFrameParent, GNEFrame::myViewNet, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAttributeCarrier(), GNEViewNet::update(), and WRITE_ERROR.
long GNESelectorFrame::SelectionOperation::onCmdSave | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user presses the Save-button.
Definition at line 1225 of file GNESelectorFrame.cpp.
References OutputDevice::close(), gCurrentFolder, OutputDevice::getDevice(), MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), GNEViewNet::getNet(), GNENet::getSelectedAttributeCarriers(), StringBijection< T >::getString(), GUIGlObject::getType(), ICON_EMPTY, mySelectorFrameParent, GNEFrame::myViewNet, GUIGlObject::TypeNames, and WRITE_DEBUG.
|
private |
pointer to Selector Frame Parent
Definition at line 382 of file GNESelectorFrame.h.
Referenced by onCmdClear(), onCmdInvert(), onCmdLoad(), and onCmdSave().