Eclipse SUMO - Simulation of Urban MObility
GNEViewNetHelper::SelectingArea Struct Reference

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

#include <GNEViewNetHelper.h>

Collaboration diagram for GNEViewNetHelper::SelectingArea:
[legend]

Public Member Functions

void beginRectangleSelection ()
 begin rectangle selection More...
 
void drawRectangleSelection (const RGBColor &color) const
 draw rectangle selection More...
 
void finishRectangleSelection ()
 finish rectangle selection More...
 
void moveRectangleSelection ()
 move rectangle selection More...
 
std::vector< GNEEdge * > processEdgeRectangleSelection ()
 process rectangle Selection (only limited to Edges) More...
 
void processRectangleSelection ()
 process rectangle Selection More...
 
 SelectingArea (GNEViewNet *viewNet)
 default constructor More...
 

Data Fields

bool selectingUsingRectangle
 whether we have started rectangle-selection More...
 
bool startDrawing
 whether we have started rectangle-selection More...
 

Private Member Functions

void processBoundarySelection (const Boundary &boundary)
 Process boundary Selection. More...
 

Private Attributes

GNEViewNetmyViewNet
 pointer to net More...
 
Position selectionCorner1
 first corner 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 through a polygon will be placed here

Definition at line 1148 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ SelectingArea()

GNEViewNetHelper::SelectingArea::SelectingArea ( GNEViewNet viewNet)

default constructor

Definition at line 1556 of file GNEViewNetHelper.cpp.

Member Function Documentation

◆ beginRectangleSelection()

void GNEViewNetHelper::SelectingArea::beginRectangleSelection ( )

begin rectangle selection

Definition at line 1564 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressData(), GNEViewNet::processLeftButtonPressDemand(), and GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ drawRectangleSelection()

void GNEViewNetHelper::SelectingArea::drawRectangleSelection ( const RGBColor color) const

draw rectangle selection

Definition at line 1631 of file GNEViewNetHelper.cpp.

References GLO_RECTANGLESELECTION, GLHelper::popMatrix(), GLHelper::pushMatrix(), and GLHelper::setColor().

Referenced by GNEViewNet::doPaintGL().

Here is the caller graph for this function:

◆ finishRectangleSelection()

void GNEViewNetHelper::SelectingArea::finishRectangleSelection ( )

finish rectangle selection

Definition at line 1585 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonReleaseData(), GNEViewNet::processLeftButtonReleaseDemand(), and GNEViewNet::processLeftButtonReleaseNetwork().

Here is the caller graph for this function:

◆ moveRectangleSelection()

void GNEViewNetHelper::SelectingArea::moveRectangleSelection ( )

move rectangle selection

Definition at line 1572 of file GNEViewNetHelper.cpp.

References TL, and toString().

Referenced by GNEViewNet::processMoveMouseData(), GNEViewNet::processMoveMouseDemand(), and GNEViewNet::processMoveMouseNetwork().

Here is the caller graph for this function:

◆ processBoundarySelection()

void GNEViewNetHelper::SelectingArea::processBoundarySelection ( const Boundary boundary)
private

◆ processEdgeRectangleSelection()

std::vector< GNEEdge * > GNEViewNetHelper::SelectingArea::processEdgeRectangleSelection ( )

process rectangle Selection (only limited to Edges)

Definition at line 1611 of file GNEViewNetHelper.cpp.

References Boundary::add().

Referenced by GNEViewNet::processLeftButtonReleaseNetwork().

Here is the caller graph for this function:

◆ processRectangleSelection()

void GNEViewNetHelper::SelectingArea::processRectangleSelection ( )

process rectangle Selection

Definition at line 1595 of file GNEViewNetHelper.cpp.

References Boundary::add().

Referenced by GNEViewNet::processLeftButtonReleaseData(), GNEViewNet::processLeftButtonReleaseDemand(), and GNEViewNet::processLeftButtonReleaseNetwork().

Here is the caller graph for this function:

Field Documentation

◆ myViewNet

GNEViewNet* GNEViewNetHelper::SelectingArea::myViewNet
private

pointer to net

Definition at line 1188 of file GNEViewNetHelper.h.

◆ selectingUsingRectangle

◆ selectionCorner1

Position GNEViewNetHelper::SelectingArea::selectionCorner1
private

first corner of the rectangle-selection

Definition at line 1182 of file GNEViewNetHelper.h.

◆ selectionCorner2

Position GNEViewNetHelper::SelectingArea::selectionCorner2
private

second corner of the rectangle-selection

Definition at line 1185 of file GNEViewNetHelper.h.

◆ startDrawing

bool GNEViewNetHelper::SelectingArea::startDrawing

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