SUMO - Simulation of Urban MObility
GNESelectorFrame Class Reference

#include <GNESelectorFrame.h>

Inheritance diagram for GNESelectorFrame:
Inheritance graph
Collaboration diagram for GNESelectorFrame:
Collaboration graph

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...
 

Detailed Description

The Widget for modifying selections of network-elements

Definition at line 40 of file GNESelectorFrame.h.

Constructor & Destructor Documentation

◆ GNESelectorFrame()

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::~GNESelectorFrame ( )

Destructor.

Definition at line 111 of file GNESelectorFrame.cpp.

Member Function Documentation

◆ clearCurrentSelection()

◆ focusUpperElement()

void GNEFrame::focusUpperElement ( )
inherited

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 778 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
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().

◆ getLockGLObjectTypes()

GNESelectorFrame::LockGLObjectTypes * GNESelectorFrame::getLockGLObjectTypes ( ) const

◆ getMatches()

std::vector< GNEAttributeCarrier * > GNESelectorFrame::getMatches ( SumoXMLTag  ACTag,
SumoXMLAttr  ACAttr,
char  compOp,
double  val,
const std::string &  expr 
)
private

return ACs of the given type with matching attrs

Parameters
[in]ACTagXML Tag of AttributeCarrier
[in]ACAttrXML Attribute of AttributeCarrier
[in]compOpOne 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().

◆ getModificationModeModul()

GNESelectorFrame::ModificationMode * GNESelectorFrame::getModificationModeModul ( ) const

get modification mode modul

Definition at line 237 of file GNESelectorFrame.cpp.

References myModificationMode.

Referenced by GNEViewNet::SelectingArea::processSelection().

◆ getViewNet()

GNEViewNet * GNEFrame::getViewNet ( ) const
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().

◆ handleIDs()

◆ hide()

void GNESelectorFrame::hide ( )
virtual

hide Frame

Reimplemented from GNEFrame.

Definition at line 124 of file GNESelectorFrame.cpp.

References GNEFrame::hide().

◆ openHelpAttributesDialog()

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 759 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

◆ show()

void GNESelectorFrame::show ( )
virtual

Field Documentation

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

◆ myElementSet

ElementSet* GNESelectorFrame::myElementSet
private

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

Definition at line 238 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame
protectedinherited

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame
protectedinherited

fame for right header elements

Definition at line 244 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myLockGLObjectTypes

LockGLObjectTypes* GNESelectorFrame::myLockGLObjectTypes
private

◆ myMatchAttribute

MatchAttribute* GNESelectorFrame::myMatchAttribute
private

modul for matchA ttribute

Definition at line 382 of file GNESelectorFrame.h.

Referenced by GNESelectorFrame::ElementSet::onCmdSelectElementSet().

◆ myModificationMode

ModificationMode* GNESelectorFrame::myModificationMode
private

modul for change modification mode

Definition at line 376 of file GNESelectorFrame.h.

Referenced by getModificationModeModul(), and handleIDs().

◆ mySelectionOperation

SelectionOperation* GNESelectorFrame::mySelectionOperation
private

modul for selection operations

Definition at line 388 of file GNESelectorFrame.h.

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet
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().

◆ myVisualScaling

VisualScaling* GNESelectorFrame::myVisualScaling
private

modul for visual scaling

Definition at line 385 of file GNESelectorFrame.h.


The documentation for this class was generated from the following files: