![]() |
SUMO - Simulation of Urban MObility
|
#include <GNESelectorFrame.h>


Data Structures | |
| class | ElementSet |
| class | LockGLObjectTypes |
| class | MatchAttribute |
| class | ModificationMode |
| class | SelectionOperation |
| class | VisualScaling |
Public Member Functions | |
| void | clearCurrentSelection () const |
| clear current selection with possibility of undo/redo More... | |
| void | focusUpperElement () |
| focus upper element of frame More... | |
| FXFont * | getFrameHeaderFont () const |
| get font of the header's frame More... | |
| FXLabel * | getFrameHeaderLabel () const |
| get the label for the frame's header More... | |
| LockGLObjectTypes * | getLockGLObjectTypes () const |
| get selected items More... | |
| ModificationMode * | getModificationModeModul () const |
| get modification mode modul More... | |
| GNEViewNet * | getViewNet () const |
| get view net More... | |
| GNESelectorFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet) | |
| Constructor. More... | |
| void | handleIDs (const std::vector< GNEAttributeCarrier *> &ACs, ModificationMode::SetOperation setop=ModificationMode::SET_DEFAULT) |
| apply list of ids to the current selection according to SetOperation, More... | |
| void | hide () |
| hide Frame More... | |
| void | setFrameWidth (int newWidth) |
| set width of GNEFrame More... | |
| void | show () |
| show Frame More... | |
| ~GNESelectorFrame () | |
| Destructor. More... | |
Protected Member Functions | |
| void | openHelpAttributesDialog (SumoXMLTag tag) const |
| Open help attributes dialog. More... | |
Protected Attributes | |
| FXVerticalFrame * | myContentFrame |
| Vertical frame that holds all widgets of frame. More... | |
| FXHorizontalFrame * | myHeaderFrame |
| fame for header elements More... | |
| FXHorizontalFrame * | myHeaderLeftFrame |
| fame for left header elements More... | |
| FXHorizontalFrame * | myHeaderRightFrame |
| fame for right header elements More... | |
| GNEViewNet * | myViewNet |
| View Net for changes. More... | |
Private Member Functions | |
| std::vector< GNEAttributeCarrier * > | getMatches (SumoXMLTag ACTag, SumoXMLAttr ACAttr, char compOp, double val, const std::string &expr) |
| return ACs of the given type with matching attrs More... | |
Private Attributes | |
| ElementSet * | myElementSet |
| modul for select element set More... | |
| LockGLObjectTypes * | myLockGLObjectTypes |
| modul for lock selected items More... | |
| MatchAttribute * | myMatchAttribute |
| modul for matchA ttribute More... | |
| ModificationMode * | myModificationMode |
| modul for change modification mode More... | |
| SelectionOperation * | mySelectionOperation |
| modul for selection operations More... | |
| VisualScaling * | myVisualScaling |
| modul for visual scaling More... | |
The Widget for modifying selections of network-elements
Definition at line 40 of file GNESelectorFrame.h.
| GNESelectorFrame::GNESelectorFrame | ( | FXHorizontalFrame * | horizontalFrameParent, |
| GNEViewNet * | viewNet | ||
| ) |
Constructor.
parent FXHorizontalFrame in which this GNEFrame is placed viewNet viewNet that uses this GNEFrame
Definition at line 90 of file GNESelectorFrame.cpp.
References GUIDesignGroupBoxFrame, and GUIDesignLabelFrameInformation.
| GNESelectorFrame::~GNESelectorFrame | ( | ) |
Destructor.
Definition at line 111 of file GNESelectorFrame.cpp.
| void GNESelectorFrame::clearCurrentSelection | ( | ) | const |
clear current selection with possibility of undo/redo
Definition at line 137 of file GNESelectorFrame.cpp.
References GNEViewNet::getNet(), GNENet::getSelectedAttributeCarriers(), GNEViewNet::getUndoList(), GNE_ATTR_SELECTED, myLockGLObjectTypes, GNEFrame::myViewNet, GNEUndoList::p_begin(), GNEUndoList::p_end(), and GNESelectorFrame::LockGLObjectTypes::updateLockGLObjectTypes().
Referenced by GNEViewNet::abortOperation(), and GNESelectorFrame::SelectionOperation::onCmdClear().
|
inherited |
focus upper element of frame
Definition at line 735 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEViewNet::hotkeyFocusFrame(), GNEViewNet::onLeftBtnPress(), GNEViewNet::setEditMode(), and GNEViewNet::updateModeSpecificControls().
|
inherited |
get font of the header's frame
Definition at line 778 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 772 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().
| GNESelectorFrame::LockGLObjectTypes * GNESelectorFrame::getLockGLObjectTypes | ( | ) | const |
get selected items
Definition at line 131 of file GNESelectorFrame.cpp.
References myLockGLObjectTypes.
Referenced by GNEViewNet::onLeftBtnPress(), GNEViewNet::onLeftBtnRelease(), and GNEViewNet::SelectingArea::processSelection().
|
private |
return ACs of the given type with matching attrs
| [in] | ACTag | XML Tag of AttributeCarrier |
| [in] | ACAttr | XML Attribute of AttributeCarrier |
| [in] | compOp | One of {<,>,=} for matching against val or '@' for matching against expr |
Definition at line 243 of file GNESelectorFrame.cpp.
References GNEViewNet::getNet(), GNEAttributeCarrier::getTagProperties(), GNEFrame::myViewNet, and GNENet::retrieveAttributeCarriers().
Referenced by GNESelectorFrame::MatchAttribute::onCmdSelMBString().
| GNESelectorFrame::ModificationMode * GNESelectorFrame::getModificationModeModul | ( | ) | const |
get modification mode modul
Definition at line 237 of file GNESelectorFrame.cpp.
References myModificationMode.
Referenced by GNEViewNet::SelectingArea::processSelection().
|
inherited |
get view net
Definition at line 766 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNEPolygonFrame::DrawingMode::abortDrawing(), GNETLSEditorFrame::TLSFile::checkTLSValids(), GNEFrame::ACHierarchy::createPopUpMenu(), GNECrossingFrame::edgesSelector::enableEdgeSelector(), GNETLSEditorFrame::TLSFile::myStartElement(), GNEFrame::ACHierarchy::onCmdCenterItem(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNEFrame::ACHierarchy::onCmdDeleteItem(), GNEFrame::GenericParametersEditor::onCmdEditGenericParameter(), GNEFrame::ACHierarchy::onCmdInspectItem(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdOpenAttributeDialog(), GNESelectorFrame::VisualScaling::onCmdScaleSelection(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute(), GNECrossingFrame::crossingParameters::onCmdSetAttribute(), GNEFrame::GenericParametersEditor::onCmdSetGenericParameter(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), GNEAdditionalFrame::SelectorParentAdditional::refreshListOfAdditionalParents(), GNEDeleteFrame::removeAttributeCarrier(), GNECrossingFrame::edgesSelector::restoreEdgeColors(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEAdditionalFrame::SelectorParentEdges::showList(), GNEAdditionalFrame::SelectorParentLanes::showList(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), GNEAdditionalFrame::AdditionalAttributes::showWarningMessage(), GNEPolygonFrame::ShapeAttributes::showWarningMessage(), GNEPolygonFrame::DrawingMode::stopDrawing(), GNESelectorFrame::LockGLObjectTypes::updateLockGLObjectTypes(), GNEAdditionalFrame::SelectorParentEdges::updateUseSelectedEdges(), and GNEAdditionalFrame::SelectorParentLanes::updateUseSelectedLanes().
| void GNESelectorFrame::handleIDs | ( | const std::vector< GNEAttributeCarrier *> & | ACs, |
| ModificationMode::SetOperation | setop = ModificationMode::SET_DEFAULT |
||
| ) |
apply list of ids to the current selection according to SetOperation,
Definition at line 155 of file GNESelectorFrame.cpp.
References GNEViewNet::autoSelectNodes(), GNESelectorFrame::ModificationMode::getModificationMode(), GNEViewNet::getNet(), GNENet::getSelectedAttributeCarriers(), GNEAttributeCarrier::getTagProperties(), GNEViewNet::getUndoList(), GNE_ATTR_SELECTED, myLockGLObjectTypes, myModificationMode, GNEFrame::myViewNet, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNESelectorFrame::ModificationMode::SET_ADD, GNESelectorFrame::ModificationMode::SET_DEFAULT, GNESelectorFrame::ModificationMode::SET_REPLACE, GNESelectorFrame::ModificationMode::SET_RESTRICT, GNESelectorFrame::ModificationMode::SET_SUB, SUMO_TAG_EDGE, and GNESelectorFrame::LockGLObjectTypes::updateLockGLObjectTypes().
Referenced by GNESelectorFrame::SelectionOperation::onCmdLoad(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), and GNESelectorFrame::MatchAttribute::onCmdSelMBString().
|
virtual |
hide Frame
Reimplemented from GNEFrame.
Definition at line 124 of file GNESelectorFrame.cpp.
References GNEFrame::hide().
|
protectedinherited |
Open help attributes dialog.
Definition at line 784 of file GNEFrame.cpp.
References GUIIconSubSys::getIcon(), GNEAttributeCarrier::getTagProperties(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonOK, GUIDesignDialogBoxResizable, GUIDesignHorizontalSeparator, GUIDesignTableNotEditable, ICON_ACCEPT, ICON_MODEINSPECT, MAX2(), MID_TABLE, GNEFrame::myScrollWindowsContents, toString(), and WRITE_DEBUG.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::AttributesEditor::onCmdAttributeHelp(), GNECrossingFrame::crossingParameters::onCmdHelp(), GNEAdditionalFrame::AdditionalAttributes::onCmdHelp(), and GNEPolygonFrame::ShapeAttributes::onCmdHelp().
|
inherited |
set width of GNEFrame
Definition at line 759 of file GNEFrame.cpp.
References GNEFrame::myScrollWindowsContents.
|
virtual |
show Frame
Reimplemented from GNEFrame.
Definition at line 115 of file GNESelectorFrame.cpp.
References myLockGLObjectTypes, GNEFrame::show(), and GNESelectorFrame::LockGLObjectTypes::updateLockGLObjectTypes().
Referenced by GNEViewNet::updateModeSpecificControls().
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 235 of file GNEFrame.h.
Referenced by GNEConnectorFrame::GNEConnectorFrame(), GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().
|
private |
modul for select element set
Definition at line 379 of file GNESelectorFrame.h.
Referenced by GNESelectorFrame::MatchAttribute::enableMatchAttribute(), and GNESelectorFrame::MatchAttribute::onCmdSelMBTag().
|
protectedinherited |
fame for header elements
Definition at line 238 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 241 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 244 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
private |
modul for lock selected items
Definition at line 373 of file GNESelectorFrame.h.
Referenced by clearCurrentSelection(), getLockGLObjectTypes(), handleIDs(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), and show().
|
private |
modul for matchA ttribute
Definition at line 382 of file GNESelectorFrame.h.
Referenced by GNESelectorFrame::ElementSet::onCmdSelectElementSet().
|
private |
modul for change modification mode
Definition at line 376 of file GNESelectorFrame.h.
Referenced by getModificationModeModul(), and handleIDs().
|
private |
modul for selection operations
Definition at line 388 of file GNESelectorFrame.h.
|
protectedinherited |
View Net for changes.
Definition at line 232 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNETLSEditorFrame::buildIinternalLanes(), GNEPolygonFrame::buildPoly(), clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNETLSEditorFrame::editJunction(), GNEAdditionalFrame::generateID(), getMatches(), GNEFrame::getViewNet(), GNETLSEditorFrame::handleChange(), handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEFrame::hide(), GNEInspectorFrame::hide(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectElement(), GNEConnectorFrame::onCmdCancel(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNEConnectorFrame::onCmdClearSelectedConnections(), GNECrossingFrame::onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), GNEConnectorFrame::onCmdOK(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNESelectorFrame::SelectionOperation::onCmdSave(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GNETLSEditorFrame::parseTLSPrograms(), GNEPolygonFrame::processClick(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEDeleteFrame::show(), and GNEFrame::show().
|
private |
modul for visual scaling
Definition at line 385 of file GNESelectorFrame.h.