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

#include <GNEFrameModuls.h>

Inheritance diagram for GNEFrameModuls::HierarchicalElementTree:
Collaboration diagram for GNEFrameModuls::HierarchicalElementTree:

Public Member Functions

void hideHierarchicalElementTree ()
 hide HierarchicalElementTree More...
 
 HierarchicalElementTree (GNEFrame *frameParent)
 FOX-declaration. More...
 
void refreshHierarchicalElementTree ()
 refresh HierarchicalElementTree More...
 
void removeCurrentEditedAttributeCarrier (const GNEAttributeCarrier *HE)
 if given AttributeCarrier is the same of myHE, set it as nullptr More...
 
void showHierarchicalElementTree (GNEAttributeCarrier *AC)
 show HierarchicalElementTree More...
 
 ~HierarchicalElementTree ()
 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)
 
FXTreeItem * showAttributeCarrierParents ()
 show child of current attributeCarrier More...
 
void showHierarchicalElementChildren (GNEHierarchicalElement *HE, FXTreeItem *itemParent)
 show children of given hierarchical element More...
 

Private Attributes

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...
 
GNEDataIntervalmyClickedDataInterval
 data interval element (casted from myClickedAC) More...
 
GNEDataSetmyClickedDataSet
 data set element (casted from myClickedAC) More...
 
GNEDemandElementmyClickedDemandElement
 demand element (casted from myClickedAC) More...
 
GNEEdgemyClickedEdge
 edge (casted from myClickedAC) More...
 
GNEGenericDatamyClickedGenericData
 generic data element (casted from myClickedAC) More...
 
GNEJunctionmyClickedJunction
 junction (casted from myClickedAC) More...
 
GNELanemyClickedLane
 lane (casted from myClickedAC) More...
 
GNEShapemyClickedShape
 shape (casted from myClickedAC) More...
 
GNETAZElementmyClickedTAZElement
 TAZElement (casted from myClickedAC) More...
 
GNEFramemyFrameParent
 frame Parent More...
 
GNEHierarchicalElementmyHE
 hierarchical element 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 FXTreeItems items with their vinculated AC More...
 
FXTreeList * myTreelist
 tree list to show the children of the element to erase More...
 

Detailed Description

Definition at line 176 of file GNEFrameModuls.h.

Constructor & Destructor Documentation

◆ HierarchicalElementTree()

GNEFrameModuls::HierarchicalElementTree::HierarchicalElementTree ( GNEFrame frameParent)

FOX-declaration.

constructor

Definition at line 551 of file GNEFrameModuls.cpp.

References GUIDesignTreeListFrame, MID_GNE_ACHIERARCHY_SHOWCHILDMENU, and myTreelist.

◆ ~HierarchicalElementTree()

GNEFrameModuls::HierarchicalElementTree::~HierarchicalElementTree ( )

destructor

Definition at line 574 of file GNEFrameModuls.cpp.

Member Function Documentation

◆ addListItem() [1/2]

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

add item into list

Definition at line 1470 of file GNEFrameModuls.cpp.

◆ addListItem() [2/2]

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

add item into list

Definition at line 1457 of file GNEFrameModuls.cpp.

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

◆ createPopUpMenu()

void GNEFrameModuls::HierarchicalElementTree::createPopUpMenu ( int  X,
int  Y,
GNEAttributeCarrier clickedAC 
)
protected

◆ hideHierarchicalElementTree()

void GNEFrameModuls::HierarchicalElementTree::hideHierarchicalElementTree ( )

◆ onCmdCenterItem()

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

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

Definition at line 647 of file GNEFrameModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdDeleteItem()

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

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

Definition at line 686 of file GNEFrameModuls.cpp.

References GNE_ATTR_DEFAULT_VTYPE, SUMO_ATTR_ID, SUMO_TAG_VTYPE, and WRITE_WARNING.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdInspectItem()

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

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

Definition at line 677 of file GNEFrameModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdMoveItemDown()

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

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

Definition at line 771 of file GNEFrameModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdMoveItemUp()

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

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

Definition at line 755 of file GNEFrameModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdShowChildMenu()

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

Definition at line 633 of file GNEFrameModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ refreshHierarchicalElementTree()

void GNEFrameModuls::HierarchicalElementTree::refreshHierarchicalElementTree ( )

refresh HierarchicalElementTree

Definition at line 611 of file GNEFrameModuls.cpp.

Referenced by GNEPersonPlanFrame::createPath(), and GNEInspectorFrame::updateFrameAfterUndoRedo().

Here is the caller graph for this function:

◆ removeCurrentEditedAttributeCarrier()

