Eclipse SUMO - Simulation of Urban MObility
GNEFrameModuls::AttributeCarrierHierarchy Class Reference

#include <GNEFrameModuls.h>

Inheritance diagram for GNEFrameModuls::AttributeCarrierHierarchy:
Collaboration diagram for GNEFrameModuls::AttributeCarrierHierarchy:

Public Member Functions

 AttributeCarrierHierarchy (GNEFrame *frameParent)
 FOX-declaration. More...
 
void hideAttributeCarrierHierarchy ()
 hide AttributeCarrierHierarchy More...
 
void refreshAttributeCarrierHierarchy ()
 refresh AttributeCarrierHierarchy More...
 
void showAttributeCarrierHierarchy (GNEAttributeCarrier *AC)
 show AttributeCarrierHierarchy More...
 
 ~AttributeCarrierHierarchy ()
 destructor More...
 
FOX-callbacks

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

long onCmdShowChildMenu (FXObject *, FXSelector, void *data)
 
long onCmdCenterItem (FXObject *, FXSelector, void *)
 called when user click over option "center" of child Menu More...
 
long onCmdInspectItem (FXObject *, FXSelector, void *)
 called when user click over option "inspect" of child menu More...
 
long onCmdDeleteItem (FXObject *, FXSelector, void *)
 called when user click over option "delete" of child menu More...
 
long onCmdMoveItemUp (FXObject *, FXSelector, void *)
 called when user click over option "Move up" of child menu More...
 
long onCmdMoveItemDown (FXObject *, FXSelector, void *)
 called when user click over option "Move down" of child menu More...
 

Protected Member Functions

FXTreeItem * addListItem (GNEAttributeCarrier *AC, FXTreeItem *itemParent=nullptr, std::string prefix="", std::string sufix="")
 add item into list More...
 
FXTreeItem * addListItem (FXTreeItem *itemParent, const std::string &text, FXIcon *icon, bool expanded)
 add item into list More...
 
 AttributeCarrierHierarchy ()
 FOX needs this. More...
 
void createPopUpMenu (int X, int Y, GNEAttributeCarrier *clickedAC)
 
void showAttributeCarrierChildren (GNEAttributeCarrier *AC, FXTreeItem *itemParent)
 show child of current attributeCarrier More...
 
FXTreeItem * showAttributeCarrierParents ()
 show child of current attributeCarrier More...
 

Private Attributes

GNEAttributeCarriermyAC
 Attribute carrier. More...
 
GNEAttributeCarriermyClickedAC
 pointer to current clicked Attribute Carrier More...
 
GNEAdditionalmyClickedAdditional
 additional (casted from myClickedAC) More...
 
GNEConnectionmyClickedConnection
 junction (casted from myClickedAC) More...
 
GNECrossingmyClickedCrossing
 crossing (casted from myClickedAC) More...
 
GNEDemandElementmyClickedDemandElement
 demand element (casted from myClickedAC) More...
 
GNEEdgemyClickedEdge
 edge (casted from myClickedAC) More...
 
GNEJunctionmyClickedJunction
 junction (casted from myClickedAC) More...
 
GNELanemyClickedLane
 lane (casted from myClickedAC) More...
 
GNEShapemyClickedShape
 shape (casted from myClickedAC) More...
 
GNEFramemyFrameParent
 Frame Parent. 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 children of the element to erase More...
 

Detailed Description

Definition at line 291 of file GNEFrameModuls.h.

Constructor & Destructor Documentation

◆ AttributeCarrierHierarchy() [1/2]

GNEFrameModuls::AttributeCarrierHierarchy::AttributeCarrierHierarchy ( GNEFrame frameParent)

FOX-declaration.

constructor

Definition at line 811 of file GNEFrameModuls.cpp.

References GUIDesignTreeListFrame, MID_GNE_ACHIERARCHY_SHOWCHILDMENU, and myTreelist.

◆ ~AttributeCarrierHierarchy()

GNEFrameModuls::AttributeCarrierHierarchy::~AttributeCarrierHierarchy ( )

destructor

Definition at line 830 of file GNEFrameModuls.cpp.

◆ AttributeCarrierHierarchy() [2/2]

GNEFrameModuls::AttributeCarrierHierarchy::AttributeCarrierHierarchy ( )
inlineprotected

FOX needs this.

Definition at line 334 of file GNEFrameModuls.h.

Member Function Documentation

◆ addListItem() [1/2]

FXTreeItem * GNEFrameModuls::AttributeCarrierHierarchy::addListItem ( GNEAttributeCarrier AC,
FXTreeItem *  itemParent = nullptr,
std::string  prefix = "",
std::string  sufix = "" 
)
protected

◆ addListItem() [2/2]

FXTreeItem * GNEFrameModuls::AttributeCarrierHierarchy::addListItem ( FXTreeItem *  itemParent,
const std::string &  text,
FXIcon *  icon,
bool  expanded 
)
protected

add item into list

Definition at line 1519 of file GNEFrameModuls.cpp.

References myTreelist.

