Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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
 
void executePostDrawingTasks ()
 execute post drawing tasks
 
const std::vector< const GUIGlObject * > & getElementUnderCursor () const
 get all elements under cursor
 
 GUIPostDrawing ()
 constructor
 
bool isElementUnderCursor (const GUIGlObject *GLObject) const
 check if element is under cursor
 
bool isTopElementUnderCursor (const GUIGlObject *GLObject) const
 check if the given element is the top element under cursor
 
void markGLObjectToUpdate (GUIGlObject *GLObject)
 mark GLObject to update (usually the geometry)
 

Data Fields

std::vector< const GUIGlObject * > elementsMarkedToRemove
 elements marked for drawing remove contour (used in netedit)
 
std::vector< const GUIGlObject * > elementsMarkedToSelect
 elements marked for drawing selet contour(used in netedit)
 
const GUIGlObjectmarkedEdge = nullptr
 marked edge (used in create edge mode, for splitting)
 
const GUIGlObjectmarkedFirstGeometryPoint = nullptr
 marked first geometry point (used for moving/delete geometry points)
 
const GUIGlObjectmarkedLane = nullptr
 marked lane (used in create edge mode, for splitting)
 
const GUIGlObjectmarkedNode = nullptr
 marked Node (used in create edge mode)
 
const GUIGlObjectmarkedRoute = nullptr
 marked Route (used in create vehicle mode)
 
const GUIGlObjectmarkedSecondGeometryPoint = nullptr
 marked first geometry point (used for moving/delete geometry points)
 
const GUIGlObjectmarkedTAZ = nullptr
 marked TAZ (used in create TAZRel mode)
 
Position mousePos = Position::INVALID
 mouse position before rendering elements
 
GUIGlObjectType recomputeBoundaries = GLO_NETWORK
 recompute boundaries
 

Protected Attributes

std::vector< const GUIGlObject * > myElementsUnderCursor
 elements under cursor
 
std::vector< GUIGlObject * > myGLObjectsToUpdate
 GLObjects to update.
 
const GUIGlObjectmyTopElement = nullptr
 top element (used during selecting and deleting)
 

Private Member Functions

 GUIPostDrawing (const GUIPostDrawing &)=default
 set copy constructor private
 
GUIPostDrawingoperator= (const GUIPostDrawing &)=default
 set assignment operator private
 

Detailed Description

Definition at line 30 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 65 of file GUIPostDrawing.cpp.

References GUIGlObject::getType(), myElementsUnderCursor, and myTopElement.

Referenced by GUIGlObject::mouseWithinGeometry(), GUIGlObject::mouseWithinGeometry(), GUIGlObject::mouseWithinGeometry(), GUIGlObject::mouseWithinGeometry(), and 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 elementsMarkedToRemove, elementsMarkedToSelect, GLO_NETWORK, Position::INVALID, markedEdge, markedFirstGeometryPoint, markedLane, markedNode, markedRoute, markedSecondGeometryPoint, markedTAZ, mousePos, myElementsUnderCursor, myGLObjectsToUpdate, myTopElement, 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 92 of file GUIPostDrawing.cpp.

References myElementsUnderCursor.

◆ isElementUnderCursor()

bool GUIPostDrawing::isElementUnderCursor ( const GUIGlObject GLObject) const

check if element is under cursor

Definition at line 76 of file GUIPostDrawing.cpp.

References myElementsUnderCursor.

Referenced by GNEViewNet::drawDeleteContour(), and GNEViewNet::drawSelectContour().

Here is the caller graph for this function:

◆ isTopElementUnderCursor()

bool GUIPostDrawing::isTopElementUnderCursor ( const GUIGlObject GLObject) const

check if the given element is the top element under cursor

Definition at line 82 of file GUIPostDrawing.cpp.

References GUIGlObject::getType(), and myTopElement.

Referenced by GNEViewNet::drawDeleteContour(), and GNEViewNet::drawSelectContour().

Here is the caller graph for this function:

◆ markGLObjectToUpdate()

void GUIPostDrawing::markGLObjectToUpdate ( GUIGlObject GLObject)

mark GLObject to update (usually the geometry)

Definition at line 57 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

◆ elementsMarkedToRemove

std::vector<const GUIGlObject*> GUIPostDrawing::elementsMarkedToRemove

elements marked for drawing remove contour (used in netedit)

Definition at line 55 of file GUIPostDrawing.h.

Referenced by GNEViewNet::drawDeleteContour(), GNEViewNet::drawDeleteDottedContour(), and executePostDrawingTasks().

◆ elementsMarkedToSelect

std::vector<const GUIGlObject*> GUIPostDrawing::elementsMarkedToSelect

elements marked for drawing selet contour(used in netedit)

Definition at line 58 of file GUIPostDrawing.h.

Referenced by GNEViewNet::drawSelectContour(), GNEViewNet::drawSelectDottedContour(), and executePostDrawingTasks().

◆ markedEdge

const GUIGlObject* GUIPostDrawing::markedEdge = nullptr

marked edge (used in create edge mode, for splitting)

Definition at line 70 of file GUIPostDrawing.h.

Referenced by GNELane::checkMouseOverLane(), GNEViewNet::drawTemporalSplitJunction(), and executePostDrawingTasks().

◆ markedFirstGeometryPoint

const GUIGlObject* GUIPostDrawing::markedFirstGeometryPoint = nullptr

marked first geometry point (used for moving/delete geometry points)

Definition at line 82 of file GUIPostDrawing.h.

Referenced by GNEEdge::drawEdgeShape(), executePostDrawingTasks(), and GNEEdge::setGeometryPointColor().

◆ markedLane

const GUIGlObject* GUIPostDrawing::markedLane = nullptr

marked lane (used in create edge mode, for splitting)

Definition at line 73 of file GUIPostDrawing.h.

Referenced by GNELane::checkMouseOverLane(), and executePostDrawingTasks().

◆ markedNode

const GUIGlObject* GUIPostDrawing::markedNode = nullptr

marked Node (used in create edge mode)

Definition at line 67 of file GUIPostDrawing.h.

Referenced by GNEJunction::drawDottedContoursBubble(), GNEJunction::drawDottedContoursShape(), and executePostDrawingTasks().

◆ markedRoute

const GUIGlObject* GUIPostDrawing::markedRoute = nullptr

marked Route (used in create vehicle mode)

Definition at line 79 of file GUIPostDrawing.h.

Referenced by GNEViewNet::doPaintGL(), GNERoute::drawPartialGL(), GNERoute::drawPartialGL(), and executePostDrawingTasks().

◆ markedSecondGeometryPoint

const GUIGlObject* GUIPostDrawing::markedSecondGeometryPoint = nullptr

marked first geometry point (used for moving/delete geometry points)

Definition at line 85 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 76 of file GUIPostDrawing.h.

Referenced by GNETAZ::drawDottedContours(), and executePostDrawingTasks().

◆ mousePos

◆ myElementsUnderCursor

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

elements under cursor

Definition at line 92 of file GUIPostDrawing.h.

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

◆ myGLObjectsToUpdate

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

GLObjects to update.

Definition at line 89 of file GUIPostDrawing.h.

Referenced by executePostDrawingTasks(), and markGLObjectToUpdate().

◆ myTopElement

const GUIGlObject* GUIPostDrawing::myTopElement = nullptr
protected

top element (used during selecting and deleting)

Definition at line 95 of file GUIPostDrawing.h.

Referenced by addElementUnderCursor(), executePostDrawingTasks(), and isTopElementUnderCursor().

◆ 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: