BBoxHierarchy

class BBoxHierarchy

Classes

Metadata

Methods

__init__

bytesUsed

Return approximate size in memory of this.

insert

Overloaded function.

ref

Increment the reference count.

search

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

unique

May return true if the caller is the only owner.

unref

Decrement the reference count.

Methods

BBoxHierarchy.__init__(self: skia.BBoxHierarchy) None
BBoxHierarchy.bytesUsed(self: skia.BBoxHierarchy) int

Return approximate size in memory of this.

BBoxHierarchy.insert(*args, **kwargs)

Overloaded function.

  1. insert(self: skia.BBoxHierarchy, rects: skia.Rect, N: int) -> None

    Insert N bounding boxes into the hierarchy.

  2. insert(self: skia.BBoxHierarchy, rects: skia.Rect, metadata: skia.BBoxHierarchy.Metadata, N: int) -> None

BBoxHierarchy.ref(self: skia.RefCntBase) None

Increment the reference count.

Must be balanced by a call to unref().

BBoxHierarchy.search(self: skia.BBoxHierarchy, query: skia.Rect, results: std::vector<int, std::allocator<int> >) None

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

BBoxHierarchy.unique(self: skia.RefCntBase) bool

May return true if the caller is the only owner.

Ensures that all previous owner’s actions are complete.

BBoxHierarchy.unref(self: skia.RefCntBase) None

Decrement the reference count.

If the reference count is 1 before the decrement, then delete the object. Note that if this is the case, then the object needs to have been allocated via new, and not on the stack.