SUMO - Simulation of Urban MObility
GNEFrame::ACHierarchy Class Reference

#include <GNEFrame.h>

Inheritance diagram for GNEFrame::ACHierarchy:
Inheritance graph
Collaboration diagram for GNEFrame::ACHierarchy:
Collaboration graph

Public Member Functions

 ACHierarchy (GNEFrame *frameParent)
 FOX-declaration. More...
 
void hideACHierarchy ()
 hide ACHierarchy More...
 
void refreshACHierarchy ()
 refresh ACHierarchy More...
 
void showACHierarchy (GNEAttributeCarrier *AC)
 show ACHierarchy More...
 
 ~ACHierarchy ()
 destructor More...
 
FOX-callbacks

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

long onCmdShowChildMenu (FXObject *, FXSelector, void *data)
 
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

 ACHierarchy ()
 FOX needs this. More...
 
FXTreeItem * addACIntoList (GNEAttributeCarrier *AC, FXTreeItem *itemParent)
 add item into list More...
 
void createPopUpMenu (int X, int Y, GNEAttributeCarrier *ac)
 
void showAttributeCarrierChilds (GNEAttributeCarrier *AC, FXTreeItem *itemParent)
 show child of current attributeCarrier More...
 
FXTreeItem * showAttributeCarrierParents ()
 show child of current attributeCarrier More...
 

Private Attributes

GNEAttributeCarriermyAC
 Attribute carrier. More...
 
GNEFramemyFrameParent
 Frame Parent. More...
 
GNEAttributeCarriermyRightClickedAC
 pointer to current right clicked Attribute Carrier More...
 
std::set< FXTreeItem * > myTreeItemsConnections
 set used to save tree items without AC assigned, the 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...
 

Detailed Description

Definition at line 238 of file GNEFrame.h.

Constructor & Destructor Documentation

◆ ACHierarchy() [1/2]

GNEFrame::ACHierarchy::ACHierarchy ( GNEFrame frameParent)

FOX-declaration.

constructor

Definition at line 562 of file GNEFrame.cpp.

References GUIDesignTreeListFrame, GNEFrame::hide(), MID_GNE_DELETEFRAME_CHILDS, and myTreelist.

◆ ~ACHierarchy()

GNEFrame::ACHierarchy::~ACHierarchy ( )

destructor

Definition at line 572 of file GNEFrame.cpp.

◆ ACHierarchy() [2/2]

GNEFrame::ACHierarchy::ACHierarchy ( )
inlineprotected

FOX needs this.

Definition at line 275 of file GNEFrame.h.

Member Function Documentation

◆ addACIntoList()

FXTreeItem * GNEFrame::ACHierarchy::addACIntoList ( GNEAttributeCarrier AC,
FXTreeItem *  itemParent 
)
protected

◆ createPopUpMenu()

◆ hideACHierarchy()

void GNEFrame::ACHierarchy::hideACHierarchy ( )

hide ACHierarchy

Definition at line 587 of file GNEFrame.cpp.

References GNEFrame::hide(), and myAC.

Referenced by GNEInspectorFrame::inspectMultisection(), and GNEDeleteFrame::show().

◆ onCmdCenterItem()

long GNEFrame::ACHierarchy::onCmdCenterItem ( FXObject *  ,
FXSelector  ,
void *   
)

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

Definition at line 621 of file GNEFrame.cpp.

References GUISUMOAbstractView::centerTo(), GUIGlObject::getGlID(), GNEFrame::getViewNet(), myFrameParent, and myRightClickedAC.

◆ onCmdDeleteItem()

long GNEFrame::ACHierarchy::onCmdDeleteItem ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdInspectItem()

long GNEFrame::ACHierarchy::onCmdInspectItem ( FXObject *  ,
FXSelector  ,
void *   
)

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

Definition at line 632 of file GNEFrame.cpp.

References GNEViewParent::getInspectorFrame(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), GNEInspectorFrame::inspectChild(), myAC, myFrameParent, and myRightClickedAC.

◆ onCmdShowChildMenu()

long GNEFrame::ACHierarchy::onCmdShowChildMenu ( FXObject *  ,
FXSelector  ,
void *  data 
)

Definition at line 607 of file GNEFrame.cpp.

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

◆ refreshACHierarchy()

◆ showACHierarchy()

void GNEFrame::ACHierarchy::showACHierarchy ( GNEAttributeCarrier AC)

◆ showAttributeCarrierChilds()

◆ showAttributeCarrierParents()

Field Documentation

◆ myAC

GNEAttributeCarrier* GNEFrame::ACHierarchy::myAC
private

Attribute carrier.

Definition at line 294 of file GNEFrame.h.

Referenced by hideACHierarchy(), onCmdInspectItem(), refreshACHierarchy(), showACHierarchy(), and showAttributeCarrierParents().

◆ myFrameParent

GNEFrame* GNEFrame::ACHierarchy::myFrameParent
private

◆ myRightClickedAC

GNEAttributeCarrier* GNEFrame::ACHierarchy::myRightClickedAC
private

pointer to current right clicked Attribute Carrier

Definition at line 306 of file GNEFrame.h.

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

◆ myTreeItemsConnections

std::set<FXTreeItem*> GNEFrame::ACHierarchy::myTreeItemsConnections
private

set used to save tree items without AC assigned, the Incoming/Outcoming connections

Definition at line 303 of file GNEFrame.h.

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

◆ myTreeItemToACMap

std::map<FXTreeItem*, GNEAttributeCarrier*> GNEFrame::ACHierarchy::myTreeItemToACMap
private

map used to save the Tree items with their AC

Definition at line 300 of file GNEFrame.h.

Referenced by addACIntoList(), onCmdShowChildMenu(), refreshACHierarchy(), and showAttributeCarrierParents().

◆ myTreelist

FXTreeList* GNEFrame::ACHierarchy::myTreelist
private

tree list to show the childs of the element to erase

Definition at line 297 of file GNEFrame.h.

Referenced by ACHierarchy(), addACIntoList(), createPopUpMenu(), onCmdShowChildMenu(), refreshACHierarchy(), showAttributeCarrierChilds(), and showAttributeCarrierParents().


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