![]() |
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 | |
virtual bool | buildShape () |
build a shaped element using the drawed shape (can be reimplemented in frame childs) return true if was sucesfully created More... | |
virtual void | disableModuls () |
disable moduls if element selected in itemSelector isn't valid (can be reimplemented in frame childs) More... | |
virtual void | enableModuls (const GNEAttributeCarrier::TagProperties &tagProperties) |
enable moduls depending of item selected in ItemSelector (can be reimplemented in frame childs) More... | |
const RGBColor & | getEdgeCandidateColor () const |
get edge candidate color More... | |
const RGBColor & | getEdgeCandidateSelectedColor () const |
get selected color More... | |
void | openHelpAttributesDialog (const GNEAttributeCarrier::TagProperties &tagProperties) 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 33 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 89 of file GNESelectorFrame.cpp.
References GUIDesignGroupBoxFrame, and GUIDesignLabelFrameInformation.
GNESelectorFrame::~GNESelectorFrame | ( | ) |
Destructor.
Definition at line 110 of file GNESelectorFrame.cpp.
|
protectedvirtualinherited |
build a shaped element using the drawed shape (can be reimplemented in frame childs) return true if was sucesfully created
Reimplemented in GNETAZFrame, and GNEPolygonFrame.
Definition at line 1738 of file GNEFrame.cpp.
Referenced by GNEFrame::GNEFrame(), and GNEFrame::DrawingShape::stopDrawing().
void GNESelectorFrame::clearCurrentSelection | ( | ) | const |
clear current selection with possibility of undo/redo
Definition at line 134 of file GNESelectorFrame.cpp.
References GNEViewNet::getNet(), GNENet::getSelectedAttributeCarriers(), GNEViewNet::getUndoList(), GNE_ATTR_SELECTED, GNEFrame::myViewNet, GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by GNEViewNet::abortOperation(), and GNESelectorFrame::SelectionOperation::onCmdClear().
|
protectedvirtualinherited |
disable moduls if element selected in itemSelector isn't valid (can be reimplemented in frame childs)
Reimplemented in GNEAdditionalFrame, and GNEPolygonFrame.
Definition at line 1751 of file GNEFrame.cpp.
Referenced by GNEFrame::GNEFrame(), GNEFrame::ItemSelector::onCmdSelectItem(), and GNEFrame::ItemSelector::setCurrentTypeTag().
|
protectedvirtualinherited |
enable moduls depending of item selected in ItemSelector (can be reimplemented in frame childs)
Reimplemented in GNEAdditionalFrame, and GNEPolygonFrame.
Definition at line 1745 of file GNEFrame.cpp.
Referenced by GNEFrame::GNEFrame(), GNEFrame::ItemSelector::onCmdSelectItem(), and GNEFrame::ItemSelector::setCurrentTypeTag().
|
inherited |
focus upper element of frame
Definition at line 1689 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEViewNet::hotkeyFocusFrame(), GNEInspectorFrame::processClick(), GNEViewNet::setEditMode(), and GNEViewNet::updateModeSpecificControls().
|
protectedinherited |
get edge candidate color
Definition at line 1824 of file GNEFrame.cpp.
References GNEFrame::myEdgeCandidateColor.
Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), and GNECrossingFrame::CrossingParameters::onCmdSetAttribute().
|
protectedinherited |
get selected color
Definition at line 1830 of file GNEFrame.cpp.
References GNEFrame::myEdgeCandidateSelectedColor.
Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), and GNECrossingFrame::CrossingParameters::onCmdSetAttribute().
|
inherited |
get font of the header's frame
Definition at line 1732 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 1726 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 128 of file GNESelectorFrame.cpp.
References myLockGLObjectTypes.
Referenced by GNEViewNet::getAttributeCarriersInBoundary(), GNEViewNet::onLeftBtnPress(), GNEInspectorFrame::processClick(), GNENetElement::selectAttributeCarrier(), GNEShape::selectAttributeCarrier(), GNEAdditional::selectAttributeCarrier(), GNEShape::unselectAttributeCarrier(), GNENetElement::unselectAttributeCarrier(), and GNEAdditional::unselectAttributeCarrier().
|
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 236 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 230 of file GNESelectorFrame.cpp.
References myModificationMode.
Referenced by GNEViewNet::SelectingArea::processBoundarySelection().
|
inherited |
get view net
Definition at line 1720 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNEAdditionalFrame::SelectorLaneParents::abortConsecutiveLaneSelector(), GNEFrame::DrawingShape::abortDrawing(), GNEAdditionalFrame::SelectorLaneParents::addSelectedLane(), GNEFrame::ACHierarchy::createPopUpMenu(), GNECrossingFrame::EdgesSelector::enableEdgeSelector(), GNEAdditionalFrame::SelectorEdgeChilds::getEdgeIdsSelected(), GNEAdditionalFrame::SelectorLaneChilds::getLaneIdsSelected(), GNEConnectorFrame::ConnectionModifications::onCmdCancelModifications(), GNEFrame::ACHierarchy::onCmdCenterItem(), GNEConnectorFrame::ConnectionOperations::onCmdClearSelectedConnections(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNEFrame::ACHierarchy::onCmdDeleteItem(), GNEFrame::GenericParametersEditor::onCmdEditGenericParameter(), GNEFrame::ACHierarchy::onCmdInspectItem(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNEInspectorFrame::OverlappedInspection::onCmdNextElement(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdOpenAttributeDialog(), GNEInspectorFrame::OverlappedInspection::onCmdPreviousElement(), GNEConnectorFrame::ConnectionOperations::onCmdResetSelectedConnections(), GNEConnectorFrame::ConnectionModifications::onCmdSaveModifications(), GNESelectorFrame::VisualScaling::onCmdScaleSelection(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadEnds(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectPass(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute(), GNECrossingFrame::CrossingParameters::onCmdSetAttribute(), GNEFrame::GenericParametersEditor::onCmdSetGenericParameter(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), GNEAdditionalFrame::SelectorAdditionalParent::refreshSelectorAdditionalParentModul(), GNEDeleteFrame::removeAttributeCarrier(), GNECrossingFrame::EdgesSelector::restoreEdgeColors(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEAdditionalFrame::SelectorEdgeChilds::showSelectorEdgeChildsModul(), GNEAdditionalFrame::SelectorLaneChilds::showSelectorLaneChildsModul(), GNEFrame::ACAttributes::showWarningMessage(), GNEFrame::DrawingShape::stopDrawing(), GNEAdditionalFrame::SelectorEdgeChilds::updateUseSelectedEdges(), and GNEAdditionalFrame::SelectorLaneChilds::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 150 of file GNESelectorFrame.cpp.
References GNEViewNet::autoSelectNodes(), GNESelectorFrame::ModificationMode::getModificationMode(), GNEViewNet::getNet(), GNENet::getSelectedAttributeCarriers(), GNEViewNet::getUndoList(), GNE_ATTR_SELECTED, 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, and SUMO_TAG_EDGE.
Referenced by GNESelectorFrame::SelectionOperation::onCmdLoad(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadEnds(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectPass(), and GNESelectorFrame::MatchAttribute::onCmdSelMBString().
|
virtual |
hide Frame
Reimplemented from GNEFrame.
Definition at line 121 of file GNESelectorFrame.cpp.
References GNEFrame::hide().
Referenced by GNEViewParent::Frames::hideFrames().
|
protectedinherited |
Open help attributes dialog.
Definition at line 1757 of file GNEFrame.cpp.
References GUIIconSubSys::getIcon(), GNEAttributeCarrier::TagProperties::getNumberOfAttributes(), GNEAttributeCarrier::TagProperties::getTagStr(), 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(), GNEFrame::ACAttributes::onCmdHelp(), and GNETAZFrame::TAZParameters::onCmdHelp().
|
inherited |
set width of GNEFrame
Definition at line 1713 of file GNEFrame.cpp.
References GNEFrame::myScrollWindowsContents.
Referenced by GNEViewParent::Frames::setWidth().
|
virtual |
show Frame
Reimplemented from GNEFrame.
Definition at line 114 of file GNESelectorFrame.cpp.
References GNEFrame::show().
Referenced by GNEViewNet::updateModeSpecificControls().
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 615 of file GNEFrame.h.
Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().
|
private |
modul for select element set
Definition at line 410 of file GNESelectorFrame.h.
Referenced by GNESelectorFrame::MatchAttribute::enableMatchAttribute(), and GNESelectorFrame::MatchAttribute::onCmdSelMBTag().
|
protectedinherited |
fame for header elements
Definition at line 618 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 621 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 624 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
private |
modul for lock selected items
Definition at line 404 of file GNESelectorFrame.h.
Referenced by getLockGLObjectTypes(), and GNESelectorFrame::SelectionOperation::onCmdLoad().
|
private |
modul for matchA ttribute
Definition at line 413 of file GNESelectorFrame.h.
Referenced by GNESelectorFrame::ElementSet::onCmdSelectElementSet().
|
private |
modul for change modification mode
Definition at line 407 of file GNESelectorFrame.h.
Referenced by getModificationModeModul(), and handleIDs().
|
private |
modul for selection operations
Definition at line 419 of file GNESelectorFrame.h.
|
protectedinherited |
View Net for changes.
Definition at line 612 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNETAZFrame::addOrRemoveTAZMember(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNETAZFrame::TAZCurrent::addTAZChild(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), GNETLSEditorFrame::buildIinternalLanes(), GNEPolygonFrame::buildShape(), GNETAZFrame::buildShape(), clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNETAZFrame::dropTAZMembers(), GNETLSEditorFrame::editJunction(), GNETAZFrame::TAZSaveChanges::enableButtonsAndBeginUndoList(), GNEAdditionalFrame::generateID(), getMatches(), GNEFrame::NeteditAttributes::getNeteditAttributesAndValues(), GNEFrame::getViewNet(), GNETLSEditorFrame::handleChange(), handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEInspectorFrame::hide(), GNEFrame::hide(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectSingleElement(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNETAZFrame::TAZSaveChanges::onCmdCancelChanges(), GNECrossingFrame::CreateCrossing::onCmdCreateCrossing(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNESelectorFrame::SelectionOperation::onCmdSave(), GNETAZFrame::TAZSaveChanges::onCmdSaveChanges(), GNETAZFrame::TAZSelectionStatistics::onCmdSelectEdges(), GNETAZFrame::TAZSelectionStatistics::onCmdSetNewValues(), GNETAZFrame::TAZChildDefaultParameters::onCmdUseSelectedEdges(), GNETLSEditorFrame::parseTLSPrograms(), GNEPolygonFrame::processClick(), GNEInspectorFrame::processClick(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNETAZFrame::TAZCurrent::setTAZ(), GNEDeleteFrame::show(), GNEFrame::show(), GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector(), and GNETAZFrame::TAZEdgesGraphic::updateEdgeColors().
|
private |
modul for visual scaling
Definition at line 416 of file GNESelectorFrame.h.