Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
Boundary Class Reference

A class that stores a 2D geometrical boundary. More...

#include <Boundary.h>

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

Public Member Functions

void add (const Boundary &p)
 Makes the boundary include the given boundary.
 
void add (const Position &p)
 Makes the boundary include the given coordinate.
 
void add (double x, double y, double z=0)
 Makes the boundary include the given coordinate.
 
 Boundary ()
 Constructor - the boundary is unset.
 
 Boundary (double x1, double y1, double x2, double y2)
 Constructor - the boundary will be build using the given values.
 
 Boundary (double x1, double y1, double z1, double x2, double y2, double z2)
 Constructor - the boundary will be build using the given values including Z.
 
bool contains2D (const Boundary &b) const
 return true if this boundary contains the given boundary (only X-Y)
 
double distanceTo2D (const Boundary &b) const
 returns the euclidean distance in the x-y-plane
 
double distanceTo2D (const Position &p) const
 returns the euclidean distance in the x-y-plane
 
void flipY ()
 flips ymin and ymax
 
Position getCenter () const
 Returns the center of the boundary.
 
double getHeight () const
 Returns the height of the boundary (y-axis)
 
PositionVector getShape (const bool closeShape) const
 get position vector (shape) based on this boundary
 
double getWidth () const
 Returns the width of the boudary (x-axis)
 
double getZRange () const
 Returns the elevation range of the boundary (z-axis)
 
Boundarygrow (double by)
 extends the boundary by the given amount
 
void growHeight (double by)
 Increases the height of the boundary (y-axis)
 
void growWidth (double by)
 Increases the width of the boundary (x-axis)
 
bool isInitialised () const
 check if Boundary is Initialised
 
void moveby (double x, double y, double z=0)
 Moves the boundary by the given amount.
 
bool operator!= (const Boundary &b) const
 Comparison operator not equal.
 
bool operator== (const Boundary &b) const
 Comparison operator equal.
 
bool overlaps2D (const Boundary &b) const
 return true if at least one point of the given boundary is in boundary(only X-Y)
 
void reset ()
 Resets the boundary.
 
Boundaryscale (double by)
 scale the boundary by the given amount
 
void set (double xmin, double ymin, double xmax, double ymax)
 Sets the boundary to the given values.
 
void setOffsets (double xmin, double ymin, double xmax, double ymax)
 Sets the boundary to the given values, ignoring min < max constraints.
 
double xmax () const
 Returns maximum x-coordinate.
 
double xmin () const
 Returns minimum x-coordinate.
 
double ymax () const
 Returns maximum y-coordinate.
 
double ymin () const
 Returns minimum y-coordinate.
 
double zmax () const
 Returns maximum z-coordinate.
 
double zmin () const
 Returns minimum z-coordinate.
 
 ~Boundary ()
 Destructor.
 
inherited from AbstractPoly
bool around (const Position &p, double offset=0) const
 Returns whether the boundary contains the given coordinate.
 
bool around2D (const Position &p, double offset=0) const
 Returns whether the boundary contains the given 2D coordinate (position)
 
bool around2D (const double x, const double y) const
 Returns whether the boundary contains the given 2D coordinate (x-y version)
 
bool overlapsWith (const AbstractPoly &poly, double offset=0) const
 Returns whether the boundary overlaps with the given polygon.
 
bool partialWithin (const AbstractPoly &poly, double offset=0) const
 Returns whether the boundary is partially within the given polygon.
 
bool crosses (const Position &p1, const Position &p2) const
 Returns whether the boundary crosses the given line.
 

Private Attributes

bool myWasInitialised
 Information whether the boundary was initialised.
 
double myXmax
 
double myXmin
 The boundaries.
 
double myYmax
 
double myYmin
 
double myZmax
 
double myZmin
 

Friends

std::ostream & operator<< (std::ostream &os, const Boundary &b)
 Output operator.
 

Detailed Description

A class that stores a 2D geometrical boundary.

Definition at line 39 of file Boundary.h.

Constructor & Destructor Documentation

◆ Boundary() [1/3]

Boundary::Boundary ( )

Constructor - the boundary is unset.

Definition at line 35 of file Boundary.cpp.

◆ Boundary() [2/3]

