![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GUIPostDrawing.h>
Public Member Functions | |
| void | addElementUnderCursor (const GUIGlObject *GLObject) |
| add element into list of elements under cursor More... | |
| void | executePostDrawingTasks () |
| execute post drawing tasks More... | |
| const std::vector< const GUIGlObject * > & | getElementUnderCursor () const |
| get all elements under cursor More... | |
| GUIPostDrawing () | |
| constructor More... | |
| bool | isElementUnderCursor (const GUIGlObject *GLObject) const |
| check if element is under cursor More... | |
| void | markGLObjectToUpdate (GUIGlObject *GLObject) |
| mark GLObject to update (usually the geometry) More... | |
Data Fields | |
| const GNEEdge * | markedEdge = nullptr |
| marked edge (used in create edge mode, for splitting) More... | |
| const GUIGlObject * | markedElementDeleteContour |
| elements marked for drawing delete contour (used in netedit) More... | |
| const GUIGlObject * | markedElementOverContour |
| elements marked for drawing over contour (used in netedit) More... | |
| const GUIGlObject * | markedElementSelectContour |
| elements marked for drawing select contour (used in netedit) More... | |
| const GUIGlObject * | markedFirstGeometryPoint = nullptr |
| marked first geometry point (used for moving/delete geometry points) More... | |
| const GNELane * | markedLane = nullptr |
| marked lane (used in create edge mode, for splitting) More... | |
| const GNERoute * | markedRoute = nullptr |
| marked route (used in create vehicle mode) More... | |
| const GUIGlObject * | markedSecondGeometryPoint = nullptr |
| marked first geometry point (used for moving/delete geometry points) More... | |
| const GUIGlObject * | markedTAZ = nullptr |
| marked TAZ (used in create TAZRel mode) More... | |
| Position | mousePos = Position::INVALID |
| mouse position before rendering elements More... | |
| GUIGlObjectType | recomputeBoundaries = GLO_NETWORK |
| recompute boundaries More... | |
Protected Attributes | |
| std::vector< const GUIGlObject * > | myElementsUnderCursor |
| elements under cursor More... | |
| std::vector< GUIGlObject * > | myGLObjectsToUpdate |
| GLObjects to update. More... | |
Private Member Functions | |
| GUIPostDrawing (const GUIPostDrawing &)=default | |
| set copy constructor private More... | |
| GUIPostDrawing & | operator= (const GUIPostDrawing &)=default |
| set assignment operator private More... | |
Definition at line 39 of file GUIPostDrawing.h.
| GUIPostDrawing::GUIPostDrawing | ( | ) |
constructor
Definition at line 26 of file GUIPostDrawing.cpp.
|
privatedefault |
set copy constructor private
| void GUIPostDrawing::addElementUnderCursor | ( | const GUIGlObject * | GLObject | ) |
add element into list of elements under cursor
Definition at line 64 of file GUIPostDrawing.cpp.
References isElementUnderCursor(), and myElementsUnderCursor.
Referenced by GUIGlObject::mouseWithinGeometry().
| void GUIPostDrawing::executePostDrawingTasks | ( | ) |
execute post drawing tasks
Definition at line 30 of file GUIPostDrawing.cpp.
References GLO_NETWORK, Position::INVALID, markedEdge, markedElementDeleteContour, markedElementOverContour, markedElementSelectContour, markedFirstGeometryPoint, markedLane, markedRoute, markedSecondGeometryPoint, markedTAZ, mousePos, myElementsUnderCursor, myGLObjectsToUpdate, and recomputeBoundaries.
Referenced by GNEViewNet::doPaintGL().
| const std::vector< const GUIGlObject * > & GUIPostDrawing::getElementUnderCursor | ( | ) | const |
get all elements under cursor
Definition at line 79 of file GUIPostDrawing.cpp.
References myElementsUnderCursor.
Referenced by GNEViewNet::drawDeleteDottedContour(), and GNEViewNet::drawSelectDottedContour().
| bool GUIPostDrawing::isElementUnderCursor | ( | const GUIGlObject * | GLObject | ) | const |
check if element is under cursor
Definition at line 73 of file GUIPostDrawing.cpp.
References myElementsUnderCursor.
Referenced by addElementUnderCursor(), GNEViewNet::checkDrawDeleteContour(), GNEAdditional::checkDrawFromContour(), GNEJunction::checkDrawOverContour(), GNELane::checkDrawOverContour(), GNEViewNet::checkDrawOverContour(), GNEViewNet::checkDrawSelectContour(), GNEAdditional::checkDrawToContour(), and GNEJunction::checkDrawToContour().
| void GUIPostDrawing::markGLObjectToUpdate | ( | GUIGlObject * | GLObject | ) |
mark GLObject to update (usually the geometry)
Definition at line 56 of file GUIPostDrawing.cpp.
References myGLObjectsToUpdate.
Referenced by GNETAZRelData::drawGL().
|
privatedefault |
set assignment operator private
| const GNEEdge* GUIPostDrawing::markedEdge = nullptr |
marked edge (used in create edge mode, for splitting)
Definition at line 76 of file GUIPostDrawing.h.
Referenced by GNELane::checkMouseOverLane(), GNEViewNet::drawTemporalSplitJunction(), and executePostDrawingTasks().
| const GUIGlObject* GUIPostDrawing::markedElementDeleteContour |
elements marked for drawing delete contour (used in netedit)
Definition at line 70 of file GUIPostDrawing.h.
Referenced by GNEViewNet::checkDrawDeleteContour(), GNEViewNet::drawDeleteDottedContour(), and executePostDrawingTasks().
| const GUIGlObject* GUIPostDrawing::markedElementOverContour |
elements marked for drawing over contour (used in netedit)
Definition at line 67 of file GUIPostDrawing.h.
Referenced by GNEViewNet::checkDrawOverContour(), GNEViewNet::drawOverDottedContour(), and executePostDrawingTasks().
| const GUIGlObject* GUIPostDrawing::markedElementSelectContour |
elements marked for drawing select contour (used in netedit)
Definition at line 73 of file GUIPostDrawing.h.
Referenced by GNEViewNet::checkDrawSelectContour(), GNEViewNet::drawSelectDottedContour(), and executePostDrawingTasks().
| const GUIGlObject* GUIPostDrawing::markedFirstGeometryPoint = nullptr |
marked first geometry point (used for moving/delete geometry points)
Definition at line 88 of file GUIPostDrawing.h.
Referenced by GNEEdge::drawEdgeShape(), executePostDrawingTasks(), and GNEEdge::setGeometryPointColor().
| const GNELane* GUIPostDrawing::markedLane = nullptr |
marked lane (used in create edge mode, for splitting)
Definition at line 79 of file GUIPostDrawing.h.
Referenced by GNELane::checkMouseOverLane(), GNEViewNet::drawNeteditAttributesReferences(), and executePostDrawingTasks().
| const GNERoute* GUIPostDrawing::markedRoute = nullptr |
marked route (used in create vehicle mode)
Definition at line 85 of file GUIPostDrawing.h.
Referenced by GNEViewNet::doPaintGL(), GNERoute::drawJunctionPartialGL(), GNERoute::drawLanePartialGL(), and executePostDrawingTasks().
| const GUIGlObject* GUIPostDrawing::markedSecondGeometryPoint = nullptr |
marked first geometry point (used for moving/delete geometry points)
Definition at line 91 of file GUIPostDrawing.h.
Referenced by executePostDrawingTasks(), and GNEEdge::setGeometryPointColor().
| const GUIGlObject* GUIPostDrawing::markedTAZ = nullptr |
marked TAZ (used in create TAZRel mode)
Definition at line 82 of file GUIPostDrawing.h.
Referenced by executePostDrawingTasks().
| Position GUIPostDrawing::mousePos = Position::INVALID |
mouse position before rendering elements
Definition at line 64 of file GUIPostDrawing.h.
Referenced by GNEViewNet::doPaintGL(), executePostDrawingTasks(), and GUIGlObject::mouseWithinGeometry().
|
protected |
elements under cursor
Definition at line 98 of file GUIPostDrawing.h.
Referenced by addElementUnderCursor(), executePostDrawingTasks(), getElementUnderCursor(), and isElementUnderCursor().
|
protected |
GLObjects to update.
Definition at line 95 of file GUIPostDrawing.h.
Referenced by executePostDrawingTasks(), and markGLObjectToUpdate().
| GUIGlObjectType GUIPostDrawing::recomputeBoundaries = GLO_NETWORK |
recompute boundaries
Definition at line 61 of file GUIPostDrawing.h.
Referenced by executePostDrawingTasks(), and GUIDialog_ViewSettings::SizePanel::onCmdSizeChange().