44 const float extent0 = a_rect->
m_max[0] - a_rect->
m_min[0];
45 const float extent1 = a_rect->
m_max[1] - a_rect->
m_min[1];
46 return .78539816f * (extent0 * extent0 + extent1 * extent1);
78 void Insert(
const float a_min[2],
const float a_max[2],
Named* a_dataId) {
90 void Remove(
const float a_min[2],
const float a_max[2],
Named* a_dataId) {
virtual void Insert(const ELEMTYPE a_min[NUMDIMS], const ELEMTYPE a_max[NUMDIMS], const DATATYPE &a_dataId)
ELEMTYPEREAL RectSphericalVolume(Rect *a_rect)
void removeAdditionalGLObject(Named *o, Boundary &b)
Removes an additional object (detector/shape/trigger) from being visualised.
SUMOReal ymin() const
Returns minimum y-coordinate.
void Insert(const float a_min[2], const float a_max[2], Named *a_dataId)
Insert entry.
SUMOReal xmin() const
Returns minimum x-coordinate.
SUMOReal xmax() const
Returns maximum x-coordinate.
A class that stores a 2D geometrical boundary.
ELEMTYPE m_min[NUMDIMS]
Min dimensions of bounding box.
virtual void Remove(const ELEMTYPE a_min[NUMDIMS], const ELEMTYPE a_max[NUMDIMS], const DATATYPE &a_dataId)
void Remove(const float a_min[2], const float a_max[2], Named *a_dataId)
Remove entry.
ELEMTYPE m_max[NUMDIMS]
Max dimensions of bounding box.
A point in 2D or 3D with translation and scaling methods.
void addObject(Named *o, Boundary &b)
Adds an additional object (detector/shape/trigger) for visualisation.
Base class for objects which have an id.
A RT-tree for efficient storing of SUMO's GL-objects.
Allows to store the object; used as context while traveling the rtree in TraCI.
virtual int Search(const ELEMTYPE a_min[NUMDIMS], const ELEMTYPE a_max[NUMDIMS], const CONTEXT &c)
DK 15.10.2008 - begin.
void add(SUMOReal x, SUMOReal y)
Makes the boundary include the given coordinate.
void addObject(Named *o, Position &p)
Adds an additional object (detector/shape/trigger) for visualisation.
SUMOReal ymax() const
Returns maximum y-coordinate.
Minimal bounding rectangle (n-dimensional)
int Search(const float a_min[2], const float a_max[2], const Named::StoringVisitor &c)
Find all within search rectangle.