SUMO - Simulation of Urban MObility
GNEInspectorFrame Class Reference

#include <GNEInspectorFrame.h>

Inheritance diagram for GNEInspectorFrame:
Inheritance graph
Collaboration diagram for GNEInspectorFrame:
Collaboration graph

Data Structures

class  AttributeInput
 FOX-declaration. More...
 
class  NeteditParameters
 

Public Member Functions

void focusUpperElement ()
 focus upper element of frame More...
 
const std::vector< GNEAttributeCarrier * > & getACs () const
 get current list of ACs More...
 
GNEFrame::DrawingModegetDrawingMode () const
 get drawing mode editor More...
 
GNEEdgegetEdgeTemplate () const
 get the template edge (to copy attributes from) More...
 
FXFont * getFrameHeaderFont () const
 get font of the header's frame More...
 
FXLabel * getFrameHeaderLabel () const
 get the label for the frame's header More...
 
GNEFrame::GEOAttributesgetGEOAttributes () const
 get GEO Parameters editor More...
 
GNEFrame::NeteditAttributesgetNeteditAttributes () const
 get netedit attributes editor More...
 
GNEViewNetgetViewNet () const
 get view net More...
 
 GNEInspectorFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
 Constructor. More...
 
virtual void hide ()
 hide Frame More...
 
void inspectChild (GNEAttributeCarrier *AC, GNEAttributeCarrier *previousElement)
 inspect child of already inspected element More...
 
void inspectElement (GNEAttributeCarrier *AC)
 Inspect a single element. More...
 
void inspectFromDeleteFrame (GNEAttributeCarrier *AC, GNEAttributeCarrier *previousElement, bool previousElementWasMarked)
 inspect called from DeleteFrame More...
 
void inspectMultisection (const std::vector< GNEAttributeCarrier *> &ACs)
 Inspect the given multi-selection. More...
 
void refreshValues ()
 Refresh inspected values (used when values can be changed externally by other modul) More...
 
void setEdgeTemplate (GNEEdge *tpl)
 seh the template edge (we assume shared responsibility via reference counting) More...
 
void setFrameWidth (int newWidth)
 set width of GNEFrame More...
 
void show ()
 show inspector frame More...
 
 ~GNEInspectorFrame ()
 Destructor. More...
 
FOX-callbacks

copy edge attributes from edge template

long onCmdCopyTemplate (FXObject *, FXSelector, void *)
 
long onCmdSetTemplate (FXObject *, FXSelector, void *)
 set current edge as new template More...
 
long onUpdCopyTemplate (FXObject *, FXSelector, void *)
 update the copy button with the name of the template More...
 
long onCmdGoBack (FXObject *, FXSelector, void *)
 called when user toogle the go back button More...
 
long onCmdShowChildMenu (FXObject *, FXSelector, void *data)
 called when user press right click over an item of list of childs More...
 
long onCmdCenterItem (FXObject *, FXSelector, void *)
 called when user select option "center item" of child Menu More...
 
long onCmdInspectItem (FXObject *, FXSelector, void *)
 called when user select option "inspect item" of child menu More...
 
long onCmdDeleteItem (FXObject *, FXSelector, void *)
 called when user select option "delte item" of child menu More...
 

Protected Member Functions

void createPopUpMenu (int X, int Y, GNEAttributeCarrier *ac)
 
const std::vector< GNEAttributeCarrier * > & getInspectedACs () const
 get reference to current inspected Attribute carriers More...
 
 GNEInspectorFrame ()
 FOX needs this. More...
 
void showAttributeCarrierChilds ()
 show child of current attributeCarrier More...
 

Protected Attributes

FXVerticalFrame * myContentFrame
 Vertical frame that holds all widgets of frame. More...
 
GNEFrame::DrawingModemyDrawingMode
 drawing mode More...
 
GNEFrame::GEOAttributesmyGEOAttributes
 GEO Parameters. More...
 