◆ createPopUpMenu()

◆ hideAttributeCarrierHierarchy()

◆ onCmdCenterItem()

long GNEFrameModuls::AttributeCarrierHierarchy::onCmdCenterItem ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdDeleteItem()

◆ onCmdInspectItem()

long GNEFrameModuls::AttributeCarrierHierarchy::onCmdInspectItem ( FXObject *  ,
FXSelector  ,
void *   
)

called when user click over option "inspect" of child menu

Definition at line 916 of file GNEFrameModuls.cpp.

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

◆ onCmdMoveItemDown()

long GNEFrameModuls::AttributeCarrierHierarchy::onCmdMoveItemDown ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdMoveItemUp()

long GNEFrameModuls::AttributeCarrierHierarchy::onCmdMoveItemUp ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdShowChildMenu()

long GNEFrameModuls::AttributeCarrierHierarchy::onCmdShowChildMenu ( FXObject *  ,
FXSelector  ,
void *  data 
)

◆ refreshAttributeCarrierHierarchy()

◆ showAttributeCarrierChildren()

void GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren ( GNEAttributeCarrier AC,
FXTreeItem *  itemParent 
)
protected

◆ showAttributeCarrierHierarchy()

void GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierHierarchy ( GNEAttributeCarrier AC)

◆ showAttributeCarrierParents()

Field Documentation

◆ myAC

GNEAttributeCarrier* GNEFrameModuls::AttributeCarrierHierarchy::myAC
private

◆ myClickedAC

GNEAttributeCarrier* GNEFrameModuls::AttributeCarrierHierarchy::myClickedAC
private

pointer to current clicked Attribute Carrier

Definition at line 358 of file GNEFrameModuls.h.

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

◆ myClickedAdditional

GNEAdditional* GNEFrameModuls::AttributeCarrierHierarchy::myClickedAdditional
private

additional (casted from myClickedAC)

Definition at line 379 of file GNEFrameModuls.h.

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

◆ myClickedConnection

GNEConnection* GNEFrameModuls::AttributeCarrierHierarchy::myClickedConnection
private

junction (casted from myClickedAC)

Definition at line 373 of file GNEFrameModuls.h.

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

◆ myClickedCrossing

GNECrossing* GNEFrameModuls::AttributeCarrierHierarchy::myClickedCrossing
private

crossing (casted from myClickedAC)

Definition at line 370 of file GNEFrameModuls.h.

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

◆ myClickedDemandElement

GNEDemandElement* GNEFrameModuls::AttributeCarrierHierarchy::myClickedDemandElement
private

demand element (casted from myClickedAC)

Definition at line 382 of file GNEFrameModuls.h.

Referenced by createPopUpMenu(), hideAttributeCarrierHierarchy(), onCmdCenterItem(), onCmdDeleteItem(), onCmdMoveItemDown(), and onCmdMoveItemUp().

◆ myClickedEdge

GNEEdge* GNEFrameModuls::AttributeCarrierHierarchy::myClickedEdge
private

edge (casted from myClickedAC)

Definition at line 364 of file GNEFrameModuls.h.

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

◆ myClickedJunction

GNEJunction* GNEFrameModuls::AttributeCarrierHierarchy::myClickedJunction
private

junction (casted from myClickedAC)

Definition at line 361 of file GNEFrameModuls.h.

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

◆ myClickedLane

GNELane* GNEFrameModuls::AttributeCarrierHierarchy::myClickedLane
private

lane (casted from myClickedAC)

Definition at line 367 of file GNEFrameModuls.h.

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

◆ myClickedShape

GNEShape* GNEFrameModuls::AttributeCarrierHierarchy::myClickedShape
private

shape (casted from myClickedAC)

Definition at line 376 of file GNEFrameModuls.h.

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

◆ myFrameParent

GNEFrame* GNEFrameModuls::AttributeCarrierHierarchy::myFrameParent
private

◆ myTreeItemsConnections

std::set<FXTreeItem*> GNEFrameModuls::AttributeCarrierHierarchy::myTreeItemsConnections
private

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

Definition at line 391 of file GNEFrameModuls.h.

Referenced by onCmdShowChildMenu(), and refreshAttributeCarrierHierarchy().

◆ myTreeItemToACMap

std::map<FXTreeItem*, GNEAttributeCarrier*> GNEFrameModuls::AttributeCarrierHierarchy::myTreeItemToACMap
private

map used to save the Tree items with their AC

Definition at line 388 of file GNEFrameModuls.h.

Referenced by addListItem(), onCmdShowChildMenu(), refreshAttributeCarrierHierarchy(), and showAttributeCarrierParents().

◆ myTreelist

FXTreeList* GNEFrameModuls::AttributeCarrierHierarchy::myTreelist
private

tree list to show the children of the element to erase

Definition at line 385 of file GNEFrameModuls.h.

Referenced by addListItem(), AttributeCarrierHierarchy(), createPopUpMenu(), onCmdShowChildMenu(), refreshAttributeCarrierHierarchy(), and showAttributeCarrierParents().


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