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 (FXTreeItem *itemParent, const std::string &text, FXIcon *icon, bool expanded)
 add item into list More...
 
FXTreeItem * addListItem (GNEAttributeCarrier *AC, FXTreeItem *itemParent=nullptr, std::string prefix="", std::string sufix="")
 add item into list 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 287 of file GNEFrameModuls.h.

Constructor & Destructor Documentation

◆ AttributeCarrierHierarchy()

GNEFrameModuls::AttributeCarrierHierarchy::AttributeCarrierHierarchy ( GNEFrame frameParent)

FOX-declaration.

constructor

Definition at line 843 of file GNEFrameModuls.cpp.

References GUIDesignTreeListFrame, MID_GNE_ACHIERARCHY_SHOWCHILDMENU, and myTreelist.

◆ ~AttributeCarrierHierarchy()

GNEFrameModuls::AttributeCarrierHierarchy::~AttributeCarrierHierarchy ( )

destructor

Definition at line 862 of file GNEFrameModuls.cpp.

Member Function Documentation

◆ addListItem() [1/2]

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

add item into list

Definition at line 1554 of file GNEFrameModuls.cpp.

◆ addListItem() [2/2]

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

add item into list

Definition at line 1541 of file GNEFrameModuls.cpp.

References GNEAttributeCarrier::getHierarchyName(), and GNEAttributeCarrier::getIcon().

◆ createPopUpMenu()

◆ hideAttributeCarrierHierarchy()

void GNEFrameModuls::AttributeCarrierHierarchy::hideAttributeCarrierHierarchy ( )

◆ onCmdCenterItem()

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

called when user click over option "center" of child Menu

Definition at line 922 of file GNEFrameModuls.cpp.

◆ onCmdDeleteItem()

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

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

Definition at line 957 of file GNEFrameModuls.cpp.

References GNE_ATTR_DEFAULT_VTYPE, SUMO_ATTR_ID, SUMO_TAG_VTYPE, and WRITE_WARNING.

◆ onCmdInspectItem()

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

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

Definition at line 948 of file GNEFrameModuls.cpp.

◆ onCmdMoveItemDown()

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

called when user click over option "Move down" of child menu

Definition at line 1021 of file GNEFrameModuls.cpp.

◆ onCmdMoveItemUp()

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

called when user click over option "Move up" of child menu

Definition at line 1005 of file GNEFrameModuls.cpp.

◆ onCmdShowChildMenu()

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

Definition at line 908 of file GNEFrameModuls.cpp.

◆ refreshAttributeCarrierHierarchy()

void GNEFrameModuls::AttributeCarrierHierarchy::refreshAttributeCarrierHierarchy ( )

◆ showAttributeCarrierChildren()

◆ showAttributeCarrierHierarchy()

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

◆ showAttributeCarrierParents()

Field Documentation

◆ myAC

GNEAttributeCarrier* GNEFrameModuls::AttributeCarrierHierarchy::myAC
private

Attribute carrier.

Definition at line 350 of file GNEFrameModuls.h.

◆ myClickedAC

GNEAttributeCarrier* GNEFrameModuls::AttributeCarrierHierarchy::myClickedAC
private

pointer to current clicked Attribute Carrier

Definition at line 353 of file GNEFrameModuls.h.

◆ myClickedAdditional

GNEAdditional* GNEFrameModuls::AttributeCarrierHierarchy::myClickedAdditional
private

additional (casted from myClickedAC)

Definition at line 374 of file GNEFrameModuls.h.

◆ myClickedConnection

GNEConnection* GNEFrameModuls::AttributeCarrierHierarchy::myClickedConnection
private

junction (casted from myClickedAC)

Definition at line 368 of file GNEFrameModuls.h.

◆ myClickedCrossing

GNECrossing* GNEFrameModuls::AttributeCarrierHierarchy::myClickedCrossing
private

crossing (casted from myClickedAC)

Definition at line 365 of file GNEFrameModuls.h.

◆ myClickedDemandElement

GNEDemandElement* GNEFrameModuls::AttributeCarrierHierarchy::myClickedDemandElement
private

demand element (casted from myClickedAC)

Definition at line 377 of file GNEFrameModuls.h.

◆ myClickedEdge

GNEEdge* GNEFrameModuls::AttributeCarrierHierarchy::myClickedEdge
private

edge (casted from myClickedAC)

Definition at line 359 of file GNEFrameModuls.h.

◆ myClickedJunction

GNEJunction* GNEFrameModuls::AttributeCarrierHierarchy::myClickedJunction
private

junction (casted from myClickedAC)

Definition at line 356 of file GNEFrameModuls.h.

◆ myClickedLane

GNELane* GNEFrameModuls::AttributeCarrierHierarchy::myClickedLane
private

lane (casted from myClickedAC)

Definition at line 362 of file GNEFrameModuls.h.

◆ myClickedShape

GNEShape* GNEFrameModuls::AttributeCarrierHierarchy::myClickedShape
private

shape (casted from myClickedAC)

Definition at line 371 of file GNEFrameModuls.h.

◆ myFrameParent

GNEFrame* GNEFrameModuls::AttributeCarrierHierarchy::myFrameParent
private

Frame Parent.

Definition at line 347 of file GNEFrameModuls.h.

◆ myTreeItemsConnections

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

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

Definition at line 386 of file GNEFrameModuls.h.

◆ myTreeItemToACMap

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

map used to save the Tree items with their AC

Definition at line 383 of file GNEFrameModuls.h.

◆ myTreelist

FXTreeList* GNEFrameModuls::AttributeCarrierHierarchy::myTreelist
private

tree list to show the children of the element to erase

Definition at line 380 of file GNEFrameModuls.h.

Referenced by AttributeCarrierHierarchy().


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