void GNEFrameModuls::HierarchicalElementTree::removeCurrentEditedAttributeCarrier ( const GNEAttributeCarrier HE)

if given AttributeCarrier is the same of myHE, set it as nullptr

Definition at line 624 of file GNEFrameModuls.cpp.

Referenced by GNEDataSet::removeDataIntervalChild(), GNEDataInterval::removeGenericDataChild(), and GNEEdge::removeLane().

Here is the caller graph for this function:

◆ showAttributeCarrierParents()

◆ showHierarchicalElementChildren()

◆ showHierarchicalElementTree()

void GNEFrameModuls::HierarchicalElementTree::showHierarchicalElementTree ( GNEAttributeCarrier AC)

show HierarchicalElementTree

Definition at line 578 of file GNEFrameModuls.cpp.

Referenced by GNEInspectorFrame::inspectMultisection(), and GNEPersonPlanFrame::tagSelected().

Here is the caller graph for this function:

Field Documentation

◆ myClickedAC

GNEAttributeCarrier* GNEFrameModuls::HierarchicalElementTree::myClickedAC
private

pointer to current clicked Attribute Carrier

Definition at line 246 of file GNEFrameModuls.h.

◆ myClickedAdditional

GNEAdditional* GNEFrameModuls::HierarchicalElementTree::myClickedAdditional
private

additional (casted from myClickedAC)

Definition at line 270 of file GNEFrameModuls.h.

◆ myClickedConnection

GNEConnection* GNEFrameModuls::HierarchicalElementTree::myClickedConnection
private

junction (casted from myClickedAC)

Definition at line 261 of file GNEFrameModuls.h.

◆ myClickedCrossing

GNECrossing* GNEFrameModuls::HierarchicalElementTree::myClickedCrossing
private

crossing (casted from myClickedAC)

Definition at line 258 of file GNEFrameModuls.h.

◆ myClickedDataInterval

GNEDataInterval* GNEFrameModuls::HierarchicalElementTree::myClickedDataInterval
private

data interval element (casted from myClickedAC)

Definition at line 279 of file GNEFrameModuls.h.

◆ myClickedDataSet

GNEDataSet* GNEFrameModuls::HierarchicalElementTree::myClickedDataSet
private

data set element (casted from myClickedAC)

Definition at line 276 of file GNEFrameModuls.h.

◆ myClickedDemandElement

GNEDemandElement* GNEFrameModuls::HierarchicalElementTree::myClickedDemandElement
private

demand element (casted from myClickedAC)

Definition at line 273 of file GNEFrameModuls.h.

◆ myClickedEdge

GNEEdge* GNEFrameModuls::HierarchicalElementTree::myClickedEdge
private

edge (casted from myClickedAC)

Definition at line 252 of file GNEFrameModuls.h.

◆ myClickedGenericData

GNEGenericData* GNEFrameModuls::HierarchicalElementTree::myClickedGenericData
private

generic data element (casted from myClickedAC)

Definition at line 282 of file GNEFrameModuls.h.

◆ myClickedJunction

GNEJunction* GNEFrameModuls::HierarchicalElementTree::myClickedJunction
private

junction (casted from myClickedAC)

Definition at line 249 of file GNEFrameModuls.h.

◆ myClickedLane

GNELane* GNEFrameModuls::HierarchicalElementTree::myClickedLane
private

lane (casted from myClickedAC)

Definition at line 255 of file GNEFrameModuls.h.

◆ myClickedShape

GNEShape* GNEFrameModuls::HierarchicalElementTree::myClickedShape
private

shape (casted from myClickedAC)

Definition at line 264 of file GNEFrameModuls.h.

◆ myClickedTAZElement

GNETAZElement* GNEFrameModuls::HierarchicalElementTree::myClickedTAZElement
private

TAZElement (casted from myClickedAC)

Definition at line 267 of file GNEFrameModuls.h.

◆ myFrameParent

GNEFrame* GNEFrameModuls::HierarchicalElementTree::myFrameParent
private

frame Parent

Definition at line 240 of file GNEFrameModuls.h.

◆ myHE

GNEHierarchicalElement* GNEFrameModuls::HierarchicalElementTree::myHE
private

hierarchical element

Definition at line 243 of file GNEFrameModuls.h.

◆ myTreeItemsConnections

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

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

Definition at line 291 of file GNEFrameModuls.h.

◆ myTreeItemToACMap

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

map used to save the FXTreeItems items with their vinculated AC

Definition at line 288 of file GNEFrameModuls.h.

◆ myTreelist

FXTreeList* GNEFrameModuls::HierarchicalElementTree::myTreelist
private

tree list to show the children of the element to erase

Definition at line 285 of file GNEFrameModuls.h.

Referenced by HierarchicalElementTree().


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