FXHorizontalFrame * myHeaderFrame
 fame for header elements More...
 
FXHorizontalFrame * myHeaderLeftFrame
 fame for left header elements More...
 
FXHorizontalFrame * myHeaderRightFrame
 fame for right header elements More...
 
GNEFrame::NeteditAttributesmyNeteditAttributes
 Netedit parameter. More...
 
GNEViewNetmyViewNet
 View Net for changes. More...
 

Private Attributes

std::vector< GNEAttributeCarrier * > myACs
 the multi-selection currently being inspected More...
 
FXButton * myBackButton
 back Button More...
 
FXButton * myCopyTemplateButton
 copy template button More...
 
GNEEdgemyEdgeTemplate
 the edge template More...
 
FXGroupBox * myGroupBoxForAttributes
 groupBox for attributes More...
 
FXGroupBox * myGroupBoxForTemplates
 groupBox for templates More...
 
FXGroupBox * myGroupBoxForTreeList
 groupBox for AttrConnection More...
 
NeteditParametersmyNeteditParameters
 Netedit Parameters. More...
 
GNEAttributeCarriermyPreviousElementDelete
 pointer to previous element called by Delete Frame More...
 
bool myPreviousElementDeleteWasMarked
 flag to ckec if myPreviousElementDelete was marked in Delete Frame More...
 
GNEAttributeCarriermyPreviousElementInspect
 pointer to previous element called by Inspector Frame More...
 
GNEAttributeCarriermyRightClickedAC
 pointer to current right clicked Attribute Carrier More...
 
FXButton * mySetTemplateButton
 set template button More...
 
std::set< FXTreeItem * > myTreeItemsWithoutAC
 set used to save tree items without AC assigned (for example, Incoming/Outcoming connections) More...
 
std::map< FXTreeItem *, GNEAttributeCarrier * > myTreeItemToACMap
 map used to save the Tree items with their AC More...
 
FXTreeList * myTreelist
 tree list to show the childs of the element to erase More...
 
std::vector< GNEInspectorFrame::AttributeInput * > myVectorOfAttributeInputs
 list of Attribute inputs More...
 

Detailed Description

The Widget for modifying network-element attributes (i.e. lane speed)

Definition at line 48 of file GNEInspectorFrame.h.

Constructor & Destructor Documentation

◆ GNEInspectorFrame() [1/2]

GNEInspectorFrame::GNEInspectorFrame ( FXHorizontalFrame *  horizontalFrameParent,
GNEViewNet viewNet 
)

◆ ~GNEInspectorFrame()

GNEInspectorFrame::~GNEInspectorFrame ( )

◆ GNEInspectorFrame() [2/2]

GNEInspectorFrame::GNEInspectorFrame ( )
inlineprotected

FOX needs this.

Definition at line 281 of file GNEInspectorFrame.h.

References createPopUpMenu(), getInspectedACs(), and showAttributeCarrierChilds().

Member Function Documentation

◆ createPopUpMenu()

◆ focusUpperElement()

void GNEFrame::focusUpperElement ( )
inherited

◆ getACs()

const std::vector< GNEAttributeCarrier * > & GNEInspectorFrame::getACs ( ) const

◆ getDrawingMode()

GNEFrame::DrawingMode * GNEFrame::getDrawingMode ( ) const
inherited

◆ getEdgeTemplate()

GNEEdge * GNEInspectorFrame::getEdgeTemplate ( ) const

get the template edge (to copy attributes from)

Definition at line 330 of file GNEInspectorFrame.cpp.

References myEdgeTemplate.

Referenced by GNEViewNet::onLeftBtnPress().

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 583 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 577 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by inspectMultisection().

◆ getGEOAttributes()

GNEFrame::GEOAttributes * GNEFrame::getGEOAttributes ( ) const
inherited

get GEO Parameters editor

Definition at line 599 of file GNEFrame.cpp.