Boundary::Boundary ( double  x1,
double  y1,
double  x2,
double  y2 
)

Constructor - the boundary will be build using the given values.

Definition at line 42 of file Boundary.cpp.

References add().

◆ Boundary() [3/3]

Boundary::Boundary ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2 
)

Constructor - the boundary will be build using the given values including Z.

Definition at line 52 of file Boundary.cpp.

References add().

◆ ~Boundary()

Boundary::~Boundary ( )

Destructor.

Definition at line 62 of file Boundary.cpp.

Member Function Documentation

◆ add() [1/3]

void Boundary::add ( const Boundary p)

Makes the boundary include the given boundary.

Definition at line 105 of file Boundary.cpp.

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

◆ add() [2/3]

void Boundary::add ( const Position p)

Makes the boundary include the given coordinate.

Definition at line 99 of file Boundary.cpp.

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

◆ add() [3/3]

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

Makes the boundary include the given coordinate.

Definition at line 78 of file Boundary.cpp.

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

Referenced by add(), add(), NIVissimConnectionCluster::NodeSubCluster::add(), NIVissimConnectionCluster::add(), GUIParkingArea::addLotEntry(), MSEdge::addSuccessor(), ROEdge::addSuccessor(), GNENet::addZValueInBoundary(), GUISUMOAbstractView::applyGLTransform(), Boundary(), Boundary(), GNEAdditionalHandler::buildTAZ(), GUIDanielPerspectiveChanger::centerTo(), GUIViewObjectsHandler::checkGeometryPoint(), NBNetBuilder::compute(), GNENet::computeAndUpdate(), NIVissimConnection::computeBounding(), NIVissimDisturbance::computeBounding(), GNENet::expandBoundary(), GUIEdge::getBoundary(), MSDevice_BTsender::VehicleInformation::getBoxBoundary(), PositionVector::getBoxBoundary(), GUIBaseVehicle::getCenteringBoundary(), GUIBusStop::getCenteringBoundary(), GUITrafficLightLogicWrapper::getCenteringBoundary(), GUIMEVehicle::getCenteringBoundary(), GNETAZRelData::getCenteringBoundary(), GNEContainer::getCenteringBoundary(), GNEPerson::getCenteringBoundary(), GNERoute::getCenteringBoundary(), GNEStop::getCenteringBoundary(), GNEVehicle::getCenteringBoundary(), GUIContainer::getCenteringBoundary(), GUILane::getCenteringBoundary(), GUIPerson::getCenteringBoundary(), GUIPointOfInterest::getCenteringBoundary(), GUIPolygon::getCenteringBoundary(), MapMatcher< E, L, N >::getClosestLane(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUICalibrator::GUICalibrator(), GUILaneSpeedTrigger::GUILaneSpeedTrigger(), GUITriggeredRerouter::GUITriggeredRerouter(), GUITriggeredRerouter::GUITriggeredRerouterEdge::GUITriggeredRerouterEdge(), GUINet::initGUIStructures(), GNENet::initJunctionsAndEdges(), NBHeightMapper::loadShapeFile(), NBHeightMapper::loadTiff(), MSPModel_Striping::moveInDirection(), NIImporter_OpenDrive::myCharacters(), GUITriggeredRerouter::myEndElement(), GUIE3Collector::MyWrapper::MyWrapper(), GUIInductLoop::MyWrapper::MyWrapper(), GUIInstantInductLoop::MyWrapper::MyWrapper(), GUIMEInductLoop::MyWrapper::MyWrapper(), GNEShapeFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNEViewNetHelper::SelectingArea::processEdgeRectangleSelection(), GNEViewNetHelper::SelectingArea::processRectangleSelection(), NIVissimConnectionCluster::recomputeBoundary(), ROEdge::ROEdge(), MSEdge::setJunctions(), GUIDanielPerspectiveChanger::setViewport(), NBRailwayGeometryHelper::straigthenCorrdidor(), GNEParkingSpace::updateCenteringBoundary(), GNETAZ::updateCenteringBoundary(), GNEVariableSpeedSign::updateCenteringBoundary(), GNEEdge::updateCenteringBoundary(), GNEJunction::updateCenteringBoundary(), GNEPOI::updateCenteringBoundary(), GNEViewNet::updateObjectsInPosition(), GNEDemandElementPlan::updatePlanCenteringBoundary(), and GeoConvHelper::x2cartesian().

◆ around()

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

Returns whether the boundary contains the given coordinate.

Implements AbstractPoly.

Definition at line 172 of file Boundary.cpp.

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

Referenced by PCPolyContainer::add(), NIVissimConnectionCluster::around(), GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEVehicleFrame::buildVehicleOverRoute(), NBHeightMapper::getZ(), and NIVissimConnectionCluster::recheckEdges().

Here is the caller graph for this function:

◆ around2D() [1/2]

bool Boundary::around2D ( const double  x,
const double  y 
) const

Returns whether the boundary contains the given 2D coordinate (x-y version)

Definition at line 189 of file Boundary.cpp.

References myXmax, myXmin, myYmax, and myYmin.

◆ around2D() [2/2]

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

Returns whether the boundary contains the given 2D coordinate (position)

Definition at line 181 of file Boundary.cpp.

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

Referenced by GUIViewObjectsHandler::checkCircleObject(), GUIViewObjectsHandler::checkGeometryPoint(), and overlaps2D().

Here is the caller graph for this function:

◆ contains2D()

bool Boundary::contains2D ( const Boundary b) const

return true if this boundary contains the given boundary (only X-Y)

Definition at line 232 of file Boundary.cpp.

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

Referenced by GNEEdge::calculateEdgeContour(), GNEJunction::calculateJunctioncontour(), GUIViewObjectsHandler::checkCircleObject(), GUIViewObjectsHandler::checkGeometryPoint(), and GUIViewObjectsHandler::checkShapeObject().

Here is the caller graph for this function:

◆ crosses()

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

Returns whether the boundary crosses the given line.

Implements AbstractPoly.

Definition at line 218 of file Boundary.cpp.

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

Referenced by GUIViewObjectsHandler::checkShapeObject().

Here is the caller graph for this function:

◆ distanceTo2D() [1/2]

double Boundary::distanceTo2D ( const Boundary b) const

returns the euclidean distance in the x-y-plane

Definition at line 299 of file Boundary.cpp.

References myXmax, myXmin, myYmax, and myYmin.

◆ distanceTo2D() [2/2]

double Boundary::distanceTo2D ( const Position p) const

returns the euclidean distance in the x-y-plane

Definition at line 265 of file Boundary.cpp.

References myXmax, myXmin, myYmax, 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 ( )

flips ymin and ymax

Definition at line 375 of file Boundary.cpp.

References myYmax, and myYmin.

Referenced by GeoConvHelper::computeFinal().

Here is the caller graph for this function:

◆ getCenter()

◆ getHeight()

◆ getShape()

PositionVector Boundary::getShape ( const bool  closeShape) const

get position vector (shape) based on this boundary

Definition at line 447 of file Boundary.cpp.

References myXmax, myXmin, myYmax, and myYmin.

Referenced by GNEAdditionalHandler::buildTAZ(), LIBSUMO_NAMESPACE::Junction::getTree(), LIBSUMO_NAMESPACE::Polygon::getTree(), MSDevice_FCDReplay::FCDHandler::initLaneTree(), MSRouteHandler::initLaneTree(), RORouteHandler::initLaneTree(), GUIViewObjectsHandler::setSelectionBoundary(), and LIBSUMO_NAMESPACE::Simulation::storeShape().

Here is the caller graph for this function:

◆ getWidth()

◆ getZRange()

double Boundary::getZRange ( ) const

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

Definition at line 166 of file Boundary.cpp.

References myZmax, and myZmin.

Referenced by NBNetBuilder::compute().

Here is the caller graph for this function:

◆ grow()

Boundary & Boundary::grow ( double  by)

extends the boundary by the given amount

Returns
a reference to the instance for further use

Definition at line 343 of file Boundary.cpp.

References myXmax, myXmin, myYmax, and myYmin.

Referenced by GUIParkingArea::addLotEntry(), GUIDanielPerspectiveChanger::centerTo(), GUIViewObjectsHandler::checkGeometryPoint(), NBEdgeCont::checkOverlap(), libsumo::Helper::collectObjectsInRange(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSLane::fill(), GUIEdge::getBoundary(), GUIBaseVehicle::getCenteringBoundary(), GUIBusStop::getCenteringBoundary(), GUICalibrator::getCenteringBoundary(), GUIChargingStation::getCenteringBoundary(), GUIE3Collector::MyWrapper::getCenteringBoundary(), GUIInstantInductLoop::MyWrapper::getCenteringBoundary(), GUIJunctionWrapper::getCenteringBoundary(), GUILaneSpeedTrigger::getCenteringBoundary(), GUIOverheadWire::getCenteringBoundary(), GUIOverheadWireClamp::getCenteringBoundary(), GUITrafficLightLogicWrapper::getCenteringBoundary(), GUITriggeredRerouter::getCenteringBoundary(), GUITriggeredRerouter::GUITriggeredRerouterEdge::getCenteringBoundary(), GUIMEInductLoop::MyWrapper::getCenteringBoundary(), GUIMEVehicle::getCenteringBoundary(), GNEAdditional::getCenteringBoundary(), GNETAZRelData::getCenteringBoundary(), GNEContainer::getCenteringBoundary(), GNEPerson::getCenteringBoundary(), GNEStop::getCenteringBoundary(), GNEVehicle::getCenteringBoundary(), GUIContainer::getCenteringBoundary(), GUIE2Collector::MyWrapper::getCenteringBoundary(), GUIEdge::getCenteringBoundary(), GUIInductLoop::MyWrapper::getCenteringBoundary(), GUILane::getCenteringBoundary(), GUIPerson::getCenteringBoundary(), GUIPointOfInterest::getCenteringBoundary(), GUIPolygon::getCenteringBoundary(), MapMatcher< E, L, N >::getClosestLane(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIParkingArea::GUIParkingArea(), NBEdgeCont::ignoreFilterMatch(), GUINet::initGUIStructures(), NBEdgeCont::joinTramEdges(), NWWriter_OpenDrive::mapmatchRoadObjects(), GNEShapeFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNEMultiEntryExitDetector::updateCenteringBoundary(), GNEParkingSpace::updateCenteringBoundary(), GNERerouter::updateCenteringBoundary(), GNETAZ::updateCenteringBoundary(), GNETractionSubstation::updateCenteringBoundary(), GNEVariableSpeedSign::updateCenteringBoundary(), GNEEdge::updateCenteringBoundary(), GNEJunction::updateCenteringBoundary(), GNEPOI::updateCenteringBoundary(), GNEPoly::updateCenteringBoundary(), GNEViewNet::updateObjectsInPosition(), and GNEDemandElementPlan::updatePlanCenteringBoundary().

◆ growHeight()

void Boundary::growHeight ( double  by)

Increases the height of the boundary (y-axis)

Definition at line 369 of file Boundary.cpp.

References myYmax, and myYmin.

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

Here is the caller graph for this function:

◆ growWidth()

void Boundary::growWidth ( double  by)

Increases the width of the boundary (x-axis)

Definition at line 362 of file Boundary.cpp.

References myXmax, and myXmin.

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

Here is the caller graph for this function:

◆ isInitialised()

◆ moveby()

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

Moves the boundary by the given amount.

Definition at line 436 of file Boundary.cpp.

References myXmax, myXmin, myYmax, myYmin, myZmax, and 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

Comparison operator not equal.

Definition at line 406 of file Boundary.cpp.

◆ operator==()

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

Comparison operator equal.

Definition at line 393 of file Boundary.cpp.

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

◆ overlaps2D()

bool Boundary::overlaps2D ( const Boundary b) const

return true if at least one point of the given boundary is in boundary(only X-Y)

Definition at line 243 of file Boundary.cpp.

References around2D(), myXmax, myXmin, myYmax, and myYmin.

◆ overlapsWith()

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

Returns whether the boundary overlaps with the given polygon.

Implements AbstractPoly.

Definition at line 197 of file Boundary.cpp.

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

Referenced by GUIViewObjectsHandler::checkCircleObject(), GUIViewObjectsHandler::checkGeometryPoint(), 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
virtual

Returns whether the boundary is partially within the given polygon.

Implements AbstractPoly.

Definition at line 333 of file Boundary.cpp.

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

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

Here is the caller graph for this function:

◆ reset()

void Boundary::reset ( )

◆ scale()

Boundary & Boundary::scale ( double  by)

scale the boundary by the given amount

Returns
a reference to the instance for further use

Definition at line 354 of file Boundary.cpp.

References growHeight(), growWidth(), myXmax, myXmin, myYmax, and myYmin.

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

Here is the caller graph for this function:

◆ set()

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

Sets the boundary to the given values.

Definition at line 412 of file Boundary.cpp.

References MAX2(), MIN2(), myXmax, myXmin, myYmax, myYmin, xmax(), xmin(), ymax(), and ymin().

Referenced by GUIOSGPerspectiveChanger::updateViewport().

Here is the caller graph for this function:

◆ setOffsets()

void Boundary::setOffsets ( double  xmin,
double  ymin,
double  xmax,
double  ymax 
)

Sets the boundary to the given values, ignoring min < max constraints.

Definition at line 427 of file Boundary.cpp.

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

Referenced by main(), and GeomConvHelper::parseBoundaryReporting().

Here is the caller graph for this function:

◆ xmax()

double Boundary::xmax ( ) const

Returns maximum x-coordinate.

Definition at line 124 of file Boundary.cpp.

References myXmax.

Referenced by add(), LIBSUMO_NAMESPACE::Polygon::add(), MSPModel_JuPedSim::add(), NIVissimConnectionCluster::add(), SUMORTree::addAdditionalGLObject(), NBHeightMapper::addTriangle(), GUISUMOAbstractView::applyGLTransform(), NIVissimConnectionCluster::around(), NBPTStopCont::assignEdgeForFloatingStops(), NIVissimConnection::buildNodeClusters(), GUIDanielPerspectiveChanger::changeCanvasSizeLeft(), libsumo::Helper::collectObjectsInRange(), NBNetBuilder::compute(), NIVissimDisturbance::computeBounding(), contains2D(), NIVissimBoundedClusterObject::crosses(), GeomHelper::crossPoint(), GUIViewTraffic::doPaintGL(), GLHelper::drawBoundary(), GNEViewNet::drawGLElements(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSLane::fill(), NBPTStopCont::findAccessEdgesForRailStops(), NIVissimConnection::getBoundingBox(), MapMatcher< E, L, N >::getClosestLane(), GNEDemandElement::getColorByScheme(), LIBSUMO_NAMESPACE::Simulation::getNetBoundary(), NIVissimConnectionCluster::getPositionForEdge(), LIBSUMO_NAMESPACE::Junction::getTree(), LIBSUMO_NAMESPACE::LaneArea::getTree(), LIBSUMO_NAMESPACE::Polygon::getTree(), GUINet::initGUIStructures(), MSDevice_FCDReplay::FCDHandler::initLaneTree(), MSRouteHandler::initLaneTree(), RORouteHandler::initLaneTree(), NBEdgeCont::joinTramEdges(), main(), GUISUMOAbstractView::makeSnapshot(), NWWriter_OpenDrive::mapmatchRoadObjects(), NIVissimConnectionCluster::NIVissimConnectionCluster(), GUIGLObjectPopupMenu::onCmdCopyViewGeoBoundary(), NIVissimConnectionCluster::NodeSubCluster::overlapsWith(), NIVissimConnectionCluster::overlapsWith(), GUISUMOAbstractView::paintGLGrid(), NIVissimConnectionCluster::recheckEdges(), NIVissimConnectionCluster::recomputeBoundary(), LIBSUMO_NAMESPACE::Polygon::remove(), SUMORTree::removeAdditionalGLObject(), set(), GUIBaseVehicle::setFunctionalColor(), setOffsets(), GNEPoly::simplifyShape(), GNENetworkElement::simplifyShapeEdited(), NWWriter_OpenDrive::writeNetwork(), NWWriter_DlrNavteq::writeNodesUnsplitted(), and GUIDanielPerspectiveChanger::zoom().

◆ xmin()

double Boundary::xmin ( ) const

Returns minimum x-coordinate.

Definition at line 118 of file Boundary.cpp.

References myXmin.

Referenced by add(), LIBSUMO_NAMESPACE::Polygon::add(), MSPModel_JuPedSim::add(), NIVissimConnectionCluster::add(), SUMORTree::addAdditionalGLObject(), NBHeightMapper::addTriangle(), GUISUMOAbstractView::applyGLTransform(), NIVissimConnectionCluster::around(), NBPTStopCont::assignEdgeForFloatingStops(), NIVissimConnection::buildNodeClusters(), GUIDanielPerspectiveChanger::changeCanvasSizeLeft(), libsumo::Helper::collectObjectsInRange(), NBNetBuilder::compute(), NIVissimDisturbance::computeBounding(), contains2D(), NIVissimBoundedClusterObject::crosses(), GeomHelper::crossPoint(), GUIViewTraffic::doPaintGL(), GLHelper::drawBoundary(), GNEViewNet::drawGLElements(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSLane::fill(), NBPTStopCont::findAccessEdgesForRailStops(), NIVissimConnection::getBoundingBox(), MapMatcher< E, L, N >::getClosestLane(), GNEDemandElement::getColorByScheme(), LIBSUMO_NAMESPACE::Simulation::getNetBoundary(), NIVissimConnectionCluster::getPositionForEdge(), LIBSUMO_NAMESPACE::Junction::getTree(), LIBSUMO_NAMESPACE::LaneArea::getTree(), LIBSUMO_NAMESPACE::Polygon::getTree(), NBHeightMapper::getZ(), GUINet::initGUIStructures(), MSDevice_FCDReplay::FCDHandler::initLaneTree(), MSRouteHandler::initLaneTree(), RORouteHandler::initLaneTree(), NBEdgeCont::joinTramEdges(), main(), GUISUMOAbstractView::makeSnapshot(), NWWriter_OpenDrive::mapmatchRoadObjects(), NBNetBuilder::moveToOrigin(), NIVissimConnectionCluster::NIVissimConnectionCluster(), GUIGLObjectPopupMenu::onCmdCopyViewGeoBoundary(), NIVissimConnectionCluster::NodeSubCluster::overlapsWith(), NIVissimConnectionCluster::overlapsWith(), GUISUMOAbstractView::paintGLGrid(), NIVissimConnectionCluster::recheckEdges(), NIVissimConnectionCluster::recomputeBoundary(), LIBSUMO_NAMESPACE::Polygon::remove(), SUMORTree::removeAdditionalGLObject(), GUISUMOAbstractView::screenPos2NetPos(), set(), GUIBaseVehicle::setFunctionalColor(), setOffsets(), GNEPoly::simplifyShape(), GNENetworkElement::simplifyShapeEdited(), NWWriter_OpenDrive::writeNetwork(), NWWriter_DlrNavteq::writeNodesUnsplitted(), and GUIDanielPerspectiveChanger::zoom().

◆ ymax()

double Boundary::ymax ( ) const

Returns maximum y-coordinate.

Definition at line 136 of file Boundary.cpp.

References myYmax.

Referenced by add(), LIBSUMO_NAMESPACE::Polygon::add(), MSPModel_JuPedSim::add(), SUMORTree::addAdditionalGLObject(), NBHeightMapper::addTriangle(), GUISUMOAbstractView::applyGLTransform(), NBPTStopCont::assignEdgeForFloatingStops(), GUIDanielPerspectiveChanger::changeCanvasSizeLeft(), libsumo::Helper::collectObjectsInRange(), NBNetBuilder::compute(), contains2D(), GeomHelper::crossPoint(), GUIViewTraffic::doPaintGL(), GLHelper::drawBoundary(), GNEViewNet::drawGLElements(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSLane::fill(), NBPTStopCont::findAccessEdgesForRailStops(), MapMatcher< E, L, N >::getClosestLane(), GNEDemandElement::getColorByScheme(), LIBSUMO_NAMESPACE::Simulation::getNetBoundary(), LIBSUMO_NAMESPACE::Junction::getTree(), LIBSUMO_NAMESPACE::LaneArea::getTree(), LIBSUMO_NAMESPACE::Polygon::getTree(), NBHeightMapper::getZ(), GUINet::initGUIStructures(), MSDevice_FCDReplay::FCDHandler::initLaneTree(), MSRouteHandler::initLaneTree(), RORouteHandler::initLaneTree(), NBEdgeCont::joinTramEdges(), main(), GUISUMOAbstractView::makeSnapshot(), NWWriter_OpenDrive::mapmatchRoadObjects(), MSPModel_Striping::moveInDirection(), NBNetBuilder::moveToOrigin(), GUIGLObjectPopupMenu::onCmdCopyViewGeoBoundary(), GUISUMOAbstractView::paintGLGrid(), LIBSUMO_NAMESPACE::Polygon::remove(), SUMORTree::removeAdditionalGLObject(), set(), GUIBaseVehicle::setFunctionalColor(), setOffsets(), GNEPoly::simplifyShape(), GNENetworkElement::simplifyShapeEdited(), NWWriter_OpenDrive::writeNetwork(), NWWriter_DlrNavteq::writeNodesUnsplitted(), and GUIDanielPerspectiveChanger::zoom().

Here is the caller graph for this function:

◆ ymin()

double Boundary::ymin ( ) const

Returns minimum y-coordinate.

Definition at line 130 of file Boundary.cpp.

References myYmin.

Referenced by add(), LIBSUMO_NAMESPACE::Polygon::add(), MSPModel_JuPedSim::add(), SUMORTree::addAdditionalGLObject(), NBHeightMapper::addTriangle(), GUISUMOAbstractView::applyGLTransform(), NBPTStopCont::assignEdgeForFloatingStops(), GUIDanielPerspectiveChanger::changeCanvasSizeLeft(), libsumo::Helper::collectObjectsInRange(), NBNetBuilder::compute(), contains2D(), GeomHelper::crossPoint(), GUIViewTraffic::doPaintGL(), GLHelper::drawBoundary(), GNEViewNet::drawGLElements(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSLane::fill(), NBPTStopCont::findAccessEdgesForRailStops(), MapMatcher< E, L, N >::getClosestLane(), GNEDemandElement::getColorByScheme(), LIBSUMO_NAMESPACE::Simulation::getNetBoundary(), LIBSUMO_NAMESPACE::Junction::getTree(), LIBSUMO_NAMESPACE::LaneArea::getTree(), LIBSUMO_NAMESPACE::Polygon::getTree(), GUINet::initGUIStructures(), MSDevice_FCDReplay::FCDHandler::initLaneTree(), MSRouteHandler::initLaneTree(), RORouteHandler::initLaneTree(), NBEdgeCont::joinTramEdges(), main(), GUISUMOAbstractView::makeSnapshot(), NWWriter_OpenDrive::mapmatchRoadObjects(), MSPModel_Striping::moveInDirection(), NBNetBuilder::moveToOrigin(), GUIGLObjectPopupMenu::onCmdCopyViewGeoBoundary(), GUISUMOAbstractView::paintGLGrid(), LIBSUMO_NAMESPACE::Polygon::remove(), SUMORTree::removeAdditionalGLObject(), GUISUMOAbstractView::screenPos2NetPos(), set(), GUIBaseVehicle::setFunctionalColor(), setOffsets(), GNEPoly::simplifyShape(), GNENetworkElement::simplifyShapeEdited(), NWWriter_OpenDrive::writeNetwork(), NWWriter_DlrNavteq::writeNodesUnsplitted(), and GUIDanielPerspectiveChanger::zoom().

Here is the caller graph for this function:

◆ zmax()

double Boundary::zmax ( ) const

Returns maximum z-coordinate.

Definition at line 148 of file Boundary.cpp.

References myZmax.

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

Here is the caller graph for this function:

◆ zmin()

double Boundary::zmin ( ) const

Returns minimum z-coordinate.

Definition at line 142 of file Boundary.cpp.

References myZmin.

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

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const Boundary b 
)
friend

Output operator.

Definition at line 385 of file Boundary.cpp.

Field Documentation

◆ myWasInitialised

bool Boundary::myWasInitialised
private

Information whether the boundary was initialised.

Definition at line 178 of file Boundary.h.

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

◆ myXmax

◆ myXmin

◆ myYmax

◆ myYmin

◆ myZmax

double Boundary::myZmax
private

Definition at line 175 of file Boundary.h.

Referenced by add(), around(), getCenter(), getZRange(), moveby(), operator==(), reset(), and zmax().

◆ myZmin

double Boundary::myZmin
private

Definition at line 175 of file Boundary.h.

Referenced by add(), around(), getCenter(), getZRange(), moveby(), operator==(), reset(), and zmin().


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