![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct used to group all variables related with selecting using a square or polygon More...
#include <GNEViewNetHelper.h>
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 | |
| SelectingArea & | operator= (const SelectingArea &)=delete |
| Invalidated assignment operator. | |
| void | processBoundarySelection (const Boundary &boundary) |
| Process boundary Selection. | |
| SelectingArea (const SelectingArea &)=delete | |
| Invalidated copy constructor. | |
Private Attributes | |
| GNEViewNet * | myViewNet |
| pointer to net | |
| Position | selectionCorner1 |
| first corner of the rectangle-selection | |
| Position | selectionCorner2 |
| second corner of the rectangle-selection | |
struct used to group all variables related with selecting using a square or polygon
Definition at line 1344 of file GNEViewNetHelper.h.
| GNEViewNetHelper::SelectingArea::SelectingArea | ( | GNEViewNet * | viewNet | ) |
default constructor
Definition at line 1968 of file GNEViewNetHelper.cpp.
|
privatedelete |
Invalidated copy constructor.
| void GNEViewNetHelper::SelectingArea::beginRectangleSelection | ( | ) |
begin rectangle selection
Definition at line 1976 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonPressData(), GNEViewNet::processLeftButtonPressDemand(), and GNEViewNet::processLeftButtonPressNetwork().
| void GNEViewNetHelper::SelectingArea::drawRectangleSelection | ( | const RGBColor & | color | ) | const |
draw rectangle selection
Definition at line 2043 of file GNEViewNetHelper.cpp.
References GLO_RECTANGLESELECTION, GLHelper::popMatrix(), GLHelper::pushMatrix(), and GLHelper::setColor().
Referenced by GNEViewNet::doPaintGL().
| void GNEViewNetHelper::SelectingArea::finishRectangleSelection | ( | ) |
finish rectangle selection
Definition at line 1997 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonReleaseData(), GNEViewNet::processLeftButtonReleaseDemand(), and GNEViewNet::processLeftButtonReleaseNetwork().
| void GNEViewNetHelper::SelectingArea::moveRectangleSelection | ( | ) |
move rectangle selection
Definition at line 1984 of file GNEViewNetHelper.cpp.
References TL, and toString().
Referenced by GNEViewNet::processMoveMouseData(), GNEViewNet::processMoveMouseDemand(), and GNEViewNet::processMoveMouseNetwork().
|
privatedelete |
Invalidated assignment operator.
|
private |
Process boundary Selection.
Definition at line 2062 of file GNEViewNetHelper.cpp.
References GNESelectorFrame::ModificationMode::ADD, Boundary::getShape(), GNE_ATTR_SELECTED, MODESELECT, GNESelectorFrame::ModificationMode::REPLACE, GNESelectorFrame::ModificationMode::RESTRICT, GNESelectorFrame::ModificationMode::SUB, SUMO_TAG_EDGE, SUMO_TAG_LANE, and TL.
| std::vector< GNEEdge * > GNEViewNetHelper::SelectingArea::processEdgeRectangleSelection | ( | ) |
process rectangle Selection (only limited to Edges)
Definition at line 2023 of file GNEViewNetHelper.cpp.
References Boundary::add(), and Boundary::getShape().
Referenced by GNEViewNet::processLeftButtonReleaseNetwork().
| void GNEViewNetHelper::SelectingArea::processRectangleSelection | ( | ) |
process rectangle Selection
Definition at line 2007 of file GNEViewNetHelper.cpp.
References Boundary::add().
Referenced by GNEViewNet::processLeftButtonReleaseData(), GNEViewNet::processLeftButtonReleaseDemand(), and GNEViewNet::processLeftButtonReleaseNetwork().
|
private |
pointer to net
Definition at line 1384 of file GNEViewNetHelper.h.
| bool GNEViewNetHelper::SelectingArea::selectingUsingRectangle |
whether we have started rectangle-selection
Definition at line 1368 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::onKeyRelease(), GNEViewNet::processLeftButtonReleaseData(), GNEViewNet::processLeftButtonReleaseDemand(), GNEViewNet::processLeftButtonReleaseNetwork(), GNEViewNet::processMoveMouseData(), GNEViewNet::processMoveMouseDemand(), and GNEViewNet::processMoveMouseNetwork().
|
private |
first corner of the rectangle-selection
Definition at line 1378 of file GNEViewNetHelper.h.
|
private |
second corner of the rectangle-selection
Definition at line 1381 of file GNEViewNetHelper.h.
| bool GNEViewNetHelper::SelectingArea::startDrawing |
whether we have started rectangle-selection
Definition at line 1371 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::processLeftButtonReleaseData(), GNEViewNet::processLeftButtonReleaseDemand(), and GNEViewNet::processLeftButtonReleaseNetwork().