![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A RT-tree for efficient storing of SUMO's GL-objects. More...
#include <SUMORTree.h>
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... | |
Boundary & | grow (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... | |
virtual void | Insert (const float a_min[2], const float a_max[2], GUIGlObject *const &a_dataId) |
Insert entry. More... | |
bool | isInitialised () const |
check if Boundary is Initialised 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... | |
virtual void | Remove (const float a_min[2], const float a_max[2], GUIGlObject *const &a_dataId) |
Remove entry. More... | |
void | removeAdditionalGLObject (GUIGlObject *o) |
Removes an additional object (detector/shape/trigger) from being visualised. More... | |
void | reset () |
Resets the boundary. More... | |
virtual int | Search (const float a_min[2], const float a_max[2], const GUIVisualizationSettings &c) const |
Find all within search rectangle. More... | |
void | set (double xmin, double ymin, double xmax, double ymax) |
Sets the boundary to the given values. More... | |
SUMORTree () | |
Constructor. 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... | |
virtual | ~SUMORTree () |
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 | |
FXMutex | myLock |
A mutex avoiding parallel change and traversal of the tree. More... | |
Private Attributes | |
std::map< GUIGlObject *, Boundary > | myTreeDebug |
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 |
A RT-tree for efficient storing of SUMO's GL-objects.
This class specialises the used RT-tree implementation from "rttree.h" and extends it by a mutex for avoiding parallel change and traversal of the tree.
Definition at line 69 of file SUMORTree.h.
|
inline |
|
inlinevirtual |
Destructor.
Definition at line 78 of file SUMORTree.h.
References myLock, myTreeDebug, toString(), WRITE_ERROR, and WRITE_GLDEBUG.
|
inherited |
Makes the boundary include the given boundary.
Definition at line 106 of file Boundary.cpp.
References Boundary::add(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), Boundary::ymin(), Boundary::zmax(), and Boundary::zmin().
|
inherited |
Makes the boundary include the given coordinate.
Definition at line 100 of file Boundary.cpp.
References Boundary::add(), Position::x(), Position::y(), and Position::z().
|
inherited |
Makes the boundary include the given coordinate.
Definition at line 79 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(), ROEdge::addSuccessor(), MSEdge::addSuccessor(), Boundary::Boundary(), GUIDanielPerspectiveChanger::centerTo(), NBNetBuilder::compute(), GNENet::computeAndUpdate(), NIVissimDisturbance::computeBounding(), NIVissimConnection::computeBounding(), GUIEdge::getBoundary(), PositionVector::getBoxBoundary(), MSDevice_BTsender::VehicleInformation::getBoxBoundary(), GNEDetectorE3::getCenteringBoundary(), GNEVariableSpeedSign::getCenteringBoundary(), GNERerouter::getCenteringBoundary(), GUITrafficLightLogicWrapper::getCenteringBoundary(), GUIPolygon::getCenteringBoundary(), GUIPerson::getCenteringBoundary(), GUIContainer::getCenteringBoundary(), GUIPointOfInterest::getCenteringBoundary(), GUIBusStop::getCenteringBoundary(), GNERide::getCenteringBoundary(), GNEPersonTrip::getCenteringBoundary(), GNEWalk::getCenteringBoundary(), GUIBaseVehicle::getCenteringBoundary(), GNERoute::getCenteringBoundary(), GNEEdge::getCenteringBoundary(), GUILane::getCenteringBoundary(), GNEPerson::getCenteringBoundary(), GNEVehicle::getCenteringBoundary(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUICalibrator::GUICalibrator(), GUILaneSpeedTrigger::GUILaneSpeedTrigger(), GUITriggeredRerouter::GUITriggeredRerouter(), GUITriggeredRerouter::GUITriggeredRerouterEdge::GUITriggeredRerouterEdge(), MSPModel_Remote::handleShape(), GUINet::initGUIStructures(), GNENet::initJunctionsAndEdges(), NBHeightMapper::loadShapeFile(), NBHeightMapper::loadTiff(), GNEViewNet::mergeJunctions(), NIImporter_OpenDrive::myCharacters(), GUITriggeredRerouter::myEndElement(), GNEAdditionalHandler::myEndElement(), GUIMEInductLoop::MyWrapper::MyWrapper(), GUIInstantInductLoop::MyWrapper::MyWrapper(), GUIE3Collector::MyWrapper::MyWrapper(), GUIInductLoop::MyWrapper::MyWrapper(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), RORouteHandler::parseGeoEdges(), GNEViewNetHelper::SelectingArea::processEdgeRectangleSelection(), GNEViewNetHelper::SelectingArea::processRectangleSelection(), NIVissimConnectionCluster::recomputeBoundary(), GNENet::registerEdge(), GNENet::registerJunction(), ROEdge::ROEdge(), MSEdge::setJunctions(), GUIDanielPerspectiveChanger::setViewport(), and GeoConvHelper::x2cartesian().
|
inline |
Adds an additional object (detector/shape/trigger) for visualisation.
[in] | o | The object to add |
Definition at line 127 of file SUMORTree.h.
References GUIGlObject::getCenteringBoundary(), GUIGlObject::getFullName(), Boundary::getHeight(), GUIGlObject::getMicrosimID(), Boundary::getWidth(), Insert(), myLock, myTreeDebug, toString(), WRITE_GLDEBUG, MsgHandler::writeDebugGLMessages(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by GNENet::addGLObjectIntoGrid(), GUIShapeContainer::addPOI(), GUIShapeContainer::addPolygon(), GNENet::addPolygonForEditShapes(), GNETLSEditorFrame::buildIinternalLanes(), GNENet::computeAndUpdate(), GUINet::createTLWrapper(), GUITriggeredRerouter::GUITriggeredRerouter(), GUINet::initGUIStructures(), GNENet::insertAdditional(), GNENet::insertDemandElement(), GNENet::insertShape(), GUIShapeContainer::movePOI(), GUIShapeContainer::polygonDynamicsUpdate(), GNENet::registerEdge(), GNENet::registerJunction(), and GUIShapeContainer::reshapePolygon().
|
virtualinherited |
Returns whether the AbstractPoly the given coordinate.
Implements AbstractPoly.
Definition at line 173 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().
Returns whether the boundary crosses the given line.
Implements AbstractPoly.
Definition at line 203 of file Boundary.cpp.
References PositionVector::intersects(), Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, and Boundary::myYmin.
|
inherited |
returns the euclidean distance in the x-y-plane
Definition at line 257 of file Boundary.cpp.
References Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, and Boundary::myYmin.
|
inherited |
returns the euclidean distance in the x-y-plane
Definition at line 223 of file Boundary.cpp.
References Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, Boundary::myYmin, Position::x(), and Position::y().
Referenced by libsumo::Helper::convertCartesianToRoadMap(), ROEdge::getDistanceTo(), and MSEdge::getDistanceTo().
|
inherited |
flips ymin and ymax
Definition at line 323 of file Boundary.cpp.
References Boundary::myYmax, and Boundary::myYmin.
Referenced by GeoConvHelper::computeFinal().
|
inherited |
Returns the center of the boundary.
Definition at line 113 of file Boundary.cpp.
References Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, Boundary::myYmin, Boundary::myZmax, and Boundary::myZmin.
Referenced by GUISUMOAbstractView::applyGLTransform(), GUISUMOAbstractView::centerTo(), GUIDanielPerspectiveChanger::getXPos(), GUIDanielPerspectiveChanger::getYPos(), NIVissimConnectionCluster::liesOnSameEdgesEnd(), GUISUMOAbstractView::screenPos2NetPos(), GNEVehicle::setColor(), GUIBaseVehicle::setFunctionalColor(), and GUIDanielPerspectiveChanger::zoom().
|
inherited |
Returns the height of the boundary (y-axis)
Definition at line 161 of file Boundary.cpp.
References Boundary::myYmax, and Boundary::myYmin.
Referenced by addAdditionalGLObject(), GUISUMOAbstractView::applyGLTransform(), GUIPolygon::checkDraw(), libsumo::Helper::convertCartesianToRoadMap(), GNETAZ::drawGL(), GUISUMOAbstractView::getGridHeight(), GUIJunctionWrapper::GUIJunctionWrapper(), GUINet::initGUIStructures(), GNENet::initJunctionsAndEdges(), GUIDanielPerspectiveChanger::onKeyPress(), GUIPerspectiveChanger::patchedViewPort(), removeAdditionalGLObject(), and GUISUMOAbstractView::screenPos2NetPos().
|
inherited |
Returns the width of the boudary (x-axis)
Definition at line 155 of file Boundary.cpp.
References Boundary::myXmax, and Boundary::myXmin.
Referenced by addAdditionalGLObject(), GUISUMOAbstractView::applyGLTransform(), GUIPolygon::checkDraw(), libsumo::Helper::convertCartesianToRoadMap(), GNETAZ::drawGL(), GUISUMOAbstractView::getGridWidth(), GUIDanielPerspectiveChanger::getZoom(), GUIDanielPerspectiveChanger::getZPos(), GUIJunctionWrapper::GUIJunctionWrapper(), GUINet::initGUIStructures(), GNENet::initJunctionsAndEdges(), GUISUMOAbstractView::m2p(), GUIDanielPerspectiveChanger::onKeyPress(), GUISUMOAbstractView::p2m(), GUIPerspectiveChanger::patchedViewPort(), removeAdditionalGLObject(), and GUISUMOAbstractView::screenPos2NetPos().
|
inherited |
Returns the elevation range of the boundary (z-axis)
Definition at line 167 of file Boundary.cpp.
References Boundary::myZmax, and Boundary::myZmin.
Referenced by NBNetBuilder::compute().
|
inherited |
extends the boundary by the given amount
Definition at line 301 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(), GNEChargingStation::getCenteringBoundary(), GNEBusStop::getCenteringBoundary(), GNEContainerStop::getCenteringBoundary(), GNEParkingArea::getCenteringBoundary(), GNETAZ::getCenteringBoundary(), GNEVaporizer::getCenteringBoundary(), GNERouteProbe::getCenteringBoundary(), GNEDetectorE3::getCenteringBoundary(), GNEVariableSpeedSign::getCenteringBoundary(), GNEAccess::getCenteringBoundary(), GNERerouter::getCenteringBoundary(), GNEInternalLane::getCenteringBoundary(), GUITrafficLightLogicWrapper::getCenteringBoundary(), GUILaneSpeedTrigger::getCenteringBoundary(), GUIPolygon::getCenteringBoundary(), GUIInstantInductLoop::MyWrapper::getCenteringBoundary(), GUIPerson::getCenteringBoundary(), GUIContainer::getCenteringBoundary(), GNECalibrator::getCenteringBoundary(), GNEJunction::getCenteringBoundary(), GUICalibrator::getCenteringBoundary(), GUIJunctionWrapper::getCenteringBoundary(), GUIMEInductLoop::MyWrapper::getCenteringBoundary(), GUIPointOfInterest::getCenteringBoundary(), GUIE3Collector::MyWrapper::getCenteringBoundary(), GUITriggeredRerouter::getCenteringBoundary(), GUIChargingStation::getCenteringBoundary(), GNEDetector::getCenteringBoundary(), GUIContainerStop::getCenteringBoundary(), GUIBusStop::getCenteringBoundary(), GNEConnection::getCenteringBoundary(), GNEStop::getCenteringBoundary(), GUIEdge::getCenteringBoundary(), GUIE2Collector::MyWrapper::getCenteringBoundary(), GUIBaseVehicle::getCenteringBoundary(), GUITriggeredRerouter::GUITriggeredRerouterEdge::getCenteringBoundary(), GNEEdge::getCenteringBoundary(), GUIInductLoop::MyWrapper::getCenteringBoundary(), GUILane::getCenteringBoundary(), GNEPerson::getCenteringBoundary(), GNEVehicle::getCenteringBoundary(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIParkingArea::GUIParkingArea(), NBEdgeCont::ignoreFilterMatch(), GUINet::initGUIStructures(), GNEViewNet::mergeJunctions(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), and RORouteHandler::parseGeoEdges().
|
inherited |
Increases the height of the boundary (y-axis)
Definition at line 317 of file Boundary.cpp.
References Boundary::myYmax, and Boundary::myYmin.
Referenced by GUIPointOfInterest::getCenteringBoundary(), GUIPerspectiveChanger::patchedViewPort(), and GUIDanielPerspectiveChanger::setViewport().
|
inherited |
Increases the width of the boundary (x-axis)
Definition at line 310 of file Boundary.cpp.
References Boundary::myXmax, and Boundary::myXmin.
Referenced by GUIPointOfInterest::getCenteringBoundary(), GUIPerspectiveChanger::patchedViewPort(), and GUIDanielPerspectiveChanger::setViewport().
|
inlinevirtual |
Insert entry.
a_min | Min of bounding rect |
a_max | Max of bounding rect |
a_dataId | Positive Id of data. Maybe zero, but negative numbers not allowed. |
Reimplemented in LayeredRTree.
Definition at line 94 of file SUMORTree.h.
References myLock.
Referenced by addAdditionalGLObject().
|
inherited |
check if Boundary is Initialised
Definition at line 217 of file Boundary.cpp.
References Boundary::myWasInitialised.
Referenced by GNEJunction::drawGL(), GNEPoly::endGeometryMoving(), GNEStop::endGeometryMoving(), GNERide::endGeometryMoving(), GNEPersonTrip::endGeometryMoving(), GNEWalk::endGeometryMoving(), GNEEdge::endGeometryMoving(), GNEJunction::endGeometryMoving(), GNEParkingArea::getCenteringBoundary(), GNETAZ::getCenteringBoundary(), GNEDetectorE3::getCenteringBoundary(), GNEParkingSpace::getCenteringBoundary(), GNEVariableSpeedSign::getCenteringBoundary(), GNERerouter::getCenteringBoundary(), GNEJunction::getCenteringBoundary(), GNEPoly::getCenteringBoundary(), GNEStop::getCenteringBoundary(), GNEPOI::getCenteringBoundary(), GNERide::getCenteringBoundary(), GNEPersonTrip::getCenteringBoundary(), GNEWalk::getCenteringBoundary(), GNEEdge::getCenteringBoundary(), GNERoute::getCenteringBoundary(), GNEParkingArea::updateGeometry(), and GNEEdge::updateGeometry().
|
inherited |
Moves the boundary by the given amount.
Definition at line 369 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().
|
inherited |
Comparison operator not equal.
Definition at line 354 of file Boundary.cpp.
|
inherited |
Comparison operator equal.
Definition at line 341 of file Boundary.cpp.
References Boundary::myWasInitialised, Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, Boundary::myYmin, Boundary::myZmax, and Boundary::myZmin.
|
virtualinherited |
Returns whether the boundary overlaps with the given polygon.
Implements AbstractPoly.
Definition at line 182 of file Boundary.cpp.
References AbstractPoly::crosses(), Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, Boundary::myYmin, AbstractPoly::partialWithin(), and Boundary::partialWithin().
Referenced by NBEdgeCont::checkOverlap(), NIVissimBoundedClusterObject::crosses(), NBEdgeCont::ignoreFilterMatch(), NIVissimConnectionCluster::overlapsWith(), and NIVissimConnectionCluster::NodeSubCluster::overlapsWith().
|
virtualinherited |
Returns whether the boundary is partially within the given polygon.
Implements AbstractPoly.
Definition at line 291 of file Boundary.cpp.
References AbstractPoly::around(), Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, and Boundary::myYmin.
Referenced by PCPolyContainer::add(), and Boundary::overlapsWith().
|
inlinevirtual |
Remove entry.
a_min | Min of bounding rect |
a_max | Max of bounding rect |
a_dataId | Positive Id of data. Maybe zero, but negative numbers not allowed. |
Reimplemented in LayeredRTree.
Definition at line 105 of file SUMORTree.h.
References myLock.
Referenced by removeAdditionalGLObject().
|
inline |
Removes an additional object (detector/shape/trigger) from being visualised.
[in] | o | The object to remove |
Definition at line 157 of file SUMORTree.h.
References GUIGlObject::getCenteringBoundary(), GUIGlObject::getFullName(), Boundary::getHeight(), GUIGlObject::getMicrosimID(), Boundary::getWidth(), myLock, myTreeDebug, Remove(), toString(), WRITE_GLDEBUG, MsgHandler::writeDebugGLMessages(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by GUIShapeContainer::addPOI(), GUIShapeContainer::addPolygon(), GNETLSEditorFrame::buildIinternalLanes(), GNENet::computeAndUpdate(), GNENet::deleteAdditional(), GNENet::deleteDemandElement(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIShapeContainer::movePOI(), GUIShapeContainer::polygonDynamicsUpdate(), GNENet::removeGLObjectFromGrid(), GUIShapeContainer::removePOI(), GUIShapeContainer::removePolygon(), GNENet::removePolygonForEditShapes(), GNENet::removeShape(), and GUIShapeContainer::reshapePolygon().
|
inherited |
Resets the boundary.
Definition at line 67 of file Boundary.cpp.
References Boundary::myWasInitialised, Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, Boundary::myYmin, Boundary::myZmax, and Boundary::myZmin.
Referenced by NBHeightMapper::clearData(), GNENet::computeAndUpdate(), GNEPoly::endGeometryMoving(), GNEStop::endGeometryMoving(), GNERide::endGeometryMoving(), GNEPersonTrip::endGeometryMoving(), GNEWalk::endGeometryMoving(), GNEEdge::endGeometryMoving(), GNEJunction::endGeometryMoving(), and GNEAdditional::endGeometryMoving().
|
inlinevirtual |
Find all within search rectangle.
a_min | Min of search bounding rect |
a_max | Max of search bounding rect |
a_searchResult | Search result array. Caller should set grow size. Function will reset, not append to array. |
a_resultCallback | Callback function to return result. Callback should return 'true' to continue searching |
a_context | User context to pass as parameter to a_resultCallback |
Reimplemented in LayeredRTree.
Definition at line 119 of file SUMORTree.h.
References myLock.
Referenced by GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), and GUISUMOAbstractView::makeSnapshot().
|
inherited |
Sets the boundary to the given values.
Definition at line 360 of file Boundary.cpp.
References Boundary::myXmax, Boundary::myXmin, Boundary::myYmax, Boundary::myYmin, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
|
inherited |
Returns maximum x-coordinate.
Definition at line 125 of file Boundary.cpp.
References Boundary::myXmax.
Referenced by Boundary::add(), NIVissimConnectionCluster::add(), 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::getLaneTree(), libsumo::Simulation::getNetBoundary(), NIVissimConnectionCluster::getPositionForEdge(), libsumo::Junction::getTree(), libsumo::Polygon::getTree(), NBHeightMapper::getZ(), GUINet::initGUIStructures(), MSPModel_Remote::initialize(), main(), GUISUMOAbstractView::makeSnapshot(), GNEAdditionalHandler::myEndElement(), NIVissimConnectionCluster::NIVissimConnectionCluster(), NIVissimConnectionCluster::overlapsWith(), NIVissimConnectionCluster::NodeSubCluster::overlapsWith(), GUISUMOAbstractView::paintGLGrid(), RORouteHandler::parseGeoEdges(), TraCIServerAPI_GUI::processGet(), NIVissimConnectionCluster::recheckEdges(), NIVissimConnectionCluster::recomputeBoundary(), removeAdditionalGLObject(), Boundary::set(), GNEVehicle::setColor(), GUIBaseVehicle::setFunctionalColor(), GNEPoly::simplifyShape(), BinaryFormatter::writeAttr(), NWWriter_OpenDrive::writeNetwork(), NWWriter_DlrNavteq::writeNodesUnsplitted(), and GUIDanielPerspectiveChanger::zoom().
|
inherited |
Returns minimum x-coordinate.
Definition at line 119 of file Boundary.cpp.
References Boundary::myXmin.
Referenced by Boundary::add(), NIVissimConnectionCluster::add(), 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::getLaneTree(), libsumo::Simulation::getNetBoundary(), NIVissimConnectionCluster::getPositionForEdge(), libsumo::Junction::getTree(), libsumo::Polygon::getTree(), NBHeightMapper::getZ(), GUINet::initGUIStructures(), MSPModel_Remote::initialize(), main(), GUISUMOAbstractView::makeSnapshot(), NBNetBuilder::moveToOrigin(), GNEAdditionalHandler::myEndElement(), NIVissimConnectionCluster::NIVissimConnectionCluster(), NIVissimConnectionCluster::overlapsWith(), NIVissimConnectionCluster::NodeSubCluster::overlapsWith(), GUISUMOAbstractView::paintGLGrid(), RORouteHandler::parseGeoEdges(), TraCIServerAPI_GUI::processGet(), NIVissimConnectionCluster::recheckEdges(), NIVissimConnectionCluster::recomputeBoundary(), removeAdditionalGLObject(), GUISUMOAbstractView::screenPos2NetPos(), Boundary::set(), GNEVehicle::setColor(), GUIBaseVehicle::setFunctionalColor(), GNEPoly::simplifyShape(), BinaryFormatter::writeAttr(), NWWriter_OpenDrive::writeNetwork(), NWWriter_DlrNavteq::writeNodesUnsplitted(), and GUIDanielPerspectiveChanger::zoom().
|
inherited |
Returns maximum y-coordinate.
Definition at line 137 of file Boundary.cpp.
References Boundary::myYmax.
Referenced by Boundary::add(), 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::getLaneTree(), libsumo::Simulation::getNetBoundary(), libsumo::Junction::getTree(), libsumo::Polygon::getTree(), NBHeightMapper::getZ(), GUINet::initGUIStructures(), MSPModel_Remote::initialize(), main(), GUISUMOAbstractView::makeSnapshot(), NBNetBuilder::moveToOrigin(), GNEAdditionalHandler::myEndElement(), GUISUMOAbstractView::paintGLGrid(), RORouteHandler::parseGeoEdges(), TraCIServerAPI_GUI::processGet(), removeAdditionalGLObject(), Boundary::set(), GNEVehicle::setColor(), GUIBaseVehicle::setFunctionalColor(), GNEPoly::simplifyShape(), BinaryFormatter::writeAttr(), NWWriter_OpenDrive::writeNetwork(), NWWriter_DlrNavteq::writeNodesUnsplitted(), and GUIDanielPerspectiveChanger::zoom().
|
inherited |
Returns minimum y-coordinate.
Definition at line 131 of file Boundary.cpp.
References Boundary::myYmin.
Referenced by Boundary::add(), 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::getLaneTree(), libsumo::Simulation::getNetBoundary(), libsumo::Junction::getTree(), libsumo::Polygon::getTree(), GUINet::initGUIStructures(), MSPModel_Remote::initialize(), main(), GUISUMOAbstractView::makeSnapshot(), NBNetBuilder::moveToOrigin(), GNEAdditionalHandler::myEndElement(), GUISUMOAbstractView::paintGLGrid(), RORouteHandler::parseGeoEdges(), TraCIServerAPI_GUI::processGet(), removeAdditionalGLObject(), GUISUMOAbstractView::screenPos2NetPos(), Boundary::set(), GNEVehicle::setColor(), GUIBaseVehicle::setFunctionalColor(), GNEPoly::simplifyShape(), BinaryFormatter::writeAttr(), NWWriter_OpenDrive::writeNetwork(), NWWriter_DlrNavteq::writeNodesUnsplitted(), and GUIDanielPerspectiveChanger::zoom().
|
inherited |
Returns maximum z-coordinate.
Definition at line 149 of file Boundary.cpp.
References Boundary::myZmax.
Referenced by Boundary::add(), and libsumo::Simulation::getNetBoundary().
|
inherited |
Returns minimum z-coordinate.
Definition at line 143 of file Boundary.cpp.
References Boundary::myZmin.
Referenced by Boundary::add(), and libsumo::Simulation::getNetBoundary().
|
mutableprotected |
A mutex avoiding parallel change and traversal of the tree.
Definition at line 187 of file SUMORTree.h.
Referenced by addAdditionalGLObject(), Insert(), Remove(), removeAdditionalGLObject(), Search(), and ~SUMORTree().
|
private |
Map only used for check that SUMORTree works as expected, only is used if option "gui-testing-debug-gl" is enabled.
Definition at line 193 of file SUMORTree.h.
Referenced by addAdditionalGLObject(), removeAdditionalGLObject(), and ~SUMORTree().
|
privateinherited |
Information whether the boundary was initialised.
Definition at line 156 of file Boundary.h.
Referenced by Boundary::add(), Boundary::isInitialised(), Boundary::operator==(), and Boundary::reset().
|
privateinherited |
Definition at line 153 of file Boundary.h.
Referenced by Boundary::add(), Boundary::around(), Boundary::crosses(), Boundary::distanceTo2D(), Boundary::getCenter(), Boundary::getWidth(), Boundary::grow(), Boundary::growWidth(), Boundary::moveby(), operator<<(), Boundary::operator==(), Boundary::overlapsWith(), Boundary::partialWithin(), Boundary::reset(), Boundary::set(), and Boundary::xmax().
|
privateinherited |
The boundaries.
Definition at line 153 of file Boundary.h.
Referenced by Boundary::add(), Boundary::around(), Boundary::crosses(), Boundary::distanceTo2D(), Boundary::getCenter(), Boundary::getWidth(), Boundary::grow(), Boundary::growWidth(), Boundary::moveby(), operator<<(), Boundary::operator==(), Boundary::overlapsWith(), Boundary::partialWithin(), Boundary::reset(), Boundary::set(), and Boundary::xmin().
|
privateinherited |
Definition at line 153 of file Boundary.h.
Referenced by Boundary::add(), Boundary::around(), Boundary::crosses(), Boundary::distanceTo2D(), Boundary::flipY(), Boundary::getCenter(), Boundary::getHeight(), Boundary::grow(), Boundary::growHeight(), Boundary::moveby(), operator<<(), Boundary::operator==(), Boundary::overlapsWith(), Boundary::partialWithin(), Boundary::reset(), Boundary::set(), and Boundary::ymax().
|
privateinherited |
Definition at line 153 of file Boundary.h.
Referenced by Boundary::add(), Boundary::around(), Boundary::crosses(), Boundary::distanceTo2D(), Boundary::flipY(), Boundary::getCenter(), Boundary::getHeight(), Boundary::grow(), Boundary::growHeight(), Boundary::moveby(), operator<<(), Boundary::operator==(), Boundary::overlapsWith(), Boundary::partialWithin(), Boundary::reset(), Boundary::set(), and Boundary::ymin().
|
privateinherited |
Definition at line 153 of file Boundary.h.
Referenced by Boundary::add(), Boundary::around(), Boundary::getCenter(), Boundary::getZRange(), Boundary::moveby(), Boundary::operator==(), Boundary::reset(), and Boundary::zmax().
|
privateinherited |
Definition at line 153 of file Boundary.h.
Referenced by Boundary::add(), Boundary::around(), Boundary::getCenter(), Boundary::getZRange(), Boundary::moveby(), Boundary::operator==(), Boundary::reset(), and Boundary::zmin().