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

class used for group inspected elements More...

#include <GNEViewNetHelper.h>

Collaboration diagram for GNEViewNetHelper::InspectedElements:
[legend]

Public Member Functions

 InspectedElements ()
 constructor
 
inspect functions

inspect AC

void inspectAC (GNEAttributeCarrier *AC)
 
void inspectACs (const std::vector< GNEAttributeCarrier * > &ACs)
 inspect multiple ACs
 
void uninspectAC (GNEAttributeCarrier *AC)
 uninspect AC
 
void clearInspectedElements ()
 clear inspected AC
 
get functions

get first inspected AC (needed because the main container is a hash)

GNEAttributeCarriergetFirstAC () const
 
const std::unordered_set< GNEAttributeCarrier * > & getACs () const
 get hash table with all inspected ACs
 
check functions
bool isACInspected (GNEAttributeCarrier *AC) const
 
bool isACInspected (const GNEAttributeCarrier *AC) const
 
bool isInspectingElements () const
 check if we're inspecting at least one element
 
bool isInspectingSingleElement () const
 check if we're inspecting exactly one element
 
bool isInspectingMultipleElements () const
 check if we're inspecting more than one elements
 

Private Member Functions

 InspectedElements (const InspectedElements &)=delete
 Invalidated copy constructor.
 
InspectedElementsoperator= (const InspectedElements &)=delete
 Invalidated assignment operator.
 

Private Attributes

GNEAttributeCarriermyFirstInspectedAC = nullptr
 first inspected element (usually the clicked element)
 
std::unordered_set< GNEAttributeCarrier * > myInspectedACs
 hash table with all inspected ACs (we use a set to make deletion of massive elements more quickly)
 

Detailed Description

class used for group inspected elements

Definition at line 239 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ InspectedElements() [1/2]

GNEViewNetHelper::InspectedElements::InspectedElements ( )

constructor

Definition at line 223 of file GNEViewNetHelper.cpp.

◆ InspectedElements() [2/2]

GNEViewNetHelper::InspectedElements::InspectedElements ( const InspectedElements )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ clearInspectedElements()

void GNEViewNetHelper::InspectedElements::clearInspectedElements ( )

clear inspected AC

Definition at line 268 of file GNEViewNetHelper.cpp.

◆ getACs()

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

get hash table with all inspected ACs

Definition at line 281 of file GNEViewNetHelper.cpp.

Referenced by GNEDemandElement::checkDrawRelatedContour(), and GNEViewNet::redrawPathElementContours().

Here is the caller graph for this function:

◆ getFirstAC()

◆ inspectAC()

void GNEViewNetHelper::InspectedElements::inspectAC ( GNEAttributeCarrier AC)

Definition at line 227 of file GNEViewNetHelper.cpp.

◆ inspectACs()

void GNEViewNetHelper::InspectedElements::inspectACs ( const std::vector< GNEAttributeCarrier * > &  ACs)

inspect multiple ACs

Definition at line 239 of file GNEViewNetHelper.cpp.

Referenced by GNEInspectorFrame::hide(), and GNEInspectorFrame::inspectElements().

Here is the caller graph for this function:

◆ isACInspected() [1/2]

bool GNEViewNetHelper::InspectedElements::isACInspected ( const GNEAttributeCarrier AC) const

Definition at line 299 of file GNEViewNetHelper.cpp.

◆ isACInspected() [2/2]

◆ isInspectingElements()

bool GNEViewNetHelper::InspectedElements::isInspectingElements ( ) const

check if we're inspecting at least one element

Definition at line 312 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::hotkeyDel().

Here is the caller graph for this function:

◆ isInspectingMultipleElements()

bool GNEViewNetHelper::InspectedElements::isInspectingMultipleElements ( ) const

check if we're inspecting more than one elements

Definition at line 324 of file GNEViewNetHelper.cpp.

Referenced by GNEInspectorFrame::refreshInspection().

Here is the caller graph for this function:

◆ isInspectingSingleElement()

bool GNEViewNetHelper::InspectedElements::isInspectingSingleElement ( ) const

check if we're inspecting exactly one element

Definition at line 318 of file GNEViewNetHelper.cpp.

◆ operator=()

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

Invalidated assignment operator.

◆ uninspectAC()

void GNEViewNetHelper::InspectedElements::uninspectAC ( GNEAttributeCarrier AC)

uninspect AC

Definition at line 253 of file GNEViewNetHelper.cpp.

Referenced by GNEJunction::clearWalkingAreas(), GNEJunction::rebuildGNECrossings(), GNEEdge::removeConnection(), GNEDataSet::removeDataIntervalChild(), GNEDataInterval::removeGenericDataChild(), and GNEEdge::removeLane().

Here is the caller graph for this function:

Field Documentation

◆ myFirstInspectedAC

GNEAttributeCarrier* GNEViewNetHelper::InspectedElements::myFirstInspectedAC = nullptr
private

first inspected element (usually the clicked element)

Definition at line 292 of file GNEViewNetHelper.h.

◆ myInspectedACs

std::unordered_set<GNEAttributeCarrier*> GNEViewNetHelper::InspectedElements::myInspectedACs
private

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

Definition at line 295 of file GNEViewNetHelper.h.


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