SUMO - Simulation of Urban MObility
GNEViewNet::SelectingArea Struct Reference

struct used to group all variables related with selecting using a square or polygon More...

Collaboration diagram for GNEViewNet::SelectingArea:
Collaboration graph

Public Member Functions

void processSelection (GNEViewNet *viewNet, bool shiftKeyPressed)
 Process Selection. More...
 
std::string reportDimensions ()
 inform about selection size More...
 
 SelectingArea ()
 default constructor More...
 

Data Fields

bool selectingUsingRectangle
 whether we have started rectangle-selection More...
 
Position selectionCorner1
 firstcorner of the rectangle-selection More...
 
Position selectionCorner2
 second corner of the rectangle-selection More...
 

Detailed Description

struct used to group all variables related with selecting using a square or polygon

Note
in the future the variables used for selecting throught a polygon will be placed here

Definition at line 524 of file GNEViewNet.h.

Constructor & Destructor Documentation

◆ SelectingArea()

GNEViewNet::SelectingArea::SelectingArea ( )
inline

default constructor

Definition at line 526 of file GNEViewNet.h.

Member Function Documentation

◆ processSelection()

◆ reportDimensions()

std::string GNEViewNet::SelectingArea::reportDimensions ( )

inform about selection size

Definition at line 2959 of file GNEViewNet.cpp.

References toString().

Referenced by GNEViewNet::onMouseMove().

Field Documentation

◆ selectingUsingRectangle

bool GNEViewNet::SelectingArea::selectingUsingRectangle

◆ selectionCorner1

Position GNEViewNet::SelectingArea::selectionCorner1

firstcorner of the rectangle-selection

Definition at line 536 of file GNEViewNet.h.

Referenced by GNEViewNet::doPaintGL(), and GNEViewNet::onLeftBtnPress().

◆ selectionCorner2

Position GNEViewNet::SelectingArea::selectionCorner2

second corner of the rectangle-selection

Definition at line 539 of file GNEViewNet.h.

Referenced by GNEViewNet::doPaintGL(), GNEViewNet::onLeftBtnPress(), and GNEViewNet::onMouseMove().


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