Skip to content

RasterChunkReduceData

Overview

(Partial) data for a single clipped chunk, which is reduced and then when complete (isFirstEdge && isLastEdge) is applied to the clipped chunk.

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class RasterChunkReduceData

import { RasterChunkReduceData } from 'scenerystack/alpenglow';

Constructor

new RasterChunkReduceData( clippedChunkIndex : number, area : number, isFirstEdge : boolean, isLastEdge : boolean, minX : number, minY : number, maxX : number, maxY : number, minXCount : number, minYCount : number, maxXCount : number, maxYCount : number )

Instance Methods

isValid() : boolean

toString() : string

writeEncoding( encoder : ByteEncoder )

equals( other : RasterChunkReduceData ) : boolean

apply( clippedChunk : RasterClippedChunk ) : RasterClippedChunk

Static Methods

readEncoding( arrayBuffer : ArrayBuffer, byteOffset : number ) : RasterChunkReduceData

fromArrayBuffer( arrayBuffer : ArrayBuffer ) : RasterChunkReduceData[]

combine( a : RasterChunkReduceData, b : RasterChunkReduceData ) : RasterChunkReduceData

Static Properties

ENCODING_BYTE_LENGTH

(readonly)

INDETERMINATE : RasterChunkReduceData

(readonly)

OUT_OF_RANGE : RasterChunkReduceData

(readonly)

Source Code

See the source for RasterChunkReduceData.ts in the alpenglow repository.