![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEFrame.h>
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 | |
GNEAttributeCarrier * | myAC |
Attribute carrier. More... | |
GNEFrame * | myFrameParent |
Frame Parent. More... | |
GNEAttributeCarrier * | myRightClickedAC |
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... | |
Definition at line 238 of file GNEFrame.h.
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.
GNEFrame::ACHierarchy::~ACHierarchy | ( | ) |
destructor
Definition at line 572 of file GNEFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 275 of file GNEFrame.h.
|
protected |
add item into list
Definition at line 983 of file GNEFrame.cpp.
References GNEAttributeCarrier::getHierarchyName(), GNEAttributeCarrier::getIcon(), myTreeItemToACMap, and myTreelist.
Referenced by showAttributeCarrierChilds().
|
protected |
Definition at line 661 of file GNEFrame.cpp.
References GUIMainWindow::getBoldFont(), GNEViewParent::getGUIMainWindow(), GUIIconSubSys::getIcon(), GNEAttributeCarrier::getIcon(), GNEAttributeCarrier::getPopUpID(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), ICON_MODEDELETE, ICON_MODEINSPECT, ICON_RECENTERVIEW, MID_GNE_INSPECTORFRAME_CENTER, MID_GNE_INSPECTORFRAME_DELETE, MID_GNE_INSPECTORFRAME_INSPECT, myFrameParent, myRightClickedAC, and myTreelist.
Referenced by onCmdShowChildMenu().
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().
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.
long GNEFrame::ACHierarchy::onCmdDeleteItem | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user select option "delte item" of child menu
Definition at line 641 of file GNEFrame.cpp.
References GNEViewParent::getDeleteFrame(), GNEInspectorFrame::getInspectedACs(), GNEViewParent::getInspectorFrame(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), GNEDeleteFrame::hide(), GNEInspectorFrame::inspectSingleElement(), myFrameParent, myRightClickedAC, and GNEDeleteFrame::removeAttributeCarrier().
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.
long GNEFrame::ACHierarchy::onCmdShowChildMenu | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Definition at line 607 of file GNEFrame.cpp.
References createPopUpMenu(), myTreeItemsConnections, myTreeItemToACMap, and myTreelist.
void GNEFrame::ACHierarchy::refreshACHierarchy | ( | ) |
refresh ACHierarchy
Definition at line 594 of file GNEFrame.cpp.
References myAC, myTreeItemsConnections, myTreeItemToACMap, myTreelist, showAttributeCarrierChilds(), and showAttributeCarrierParents().
Referenced by GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_Additional::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), showACHierarchy(), GNEChange_Shape::undo(), GNEChange_Junction::undo(), GNEChange_Additional::undo(), GNEChange_Connection::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), and GNEChange_Crossing::undo().
void GNEFrame::ACHierarchy::showACHierarchy | ( | GNEAttributeCarrier * | AC | ) |
show ACHierarchy
Definition at line 576 of file GNEFrame.cpp.
References myAC, refreshACHierarchy(), and GNEFrame::show().
Referenced by GNEInspectorFrame::inspectMultisection(), and GNEDeleteFrame::show().
|
protected |
show child of current attributeCarrier
Definition at line 882 of file GNEFrame.cpp.
References addACIntoList(), GNENetElement::getAdditionalChilds(), GNEAdditional::getAdditionalChilds(), GNEJunction::getGNECrossings(), GNEJunction::getGNEEdges(), GNELane::getGNEIncomingConnections(), GNELane::getGNEOutcomingConnections(), GNEAttributeCarrier::getID(), GNEEdge::getLanes(), GNEViewNet::getNet(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEFrame::getViewNet(), GNEAttributeCarrier::TagProperties::isAdditional(), GNEAttributeCarrier::TagProperties::isTAZ(), myFrameParent, myTreeItemsConnections, myTreelist, GNENet::retrieveAdditional(), GNENet::retrieveEdge(), GNENet::retrieveJunction(), GNENet::retrieveLane(), SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, SUMO_TAG_LANE, SUMO_TAG_POI, and SUMO_TAG_POLY.
Referenced by refreshACHierarchy().
|
protected |
show child of current attributeCarrier
Definition at line 682 of file GNEFrame.cpp.
References GNEAdditional::getAttribute(), GNEConnection::getEdgeFrom(), GNEConnection::getEdgeTo(), GNEEdge::getGNEJunctionDestiny(), GNEEdge::getGNEJunctionSource(), GNENetElement::getHierarchyName(), GNEAdditional::getHierarchyName(), GNEAttributeCarrier::getIcon(), GNEAttributeCarrier::getID(), GNEPOI::getLane(), GNEViewNet::getNet(), GNELane::getParentEdge(), GNECrossing::getParentJunction(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEFrame::getViewNet(), GNE_ATTR_PARENT, myAC, myFrameParent, myTreeItemToACMap, myTreelist, GNENet::retrieveAdditional(), GNENet::retrieveConnection(), GNENet::retrieveCrossing(), GNENet::retrieveEdge(), GNENet::retrieveLane(), GNENet::retrievePOI(), SUMO_ATTR_EDGE, SUMO_ATTR_LANE, SUMO_ATTR_LANES, SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_EDGE, SUMO_TAG_LANE, and SUMO_TAG_POILANE.
Referenced by refreshACHierarchy().
|
private |
Attribute carrier.
Definition at line 294 of file GNEFrame.h.
Referenced by hideACHierarchy(), onCmdInspectItem(), refreshACHierarchy(), showACHierarchy(), and showAttributeCarrierParents().
|
private |
Frame Parent.
Definition at line 291 of file GNEFrame.h.
Referenced by createPopUpMenu(), onCmdCenterItem(), onCmdDeleteItem(), onCmdInspectItem(), showAttributeCarrierChilds(), and showAttributeCarrierParents().
|
private |
pointer to current right clicked Attribute Carrier
Definition at line 306 of file GNEFrame.h.
Referenced by createPopUpMenu(), onCmdCenterItem(), onCmdDeleteItem(), and onCmdInspectItem().
|
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().
|
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().
|
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().