PixelPyramidGrinder

Description

sealed class Tinman.Terrain.Pyramids.PixelPyramidGrinder

Derived from

Disposable abstract

Helper class for merging IPixelPyramid objects.

Public / Constructors

Pixel​Pyramid​Grinder


public constructor PixelPyramidGrinder → ()

Creates a new instance of PixelPyramidGrinder.

Public / Methods

Add


public method Add → (1)

pyramid in : IPixelPyramid own

The pyramid to add.

returns → PixelPyramidGrinder

this

Adds a pyramid to the grinder.

Pyramid


[OwnerReturn]
public method Pyramid → (3)

first opt : IPixelPyramid own = null

The initial pixel pyramid to use when combining the collected pixel pyramid successively from smallest to largest.

scale opt : bool = true

Scale the second pixel pyramid up to the resulting full size at each combine step?

minFullSize opt : int32 = 0

Scales the second pixel pyramid up to this minimum full size at each combine step.

returns → IPixelPyramid

The combined pixel pyramid or null if List is empty.

Creates a combined pixel pyramid for the collected ones.

Pyramid​Size


public method PyramidSize → (1)

first opt : IPixelPyramid own = null

The initial pixel pyramid to use when combining the collected pixel pyramid successively from smallest to largest.

returns → int32

The full size of the resulting pixel pyramid.

Computes the full size of the result of Pyramid.

Public / Attributes

List


public attribute List → (get)

value : IVectorConst<IPixelPyramid>

[not-null]
The pyramids.

The pyramids in the grinder.