![]() |
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 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 | |
| GNEViewNet * | myViewNet |
| pointer to net More... | |
| Position | selectionCorner1 |
| firstcorner of the rectangle-selection More... | |
| Position | selectionCorner2 |
| second corner of the rectangle-selection More... | |
struct used to group all variables related with selecting using a square or polygon
Definition at line 1065 of file GNEViewNetHelper.h.
| GNEViewNetHelper::SelectingArea::SelectingArea | ( | GNEViewNet * | viewNet | ) |
default constructor
Definition at line 1586 of file GNEViewNetHelper.cpp.
| void GNEViewNetHelper::SelectingArea::beginRectangleSelection | ( | ) |
begin rectangle selection
Definition at line 1594 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 1675 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 1615 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonReleaseData(), GNEViewNet::processLeftButtonReleaseDemand(), and GNEViewNet::processLeftButtonReleaseNetwork().
| void GNEViewNetHelper::SelectingArea::moveRectangleSelection | ( | ) |
move rectangle selection
Definition at line 1602 of file GNEViewNetHelper.cpp.
References toString().
Referenced by GNEViewNet::processMoveMouseData(), GNEViewNet::processMoveMouseDemand(), and GNEViewNet::processMoveMouseNetwork().
|
private |
Process boundary Selection.
Definition at line 1694 of file GNEViewNetHelper.cpp.
References GNESelectorFrame::ModificationMode::ADD, GNE_ATTR_SELECTED, MODESELECT, GNESelectorFrame::ModificationMode::REPLACE, GNESelectorFrame::ModificationMode::RESTRICT, GNESelectorFrame::ModificationMode::SUB, and SUMO_TAG_EDGE.
| std::vector< GNEEdge * > GNEViewNetHelper::SelectingArea::processEdgeRectangleSelection | ( | ) |
process rectangle Selection (only limited to Edges)
Definition at line 1641 of file GNEViewNetHelper.cpp.
References Boundary::add(), and SUMO_TAG_EDGE.
Referenced by GNEViewNet::processLeftButtonReleaseNetwork().
| void GNEViewNetHelper::SelectingArea::processRectangleSelection | ( | ) |
process rectangle Selection
Definition at line 1625 of file GNEViewNetHelper.cpp.
References Boundary::add().
Referenced by GNEViewNet::processLeftButtonReleaseData(), GNEViewNet::processLeftButtonReleaseDemand(), and GNEViewNet::processLeftButtonReleaseNetwork().
| void GNEViewNetHelper::SelectingArea::processShapeSelection | ( | const PositionVector & | shape | ) |
process shape selection
Definition at line 1669 of file GNEViewNetHelper.cpp.
References PositionVector::getBoxBoundary().
|
private |
pointer to net
Definition at line 1108 of file GNEViewNetHelper.h.
| bool GNEViewNetHelper::SelectingArea::selectingUsingRectangle |
whether we have started rectangle-selection
Definition at line 1092 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::onKeyRelease(), GNEViewNet::processLeftButtonReleaseData(), GNEViewNet::processLeftButtonReleaseDemand(), GNEViewNet::processLeftButtonReleaseNetwork(), GNEViewNet::processMoveMouseData(), GNEViewNet::processMoveMouseDemand(), and GNEViewNet::processMoveMouseNetwork().
|
private |
firstcorner of the rectangle-selection
Definition at line 1102 of file GNEViewNetHelper.h.
|
private |
second corner of the rectangle-selection
Definition at line 1105 of file GNEViewNetHelper.h.
| bool GNEViewNetHelper::SelectingArea::startDrawing |
whether we have started rectangle-selection
Definition at line 1095 of file GNEViewNetHelper.h.
Referenced by GNEViewNet::processLeftButtonReleaseData(), GNEViewNet::processLeftButtonReleaseDemand(), and GNEViewNet::processLeftButtonReleaseNetwork().