![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameModuls.h>
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 | |
GNEAttributeCarrier * | myClickedAC |
pointer to current clicked Attribute Carrier More... | |
GNEAdditional * | myClickedAdditional |
additional (casted from myClickedAC) More... | |
GNEConnection * | myClickedConnection |
junction (casted from myClickedAC) More... | |
GNECrossing * | myClickedCrossing |
crossing (casted from myClickedAC) More... | |
GNEDataInterval * | myClickedDataInterval |
data interval element (casted from myClickedAC) More... | |
GNEDataSet * | myClickedDataSet |
data set element (casted from myClickedAC) More... | |
GNEDemandElement * | myClickedDemandElement |
demand element (casted from myClickedAC) More... | |
GNEEdge * | myClickedEdge |
edge (casted from myClickedAC) More... | |
GNEGenericData * | myClickedGenericData |
generic data element (casted from myClickedAC) More... | |
GNEJunction * | myClickedJunction |
junction (casted from myClickedAC) More... | |
GNELane * | myClickedLane |
lane (casted from myClickedAC) More... | |
GNEShape * | myClickedShape |
shape (casted from myClickedAC) More... | |
GNETAZElement * | myClickedTAZElement |
TAZElement (casted from myClickedAC) More... | |
GNEFrame * | myFrameParent |
frame Parent More... | |
GNEHierarchicalElement * | myHE |
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... | |
Definition at line 176 of file GNEFrameModuls.h.
GNEFrameModuls::HierarchicalElementTree::HierarchicalElementTree | ( | GNEFrame * | frameParent | ) |
FOX-declaration.
constructor
Definition at line 551 of file GNEFrameModuls.cpp.
References GUIDesignTreeListFrame, MID_GNE_ACHIERARCHY_SHOWCHILDMENU, and myTreelist.
GNEFrameModuls::HierarchicalElementTree::~HierarchicalElementTree | ( | ) |
destructor
Definition at line 574 of file GNEFrameModuls.cpp.
|
protected |
add item into list
Definition at line 1470 of file GNEFrameModuls.cpp.
|
protected |
add item into list
Definition at line 1457 of file GNEFrameModuls.cpp.
References GNEAttributeCarrier::getHierarchyName(), and GNEAttributeCarrier::getIcon().
|
protected |
Definition at line 787 of file GNEFrameModuls.cpp.
References GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), GNEFrameAttributesModuls::isSupermodeValid(), MID_GNE_CENTER, MID_GNE_DELETE, MID_GNE_INSPECT, MODEDELETE, MODEINSPECT, RECENTERVIEW, SUMO_TAG_DATAINTERVAL, and SUMO_TAG_DATASET.
void GNEFrameModuls::HierarchicalElementTree::hideHierarchicalElementTree | ( | ) |
Definition at line 589 of file GNEFrameModuls.cpp.
Referenced by GNEPersonPlanFrame::demandElementSelected(), GNEInspectorFrame::inspectMultisection(), GNEPersonPlanFrame::show(), and GNEPersonPlanFrame::tagSelected().
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().
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().
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().
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().
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().
long GNEFrameModuls::HierarchicalElementTree::onCmdShowChildMenu | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Definition at line 633 of file GNEFrameModuls.cpp.
Referenced by FXDEFMAP().
void GNEFrameModuls::HierarchicalElementTree::refreshHierarchicalElementTree | ( | ) |
refresh HierarchicalElementTree
Definition at line 611 of file GNEFrameModuls.cpp.
Referenced by GNEPersonPlanFrame::createPath(), and GNEInspectorFrame::updateFrameAfterUndoRedo().
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().
|
protected |
show child of current attributeCarrier
Definition at line 883 of file GNEFrameModuls.cpp.
References GNEGenericData::getDataIntervalParent(), GNEDataInterval::getDataSetParent(), GNEConnection::getEdgeFrom(), GNEConnection::getEdgeTo(), GNENetworkElement::getHierarchyName(), GNEAttributeCarrier::getIcon(), GNENetworkElement::getID(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentAdditionals(), GNEHierarchicalElement::getParentDemandElements(), GNELane::getParentEdge(), GNEHierarchicalElement::getParentEdges(), GNECrossing::getParentJunction(), GNEHierarchicalElement::getParentJunctions(), GNEHierarchicalElement::getParentLanes(), GNEHierarchicalElement::getParentTAZElements(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNENet::retrieveAdditional(), GNENet::retrieveConnection(), GNENet::retrieveCrossing(), GNENet::retrieveDemandElement(), GNENet::retrieveEdge(), GNENet::retrieveLane(), GNENet::retrieveShape(), GNENet::retrieveTAZElement(), SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_DATAINTERVAL, SUMO_TAG_DATASET, SUMO_TAG_EDGE, SUMO_TAG_EDGEREL, SUMO_TAG_LANE, SUMO_TAG_POILANE, and toString().
|
protected |
show children of given hierarchical element
Definition at line 1285 of file GNEFrameModuls.cpp.
References GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), GNEHierarchicalElement::getChildEdges(), GNEHierarchicalElement::getChildGenericDatas(), GNEHierarchicalElement::getChildLanes(), GNEHierarchicalElement::getChildShapes(), GNEHierarchicalElement::getChildTAZElements(), GNEDataSet::getDataIntervalChildren(), GNEDataInterval::getGenericDataChildren(), GNEJunction::getGNECrossings(), GNELane::getGNEIncomingConnections(), GNELane::getGNEOutcomingConnections(), GNEAttributeCarrier::getID(), GNEEdge::getLanes(), GNEAttributeCarrier::getNet(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNETagProperties::isAdditionalElement(), GNETagProperties::isDataElement(), GNETagProperties::isDemandElement(), GNETagProperties::isNetworkElement(), GNETagProperties::isShape(), GNETagProperties::isTAZElement(), GNENet::retrieveDataSet(), GNENet::retrieveEdge(), GNENet::retrieveJunction(), GNENet::retrieveLane(), SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_DATAINTERVAL, SUMO_TAG_DATASET, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, and SUMO_TAG_LANE.
void GNEFrameModuls::HierarchicalElementTree::showHierarchicalElementTree | ( | GNEAttributeCarrier * | AC | ) |
Definition at line 578 of file GNEFrameModuls.cpp.
Referenced by GNEInspectorFrame::inspectMultisection(), and GNEPersonPlanFrame::tagSelected().
|
private |
pointer to current clicked Attribute Carrier
Definition at line 246 of file GNEFrameModuls.h.
|
private |
additional (casted from myClickedAC)
Definition at line 270 of file GNEFrameModuls.h.
|
private |
junction (casted from myClickedAC)
Definition at line 261 of file GNEFrameModuls.h.
|
private |
crossing (casted from myClickedAC)
Definition at line 258 of file GNEFrameModuls.h.
|
private |
data interval element (casted from myClickedAC)
Definition at line 279 of file GNEFrameModuls.h.
|
private |
data set element (casted from myClickedAC)
Definition at line 276 of file GNEFrameModuls.h.
|
private |
demand element (casted from myClickedAC)
Definition at line 273 of file GNEFrameModuls.h.
|
private |
edge (casted from myClickedAC)
Definition at line 252 of file GNEFrameModuls.h.
|
private |
generic data element (casted from myClickedAC)
Definition at line 282 of file GNEFrameModuls.h.
|
private |
junction (casted from myClickedAC)
Definition at line 249 of file GNEFrameModuls.h.
|
private |
lane (casted from myClickedAC)
Definition at line 255 of file GNEFrameModuls.h.
|
private |
shape (casted from myClickedAC)
Definition at line 264 of file GNEFrameModuls.h.
|
private |
TAZElement (casted from myClickedAC)
Definition at line 267 of file GNEFrameModuls.h.
|
private |
frame Parent
Definition at line 240 of file GNEFrameModuls.h.
|
private |
hierarchical element
Definition at line 243 of file GNEFrameModuls.h.
|
private |
set used to save tree items without AC assigned, the Incoming/Outcoming connections
Definition at line 291 of file GNEFrameModuls.h.
|
private |
map used to save the FXTreeItems items with their vinculated AC
Definition at line 288 of file GNEFrameModuls.h.
|
private |
tree list to show the children of the element to erase
Definition at line 285 of file GNEFrameModuls.h.
Referenced by HierarchicalElementTree().