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::DrawingMode * getDrawingMode () const
 get drawing mode editor More...
 
GNEEdge * getEdgeTemplate () 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::GEOAttributes * getGEOAttributes () const
 get GEO Parameters editor More...
 
GNEFrame::NeteditAttributes * getNeteditAttributes () const
 get netedit attributes editor More...
 
GNEViewNet * getViewNet () 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::DrawingMode * myDrawingMode
 drawing mode More...
 
GNEFrame::GEOAttributes * myGEOAttributes
 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::NeteditAttributes * myNeteditAttributes
 Netedit parameter. More...
 
GNEViewNet * myViewNet
 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...
 
GNEEdge * myEdgeTemplate
 the edge template More...
 
FXGroupBox * myGroupBoxForAttributes
 groupBox for attributes More...
 
FXGroupBox * myGroupBoxForTemplates
 groupBox for templates More...
 
FXGroupBox * myGroupBoxForTreeList
 groupBox for AttrConnection More...
 
NeteditParameters * myNeteditParameters
 Netedit Parameters. More...
 
GNEAttributeCarrier * myPreviousElementDelete
 pointer to previous element called by Delete Frame More...
 
bool myPreviousElementDeleteWasMarked
 flag to ckec if myPreviousElementDelete was marked in Delete Frame More...
 
GNEAttributeCarrier * myPreviousElementInspect
 pointer to previous element called by Inspector Frame More...
 
GNEAttributeCarrier * myRightClickedAC
 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::GNEInspectorFrame ( FXHorizontalFrame *  horizontalFrameParent,
GNEViewNet *  viewNet 
)
GNEInspectorFrame::~GNEInspectorFrame ( )
GNEInspectorFrame::GNEInspectorFrame ( )
inlineprotected

FOX needs this.

Definition at line 281 of file GNEInspectorFrame.h.

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

Member Function Documentation

void GNEFrame::focusUpperElement ( )
inherited
const std::vector< GNEAttributeCarrier * > & GNEInspectorFrame::getACs ( ) const
GNEFrame::DrawingMode * GNEFrame::getDrawingMode ( ) const
inherited
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().

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 583 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

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

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

get GEO Parameters editor

Definition at line 599 of file GNEFrame.cpp.

References GNEFrame::myGEOAttributes.

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

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

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

void GNEInspectorFrame::inspectFromDeleteFrame ( GNEAttributeCarrier *  AC,
GNEAttributeCarrier *  previousElement,
bool  previousElementWasMarked 
)
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.

long GNEInspectorFrame::onCmdCopyTemplate ( FXObject *  ,
FXSelector  ,
void *   
)
long GNEInspectorFrame::onCmdDeleteItem ( FXObject *  ,
FXSelector  ,
void *   
)
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.

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

set current edge as new template

Definition at line 361 of file GNEInspectorFrame.cpp.

References myACs, and setEdgeTemplate().

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.

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.

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

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

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 564 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

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

Field Documentation

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

FXButton* GNEInspectorFrame::myBackButton
private

back Button

Definition at line 303 of file GNEInspectorFrame.h.

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

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 340 of file GNEFrame.h.

Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), GNESelectorFrame::GNESelectorFrame(), and inspectMultisection().

FXButton* GNEInspectorFrame::myCopyTemplateButton
private

copy template button

Definition at line 309 of file GNEInspectorFrame.h.

Referenced by inspectMultisection().

GNEFrame::DrawingMode* GNEFrame::myDrawingMode
protectedinherited
GNEEdge* GNEInspectorFrame::myEdgeTemplate
private

the edge template

Definition at line 315 of file GNEInspectorFrame.h.

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

GNEFrame::GEOAttributes* GNEFrame::myGEOAttributes
protectedinherited
FXGroupBox* GNEInspectorFrame::myGroupBoxForAttributes
private

groupBox for attributes

Definition at line 294 of file GNEInspectorFrame.h.

Referenced by inspectMultisection().

FXGroupBox* GNEInspectorFrame::myGroupBoxForTemplates
private

groupBox for templates

Definition at line 306 of file GNEInspectorFrame.h.

Referenced by inspectMultisection().

FXGroupBox* GNEInspectorFrame::myGroupBoxForTreeList
private

groupBox for AttrConnection

Definition at line 330 of file GNEInspectorFrame.h.

Referenced by inspectMultisection(), and showAttributeCarrierChilds().

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

Definition at line 343 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

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

FXHorizontalFrame* GNEFrame::myHeaderRightFrame
protectedinherited

fame for right header elements

Definition at line 349 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

GNEFrame::NeteditAttributes* GNEFrame::myNeteditAttributes
protectedinherited
NeteditParameters* GNEInspectorFrame::myNeteditParameters
private

Netedit Parameters.

Definition at line 300 of file GNEInspectorFrame.h.

Referenced by inspectMultisection().

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

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

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

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

FXButton* GNEInspectorFrame::mySetTemplateButton
private

set template button

Definition at line 312 of file GNEInspectorFrame.h.

Referenced by inspectMultisection().

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

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

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

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

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: