PagedSplatOctree class final

A splat tree whose pages arrive on request.

Properties

bytesRead → int
Bytes read so far, header and table included — what a test holds a small budget's cut to.
no setter
hashCode → int
The hash code for this object.
no setterinherited
idle → Future<void>
Every page request not yet answered, for a caller that wants to wait.
no setter
lastError ↔ Object?
The last page request that failed, if one has.
getter/setter pair
maxInFlight → int
The most page requests outstanding at once.
final
onPage ↔ void Function(int node)?
Called after every page is attached; SplatQuads does not need it — it watches SplatOctree.pageVersion — but a widget that only repaints when asked does.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tree → SplatOctree
The tree, with a page attached to every node that has arrived.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request(int index) → bool
Asks for node index's page, unless it is here, on its way, or maxInFlight requests already are. Returns whether it was asked for.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

open(SplatRangeReader read, {int maxInFlight = 4}) → Future<PagedSplatOctree>
Reads the header, the node table and the root's page through read.