![]() |
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.
|
privatedelete |
Invalidated copy constructor.
| void GNEViewNetHelper::InspectedElements::clearInspectedElements | ( | ) |
clear inspected AC
Definition at line 268 of file GNEViewNetHelper.cpp.
| 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().
| GNEAttributeCarrier * GNEViewNetHelper::InspectedElements::getFirstAC | ( | ) | const |
Definition at line 275 of file GNEViewNetHelper.cpp.
Referenced by GNEAdditional::checkDrawFromContour(), GNEJunction::checkDrawFromContour(), GNEAdditional::checkDrawToContour(), GNEJunction::checkDrawToContour(), GNEStop::getColor(), GNEViewNet::hotkeyDel(), GNEViewNet::onCmdClearConnections(), GNEViewNet::onCmdResetConnections(), GNEApplicationWindow::onCmdSetFrontElement(), GNEViewNet::onCmdToggleLockContainer(), GNEViewNet::onCmdToggleLockPerson(), and GNEViewNet::openObjectDialogAtCursor().
| void GNEViewNetHelper::InspectedElements::inspectAC | ( | GNEAttributeCarrier * | AC | ) |
Definition at line 227 of file GNEViewNetHelper.cpp.
| 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().
| bool GNEViewNetHelper::InspectedElements::isACInspected | ( | const GNEAttributeCarrier * | AC | ) | const |
Definition at line 299 of file GNEViewNetHelper.cpp.
| bool GNEViewNetHelper::InspectedElements::isACInspected | ( | GNEAttributeCarrier * | AC | ) | const |
Definition at line 287 of file GNEViewNetHelper.cpp.
Referenced by GNEAttributeCarrier::checkDrawInspectContour(), GNEStop::drawIndex(), GNEVehicle::drawJunctionPartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GNEAdditional::drawParentChildLines(), 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.
Referenced by GNEViewNet::hotkeyDel().
| 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().
| bool GNEViewNetHelper::InspectedElements::isInspectingSingleElement | ( | ) | const |
check if we're inspecting exactly one element
Definition at line 318 of file GNEViewNetHelper.cpp.
|
privatedelete |
Invalidated assignment operator.
| 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().
|
private |
first inspected element (usually the clicked element)
Definition at line 292 of file GNEViewNetHelper.h.
|
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.