Eclipse SUMO - Simulation of Urban MObility
LayeredRTree Class Reference

A RT-tree for efficient storing of SUMO's GL-objects in layers. More...

#include <LayeredRTree.h>

Inheritance diagram for LayeredRTree:
[legend]
Collaboration diagram for LayeredRTree:
[legend]

Public Member Functions

void add (const Boundary &p)
 Makes the boundary include the given boundary. More...
 
void add (const Position &p)
 Makes the boundary include the given coordinate. More...
 
void add (double x, double y, double z=0)
 Makes the boundary include the given coordinate. More...
 
void addAdditionalGLObject (GUIGlObject *o)
 Adds an additional object (detector/shape/trigger) for visualisation. More...
 
double distanceTo2D (const Boundary &b) const
 returns the euclidean distance in the x-y-plane More...
 
double distanceTo2D (const Position &p) const
 returns the euclidean distance in the x-y-plane More...
 
void flipY ()
 flips ymin and ymax More...
 
Position getCenter () const
 Returns the center of the boundary. More...
 
double getHeight () const
 Returns the height of the boundary (y-axis) More...
 
double getWidth () const
 Returns the width of the boudary (x-axis) More...
 
double getZRange () const
 Returns the elevation range of the boundary (z-axis) More...
 
Boundarygrow (double by)
 extends the boundary by the given amount More...
 
void growHeight (double by)
 Increases the height of the boundary (y-axis) More...
 
void growWidth (double by)
 Increases the width of the boundary (x-axis) More...
 
void Insert (const float a_min[2], const float a_max[2], GUIGlObject *const &a_dataId)
 Insert entry (delegate to appropriate layer) More...
 
bool isInitialised () const
 check if Boundary is Initialised More...
 
 LayeredRTree ()
 Constructor. More...
 
void moveby (double x, double y, double z=0)
 Moves the boundary by the given amount. More...
 
bool operator!= (const Boundary &b) const
 Comparison operator not equal. More...
 
bool operator== (const Boundary &b) const
 Comparison operator equal. More...
 
void Remove (const float a_min[2], const float a_max[2], GUIGlObject *const &a_dataId)
 Remove entry (delegate to appropriate layer) More...
 
void removeAdditionalGLObject (GUIGlObject *o)
 Removes an additional object (detector/shape/trigger) from being visualised. More...
 
void reset ()
 Resets the boundary. More...
 
int Search (const float a_min[2], const float a_max[2], const GUIVisualizationSettings &c) const
 Find all within search rectangle (searches all layers in order) More...
 
void set (double xmin, double ymin, double xmax, double ymax)
 Sets the boundary to the given values. More...
 
double xmax () const
 Returns maximum x-coordinate. More...
 
double xmin () const
 Returns minimum x-coordinate. More...
 
double ymax () const
 Returns maximum y-coordinate. More...
 
double ymin () const
 Returns minimum y-coordinate. More...
 
double zmax () const
 Returns maximum z-coordinate. More...
 
double zmin () const
 Returns minimum z-coordinate. More...
 
 ~LayeredRTree ()
 Destructor. More...
 
inherited from AbstractPoly

Returns whether the boundary contains the given coordinate

bool around (const Position &p, double offset=0) const
 Returns whether the AbstractPoly the given coordinate. More...
 
bool overlapsWith (const AbstractPoly &poly, double offset=0) const
 Returns whether the boundary overlaps with the given polygon. More...
 
bool partialWithin (const AbstractPoly &poly, double offset=0) const
 Returns whether the boundary is partially within the given polygon. More...
 
bool crosses (const Position &p1, const Position &p2) const
 Returns whether the boundary crosses the given line. More...
 

Protected Attributes

std::vector< SUMORTree * > myLayers
 the layers for drawing More...
 
FXMutex myLock
 A mutex avoiding parallel change and traversal of the tree. More...
 

Private Member Functions

size_t selectLayer (GUIGlObject *o)
 select the appropriate layer for each object More...
 

Private Attributes

std::map< GUIGlObject *, BoundarymyTreeDebug
 Map only used for check that SUMORTree works as expected, only is used if option "gui-testing-debug-gl" is enabled. More...
 
