Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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
void drawRectangleSelection (const RGBColor &color) const
 draw rectangle selection
void finishRectangleSelection ()
 finish rectangle selection
void moveRectangleSelection ()
 move rectangle selection
std::vector< GNEEdge * > processEdgeRectangleSelection ()
 process rectangle Selection (only limited to Edges)
void processRectangleSelection ()
 process rectangle Selection
 SelectingArea (GNEViewNet *viewNet)
 default constructor

Data Fields

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

Private Member Functions

SelectingAreaoperator= (const SelectingArea &)=delete
 Invalidated assignment operator.
void processBoundarySelection (const Boundary &boundary)
 Process boundary Selection.
 SelectingArea (const SelectingArea &)=delete
 Invalidated copy constructor.

Private Attributes

GNEViewNetmyViewNet
 pointer to net
Position selectionCorner1
 first corner of the rectangle-selection
Position selectionCorner2
 second corner of the rectangle-selection

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 1348 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ SelectingArea() [1/2]

GNEViewNetHelper::SelectingArea::SelectingArea ( GNEViewNet * viewNet)

default constructor

Definition at line 1968 of file GNEViewNetHelper.cpp.

References myViewNet, selectingUsingRectangle, and startDrawing.

Referenced by operator=(), and SelectingArea().

Here is the caller graph for this function:

◆ SelectingArea() [2/2]

GNEViewNetHelper::SelectingArea::SelectingArea ( const SelectingArea & )
privatedelete

Invalidated copy constructor.

References SelectingArea().

Member Function Documentation

◆ beginRectangleSelection()

void GNEViewNetHelper::SelectingArea::beginRectangleSelection ( )

begin rectangle selection

Definition at line 1976 of file GNEViewNetHelper.cpp.

References myViewNet, selectingUsingRectangle, selectionCorner1, and selectionCorner2.

◆ drawRectangleSelection()

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

◆ finishRectangleSelection()

void GNEViewNetHelper::SelectingArea::finishRectangleSelection ( )

finish rectangle selection

Definition at line 1997 of file GNEViewNetHelper.cpp.

References myViewNet, selectingUsingRectangle, and startDrawing.

◆ moveRectangleSelection()

void GNEViewNetHelper::SelectingArea::moveRectangleSelection ( )

move rectangle selection

Definition at line 1984 of file GNEViewNetHelper.cpp.

References myViewNet, selectionCorner1, selectionCorner2, startDrawing, TL, and toString().

◆ operator=()

SelectingArea & GNEViewNetHelper::SelectingArea::operator= ( const SelectingArea & )
privatedelete

Invalidated assignment operator.

References SelectingArea().

◆ processBoundarySelection()

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

Process boundary Selection.

Definition at line 2062 of file GNEViewNetHelper.cpp.

References GNESelectorFrame::ModificationMode::ADD, Boundary::getShape(), GNE_ATTR_SELECTED, MODESELECT, myViewNet, GNESelectorFrame::ModificationMode::REPLACE, GNESelectorFrame::ModificationMode::RESTRICT, GNESelectorFrame::ModificationMode::SUB, SUMO_TAG_EDGE, SUMO_TAG_LANE, and TL.

Referenced by processRectangleSelection().

Here is the caller graph for this function:

◆ processEdgeRectangleSelection()

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

process rectangle Selection (only limited to Edges)

Definition at line 2023 of file GNEViewNetHelper.cpp.

References Boundary::add(), Boundary::getShape(), myViewNet, selectionCorner1, and selectionCorner2.

◆ processRectangleSelection()

void GNEViewNetHelper::SelectingArea::processRectangleSelection ( )

process rectangle Selection

Definition at line 2007 of file GNEViewNetHelper.cpp.

References Boundary::add(), myViewNet, processBoundarySelection(), selectionCorner1, and selectionCorner2.

Field Documentation

◆ myViewNet

◆ selectingUsingRectangle

bool GNEViewNetHelper::SelectingArea::selectingUsingRectangle

whether we have started rectangle-selection

Definition at line 1372 of file GNEViewNetHelper.h.

Referenced by beginRectangleSelection(), drawRectangleSelection(), finishRectangleSelection(), and SelectingArea().

◆ selectionCorner1

Position GNEViewNetHelper::SelectingArea::selectionCorner1
private

◆ selectionCorner2

Position GNEViewNetHelper::SelectingArea::selectionCorner2
private

◆ startDrawing

bool GNEViewNetHelper::SelectingArea::startDrawing

whether we have started rectangle-selection

Definition at line 1375 of file GNEViewNetHelper.h.

Referenced by finishRectangleSelection(), moveRectangleSelection(), and SelectingArea().


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