References GNEFrame::myGEOAttributes.

◆ getInspectedACs()

◆ getNeteditAttributes()

GNEFrame::NeteditAttributes * GNEFrame::getNeteditAttributes ( ) const
inherited

get netedit attributes editor

Definition at line 589 of file GNEFrame.cpp.

References GNEFrame::myNeteditAttributes.

Referenced by GNEFrame::DrawingMode::stopDrawing().

◆ getViewNet()

◆ hide()

◆ inspectChild()

void GNEInspectorFrame::inspectChild ( GNEAttributeCarrier AC,
GNEAttributeCarrier previousElement 
)

inspect child of already inspected element

Definition at line 291 of file GNEInspectorFrame.cpp.

References inspectElement(), myBackButton, GNEFrame::myHeaderLeftFrame, myPreviousElementDelete, and myPreviousElementInspect.

Referenced by onCmdInspectItem().

◆ inspectElement()

void GNEInspectorFrame::inspectElement ( GNEAttributeCarrier AC)

Inspect a single element.

Definition at line 170 of file GNEInspectorFrame.cpp.

References inspectMultisection().

Referenced by inspectChild(), inspectFromDeleteFrame(), onCmdGoBack(), GNEViewNet::onLeftBtnPress(), and show().

◆ inspectFromDeleteFrame()

void GNEInspectorFrame::inspectFromDeleteFrame ( GNEAttributeCarrier AC,
GNEAttributeCarrier previousElement,
bool  previousElementWasMarked 
)

◆ inspectMultisection()

◆ onCmdCenterItem()

long GNEInspectorFrame::onCmdCenterItem ( FXObject *  ,
FXSelector  ,
void *   
)

called when user select option "center item" of child Menu

Definition at line 425 of file GNEInspectorFrame.cpp.

References GUISUMOAbstractView::centerTo(), GUIGlObject::getGlID(), GNEAttributeCarrier::getGUIGLObject(), myRightClickedAC, and GNEFrame::myViewNet.

◆ onCmdCopyTemplate()

long GNEInspectorFrame::onCmdCopyTemplate ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdDeleteItem()

long GNEInspectorFrame::onCmdDeleteItem ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdGoBack()

◆ onCmdInspectItem()

long GNEInspectorFrame::onCmdInspectItem ( FXObject *  ,
FXSelector  ,
void *   
)

called when user select option "inspect item" of child menu

Definition at line 435 of file GNEInspectorFrame.cpp.

References inspectChild(), myACs, and myRightClickedAC.

◆ onCmdSetTemplate()

long GNEInspectorFrame::onCmdSetTemplate ( FXObject *  ,
FXSelector  ,
void *   
)

set current edge as new template

Definition at line 361 of file GNEInspectorFrame.cpp.

References myACs, and setEdgeTemplate().

◆ onCmdShowChildMenu()

long GNEInspectorFrame::onCmdShowChildMenu ( FXObject *  ,
FXSelector  ,
void *  data 
)

called when user press right click over an item of list of childs

Definition at line 412 of file GNEInspectorFrame.cpp.

References createPopUpMenu(), myTreeItemsWithoutAC, myTreeItemToACMap, and myTreelist.

◆ onUpdCopyTemplate()

long GNEInspectorFrame::onUpdCopyTemplate ( FXObject *  sender,
FXSelector  ,
void *   
)

update the copy button with the name of the template

Definition at line 371 of file GNEInspectorFrame.cpp.

References GUIGlObject::getMicrosimID(), and myEdgeTemplate.

◆ refreshValues()

void GNEInspectorFrame::refreshValues ( )

Refresh inspected values (used when values can be changed externally by other modul)

Definition at line 320 of file GNEInspectorFrame.cpp.

References myVectorOfAttributeInputs, and SUMO_ATTR_NOTHING.

Referenced by GNEFrame::GEOAttributes::onCmdSetGEOAttribute().