bool myWasInitialised
 Information whether the boundary was initialised. More...
 
double myXmax
 
double myXmin
 The boundaries. More...
 
double myYmax
 
double myYmin
 
double myZmax
 
double myZmin
 

Detailed Description

A RT-tree for efficient storing of SUMO's GL-objects in layers.

This class maintains SUMORTrees for each layer (only 2 at the moment) but provides the same interface as SUMORTree

Definition at line 46 of file LayeredRTree.h.

Constructor & Destructor Documentation

◆ LayeredRTree()

LayeredRTree::LayeredRTree ( )
inline

Constructor.

Definition at line 49 of file LayeredRTree.h.

References myLayers, and SUMORTree::SUMORTree().

◆ ~LayeredRTree()

LayeredRTree::~LayeredRTree ( )
inline

Destructor.

Definition at line 56 of file LayeredRTree.h.

References myLayers.

Member Function Documentation

◆ add() [1/3]

void Boundary::add ( const Boundary p)
inherited

Makes the boundary include the given boundary.

Definition at line 104 of file Boundary.cpp.

References Boundary::add(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), Boundary::ymin(), Boundary::zmax(), and Boundary::zmin().

◆ add() [2/3]

void Boundary::add ( const Position p)
inherited

Makes the boundary include the given coordinate.

Definition at line 98 of file Boundary.cpp.

References Boundary::add(), Position::x(), Position::y(), and Position::z().

◆ add() [3/3]

void Boundary::add ( double  x,
double  y,
double  z = 0 
)
inherited

Makes the boundary include the given coordinate.

Definition at line 77 of file Boundary.cpp.

References Boundary::myWasInitialised, Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, Boundary::myYmin, Boundary::myZmax, and Boundary::myZmin.

