QuadTree description (API) More...
Public Member Functions | |
QuadTree () | |
~QuadTree () | |
const Box & | getBoundingBox () const |
Gos | getGos () const |
Gos | getGosUnder (const Box &area, DbU::Unit threshold=0) const |
bool | isEmpty () const |
void | insert (Go *go) |
void | remove (Go *go) |
QuadTree description (API)
Quadtrees are efficient hierarchical data structures for the geometrical access of gos.
Hurricane::QuadTree::QuadTree | ( | ) |
Default constructor : the quadtree is initially empty (objects will be inserted or removed on demand).
Hurricane::QuadTree::~QuadTree | ( | ) |
Destroys the quadtree and its sub-quadtrees but doesn't touch to the contained objects, they will ibe only detached from their respective quadtree nodes.
Box Hurricane::QuadTree::getBoundingBox | ( | ) | const |
Returns: the quadtree bounding box, that is the minimal bounding box including all objects of the quad tree (this bounding box is updated dynamically).
Referenced by Hurricane::Slice::getBoundingBox().
Gos Hurricane::QuadTree::getGos | ( | ) | const |
Returns: the collection of graphical objects contained in the quadtree.
Referenced by Hurricane::Slice::getGos().
Returns: the collection of graphical objects contained in the quadtree and whose bounding box intersects the rectangular region defined by <area>
.
|
inline |
Returns: true if the quadtree doesn't contain any object, else false.
void Hurricane::QuadTree::insert | ( | Go * | go | ) |
inserts the graphic object within the quadtree (if not yet inserted).
void Hurricane::QuadTree::remove | ( | Go * | go | ) |
removes the object from the quadtree.
Generated by doxygen 1.9.1 on Thu Aug 11 2022 | Return to top of page |
Hurricane VLSI Database | Copyright © 2000-2020 Bull S.A. All rights reserved |