![]() |
Eclipse SUMO - Simulation of Urban MObility
|
class used for group inspected elements More...
#include <GNEViewNetHelper.h>
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) | |
| GNEAttributeCarrier * | getFirstAC () 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. | |
| InspectedElements & | operator= (const InspectedElements &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| GNEAttributeCarrier * | myFirstInspectedAC = 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) | |
class used for group inspected elements
Definition at line 239 of file GNEViewNetHelper.h.
| GNEViewNetHelper::InspectedElements::InspectedElements | ( | ) |
constructor
Definition at line 223 of file GNEViewNetHelper.cpp.
Referenced by InspectedElements(), and operator=().
|
privatedelete |
Invalidated copy constructor.
References InspectedElements().
| void GNEViewNetHelper::InspectedElements::clearInspectedElements | ( | ) |
clear inspected AC
Definition at line 268 of file GNEViewNetHelper.cpp.
References myFirstInspectedAC, and myInspectedACs.
| const std::unordered_set< GNEAttributeCarrier * > & GNEViewNetHelper::InspectedElements::getACs | ( | ) | const |
get hash table with all inspected ACs
Definition at line 281 of file GNEViewNetHelper.cpp.
References myInspectedACs.
| GNEAttributeCarrier * GNEViewNetHelper::InspectedElements::getFirstAC | ( | ) | const |
Definition at line 275 of file GNEViewNetHelper.cpp.
References myFirstInspectedAC.
| void GNEViewNetHelper::InspectedElements::inspectAC | ( | GNEAttributeCarrier * | AC | ) |
Definition at line 227 of file GNEViewNetHelper.cpp.
References myFirstInspectedAC, and myInspectedACs.
| void GNEViewNetHelper::InspectedElements::inspectACs | ( | const std::vector< GNEAttributeCarrier * > & | ACs | ) |
inspect multiple ACs
Definition at line 239 of file GNEViewNetHelper.cpp.
References myFirstInspectedAC, and myInspectedACs.
| bool GNEViewNetHelper::InspectedElements::isACInspected | ( | const GNEAttributeCarrier * | AC | ) | const |
Definition at line 299 of file GNEViewNetHelper.cpp.
References myFirstInspectedAC, and myInspectedACs.
| bool GNEViewNetHelper::InspectedElements::isACInspected | ( | GNEAttributeCarrier * | AC | ) | const |
Definition at line 287 of file GNEViewNetHelper.cpp.
References myFirstInspectedAC, and myInspectedACs.
Referenced by GNERouteHandler::transformToContainer(), GNERouteHandler::transformToContainerFlow(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToFlowJunctions(), GNERouteHandler::transformToFlowTAZs(), GNERouteHandler::transformToPerson(), GNERouteHandler::transformToPersonFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), GNERouteHandler::transformToTripJunctions(), GNERouteHandler::transformToTripTAZs(), and GNERouteHandler::transformToVehicle().
| bool GNEViewNetHelper::InspectedElements::isInspectingElements | ( | ) | const |
check if we're inspecting at least one element
Definition at line 312 of file GNEViewNetHelper.cpp.
References myInspectedACs.
| bool GNEViewNetHelper::InspectedElements::isInspectingMultipleElements | ( | ) | const |
check if we're inspecting more than one elements
Definition at line 324 of file GNEViewNetHelper.cpp.
References myInspectedACs.
| bool GNEViewNetHelper::InspectedElements::isInspectingSingleElement | ( | ) | const |
check if we're inspecting exactly one element
Definition at line 318 of file GNEViewNetHelper.cpp.
References myInspectedACs.
|
privatedelete |
Invalidated assignment operator.
References InspectedElements().
| void GNEViewNetHelper::InspectedElements::uninspectAC | ( | GNEAttributeCarrier * | AC | ) |
uninspect AC
Definition at line 253 of file GNEViewNetHelper.cpp.
References myFirstInspectedAC, and myInspectedACs.
|
private |
first inspected element (usually the clicked element)
Definition at line 292 of file GNEViewNetHelper.h.
Referenced by clearInspectedElements(), getFirstAC(), inspectAC(), inspectACs(), isACInspected(), isACInspected(), and uninspectAC().
|
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.
Referenced by clearInspectedElements(), getACs(), inspectAC(), inspectACs(), isACInspected(), isACInspected(), isInspectingElements(), isInspectingMultipleElements(), isInspectingSingleElement(), and uninspectAC().