BBoxHierarchy
- class BBoxHierarchy
Classes
Methods
Return approximate size in memory of this.
Overloaded function.
Increment the reference count.
Populate results with the indices of bounding boxes intersecting that query.
May return true if the caller is the only owner.
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.
insert(self: skia.BBoxHierarchy, rects: skia.Rect, N: int) -> None
Insert N bounding boxes into the hierarchy.
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.