Referenced by Boundary::add(), NIVissimConnectionCluster::NodeSubCluster::add(), NIVissimConnectionCluster::add(), GUIParkingArea::addLotEntry(), MSEdge::addSuccessor(), ROEdge::addSuccessor(), GNENet::addZValueInBoundary(), GUISUMOAbstractView::applyGLTransform(), Boundary::Boundary(), GUIDanielPerspectiveChanger::centerTo(), NBNetBuilder::compute(), GNENet::computeAndUpdate(), NIVissimConnection::computeBounding(), NIVissimDisturbance::computeBounding(), GNENet::expandBoundary(), GUIEdge::getBoundary(), MSDevice_BTsender::VehicleInformation::getBoxBoundary(), GNEGeometry::SegmentGeometry::getBoxBoundary(), PositionVector::getBoxBoundary(), GUIBaseVehicle::getCenteringBoundary(), GUIBusStop::getCenteringBoundary(), GUIContainer::getCenteringBoundary(), GUILane::getCenteringBoundary(), GUIPerson::getCenteringBoundary(), GUITrafficLightLogicWrapper::getCenteringBoundary(), GUIMEVehicle::getCenteringBoundary(), GNEPerson::getCenteringBoundary(), GNEPersonTrip::getCenteringBoundary(), GNERide::getCenteringBoundary(), GNERoute::getCenteringBoundary(), GNEVehicle::getCenteringBoundary(), GNEWalk::getCenteringBoundary(), GUIPointOfInterest::getCenteringBoundary(), GUIPolygon::getCenteringBoundary(), RORouteHandler::getClosestEdge(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUICalibrator::GUICalibrator(), GUILaneSpeedTrigger::GUILaneSpeedTrigger(), GUITriggeredRerouter::GUITriggeredRerouter(), GUITriggeredRerouter::GUITriggeredRerouterEdge::GUITriggeredRerouterEdge(), GUINet::initGUIStructures(), GNENet::initJunctionsAndEdges(), NBHeightMapper::loadShapeFile(), NBHeightMapper::loadTiff(), NIImporter_OpenDrive::myCharacters(), GUITriggeredRerouter::myEndElement(), GNEAdditionalHandler::myEndElement(), GUIE3Collector::MyWrapper::MyWrapper(), GUIInductLoop::MyWrapper::MyWrapper(), GUIInstantInductLoop::MyWrapper::MyWrapper(), GUIMEInductLoop::MyWrapper::MyWrapper(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNEViewNetHelper::SelectingArea::processEdgeRectangleSelection(), GNEViewNetHelper::SelectingArea::processRectangleSelection(), NIVissimConnectionCluster::recomputeBoundary(), ROEdge::ROEdge(), MSEdge::setJunctions(), GUIDanielPerspectiveChanger::setViewport(), GNEParkingSpace::updateCenteringBoundary(), GNEPOI::updateCenteringBoundary(), GNEStoppingPlace::updateCenteringBoundary(), GNEEdge::updateCenteringBoundary(), and GeoConvHelper::x2cartesian().

◆ addAdditionalGLObject()

◆ around()

bool Boundary::around ( const Position p,
double  offset = 0 
) const
virtualinherited

Returns whether the AbstractPoly the given coordinate.

Implements AbstractPoly.

Definition at line 171 of file Boundary.cpp.

References Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, Boundary::myYmin, Boundary::myZmax, Boundary::myZmin, Position::x(), Position::y(), and Position::z().

Referenced by PCPolyContainer::add(), NIVissimConnectionCluster::around(), NBHeightMapper::getZ(), and NIVissimConnectionCluster::recheckEdges().

Here is the caller graph for this function:

◆ crosses()

bool Boundary::crosses ( const Position p1,
const Position p2 
) const
virtualinherited

Returns whether the boundary crosses the given line.

Implements AbstractPoly.

Definition at line 201 of file Boundary.cpp.

References PositionVector::intersects(), Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, and Boundary::myYmin.

◆ distanceTo2D() [1/2]

double Boundary::distanceTo2D ( const Boundary b) const
inherited

returns the euclidean distance in the x-y-plane

Definition at line 255 of file Boundary.cpp.

References Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, and Boundary::myYmin.

◆ distanceTo2D() [2/2]

double Boundary::distanceTo2D ( const Position p) const
inherited

returns the euclidean distance in the x-y-plane

Definition at line 221 of file Boundary.cpp.

References Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, Boundary::myYmin, Position::x(), and Position::y().

Referenced by libsumo::Helper::convertCartesianToRoadMap(), MSEdge::getDistanceTo(), and ROEdge::getDistanceTo().

Here is the caller graph for this function:

◆ flipY()

void Boundary::flipY ( )
inherited

flips ymin and ymax

Definition at line 321 of file Boundary.cpp.

References Boundary::myYmax, and Boundary::myYmin.

Referenced by GeoConvHelper::computeFinal().

Here is the caller graph for this function:

◆ getCenter()

◆ getHeight()

double Boundary::getHeight ( ) const
inherited

◆ getWidth()

◆ getZRange()

double Boundary::getZRange ( ) const
inherited

Returns the elevation range of the boundary (z-axis)

Definition at line 165 of file Boundary.cpp.

References Boundary::myZmax, and Boundary::myZmin.

Referenced by NBNetBuilder::compute().

Here is the caller graph for this function:

◆ grow()

Boundary & Boundary::grow ( double  by)
inherited

extends the boundary by the given amount

Returns
a reference to the instance for further use

Definition at line 299 of file Boundary.cpp.

References Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, and Boundary::myYmin.

Referenced by GUIParkingArea::addLotEntry(), GUIDanielPerspectiveChanger::centerTo(), NBEdgeCont::checkOverlap(), libsumo::Helper::collectObjectsInRange(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSLane::fill(), GUIEdge::getBoundary(), GUIBaseVehicle::getCenteringBoundary(), GUIBusStop::getCenteringBoundary(), GUICalibrator::getCenteringBoundary(), GUIChargingStation::getCenteringBoundary(), GUIContainer::getCenteringBoundary(), GUIContainerStop::getCenteringBoundary(), GUIE2Collector::MyWrapper::getCenteringBoundary(), GUIE3Collector::MyWrapper::getCenteringBoundary(), GUIEdge::getCenteringBoundary(), GUIInductLoop::MyWrapper::getCenteringBoundary(), GUIInstantInductLoop::MyWrapper::getCenteringBoundary(), GUIJunctionWrapper::getCenteringBoundary(), GUILane::getCenteringBoundary(), GUILaneSpeedTrigger::getCenteringBoundary(), GUIOverheadWire::getCenteringBoundary(), GUIOverheadWireClamp::getCenteringBoundary(), GUIPerson::getCenteringBoundary(), GUITrafficLightLogicWrapper::getCenteringBoundary(), GUITriggeredRerouter::getCenteringBoundary(), GUITriggeredRerouter::GUITriggeredRerouterEdge::getCenteringBoundary(), GUIMEInductLoop::MyWrapper::getCenteringBoundary(), GUIMEVehicle::getCenteringBoundary(), GNETAZ::getCenteringBoundary(), GNEPerson::getCenteringBoundary(), GNEPersonStop::getCenteringBoundary(), GNEStop::getCenteringBoundary(), GNEVehicle::getCenteringBoundary(), GUIPointOfInterest::getCenteringBoundary(), GUIPolygon::getCenteringBoundary(), RORouteHandler::getClosestEdge(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIParkingArea::GUIParkingArea(), NBEdgeCont::ignoreFilterMatch(), GUINet::initGUIStructures(), NBEdgeCont::joinTramEdges(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNEAccess::updateCenteringBoundary(), GNECalibrator::updateCenteringBoundary(), GNEDetector::updateCenteringBoundary(), GNEDetectorE3::updateCenteringBoundary(), GNEParkingSpace::updateCenteringBoundary(), GNEPOI::updateCenteringBoundary(), GNEPoly::updateCenteringBoundary(), GNERerouter::updateCenteringBoundary(), GNERouteProbe::updateCenteringBoundary(), GNEStoppingPlace::updateCenteringBoundary(), GNEVaporizer::updateCenteringBoundary(), GNEVariableSpeedSign::updateCenteringBoundary(), GNEConnection::updateCenteringBoundary(), GNECrossing::updateCenteringBoundary(), GNEEdge::updateCenteringBoundary(), GNEInternalLane::updateCenteringBoundary(), GNEJunction::updateCenteringBoundary(), GNERerouterSymbol::updateGeometry(), and GNEVariableSpeedSignSymbol::updateGeometry().

◆ growHeight()

void Boundary::growHeight ( double  by)
inherited

Increases the height of the boundary (y-axis)

Definition at line 315 of file Boundary.cpp.

References Boundary::myYmax, and Boundary::myYmin.

Referenced by GUIPointOfInterest::getCenteringBoundary(), GUIPerspectiveChanger::patchedViewPort(), and GUIDanielPerspectiveChanger::setViewport().

Here is the caller graph for this function:

◆ growWidth()

void Boundary::growWidth ( double  by)
inherited

Increases the width of the boundary (x-axis)

Definition at line 308 of file Boundary.cpp.

References Boundary::myXmax, and Boundary::myXmin.

Referenced by GUIPointOfInterest::getCenteringBoundary(), GUIPerspectiveChanger::patchedViewPort(), GUIDanielPerspectiveChanger::setViewport(), and GNEStoppingPlace::updateCenteringBoundary().

Here is the caller graph for this function:

◆ Insert()

void LayeredRTree::Insert ( const float  a_min[2],
const float  a_max[2],
GUIGlObject *const &  a_dataId 
)
inlinevirtual

Insert entry (delegate to appropriate layer)

Parameters
a_minMin of bounding rect
a_maxMax of bounding rect
a_dataIdPositive Id of data. Maybe zero, but negative numbers not allowed.

Reimplemented from SUMORTree.

Definition at line 69 of file LayeredRTree.h.

References myLayers, and selectLayer().

Referenced by GUINet::initGUIStructures().

Here is the caller graph for this function:

◆ isInitialised()

bool Boundary::isInitialised ( ) const
inherited

◆ moveby()

void Boundary::moveby ( double  x,
double  y,
double  z = 0 
)
inherited

Moves the boundary by the given amount.

Definition at line 367 of file Boundary.cpp.

References Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, Boundary::myYmin, Boundary::myZmax, and Boundary::myZmin.

Referenced by GUIDanielPerspectiveChanger::centerTo(), GUIDanielPerspectiveChanger::move(), GeoConvHelper::moveConvertedBy(), and GUIDanielPerspectiveChanger::onKeyPress().

Here is the caller graph for this function:

◆ operator!=()

bool Boundary::operator!= ( const Boundary b) const
inherited

Comparison operator not equal.

Definition at line 352 of file Boundary.cpp.

◆ operator==()

bool Boundary::operator== ( const Boundary b) const
inherited

◆ overlapsWith()

bool Boundary::overlapsWith ( const AbstractPoly poly,
double  offset = 0 
) const
virtualinherited

Returns whether the boundary overlaps with the given polygon.

Implements AbstractPoly.

Definition at line 180 of file Boundary.cpp.

References AbstractPoly::crosses(), Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, Boundary::myYmin, Boundary::partialWithin(), and AbstractPoly::partialWithin().

Referenced by NBEdgeCont::checkOverlap(), NIVissimBoundedClusterObject::crosses(), NBEdgeCont::ignoreFilterMatch(), NIVissimConnectionCluster::NodeSubCluster::overlapsWith(), and NIVissimConnectionCluster::overlapsWith().

Here is the caller graph for this function:

◆ partialWithin()

bool Boundary::partialWithin ( const AbstractPoly poly,
double  offset = 0 
) const
virtualinherited

Returns whether the boundary is partially within the given polygon.

Implements AbstractPoly.

Definition at line 289 of file Boundary.cpp.

References AbstractPoly::around(), Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, and Boundary::myYmin.

Referenced by PCPolyContainer::add(), and Boundary::overlapsWith().

Here is the caller graph for this function:

◆ Remove()

void LayeredRTree::Remove ( const float  a_min[2],
const float  a_max[2],
GUIGlObject *const &  a_dataId 
)
inlinevirtual

Remove entry (delegate to appropriate layer)

Parameters
a_minMin of bounding rect
a_maxMax of bounding rect
a_dataIdPositive Id of data. Maybe zero, but negative numbers not allowed.

Reimplemented from SUMORTree.

Definition at line 79 of file LayeredRTree.h.

References myLayers, and selectLayer().

◆ removeAdditionalGLObject()

◆ reset()

◆ Search()

int LayeredRTree::Search ( const float  a_min[2],
const float  a_max[2],
const GUIVisualizationSettings c 
) const
inlinevirtual

Find all within search rectangle (searches all layers in order)

Parameters
a_minMin of search bounding rect
a_maxMax of search bounding rect
a_searchResultSearch result array. Caller should set grow size. Function will reset, not append to array.
a_resultCallbackCallback function to return result. Callback should return 'true' to continue searching
a_contextUser context to pass as parameter to a_resultCallback
Returns
Returns the number of entries found

Reimplemented from SUMORTree.

Definition at line 91 of file LayeredRTree.h.

References myLayers.

◆ selectLayer()

size_t LayeredRTree::selectLayer ( GUIGlObject o)
inlineprivate

select the appropriate layer for each object

Definition at line 107 of file LayeredRTree.h.

References GUIGlObject::getType(), GLO_EDGE, GLO_LANE, GLO_PERSON, GLO_POI, and GLO_VEHICLE.

Referenced by Insert(), and Remove().

Here is the caller graph for this function:

◆ set()

void Boundary::set ( double  xmin,
double  ymin,
double  xmax,
double  ymax 
)
inherited

Sets the boundary to the given values.

Definition at line 358 of file Boundary.cpp.

References Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, Boundary::myYmin, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().

◆ xmax()

double Boundary::xmax ( ) const
inherited

Returns maximum x-coordinate.

Definition at line 123 of file Boundary.cpp.

References Boundary::myXmax.

Referenced by Boundary::add(), libsumo::Polygon::add(), NIVissimConnectionCluster::add(), SUMORTree::addAdditionalGLObject(), NBHeightMapper::addTriangle(), GUISUMOAbstractView::applyGLTransform(), NIVissimConnectionCluster::around(), NIVissimConnection::buildNodeClusters(), GUIDanielPerspectiveChanger::changeCanvasSizeLeft(), libsumo::Helper::collectObjectsInRange(), NBNetBuilder::compute(), NIVissimDisturbance::computeBounding(), NIVissimBoundedClusterObject::crosses(), GeomHelper::crossPoint(), GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), GLHelper::drawBoundary(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSLane::fill(), NBPTStopCont::findAccessEdgesForRailStops(), NIVissimConnection::getBoundingBox(), RORouteHandler::getClosestEdge(), RORouteHandler::getLaneTree(), LIBSUMO_NAMESPACE::Simulation::getNetBoundary(), NIVissimConnectionCluster::getPositionForEdge(), LIBSUMO_NAMESPACE::Junction::getTree(), libsumo::Polygon::getTree(), NBHeightMapper::getZ(), GUINet::initGUIStructures(), NBEdgeCont::joinTramEdges(), main(), GUISUMOAbstractView::makeSnapshot(), GNEAdditionalHandler::myEndElement(), NIVissimConnectionCluster::NIVissimConnectionCluster(), NIVissimConnectionCluster::NodeSubCluster::overlapsWith(), NIVissimConnectionCluster::overlapsWith(), GUISUMOAbstractView::paintGLGrid(), TraCIServerAPI_GUI::processGet(), NIVissimConnectionCluster::recheckEdges(), NIVissimConnectionCluster::recomputeBoundary(), libsumo::Polygon::remove(), SUMORTree::removeAdditionalGLObject(), Boundary::set(), GNEVehicle::setColor(), GUIBaseVehicle::setFunctionalColor(), GNEPoly::simplifyShape(), NWWriter_OpenDrive::writeNetwork(), NWWriter_DlrNavteq::writeNodesUnsplitted(), and GUIDanielPerspectiveChanger::zoom().

Here is the caller graph for this function:

◆ xmin()

double Boundary::xmin ( ) const
inherited

Returns minimum x-coordinate.

Definition at line 117 of file Boundary.cpp.

References Boundary::myXmin.

Referenced by Boundary::add(), libsumo::Polygon::add(), NIVissimConnectionCluster::add(), SUMORTree::addAdditionalGLObject(), NBHeightMapper::addTriangle(), GUISUMOAbstractView::applyGLTransform(), NIVissimConnectionCluster::around(), NIVissimConnection::buildNodeClusters(), GUIDanielPerspectiveChanger::changeCanvasSizeLeft(), libsumo::Helper::collectObjectsInRange(), NBNetBuilder::compute(), NIVissimDisturbance::computeBounding(), NIVissimBoundedClusterObject::crosses(), GeomHelper::crossPoint(), GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), GLHelper::drawBoundary(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSLane::fill(), NBPTStopCont::findAccessEdgesForRailStops(), NIVissimConnection::getBoundingBox(), RORouteHandler::getClosestEdge(), RORouteHandler::getLaneTree(), LIBSUMO_NAMESPACE::Simulation::getNetBoundary(), NIVissimConnectionCluster::getPositionForEdge(), LIBSUMO_NAMESPACE::Junction::getTree(), libsumo::Polygon::getTree(), NBHeightMapper::getZ(), GUINet::initGUIStructures(), NBEdgeCont::joinTramEdges(), main(), GUISUMOAbstractView::makeSnapshot(), NBNetBuilder::moveToOrigin(), GNEAdditionalHandler::myEndElement(), NIVissimConnectionCluster::NIVissimConnectionCluster(), NIVissimConnectionCluster::NodeSubCluster::overlapsWith(), NIVissimConnectionCluster::overlapsWith(), GUISUMOAbstractView::paintGLGrid(), TraCIServerAPI_GUI::processGet(), NIVissimConnectionCluster::recheckEdges(), NIVissimConnectionCluster::recomputeBoundary(), libsumo::Polygon::remove(), SUMORTree::removeAdditionalGLObject(), GUISUMOAbstractView::screenPos2NetPos(), Boundary::set(), GNEVehicle::setColor(), GUIBaseVehicle::setFunctionalColor(), GNEPoly::simplifyShape(), NWWriter_OpenDrive::writeNetwork(), NWWriter_DlrNavteq::writeNodesUnsplitted(), and GUIDanielPerspectiveChanger::zoom().

◆ ymax()

double Boundary::ymax ( ) const
inherited

◆ ymin()

double Boundary::ymin ( ) const
inherited

Returns minimum y-coordinate.

Definition at line 129 of file Boundary.cpp.

References Boundary::myYmin.

Referenced by Boundary::add(), libsumo::Polygon::add(), SUMORTree::addAdditionalGLObject(), NBHeightMapper::addTriangle(), GUISUMOAbstractView::applyGLTransform(), GUIDanielPerspectiveChanger::changeCanvasSizeLeft(), libsumo::Helper::collectObjectsInRange(), NBNetBuilder::compute(), GeomHelper::crossPoint(), GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), GLHelper::drawBoundary(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSLane::fill(), NBPTStopCont::findAccessEdgesForRailStops(), RORouteHandler::getClosestEdge(), RORouteHandler::getLaneTree(), LIBSUMO_NAMESPACE::Simulation::getNetBoundary(), LIBSUMO_NAMESPACE::Junction::getTree(), libsumo::Polygon::getTree(), GUINet::initGUIStructures(), NBEdgeCont::joinTramEdges(), main(), GUISUMOAbstractView::makeSnapshot(), NBNetBuilder::moveToOrigin(), GNEAdditionalHandler::myEndElement(), GUISUMOAbstractView::paintGLGrid(), TraCIServerAPI_GUI::processGet(), libsumo::Polygon::remove(), SUMORTree::removeAdditionalGLObject(), GUISUMOAbstractView::screenPos2NetPos(), Boundary::set(), GNEVehicle::setColor(), GUIBaseVehicle::setFunctionalColor(), GNEPoly::simplifyShape(), NWWriter_OpenDrive::writeNetwork(), NWWriter_DlrNavteq::writeNodesUnsplitted(), and GUIDanielPerspectiveChanger::zoom().

Here is the caller graph for this function:

◆ zmax()

double Boundary::zmax ( ) const
inherited

Returns maximum z-coordinate.

Definition at line 147 of file Boundary.cpp.

References Boundary::myZmax.

Referenced by Boundary::add(), and LIBSUMO_NAMESPACE::Simulation::getNetBoundary().

Here is the caller graph for this function:

◆ zmin()

double Boundary::zmin ( ) const
inherited

Returns minimum z-coordinate.

Definition at line 141 of file Boundary.cpp.

References Boundary::myZmin.

Referenced by Boundary::add(), and LIBSUMO_NAMESPACE::Simulation::getNetBoundary().

Here is the caller graph for this function:

Field Documentation

◆ myLayers

std::vector<SUMORTree*> LayeredRTree::myLayers
protected

the layers for drawing

Definition at line 102 of file LayeredRTree.h.

Referenced by Insert(), LayeredRTree(), Remove(), Search(), and ~LayeredRTree().

◆ myLock

FXMutex SUMORTree::myLock
mutableprotectedinherited

A mutex avoiding parallel change and traversal of the tree.

Definition at line 186 of file SUMORTree.h.

Referenced by SUMORTree::addAdditionalGLObject(), SUMORTree::Insert(), SUMORTree::Remove(), SUMORTree::removeAdditionalGLObject(), SUMORTree::Search(), and SUMORTree::~SUMORTree().

◆ myTreeDebug

std::map<GUIGlObject*, Boundary> SUMORTree::myTreeDebug
privateinherited

Map only used for check that SUMORTree works as expected, only is used if option "gui-testing-debug-gl" is enabled.

Note
Warning: DO NOT USE in release mode and use it in debug mode carefully, due it produces a slowdown.

Definition at line 192 of file SUMORTree.h.

Referenced by SUMORTree::addAdditionalGLObject(), SUMORTree::removeAdditionalGLObject(), and SUMORTree::~SUMORTree().

◆ myWasInitialised

bool Boundary::myWasInitialised
privateinherited

Information whether the boundary was initialised.

Definition at line 153 of file Boundary.h.

Referenced by Boundary::add(), Boundary::isInitialised(), Boundary::operator==(), and Boundary::reset().

◆ myXmax

◆ myXmin

◆ myYmax

◆ myYmin

◆ myZmax

◆ myZmin


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