![]() |
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 GNEViewNet::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 | onCmdOverlappingHelp (FXObject *, FXSelector, void *) |
Called when user press the help button. More... | |
Protected Member Functions | |
OverlappedInspection () | |
FOX needs this. More... | |
Private Attributes | |
FXLabel * | myCurrentIndexLabel |
label 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... | |
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 379 of file GNEInspectorFrame.cpp.
References GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonIconRectangular, GUIDesignButtonRectangular, GUIDesignLabelCenterThick, ICON_NETEDITARROWLEFT, ICON_NETEDITARROWRIGHT, MID_GNE_INSPECTORFRAME_NEXT, MID_GNE_INSPECTORFRAME_PREVIOUS, MID_HELP, myCurrentIndexLabel, myHelpButton, myNextElement, and myPreviousElement.
GNEInspectorFrame::OverlappedInspection::~OverlappedInspection | ( | ) |
destructor
Definition at line 394 of file GNEInspectorFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 87 of file GNEInspectorFrame.h.
bool GNEInspectorFrame::OverlappedInspection::checkSavedPosition | ( | const Position & | clickedPosition | ) | const |
check if given position is near to saved position
Definition at line 422 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 409 of file GNEInspectorFrame.cpp.
References GNEInspectorFrame::hide().
Referenced by GNEInspectorFrame::inspectClickedElement(), and GNEInspectorFrame::inspectMultisection().
bool GNEInspectorFrame::OverlappedInspection::nextElement | ( | const Position & | clickedPosition | ) |
try to go to next element if clicked position is near to saved position
Definition at line 427 of file GNEInspectorFrame.cpp.
References checkSavedPosition(), and onCmdNextElement().
Referenced by GNEInspectorFrame::processClick().
long GNEInspectorFrame::OverlappedInspection::onCmdNextElement | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Inspect next Element (from top to bot)
Definition at line 489 of file GNEInspectorFrame.cpp.
References GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEFrame::getViewNet(), GNEInspectorFrame::inspectSingleElement(), myCurrentIndexLabel, myInspectorFrameParent, myItemIndex, myOverlappedACs, GNEViewNet::selectEdges(), GNEInspectorFrame::show(), SUMO_TAG_LANE, and toString().
Referenced by nextElement().
long GNEInspectorFrame::OverlappedInspection::onCmdOverlappingHelp | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when user press the help button.
Definition at line 511 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 463 of file GNEInspectorFrame.cpp.
References GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEFrame::getViewNet(), GNEInspectorFrame::inspectSingleElement(), myCurrentIndexLabel, myInspectorFrameParent, myItemIndex, myOverlappedACs, GNEViewNet::selectEdges(), GNEInspectorFrame::show(), SUMO_TAG_LANE, and toString().
Referenced by previousElement().
bool GNEInspectorFrame::OverlappedInspection::overlappedInspectionShown | ( | ) | const |
check if overlappedInspection modul is shown
Definition at line 416 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 445 of file GNEInspectorFrame.cpp.
References checkSavedPosition(), and onCmdPreviousElement().
Referenced by GNEInspectorFrame::processClick().
void GNEInspectorFrame::OverlappedInspection::showOverlappedInspection | ( | const GNEViewNet::ObjectsUnderCursor & | objectsUnderCursor, |
const Position & | clickedPosition | ||
) |
show template editor
Definition at line 398 of file GNEInspectorFrame.cpp.
References GNEViewNet::ObjectsUnderCursor::getClickedAttributeCarriers(), myCurrentIndexLabel, myItemIndex, myOverlappedACs, mySavedClickedPosition, GNEInspectorFrame::show(), and toString().
Referenced by GNEInspectorFrame::inspectClickedElement().
|
private |
label for current index
Definition at line 97 of file GNEInspectorFrame.h.
Referenced by onCmdNextElement(), onCmdPreviousElement(), OverlappedInspection(), and showOverlappedInspection().
|
private |
button for help
Definition at line 103 of file GNEInspectorFrame.h.
Referenced by OverlappedInspection().
|
private |
current GNEInspectorFrame parent
Definition at line 91 of file GNEInspectorFrame.h.
Referenced by onCmdNextElement(), and onCmdPreviousElement().
|
private |
current index item
Definition at line 109 of file GNEInspectorFrame.h.
Referenced by onCmdNextElement(), onCmdPreviousElement(), and showOverlappedInspection().
|
private |
Next element button.
Definition at line 100 of file GNEInspectorFrame.h.
Referenced by OverlappedInspection().
|
private |
objects under cursor
Definition at line 106 of file GNEInspectorFrame.h.
Referenced by onCmdNextElement(), onCmdPreviousElement(), and showOverlappedInspection().
|
private |
Previous element button.
Definition at line 94 of file GNEInspectorFrame.h.
Referenced by OverlappedInspection().
|
private |
saved clicked position
Definition at line 112 of file GNEInspectorFrame.h.
Referenced by checkSavedPosition(), and showOverlappedInspection().