Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEViewNetHelper::MarkFrontElements Class Reference

class used for group front elements More...

#include <GNEViewNetHelper.h>

Public Member Functions

const std::unordered_set< GNEAttributeCarrier * > & getACs () const
 get hash table with all fronted ACs
 
 MarkFrontElements ()
 constructor
 
void unmarkAll ()
 unmark all ACs
 

Protected Member Functions

void markAC (GNEAttributeCarrier *AC)
 mark AC as drawing front
 
void unmarkAC (GNEAttributeCarrier *AC)
 unmark AC for drawing front
 

Private Member Functions

 MarkFrontElements (const MarkFrontElements &)=delete
 Invalidated copy constructor.
 
MarkFrontElementsoperator= (const MarkFrontElements &)=delete
 Invalidated assignment operator.
 

Private Attributes

std::unordered_set< GNEAttributeCarrier * > myMarkedACs
 hash table with all marked ACs (we use a set to make deletion of massive elements more quickly)
 

Friends

class GNEAttributeCarrier
 only GNEAttributeCarrier have access to mark/unmarkAC
 

Detailed Description

class used for group front elements

Definition at line 305 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ MarkFrontElements() [1/2]

GNEViewNetHelper::MarkFrontElements::MarkFrontElements ( )

constructor

Definition at line 332 of file GNEViewNetHelper.cpp.

◆ MarkFrontElements() [2/2]

GNEViewNetHelper::MarkFrontElements::MarkFrontElements ( const MarkFrontElements )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ getACs()

const std::unordered_set< GNEAttributeCarrier * > & GNEViewNetHelper::MarkFrontElements::getACs ( ) const

get hash table with all fronted ACs

Definition at line 336 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::onCmdClearConnections(), GNEViewNet::onCmdResetConnections(), GNEApplicationWindow::onUpdNeedsFrontElement(), GNEViewNet::updateObjectsInPosition(), and GNEViewNet::updateObjectsInShape().

Here is the caller graph for this function:

◆ markAC()

void GNEViewNetHelper::MarkFrontElements::markAC ( GNEAttributeCarrier AC)
protected

mark AC as drawing front

Definition at line 352 of file GNEViewNetHelper.cpp.

Referenced by GNEAttributeCarrier::markForDrawingFront().

Here is the caller graph for this function:

◆ operator=()

MarkFrontElements & GNEViewNetHelper::MarkFrontElements::operator= ( const MarkFrontElements )
privatedelete

Invalidated assignment operator.

◆ unmarkAC()

void GNEViewNetHelper::MarkFrontElements::unmarkAC ( GNEAttributeCarrier AC)
protected

unmark AC for drawing front

Definition at line 358 of file GNEViewNetHelper.cpp.

Referenced by GNEAttributeCarrier::unmarkForDrawingFront().

Here is the caller graph for this function:

◆ unmarkAll()

void GNEViewNetHelper::MarkFrontElements::unmarkAll ( )

unmark all ACs

Definition at line 342 of file GNEViewNetHelper.cpp.

References GNEAttributeCarrier::unmarkForDrawingFront().

Referenced by GNEAttributesEditorType::onCmdMarkAsFront(), and GNEApplicationWindow::onCmdToggleFrontElement().

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ GNEAttributeCarrier

friend class GNEAttributeCarrier
friend

only GNEAttributeCarrier have access to mark/unmarkAC

Definition at line 308 of file GNEViewNetHelper.h.

Field Documentation

◆ myMarkedACs

std::unordered_set<GNEAttributeCarrier*> GNEViewNetHelper::MarkFrontElements::myMarkedACs
private

hash table with all marked ACs (we use a set to make deletion of massive elements more quickly)

Definition at line 329 of file GNEViewNetHelper.h.


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