Flutter Engine
The Flutter Engine
|
#include <rtree.h>
Public Member Functions | |
RTree () | |
void | insert (const SkRect[], const SkBBoxHierarchy::Metadata[], int N) override |
void | insert (const SkRect[], int N) override |
void | search (const SkRect &query, std::vector< int > *results) const override |
size_t | bytesUsed () const override |
std::list< SkRect > | searchNonOverlappingDrawnRects (const SkRect &query) const |
int | getCount () const |
virtual void | insert (const SkRect[], int N)=0 |
virtual void | insert (const SkRect[], const Metadata[], int N) |
virtual void | search (const SkRect &query, std::vector< int > *results) const =0 |
virtual size_t | bytesUsed () const =0 |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Additional Inherited Members | |
Protected Member Functions inherited from SkBBoxHierarchy | |
SkBBoxHierarchy ()=default | |
SkBBoxHierarchy (const SkBBoxHierarchy &)=delete | |
SkBBoxHierarchy & | operator= (const SkBBoxHierarchy &)=delete |
An R-Tree implementation that forwards calls to an SkRTree.
This implementation provides a searchNonOverlappingDrawnRects method, which can be used to query the rects for the operations recorded in the tree.
flutter::RTree::RTree | ( | ) |
Definition at line 16 of file rtree.cc.
|
overridevirtual |
Return approximate size in memory of *this.
Implements SkBBoxHierarchy.
|
inline |
|
overridevirtual |
Reimplemented from SkBBoxHierarchy.
Definition at line 18 of file rtree.cc.
|
overridevirtual |
Insert N bounding boxes into the hierarchy.
Implements SkBBoxHierarchy.
Definition at line 31 of file rtree.cc.
|
overridevirtual |
Populate results with the indices of bounding boxes intersecting that query.
Implements SkBBoxHierarchy.
Definition at line 35 of file rtree.cc.
Definition at line 39 of file rtree.cc.