Eclipse SUMO - Simulation of Urban MObility
GUIPostDrawing Class Reference

#include <GUIPostDrawing.h>

Collaboration diagram for GUIPostDrawing:
[legend]

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 GNEEdgemarkedEdge = nullptr
 marked edge (used in create edge mode, for splitting) More...
 
const GUIGlObjectmarkedElementDeleteContour
 elements marked for drawing delete contour (used in netedit) More...
 
const GUIGlObjectmarkedElementOverContour
 elements marked for drawing over contour (used in netedit) More...
 
const GUIGlObjectmarkedElementSelectContour
 elements marked for drawing select contour (used in netedit) More...
 
const GUIGlObjectmarkedFirstGeometryPoint = nullptr
 marked first geometry point (used for moving/delete geometry points) More...
 
const GNELanemarkedLane = nullptr
 marked lane (used in create edge mode, for splitting) More...
 
const GNERoutemarkedRoute = nullptr
 marked route (used in create vehicle mode) More...
 
const GUIGlObjectmarkedSecondGeometryPoint = nullptr
 marked first geometry point (used for moving/delete geometry points) More...
 
const GUIGlObjectmarkedTAZ = 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...
 
GUIPostDrawingoperator= (const GUIPostDrawing &)=default
 set assignment operator private More...
 

Detailed Description

Definition at line 39 of file GUIPostDrawing.h.

Constructor & Destructor Documentation

◆ GUIPostDrawing() [1/2]

GUIPostDrawing::GUIPostDrawing ( )

constructor

Definition at line 26 of file GUIPostDrawing.cpp.

◆ GUIPostDrawing() [2/2]

GUIPostDrawing::GUIPostDrawing ( const GUIPostDrawing )
privatedefault

set copy constructor private

Member Function Documentation

◆ addElementUnderCursor()

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().

Here is the caller graph for this function:

◆ executePostDrawingTasks()

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().

Here is the caller graph for this function:

◆ getElementUnderCursor()

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().

Here is the caller graph for this function:

◆ isElementUnderCursor()

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().

Here is the caller graph for this function:

◆ markGLObjectToUpdate()

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().

Here is the caller graph for this function:

◆ operator=()

GUIPostDrawing& GUIPostDrawing::operator= ( const GUIPostDrawing )
privatedefault

set assignment operator private

Field Documentation

◆ markedEdge

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().

◆ markedElementDeleteContour

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().

◆ markedElementOverContour

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().

◆ markedElementSelectContour

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().

◆ markedFirstGeometryPoint

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().

◆ markedLane

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().

◆ markedRoute

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().

◆ markedSecondGeometryPoint

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().

◆ markedTAZ

const GUIGlObject* GUIPostDrawing::markedTAZ = nullptr

marked TAZ (used in create TAZRel mode)

Definition at line 82 of file GUIPostDrawing.h.

Referenced by executePostDrawingTasks().

◆ mousePos

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().

◆ myElementsUnderCursor

std::vector<const GUIGlObject*> GUIPostDrawing::myElementsUnderCursor
protected

elements under cursor

Definition at line 98 of file GUIPostDrawing.h.

Referenced by addElementUnderCursor(), executePostDrawingTasks(), getElementUnderCursor(), and isElementUnderCursor().

◆ myGLObjectsToUpdate

std::vector<GUIGlObject*> GUIPostDrawing::myGLObjectsToUpdate
protected

GLObjects to update.

Definition at line 95 of file GUIPostDrawing.h.

Referenced by executePostDrawingTasks(), and markGLObjectToUpdate().

◆ recomputeBoundaries

GUIGlObjectType GUIPostDrawing::recomputeBoundaries = GLO_NETWORK

recompute boundaries

Definition at line 61 of file GUIPostDrawing.h.

Referenced by executePostDrawingTasks(), and GUIDialog_ViewSettings::SizePanel::onCmdSizeChange().


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