◆ setEdgeTemplate()

void GNEInspectorFrame::setEdgeTemplate ( GNEEdge tpl)

seh the template edge (we assume shared responsibility via reference counting)

Definition at line 336 of file GNEInspectorFrame.cpp.

References GNEReferenceCounter::decRef(), GNEReferenceCounter::incRef(), myEdgeTemplate, and GNEReferenceCounter::unreferenced().

Referenced by onCmdSetTemplate().

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 564 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

◆ show()

void GNEInspectorFrame::show ( )
virtual

show inspector frame

Reimplemented from GNEFrame.

Definition at line 163 of file GNEInspectorFrame.cpp.

References inspectElement(), and GNEFrame::show().

Referenced by GNEDeleteFrame::onCmdInspectChildItem(), and GNEViewNet::updateModeSpecificControls().

◆ showAttributeCarrierChilds()

Field Documentation

◆ myACs

std::vector<GNEAttributeCarrier*> GNEInspectorFrame::myACs
private

the multi-selection currently being inspected

Definition at line 327 of file GNEInspectorFrame.h.

Referenced by getACs(), getInspectedACs(), inspectMultisection(), onCmdCopyTemplate(), onCmdInspectItem(), onCmdSetTemplate(), and showAttributeCarrierChilds().

◆ myBackButton

FXButton* GNEInspectorFrame::myBackButton
private

back Button

Definition at line 303 of file GNEInspectorFrame.h.

Referenced by inspectChild(), inspectFromDeleteFrame(), and inspectMultisection().

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

◆ myCopyTemplateButton

FXButton* GNEInspectorFrame::myCopyTemplateButton
private

copy template button

Definition at line 309 of file GNEInspectorFrame.h.

Referenced by inspectMultisection().

◆ myDrawingMode

GNEFrame::DrawingMode* GNEFrame::myDrawingMode
protectedinherited

◆ myEdgeTemplate

GNEEdge* GNEInspectorFrame::myEdgeTemplate
private

the edge template

Definition at line 315 of file GNEInspectorFrame.h.

Referenced by getEdgeTemplate(), onCmdCopyTemplate(), onUpdCopyTemplate(), setEdgeTemplate(), and ~GNEInspectorFrame().

◆ myGEOAttributes

GNEFrame::GEOAttributes* GNEFrame::myGEOAttributes
protectedinherited

◆ myGroupBoxForAttributes

FXGroupBox* GNEInspectorFrame::myGroupBoxForAttributes
private

groupBox for attributes

Definition at line 294 of file GNEInspectorFrame.h.

Referenced by inspectMultisection().

◆ myGroupBoxForTemplates

FXGroupBox* GNEInspectorFrame::myGroupBoxForTemplates
private

groupBox for templates

Definition at line 306 of file GNEInspectorFrame.h.

Referenced by inspectMultisection().

◆ myGroupBoxForTreeList

FXGroupBox* GNEInspectorFrame::myGroupBoxForTreeList
private

groupBox for AttrConnection

Definition at line 330 of file GNEInspectorFrame.h.

Referenced by inspectMultisection(), and showAttributeCarrierChilds().

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

Definition at line 343 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame
protectedinherited

fame for left header elements

Definition at line 346 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame(), inspectChild(), inspectFromDeleteFrame(), and inspectMultisection().

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame
protectedinherited

fame for right header elements

Definition at line 349 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myNeteditAttributes

GNEFrame::NeteditAttributes* GNEFrame::myNeteditAttributes
protectedinherited

◆ myNeteditParameters

NeteditParameters* GNEInspectorFrame::myNeteditParameters
private

Netedit Parameters.

Definition at line 300 of file GNEInspectorFrame.h.

Referenced by inspectMultisection().

◆ myPreviousElementDelete

GNEAttributeCarrier* GNEInspectorFrame::myPreviousElementDelete
private

pointer to previous element called by Delete Frame

