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:

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...
 
void processShapeSelection (const PositionVector &shape)
 process shape 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 viewNet 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 633 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ SelectingArea()

GNEViewNetHelper::SelectingArea::SelectingArea ( GNEViewNet viewNet)

default constructor

Definition at line 1006 of file GNEViewNetHelper.cpp.

Member Function Documentation

◆ beginRectangleSelection()

void GNEViewNetHelper::SelectingArea::beginRectangleSelection ( )

begin rectangle selection

Definition at line 1014 of file GNEViewNetHelper.cpp.

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

◆ drawRectangleSelection()

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

draw rectangle selection

Definition at line 1095 of file GNEViewNetHelper.cpp.

References GLO_MAX, and GLHelper::setColor().

Referenced by GNEViewNet::doPaintGL().

◆ finishRectangleSelection()

void GNEViewNetHelper::SelectingArea::finishRectangleSelection ( )

finish rectangle selection

Definition at line 1037 of file GNEViewNetHelper.cpp.

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

◆ moveRectangleSelection()

void GNEViewNetHelper::SelectingArea::moveRectangleSelection ( )

move rectangle selection

Definition at line 1022 of file GNEViewNetHelper.cpp.

References toString().

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

◆ processBoundarySelection()

◆ processEdgeRectangleSelection()

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

process rectangle Selection (only limited to Edges)

Definition at line 1061 of file GNEViewNetHelper.cpp.

References Boundary::add(), and SUMO_TAG_EDGE.

Referenced by GNEViewNet::processLeftButtonReleaseNetwork().

◆ processRectangleSelection()

void GNEViewNetHelper::SelectingArea::processRectangleSelection ( )

process rectangle Selection

Definition at line 1045 of file GNEViewNetHelper.cpp.

References Boundary::add().

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

◆ processShapeSelection()

void GNEViewNetHelper::SelectingArea::processShapeSelection ( const PositionVector shape)

process shape selection

Definition at line 1089 of file GNEViewNetHelper.cpp.

References PositionVector::getBoxBoundary().

Field Documentation

◆ myViewNet

GNEViewNet* GNEViewNetHelper::SelectingArea::myViewNet
private

pointer to viewNet

Definition at line 676 of file GNEViewNetHelper.h.

◆ selectingUsingRectangle

bool GNEViewNetHelper::SelectingArea::selectingUsingRectangle

◆ selectionCorner1

Position GNEViewNetHelper::SelectingArea::selectionCorner1
private

firstcorner of the rectangle-selection

Definition at line 670 of file GNEViewNetHelper.h.

◆ selectionCorner2

Position GNEViewNetHelper::SelectingArea::selectionCorner2
private

second corner of the rectangle-selection

Definition at line 673 of file GNEViewNetHelper.h.

◆ startDrawing

bool GNEViewNetHelper::SelectingArea::startDrawing

whether we have started rectangle-selection

Definition at line 663 of file GNEViewNetHelper.h.

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


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