Flutter Engine
The Flutter Engine
Classes | Public Member Functions | Protected Member Functions | List of all members
SkBBoxHierarchy Class Referenceabstract

#include <SkBBHFactory.h>

Inheritance diagram for SkBBoxHierarchy:
SkRefCnt SkRefCntBase CountingBBH SkRTree flutter::RTree

Classes

struct  Metadata
 

Public Member Functions

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
 

Protected Member Functions

 SkBBoxHierarchy ()=default
 
 SkBBoxHierarchy (const SkBBoxHierarchy &)=delete
 
SkBBoxHierarchyoperator= (const SkBBoxHierarchy &)=delete
 

Detailed Description

Definition at line 20 of file SkBBHFactory.h.

Constructor & Destructor Documentation

◆ SkBBoxHierarchy() [1/2]

SkBBoxHierarchy::SkBBoxHierarchy ( )
protecteddefault

◆ SkBBoxHierarchy() [2/2]

SkBBoxHierarchy::SkBBoxHierarchy ( const SkBBoxHierarchy )
protecteddelete

Member Function Documentation

◆ bytesUsed()

virtual size_t SkBBoxHierarchy::bytesUsed ( ) const
pure virtual

Return approximate size in memory of *this.

Implemented in flutter::RTree, SkRTree, and CountingBBH.

◆ insert() [1/2]

void SkBBoxHierarchy::insert ( const SkRect  rects[],
const  Metadata[],
int  N 
)
virtual

Reimplemented in flutter::RTree.

Definition at line 17 of file SkBBHFactory.cpp.

17 {
18 // Ignore Metadata.
19 this->insert(rects, N);
20}
#define N
Definition: beziers.cpp:19
virtual void insert(const SkRect[], int N)=0

◆ insert() [2/2]

virtual void SkBBoxHierarchy::insert ( const  SkRect[],
int  N 
)
pure virtual

Insert N bounding boxes into the hierarchy.

Implemented in flutter::RTree, SkRTree, and CountingBBH.

◆ operator=()

SkBBoxHierarchy & SkBBoxHierarchy::operator= ( const SkBBoxHierarchy )
protecteddelete

◆ search()

virtual void SkBBoxHierarchy::search ( const SkRect query,
std::vector< int > *  results 
) const
pure virtual

Populate results with the indices of bounding boxes intersecting that query.

Implemented in flutter::RTree, SkRTree, and CountingBBH.


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