![]() |
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 (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... | |
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 1519 of file GNEFrameModuls.cpp.
|
protected |
add item into list
Definition at line 1506 of file GNEFrameModuls.cpp.
References GNEAttributeCarrier::getHierarchyName(), and GNEAttributeCarrier::getIcon().
|
protected |
Definition at line 1002 of file GNEFrameModuls.cpp.
References GUIIconSubSys::getIcon(), GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, ICON_ARROW_DOWN, ICON_ARROW_UP, ICON_MODEDELETE, ICON_MODEINSPECT, ICON_RECENTERVIEW, MID_GNE_ACHIERARCHY_MOVEDOWN, MID_GNE_ACHIERARCHY_MOVEUP, MID_GNE_CENTER, MID_GNE_DELETE, and MID_GNE_INSPECT.
void GNEFrameModuls::AttributeCarrierHierarchy::hideAttributeCarrierHierarchy | ( | ) |
hide AttributeCarrierHierarchy
Definition at line 845 of file GNEFrameModuls.cpp.
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.
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 GNE_ATTR_DEFAULT_VTYPE, SUMO_ATTR_ID, SUMO_TAG_VTYPE, 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.
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.
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.
long GNEFrameModuls::AttributeCarrierHierarchy::onCmdShowChildMenu | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Definition at line 876 of file GNEFrameModuls.cpp.
void GNEFrameModuls::AttributeCarrierHierarchy::refreshAttributeCarrierHierarchy | ( | ) |
refresh AttributeCarrierHierarchy
Definition at line 863 of file GNEFrameModuls.cpp.
Referenced by GNEPersonPlanFrame::personPlanCreated(), and GNEInspectorFrame::updateFrameAfterUndoRedo().
|
protected |
show child of current attributeCarrier
Definition at line 1342 of file GNEFrameModuls.cpp.
References GNEHierarchicalElementChildren::getAdditionalChildren(), GNEHierarchicalElementChildren::getDemandElementChildren(), GNEHierarchicalElementChildren::getEdgeChildren(), GNEJunction::getGNECrossings(), GNEJunction::getGNEEdges(), GNELane::getGNEIncomingConnections(), GNELane::getGNEOutcomingConnections(), GNEAttributeCarrier::getID(), GNEHierarchicalElementChildren::getLaneChildren(), GNEEdge::getLanes(), GNENetElement::getNet(), 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(), GNEAdditional::myViewNet, GNEDemandElement::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.
void GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierHierarchy | ( | GNEAttributeCarrier * | AC | ) |
show AttributeCarrierHierarchy
Definition at line 834 of file GNEFrameModuls.cpp.
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 GNEHierarchicalElementParents::getAdditionalParents(), GNEHierarchicalElementParents::getDemandElementParents(), GNEConnection::getEdgeFrom(), GNEHierarchicalElementParents::getEdgeParents(), GNEConnection::getEdgeTo(), GNEEdge::getGNEJunctionDestiny(), GNEEdge::getGNEJunctionSource(), GNENetElement::getHierarchyName(), GNEAttributeCarrier::getIcon(), GNEAttributeCarrier::getID(), GNEHierarchicalElementParents::getLaneParents(), GNEShape::getNet(), GNENetElement::getNet(), GNEViewNet::getNet(), GNELane::getParentEdge(), GNECrossing::getParentJunction(), GNEAdditional::myViewNet, GNEDemandElement::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().
|
private |
Attribute carrier.
Definition at line 355 of file GNEFrameModuls.h.
|
private |
pointer to current clicked Attribute Carrier
Definition at line 358 of file GNEFrameModuls.h.
|
private |
additional (casted from myClickedAC)
Definition at line 379 of file GNEFrameModuls.h.
|
private |
junction (casted from myClickedAC)
Definition at line 373 of file GNEFrameModuls.h.
|
private |
crossing (casted from myClickedAC)
Definition at line 370 of file GNEFrameModuls.h.
|
private |
demand element (casted from myClickedAC)
Definition at line 382 of file GNEFrameModuls.h.
|
private |
edge (casted from myClickedAC)
Definition at line 364 of file GNEFrameModuls.h.
|
private |
junction (casted from myClickedAC)
Definition at line 361 of file GNEFrameModuls.h.
|
private |
lane (casted from myClickedAC)
Definition at line 367 of file GNEFrameModuls.h.
|
private |
shape (casted from myClickedAC)
Definition at line 376 of file GNEFrameModuls.h.
|
private |
Frame Parent.
Definition at line 352 of file GNEFrameModuls.h.
|
private |
set used to save tree items without AC assigned, the Incoming/Outcoming connections
Definition at line 391 of file GNEFrameModuls.h.
|
private |
map used to save the Tree items with their AC
Definition at line 388 of file GNEFrameModuls.h.
|
private |
tree list to show the children of the element to erase
Definition at line 385 of file GNEFrameModuls.h.
Referenced by AttributeCarrierHierarchy().