SUMO - Simulation of Urban MObility
GNEInspectorFrame::OverlappedInspection Class Reference

FOX-declaration. More...

#include <GNEInspectorFrame.h>

Inheritance diagram for GNEInspectorFrame::OverlappedInspection:
Inheritance graph
Collaboration diagram for GNEInspectorFrame::OverlappedInspection:
Collaboration graph

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...
 
GNEInspectorFramemyInspectorFrameParent
 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...
 

Detailed Description

FOX-declaration.

Definition at line 43 of file GNEInspectorFrame.h.

Constructor & Destructor Documentation

◆ OverlappedInspection() [1/2]

◆ ~OverlappedInspection()

GNEInspectorFrame::OverlappedInspection::~OverlappedInspection ( )

destructor

Definition at line 394 of file GNEInspectorFrame.cpp.

◆ OverlappedInspection() [2/2]

GNEInspectorFrame::OverlappedInspection::OverlappedInspection ( )
inlineprotected

FOX needs this.

Definition at line 87 of file GNEInspectorFrame.h.

Member Function Documentation

◆ checkSavedPosition()

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().

◆ hideOverlappedInspection()

void GNEInspectorFrame::OverlappedInspection::hideOverlappedInspection ( )

◆ nextElement()

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().

◆ onCmdNextElement()

long GNEInspectorFrame::OverlappedInspection::onCmdNextElement ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdOverlappingHelp()

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.

◆ onCmdPreviousElement()

long GNEInspectorFrame::OverlappedInspection::onCmdPreviousElement ( FXObject *  ,
FXSelector  ,
void *   
)

◆ overlappedInspectionShown()

bool GNEInspectorFrame::OverlappedInspection::overlappedInspectionShown ( ) const

check if overlappedInspection modul is shown

Definition at line 416 of file GNEInspectorFrame.cpp.

Referenced by GNEViewNet::openObjectDialog().

◆ previousElement()

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().

◆ showOverlappedInspection()

void GNEInspectorFrame::OverlappedInspection::showOverlappedInspection ( const GNEViewNet::ObjectsUnderCursor objectsUnderCursor,
const Position clickedPosition 
)

Field Documentation

◆ myCurrentIndexLabel

FXLabel* GNEInspectorFrame::OverlappedInspection::myCurrentIndexLabel
private

label for current index

Definition at line 97 of file GNEInspectorFrame.h.

Referenced by onCmdNextElement(), onCmdPreviousElement(), OverlappedInspection(), and showOverlappedInspection().

◆ myHelpButton

FXButton* GNEInspectorFrame::OverlappedInspection::myHelpButton
private

button for help

Definition at line 103 of file GNEInspectorFrame.h.

Referenced by OverlappedInspection().

◆ myInspectorFrameParent

GNEInspectorFrame* GNEInspectorFrame::OverlappedInspection::myInspectorFrameParent
private

current GNEInspectorFrame parent

Definition at line 91 of file GNEInspectorFrame.h.

Referenced by onCmdNextElement(), and onCmdPreviousElement().

◆ myItemIndex

size_t GNEInspectorFrame::OverlappedInspection::myItemIndex
private

current index item

Definition at line 109 of file GNEInspectorFrame.h.

Referenced by onCmdNextElement(), onCmdPreviousElement(), and showOverlappedInspection().

◆ myNextElement

FXButton* GNEInspectorFrame::OverlappedInspection::myNextElement
private

Next element button.

Definition at line 100 of file GNEInspectorFrame.h.

Referenced by OverlappedInspection().

◆ myOverlappedACs

std::vector<GNEAttributeCarrier*> GNEInspectorFrame::OverlappedInspection::myOverlappedACs
private

objects under cursor

Definition at line 106 of file GNEInspectorFrame.h.

Referenced by onCmdNextElement(), onCmdPreviousElement(), and showOverlappedInspection().

◆ myPreviousElement

FXButton* GNEInspectorFrame::OverlappedInspection::myPreviousElement
private

Previous element button.

Definition at line 94 of file GNEInspectorFrame.h.

Referenced by OverlappedInspection().

◆ mySavedClickedPosition

Position GNEInspectorFrame::OverlappedInspection::mySavedClickedPosition
private

saved clicked position

Definition at line 112 of file GNEInspectorFrame.h.

Referenced by checkSavedPosition(), and showOverlappedInspection().


The documentation for this class was generated from the following files: