![]() |
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 | |
std::vector< const GUIGlObject * > | elementsMarkedToRemove |
elements marked for drawing remove contour (used in NETEDIT) More... | |
std::vector< const GUIGlObject * > | elementsMarkedToSelect |
elements marked for drawing selet contour(used in NETEDIT) More... | |
const GUIGlObject * | markedEdge = nullptr |
marked edge (used in create edge mode, for splitting) More... | |
const GUIGlObject * | markedLane = nullptr |
marked lane (used in create edge mode, for splitting) More... | |
const GUIGlObject * | markedNode = nullptr |
marked Node (used in create edge mode) More... | |
const GUIGlObject * | markedRoute = nullptr |
marked Route (used in create vehicle mode) 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 30 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 62 of file GUIPostDrawing.cpp.
References myElementsUnderCursor.
Referenced by GUIGlObject::mouseWithinGeometry().
void GUIPostDrawing::executePostDrawingTasks | ( | ) |
execute post drawing tasks
Definition at line 30 of file GUIPostDrawing.cpp.
References elementsMarkedToRemove, elementsMarkedToSelect, GLO_NETWORK, Position::INVALID, markedEdge, markedLane, markedNode, markedRoute, 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 74 of file GUIPostDrawing.cpp.
References myElementsUnderCursor.
bool GUIPostDrawing::isElementUnderCursor | ( | const GUIGlObject * | GLObject | ) | const |
check if element is under cursor
Definition at line 68 of file GUIPostDrawing.cpp.
References myElementsUnderCursor.
Referenced by GNEViewNet::drawDeleteContour(), and GNEViewNet::drawSelectContour().
void GUIPostDrawing::markGLObjectToUpdate | ( | GUIGlObject * | GLObject | ) |
mark GLObject to update (usually the geometry)
Definition at line 54 of file GUIPostDrawing.cpp.
References myGLObjectsToUpdate.
Referenced by GNETAZRelData::drawGL().
|
privatedefault |
set assignment operator private
std::vector<const GUIGlObject*> GUIPostDrawing::elementsMarkedToRemove |
elements marked for drawing remove contour (used in NETEDIT)
Definition at line 52 of file GUIPostDrawing.h.
Referenced by GNEViewNet::drawDeleteContour(), GNEViewNet::drawDeleteDottedContour(), and executePostDrawingTasks().
std::vector<const GUIGlObject*> GUIPostDrawing::elementsMarkedToSelect |
elements marked for drawing selet contour(used in NETEDIT)
Definition at line 55 of file GUIPostDrawing.h.
Referenced by GNEViewNet::drawSelectContour(), GNEViewNet::drawSelectDottedContour(), and executePostDrawingTasks().
const GUIGlObject* GUIPostDrawing::markedEdge = nullptr |
marked edge (used in create edge mode, for splitting)
Definition at line 67 of file GUIPostDrawing.h.
Referenced by GNELane::drawGL(), GNEViewNet::drawTemporalSplitJunction(), and executePostDrawingTasks().
const GUIGlObject* GUIPostDrawing::markedLane = nullptr |
marked lane (used in create edge mode, for splitting)
Definition at line 70 of file GUIPostDrawing.h.
Referenced by GNELane::drawGL(), and executePostDrawingTasks().
const GUIGlObject* GUIPostDrawing::markedNode = nullptr |
marked Node (used in create edge mode)
Definition at line 64 of file GUIPostDrawing.h.
Referenced by GNEJunction::drawDottedContours(), and executePostDrawingTasks().
const GUIGlObject* GUIPostDrawing::markedRoute = nullptr |
marked Route (used in create vehicle mode)
Definition at line 76 of file GUIPostDrawing.h.
Referenced by GNEViewNet::doPaintGL(), GNERoute::drawPartialGL(), and executePostDrawingTasks().
const GUIGlObject* GUIPostDrawing::markedTAZ = nullptr |
marked TAZ (used in create TAZRel mode)
Definition at line 73 of file GUIPostDrawing.h.
Referenced by GNETAZ::drawDottedContours(), and executePostDrawingTasks().
Position GUIPostDrawing::mousePos = Position::INVALID |
mouse position before rendering elements
Definition at line 61 of file GUIPostDrawing.h.
Referenced by GNEViewNet::doPaintGL(), executePostDrawingTasks(), and GUIGlObject::mouseWithinGeometry().
|
protected |
elements under cursor
Definition at line 83 of file GUIPostDrawing.h.
Referenced by addElementUnderCursor(), executePostDrawingTasks(), getElementUnderCursor(), and isElementUnderCursor().
|
protected |
GLObjects to update.
Definition at line 80 of file GUIPostDrawing.h.
Referenced by executePostDrawingTasks(), and markGLObjectToUpdate().
GUIGlObjectType GUIPostDrawing::recomputeBoundaries = GLO_NETWORK |
recompute boundaries
Definition at line 58 of file GUIPostDrawing.h.
Referenced by executePostDrawingTasks(), and GUIDialog_ViewSettings::SizePanel::onCmdSizeChange().