![]() |
Eclipse SUMO - Simulation of Urban MObility
|
FOX-declaration. More...
#include <GNEInspectorFrame.h>
Public Member Functions | |
| bool | checkSavedPosition (const Position &clickedPosition) const |
| check if given position is near to saved position More... | |
| void | hideOverlappedInspection () |
| hide template editor More... | |
| bool | nextElement (const Position &clickedPosition) |
| try to go to next element if clicked position is near to saved position More... | |
| OverlappedInspection (GNEInspectorFrame *inspectorFrameParent) | |
| FOX-declaration. More... | |
| bool | overlappedInspectionShown () const |
| check if overlappedInspection modul is shown More... | |
| bool | previousElement (const Position &clickedPosition) |
| try to go to previous element if clicked position is near to saved position More... | |
| void | showOverlappedInspection (const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const Position &clickedPosition) |
| show template editor More... | |
| ~OverlappedInspection () | |
| destructor More... | |
FOX-callbacks | |
| long | onCmdNextElement (FXObject *, FXSelector, void *) |
| Inspect next Element (from top to bot) More... | |
| long | onCmdPreviousElement (FXObject *, FXSelector, void *) |
| Inspect previous element (from top to bot) More... | |
| long | onCmdShowList (FXObject *, FXSelector, void *) |
| show list of overlapped elements More... | |
| long | onCmdListItemSelected (FXObject *, FXSelector, void *) |
| called when a list item is selected More... | |
| long | onCmdOverlappingHelp (FXObject *, FXSelector, void *) |
| Called when user press the help button. More... | |
Protected Member Functions | |
| OverlappedInspection () | |
| FOX needs this. More... | |
Private Member Functions | |
| void | inspectOverlappedAttributeCarrier () |
| inspect attributeCarrier correspond to current index More... | |
Private Attributes | |
| FXButton * | myCurrentIndexButton |
| Button for current index. More... | |
| FXButton * | myHelpButton |
| button for help More... | |
| GNEInspectorFrame * | myInspectorFrameParent |
| current GNEInspectorFrame parent More... | |
| size_t | myItemIndex |
| current index item More... | |
| FXButton * | myNextElement |
| Next element button. More... | |
| std::vector< GNEAttributeCarrier * > | myOverlappedACs |
| objects under cursor More... | |
| FXList * | myOverlappedElementList |
| list of overlapped elements More... | |
| FXButton * | myPreviousElement |
| Previous element button. More... | |
| Position | mySavedClickedPosition |
| saved clicked position More... | |
FOX-declaration.
Definition at line 43 of file GNEInspectorFrame.h.
| GNEInspectorFrame::OverlappedInspection::OverlappedInspection | ( | GNEInspectorFrame * | inspectorFrameParent | ) |
FOX-declaration.
constructor
Definition at line 409 of file GNEInspectorFrame.cpp.
References GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButton, GUIDesignButtonIconRectangular, GUIDesignButtonRectangular, GUIDesignListSingleElement, ICON_BIGARROWLEFT, ICON_BIGARROWRIGHT, MID_GNE_OVERLAPPED_ITEMSELECTED, MID_GNE_OVERLAPPED_NEXT, MID_GNE_OVERLAPPED_PREVIOUS, MID_GNE_OVERLAPPED_SHOWLIST, MID_HELP, myCurrentIndexButton, myHelpButton, myNextElement, myOverlappedElementList, and myPreviousElement.
| GNEInspectorFrame::OverlappedInspection::~OverlappedInspection | ( | ) |
destructor
Definition at line 431 of file GNEInspectorFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 93 of file GNEInspectorFrame.h.
| bool GNEInspectorFrame::OverlappedInspection::checkSavedPosition | ( | const Position & | clickedPosition | ) | const |
check if given position is near to saved position
Definition at line 470 of file GNEInspectorFrame.cpp.
References Position::distanceSquaredTo2D(), and mySavedClickedPosition.
Referenced by nextElement(), GNEViewNet::openObjectDialog(), and previousElement().
| void GNEInspectorFrame::OverlappedInspection::hideOverlappedInspection | ( | ) |
hide template editor
Definition at line 457 of file GNEInspectorFrame.cpp.
References GNEInspectorFrame::hide().
Referenced by GNEInspectorFrame::inspectClickedElement(), and GNEInspectorFrame::inspectMultisection().
|
private |
inspect attributeCarrier correspond to current index
Definition at line 591 of file GNEInspectorFrame.cpp.
References GNEViewNet::getNetworkViewOptions(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEFrame::getViewNet(), GNEInspectorFrame::inspectSingleElement(), myCurrentIndexButton, myInspectorFrameParent, myItemIndex, myOverlappedACs, GNEViewNetHelper::NetworkViewOptions::selectEdges(), GNEInspectorFrame::show(), SUMO_TAG_LANE, toString(), and GNEViewNet::update().
Referenced by onCmdListItemSelected(), onCmdNextElement(), and onCmdPreviousElement().
| bool GNEInspectorFrame::OverlappedInspection::nextElement | ( | const Position & | clickedPosition | ) |
try to go to next element if clicked position is near to saved position
Definition at line 476 of file GNEInspectorFrame.cpp.
References checkSavedPosition(), and onCmdNextElement().
Referenced by GNEInspectorFrame::processDemandSupermodeClick(), and GNEInspectorFrame::processNetworkSupermodeClick().
| long GNEInspectorFrame::OverlappedInspection::onCmdListItemSelected | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when a list item is selected
Definition at line 558 of file GNEInspectorFrame.cpp.
References inspectOverlappedAttributeCarrier(), myItemIndex, and myOverlappedElementList.
| long GNEInspectorFrame::OverlappedInspection::onCmdNextElement | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Inspect next Element (from top to bot)
Definition at line 530 of file GNEInspectorFrame.cpp.
References inspectOverlappedAttributeCarrier(), myItemIndex, myOverlappedACs, and myOverlappedElementList.
Referenced by nextElement().
| long GNEInspectorFrame::OverlappedInspection::onCmdOverlappingHelp | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when user press the help button.
Definition at line 572 of file GNEInspectorFrame.cpp.
References GUIIconSubSys::getIcon(), GUIDesignButtonOK, GUIDesignDialogBox, GUIDesignLabelFrameInformation, and ICON_ACCEPT.
| long GNEInspectorFrame::OverlappedInspection::onCmdPreviousElement | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Inspect previous element (from top to bot)
Definition at line 512 of file GNEInspectorFrame.cpp.
References inspectOverlappedAttributeCarrier(), myItemIndex, myOverlappedACs, and myOverlappedElementList.
Referenced by previousElement().
| long GNEInspectorFrame::OverlappedInspection::onCmdShowList | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
show list of overlapped elements
Definition at line 544 of file GNEInspectorFrame.cpp.
References myOverlappedElementList.
| bool GNEInspectorFrame::OverlappedInspection::overlappedInspectionShown | ( | ) | const |
check if overlappedInspection modul is shown
Definition at line 464 of file GNEInspectorFrame.cpp.
Referenced by GNEViewNet::openObjectDialog().
| bool GNEInspectorFrame::OverlappedInspection::previousElement | ( | const Position & | clickedPosition | ) |
try to go to previous element if clicked position is near to saved position
Definition at line 494 of file GNEInspectorFrame.cpp.
References checkSavedPosition(), and onCmdPreviousElement().
Referenced by GNEInspectorFrame::processDemandSupermodeClick(), and GNEInspectorFrame::processNetworkSupermodeClick().
| void GNEInspectorFrame::OverlappedInspection::showOverlappedInspection | ( | const GNEViewNetHelper::ObjectsUnderCursor & | objectsUnderCursor, |
| const Position & | clickedPosition | ||
| ) |
show template editor
Definition at line 435 of file GNEInspectorFrame.cpp.
References GNEViewNetHelper::ObjectsUnderCursor::getClickedAttributeCarriers(), myCurrentIndexButton, myItemIndex, myOverlappedACs, myOverlappedElementList, mySavedClickedPosition, GNEInspectorFrame::show(), and toString().
Referenced by GNEInspectorFrame::inspectClickedElement().
|
private |
Button for current index.
Definition at line 103 of file GNEInspectorFrame.h.
Referenced by inspectOverlappedAttributeCarrier(), OverlappedInspection(), and showOverlappedInspection().
|
private |
button for help
Definition at line 112 of file GNEInspectorFrame.h.
Referenced by OverlappedInspection().
|
private |
current GNEInspectorFrame parent
Definition at line 97 of file GNEInspectorFrame.h.
Referenced by inspectOverlappedAttributeCarrier().
|
private |
current index item
Definition at line 118 of file GNEInspectorFrame.h.
Referenced by inspectOverlappedAttributeCarrier(), onCmdListItemSelected(), onCmdNextElement(), onCmdPreviousElement(), and showOverlappedInspection().
|
private |
Next element button.
Definition at line 106 of file GNEInspectorFrame.h.
Referenced by OverlappedInspection().
|
private |
objects under cursor
Definition at line 115 of file GNEInspectorFrame.h.
Referenced by inspectOverlappedAttributeCarrier(), onCmdNextElement(), onCmdPreviousElement(), and showOverlappedInspection().
|
private |
list of overlapped elements
Definition at line 109 of file GNEInspectorFrame.h.
Referenced by onCmdListItemSelected(), onCmdNextElement(), onCmdPreviousElement(), onCmdShowList(), OverlappedInspection(), and showOverlappedInspection().
|
private |
Previous element button.
Definition at line 100 of file GNEInspectorFrame.h.
Referenced by OverlappedInspection().
|
private |
saved clicked position
Definition at line 121 of file GNEInspectorFrame.h.
Referenced by checkSavedPosition(), and showOverlappedInspection().