Definition at line 321 of file GNEInspectorFrame.h.

Referenced by inspectChild(), inspectFromDeleteFrame(), and onCmdGoBack().

◆ myPreviousElementDeleteWasMarked

bool GNEInspectorFrame::myPreviousElementDeleteWasMarked
private

flag to ckec if myPreviousElementDelete was marked in Delete Frame

Definition at line 324 of file GNEInspectorFrame.h.

Referenced by inspectFromDeleteFrame(), and onCmdGoBack().

◆ myPreviousElementInspect

GNEAttributeCarrier* GNEInspectorFrame::myPreviousElementInspect
private

pointer to previous element called by Inspector Frame

Definition at line 318 of file GNEInspectorFrame.h.

Referenced by inspectChild(), inspectFromDeleteFrame(), and onCmdGoBack().

◆ myRightClickedAC

GNEAttributeCarrier* GNEInspectorFrame::myRightClickedAC
private

pointer to current right clicked Attribute Carrier

Definition at line 342 of file GNEInspectorFrame.h.

Referenced by createPopUpMenu(), onCmdCenterItem(), onCmdDeleteItem(), and onCmdInspectItem().

◆ mySetTemplateButton

FXButton* GNEInspectorFrame::mySetTemplateButton
private

set template button

Definition at line 312 of file GNEInspectorFrame.h.

Referenced by inspectMultisection().

◆ myTreeItemsWithoutAC

std::set<FXTreeItem*> GNEInspectorFrame::myTreeItemsWithoutAC
private

set used to save tree items without AC assigned (for example, Incoming/Outcoming connections)

Definition at line 339 of file GNEInspectorFrame.h.

Referenced by onCmdShowChildMenu(), and showAttributeCarrierChilds().

◆ myTreeItemToACMap

std::map<FXTreeItem*, GNEAttributeCarrier*> GNEInspectorFrame::myTreeItemToACMap
private

map used to save the Tree items with their AC

Definition at line 336 of file GNEInspectorFrame.h.

Referenced by onCmdShowChildMenu(), and showAttributeCarrierChilds().

◆ myTreelist

FXTreeList* GNEInspectorFrame::myTreelist
private

tree list to show the childs of the element to erase

Definition at line 333 of file GNEInspectorFrame.h.

Referenced by createPopUpMenu(), onCmdShowChildMenu(), and showAttributeCarrierChilds().

◆ myVectorOfAttributeInputs

std::vector<GNEInspectorFrame::AttributeInput*> GNEInspectorFrame::myVectorOfAttributeInputs
private

list of Attribute inputs

Definition at line 297 of file GNEInspectorFrame.h.

Referenced by inspectMultisection(), GNEInspectorFrame::AttributeInput::onCmdSetAttribute(), and refreshValues().

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet
protectedinherited

View Net for changes.

Definition at line 337 of file GNEFrame.h.

Referenced by GNEAdditionalFrame::addAdditional(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNETLSEditorFrame::buildIinternalLanes(), GNEPolygonFrame::buildPoly(), GNEDeleteFrame::createPopUpMenu(), createPopUpMenu(), GNETLSEditorFrame::editJunction(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEFrame::hide(), GNEConnectorFrame::initTargets(), GNEConnectorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNEDeleteFrame::onCmdCenterChildItem(), onCmdCenterItem(), GNESelectorFrame::onCmdClear(), GNEConnectorFrame::onCmdClearSelectedConnections(), onCmdCopyTemplate(), GNECrossingFrame::onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), onCmdDeleteItem(), onCmdGoBack(), GNEDeleteFrame::onCmdInspectChildItem(), GNESelectorFrame::onCmdInvert(), GNESelectorFrame::onCmdLoad(), GNEConnectorFrame::onCmdOK(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNESelectorFrame::onCmdScaleSelection(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GNEPolygonFrame::processClick(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), and GNEFrame::show().


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