![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameModuls.h>
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 | |
GNEAttributeCarrier * | myAC |
Attribute carrier. More... | |
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... | |
GNEDemandElement * | myClickedDemandElement |
demand element (casted from myClickedAC) More... | |
GNEEdge * | myClickedEdge |
edge (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... | |
GNEFrame * | myFrameParent |
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... | |
Definition at line 291 of file GNEFrameModuls.h.
GNEFrameModuls::AttributeCarrierHierarchy::AttributeCarrierHierarchy | ( | GNEFrame * | frameParent | ) |
FOX-declaration.
constructor
Definition at line 811 of file GNEFrameModuls.cpp.
References GUIDesignTreeListFrame, MID_GNE_ACHIERARCHY_SHOWCHILDMENU, and myTreelist.
GNEFrameModuls::AttributeCarrierHierarchy::~AttributeCarrierHierarchy | ( | ) |
destructor
Definition at line 830 of file GNEFrameModuls.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 334 of file GNEFrameModuls.h.
|
protected |
add item into list
Definition at line 1506 of file GNEFrameModuls.cpp.
References GNEAttributeCarrier::getHierarchyName(), GNEAttributeCarrier::getIcon(), myTreeItemToACMap, and myTreelist.
Referenced by showAttributeCarrierChildren(), and showAttributeCarrierParents().
|
protected |
|
protected |
Definition at line 1002 of file GNEFrameModuls.cpp.
References GNEAttributeCarrier::TagProperties::canBeSortedManually(), GNEViewNetHelper::EditModes::currentSupermode, GUIMainWindow::getBoldFont(), GNEHierarchicalElementParents::getDemandElementParents(), GNEViewNet::getEditModes(), GNEViewParent::getGUIMainWindow(), GUIIconSubSys::getIcon(), GNEAttributeCarrier::getIcon(), GNEAttributeCarrier::getPopUpID(), GNEAttributeCarrier::getTagProperty(), GNEViewNet::getViewParent(), GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, ICON_ARROW_DOWN, ICON_ARROW_UP, ICON_MODEDELETE, ICON_MODEINSPECT, ICON_RECENTERVIEW, GNEAttributeCarrier::TagProperties::isDemandElement(), GNEAttributeCarrier::TagProperties::isNetElement(), GNEAttributeCarrier::TagProperties::isPersonStop(), GNEAttributeCarrier::TagProperties::isVehicleType(), MID_GNE_ACHIERARCHY_MOVEDOWN, MID_GNE_ACHIERARCHY_MOVEUP, MID_GNE_CENTER, MID_GNE_DELETE, MID_GNE_INSPECT, myClickedAC, myClickedAdditional, myClickedConnection, myClickedCrossing, myClickedDemandElement, myClickedEdge, myClickedJunction, myClickedLane, myClickedShape, myFrameParent, myTreelist, and GNEFrame::myViewNet.
Referenced by onCmdShowChildMenu().
void GNEFrameModuls::AttributeCarrierHierarchy::hideAttributeCarrierHierarchy | ( | ) |
hide AttributeCarrierHierarchy
Definition at line 845 of file GNEFrameModuls.cpp.
References myAC, myClickedAC, myClickedAdditional, myClickedConnection, myClickedCrossing, myClickedDemandElement, myClickedEdge, myClickedJunction, myClickedLane, and myClickedShape.
Referenced by GNEPersonPlanFrame::demandElementSelected(), GNEInspectorFrame::inspectMultisection(), GNEDeleteFrame::show(), GNEPersonPlanFrame::show(), and GNEPersonPlanFrame::tagSelected().
long GNEFrameModuls::AttributeCarrierHierarchy::onCmdCenterItem | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user click over option "center" of child Menu
Definition at line 890 of file GNEFrameModuls.cpp.
References GUISUMOAbstractView::centerTo(), GNEShape::getGlID(), GUIGlObject::getGlID(), myClickedAdditional, myClickedConnection, myClickedCrossing, myClickedDemandElement, myClickedEdge, myClickedJunction, myClickedLane, myClickedShape, myFrameParent, GNEFrame::myViewNet, and GNEViewNet::update().
long GNEFrameModuls::AttributeCarrierHierarchy::onCmdDeleteItem | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user click over option "delete" of child menu
Definition at line 925 of file GNEFrameModuls.cpp.
References GNENet::deleteAdditional(), GNENet::deleteConnection(), GNENet::deleteCrossing(), GNENet::deleteDemandElement(), GNENet::deleteEdge(), GNENet::deleteJunction(), GNENet::deleteLane(), GNENet::deleteShape(), GNEDemandElement::getAttribute(), GNEInspectorFrame::getAttributesEditor(), GNEFrameAttributesModuls::AttributesEditor::getEditedACs(), GNEViewParent::getInspectorFrame(), GNEViewNet::getNet(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEViewNet::getUndoList(), GNEViewNet::getViewParent(), GNE_ATTR_DEFAULT_VTYPE, GNEInspectorFrame::inspectSingleElement(), myClickedAC, myClickedAdditional, myClickedConnection, myClickedCrossing, myClickedDemandElement, myClickedEdge, myClickedJunction, myClickedLane, myClickedShape, myFrameParent, GNEFrame::myViewNet, refreshAttributeCarrierHierarchy(), SUMO_ATTR_ID, SUMO_TAG_VTYPE, GNEViewNet::update(), and WRITE_WARNING.
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.
long GNEFrameModuls::AttributeCarrierHierarchy::onCmdMoveItemDown | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user click over option "Move down" of child menu
Definition at line 986 of file GNEFrameModuls.cpp.
References GNEHierarchicalElementParents::getDemandElementParents(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), myClickedDemandElement, myFrameParent, GNEFrame::myViewNet, GNEUndoList::p_begin(), GNEUndoList::p_end(), and refreshAttributeCarrierHierarchy().
long GNEFrameModuls::AttributeCarrierHierarchy::onCmdMoveItemUp | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user click over option "Move up" of child menu
Definition at line 970 of file GNEFrameModuls.cpp.
References GNEHierarchicalElementParents::getDemandElementParents(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), myClickedDemandElement, myFrameParent, GNEFrame::myViewNet, GNEUndoList::p_begin(), GNEUndoList::p_end(), and refreshAttributeCarrierHierarchy().
long GNEFrameModuls::AttributeCarrierHierarchy::onCmdShowChildMenu | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Definition at line 876 of file GNEFrameModuls.cpp.
References createPopUpMenu(), myTreeItemsConnections, myTreeItemToACMap, and myTreelist.
void GNEFrameModuls::AttributeCarrierHierarchy::refreshAttributeCarrierHierarchy | ( | ) |
refresh AttributeCarrierHierarchy
Definition at line 863 of file GNEFrameModuls.cpp.
References myAC, myTreeItemsConnections, myTreeItemToACMap, myTreelist, showAttributeCarrierChildren(), and showAttributeCarrierParents().
Referenced by onCmdDeleteItem(), onCmdMoveItemDown(), onCmdMoveItemUp(), GNEPersonPlanFrame::personPlanCreated(), showAttributeCarrierHierarchy(), and GNEInspectorFrame::updateFrameAfterUndoRedo().
|
protected |
show child of current attributeCarrier
Definition at line 1342 of file GNEFrameModuls.cpp.
References addListItem(), GNEHierarchicalElementChildren::getAdditionalChildren(), GNEHierarchicalElementChildren::getDemandElementChildren(), GNEHierarchicalElementChildren::getEdgeChildren(), GNEJunction::getGNECrossings(), GNEJunction::getGNEEdges(), GNELane::getGNEIncomingConnections(), GNELane::getGNEOutcomingConnections(), GNEAttributeCarrier::getID(), GNEHierarchicalElementChildren::getLaneChildren(), GNEEdge::getLanes(), GNEViewNet::getNet(), GNEHierarchicalElementChildren::getShapeChildren(), GNEHierarchicalElementChildren::getSortedDemandElementChildrenByType(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::TagProperties::isAdditional(), GNEAttributeCarrier::TagProperties::isDemandElement(), GNEAttributeCarrier::TagProperties::isNetElement(), GNEAttributeCarrier::TagProperties::isShape(), GNEAttributeCarrier::TagProperties::isTAZ(), myFrameParent, GNEFrame::myViewNet, GNENet::retrieveAdditional(), GNENet::retrieveDemandElement(), GNENet::retrieveEdge(), GNENet::retrieveJunction(), GNENet::retrieveLane(), SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_EDGE, SUMO_TAG_FLOW, SUMO_TAG_JUNCTION, SUMO_TAG_LANE, SUMO_TAG_ROUTE, and SUMO_TAG_TRIP.
Referenced by refreshAttributeCarrierHierarchy().
void GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierHierarchy | ( | GNEAttributeCarrier * | AC | ) |
show AttributeCarrierHierarchy
Definition at line 834 of file GNEFrameModuls.cpp.
References myAC, and refreshAttributeCarrierHierarchy().
Referenced by GNEPersonPlanFrame::demandElementSelected(), GNEInspectorFrame::inspectMultisection(), GNEDeleteFrame::show(), and GNEPersonPlanFrame::tagSelected().
|
protected |
show child of current attributeCarrier
Definition at line 1090 of file GNEFrameModuls.cpp.
References addListItem(), GNEHierarchicalElementParents::getAdditionalParents(), GNEHierarchicalElementParents::getDemandElementParents(), GNEConnection::getEdgeFrom(), GNEHierarchicalElementParents::getEdgeParents(), GNEConnection::getEdgeTo(), GNEEdge::getGNEJunctionDestiny(), GNEEdge::getGNEJunctionSource(), GNENetElement::getHierarchyName(), GNEAttributeCarrier::getIcon(), GNEAttributeCarrier::getID(), GNEHierarchicalElementParents::getLaneParents(), GNEViewNet::getNet(), GNELane::getParentEdge(), GNECrossing::getParentJunction(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::TagProperties::isAdditional(), GNEAttributeCarrier::TagProperties::isDemandElement(), GNEAttributeCarrier::TagProperties::isNetElement(), GNEAttributeCarrier::TagProperties::isTAZ(), myAC, myFrameParent, myTreeItemToACMap, myTreelist, GNEFrame::myViewNet, GNENet::retrieveAdditional(), GNENet::retrieveConnection(), GNENet::retrieveCrossing(), GNENet::retrieveDemandElement(), GNENet::retrieveEdge(), GNENet::retrieveLane(), GNENet::retrievePOI(), SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_EDGE, SUMO_TAG_LANE, SUMO_TAG_POILANE, and toString().
Referenced by refreshAttributeCarrierHierarchy().
|
private |
Attribute carrier.
Definition at line 355 of file GNEFrameModuls.h.
Referenced by hideAttributeCarrierHierarchy(), onCmdInspectItem(), refreshAttributeCarrierHierarchy(), showAttributeCarrierHierarchy(), and showAttributeCarrierParents().
|
private |
pointer to current clicked Attribute Carrier
Definition at line 358 of file GNEFrameModuls.h.
Referenced by createPopUpMenu(), hideAttributeCarrierHierarchy(), onCmdDeleteItem(), and onCmdInspectItem().
|
private |
additional (casted from myClickedAC)
Definition at line 379 of file GNEFrameModuls.h.
Referenced by createPopUpMenu(), hideAttributeCarrierHierarchy(), onCmdCenterItem(), and onCmdDeleteItem().
|
private |
junction (casted from myClickedAC)
Definition at line 373 of file GNEFrameModuls.h.
Referenced by createPopUpMenu(), hideAttributeCarrierHierarchy(), onCmdCenterItem(), and onCmdDeleteItem().
|
private |
crossing (casted from myClickedAC)
Definition at line 370 of file GNEFrameModuls.h.
Referenced by createPopUpMenu(), hideAttributeCarrierHierarchy(), onCmdCenterItem(), and onCmdDeleteItem().
|
private |
demand element (casted from myClickedAC)
Definition at line 382 of file GNEFrameModuls.h.
Referenced by createPopUpMenu(), hideAttributeCarrierHierarchy(), onCmdCenterItem(), onCmdDeleteItem(), onCmdMoveItemDown(), and onCmdMoveItemUp().
|
private |
edge (casted from myClickedAC)
Definition at line 364 of file GNEFrameModuls.h.
Referenced by createPopUpMenu(), hideAttributeCarrierHierarchy(), onCmdCenterItem(), and onCmdDeleteItem().
|
private |
junction (casted from myClickedAC)
Definition at line 361 of file GNEFrameModuls.h.
Referenced by createPopUpMenu(), hideAttributeCarrierHierarchy(), onCmdCenterItem(), and onCmdDeleteItem().
|
private |
lane (casted from myClickedAC)
Definition at line 367 of file GNEFrameModuls.h.
Referenced by createPopUpMenu(), hideAttributeCarrierHierarchy(), onCmdCenterItem(), and onCmdDeleteItem().
|
private |
shape (casted from myClickedAC)
Definition at line 376 of file GNEFrameModuls.h.
Referenced by createPopUpMenu(), hideAttributeCarrierHierarchy(), onCmdCenterItem(), and onCmdDeleteItem().
|
private |
Frame Parent.
Definition at line 352 of file GNEFrameModuls.h.
Referenced by createPopUpMenu(), onCmdCenterItem(), onCmdDeleteItem(), onCmdInspectItem(), onCmdMoveItemDown(), onCmdMoveItemUp(), showAttributeCarrierChildren(), and showAttributeCarrierParents().
|
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().
|
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().
|
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().