Divooka Reference

Cell Based Terrain Query Engine

19 nodes

On this page 19

Color Palette With Slope

Function

A color scheme making use of slopes.

Signature
ColorPaletteWithSlope() -> Text
string ColorPaletteWithSlope()

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Custom Color Example

Function

This node carries no documentation.

Signature
CustomColorExample() -> Text
string CustomColorExample()

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Custom Color Example2

Function

This node carries no documentation.

Signature
CustomColorExample2() -> Text
string CustomColorExample2()

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Default Color Palette

Function

A default color scheme.

Signature
DefaultColorPalette() -> Text
string DefaultColorPalette()

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Default Color Palette Expanded

Function

A default color scheme in full details.

Signature
DefaultColorPaletteExpanded() -> Text
string DefaultColorPaletteExpanded()

Returns

resultText

Remarks

This is slower than CellBasedTerrainQueryEngine.DefaultColorPalette which uses custom built-in functions.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Make Cell Based Terrain Query Engine

Function

This node carries no documentation.

Signature
CellBasedTerrainQueryEngine -> Cell Based Terrain Query Engine
    source: Cell Based Terrain
    options: Cell Based Terrain Query Engine Options
CellBasedTerrainQueryEngine CellBasedTerrainQueryEngine(
    CellBasedTerrain source,
    CellBasedTerrainQueryEngineOptions options)

Parameters

nametypedefaultdescription
sourceCell Based Terrain—
optionsCell Based Terrain Query Engine Options—

Returns

Cell Based Terrain Query EngineCell Based Terrain Query Engine
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Colorize

Function

Overload 1 of 2

Signature
Colorize -> Pixel Image
    Cell Based Terrain Query Engine: Cell Based Terrain Query Engine
    select: Text
PixelImage Colorize(
    CellBasedTerrainQueryEngine Cell Based Terrain Query Engine,
    string select = "terrain_color(\n    height,\n    min(height) OVER (),\n    max(height) OVER ()\n) AS color")

Evaluates a SELECT-like fragment that must return one text column named color.
The color text must be a parenthesized RGB/RGBA integer tuple: "(R, G, B)" or "(R, G, B, A)".

Parameters

nametypedefaultdescription
Cell Based Terrain Query EngineCell Based Terrain Query Engine—
selectTextterrain_color( height, min(height) OV...

Returns

resultPixel Image

Overload 2 of 2

Signature
Colorize -> Pixel Image
    Cell Based Terrain Query Engine: Cell Based Terrain Query Engine
    selectR: Text
    selectG: Text
    selectB: Text
    selectA: Text
PixelImage Colorize(
    CellBasedTerrainQueryEngine Cell Based Terrain Query Engine,
    string selectR,
    string selectG,
    string selectB,
    string selectA)

Evaluates RGB/RGBA SQL expressions for every cell and returns a PixelImage.
Channel expressions are raw SQL expressions. Aliases are generated internally.

Parameters

nametypedefaultdescription
Cell Based Terrain Query EngineCell Based Terrain Query Engine—
selectRText—
selectGText—
selectBText—
selectAText—

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Dispose

Function

This node carries no documentation.

Signature
Dispose(Cell Based Terrain Query Engine: Cell Based Terrain Query Engine)
void Dispose(CellBasedTerrainQueryEngine Cell Based Terrain Query Engine)

Parameters

nametypedefaultdescription
Cell Based Terrain Query EngineCell Based Terrain Query Engine—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Extract

Function

Extracts selected expressions where the condition is true.
All unselected cells receive the extract default value.
Core ID/X/Y are preserved.

Signature
Extract -> Cell Based Terrain
    Cell Based Terrain Query Engine: Cell Based Terrain Query Engine
    where: Text
    select: Text
CellBasedTerrain Extract(
    CellBasedTerrainQueryEngine Cell Based Terrain Query Engine,
    string where,
    string select)

Parameters

nametypedefaultdescription
Cell Based Terrain Query EngineCell Based Terrain Query Engine—
whereText—
selectText—

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Get Cell Count

Function

This node carries no documentation.

Signature
CellCount(Cell Based Terrain Query Engine: Cell Based Terrain Query Engine) -> Integer
int CellCount(CellBasedTerrainQueryEngine Cell Based Terrain Query Engine)

Parameters

nametypedefaultdescription
Cell Based Terrain Query EngineCell Based Terrain Query Engine—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Get Columns

Function

This node carries no documentation.

Signature
Columns(Cell Based Terrain Query Engine: Cell Based Terrain Query Engine) -> Integer
int Columns(CellBasedTerrainQueryEngine Cell Based Terrain Query Engine)

Parameters

nametypedefaultdescription
Cell Based Terrain Query EngineCell Based Terrain Query Engine—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Get Physical Scale

Function

This node carries no documentation.

Signature
PhysicalScale(Cell Based Terrain Query Engine: Cell Based Terrain Query Engine) -> Number
double PhysicalScale(CellBasedTerrainQueryEngine Cell Based Terrain Query Engine)

Parameters

nametypedefaultdescription
Cell Based Terrain Query EngineCell Based Terrain Query Engine—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Get Query Attribute Names

Function

This node carries no documentation.

Signature
QueryAttributeNames(Cell Based Terrain Query Engine: Cell Based Terrain Query Engine) -> IReadOnlyCollection<Text>
IReadOnlyCollection<string> QueryAttributeNames(CellBasedTerrainQueryEngine Cell Based Terrain Query Engine)

Parameters

nametypedefaultdescription
Cell Based Terrain Query EngineCell Based Terrain Query Engine—

Returns

resultIReadOnlyCollection<Text>
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Get Rows

Function

This node carries no documentation.

Signature
Rows(Cell Based Terrain Query Engine: Cell Based Terrain Query Engine) -> Integer
int Rows(CellBasedTerrainQueryEngine Cell Based Terrain Query Engine)

Parameters

nametypedefaultdescription
Cell Based Terrain Query EngineCell Based Terrain Query Engine—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Get Data

Function

Returns the terrain snapshot represented by this engine.

Signature
GetData(Cell Based Terrain Query Engine: Cell Based Terrain Query Engine) -> Cell Based Terrain
CellBasedTerrain GetData(CellBasedTerrainQueryEngine Cell Based Terrain Query Engine)

Parameters

nametypedefaultdescription
Cell Based Terrain Query EngineCell Based Terrain Query Engine—

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Mask

Function

Evaluates a WHERE-like fragment and returns a sharp 0/1 height mask.

Signature
Mask -> Scalar Field
    Cell Based Terrain Query Engine: Cell Based Terrain Query Engine
    where: Text
ScalarField2D Mask(
    CellBasedTerrainQueryEngine Cell Based Terrain Query Engine,
    string where)

Parameters

nametypedefaultdescription
Cell Based Terrain Query EngineCell Based Terrain Query Engine—
whereText—

Returns

resultScalar Field
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Modify

Function

Overload 1 of 2

Signature
Modify -> Cell Based Terrain
    Cell Based Terrain Query Engine: Cell Based Terrain Query Engine
    targetAttributeName: Text
    expression: Text
CellBasedTerrain Modify(
    CellBasedTerrainQueryEngine Cell Based Terrain Query Engine,
    string targetAttributeName,
    string expression)

Replaces one attribute with an expression evaluated for every cell.

Parameters

nametypedefaultdescription
Cell Based Terrain Query EngineCell Based Terrain Query Engine—
targetAttributeNameText—
expressionText—

Returns

resultCell Based Terrain

Overload 2 of 2

Signature
Modify -> Cell Based Terrain
    Cell Based Terrain Query Engine: Cell Based Terrain Query Engine
    targetAttributeName: Text
    expression: Text
    where: Text
CellBasedTerrain Modify(
    CellBasedTerrainQueryEngine Cell Based Terrain Query Engine,
    string targetAttributeName,
    string expression,
    string where)

Replaces one attribute with an expression only where the condition is true.
Other cells keep the original value.

Parameters

nametypedefaultdescription
Cell Based Terrain Query EngineCell Based Terrain Query Engine—
targetAttributeNameText—
expressionText—
whereText—

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Modify Then

Function

Overload 1 of 2

Signature
ModifyThen -> Cell Based Terrain Query Engine
    Cell Based Terrain Query Engine: Cell Based Terrain Query Engine
    targetAttributeName: Text
    expression: Text
CellBasedTerrainQueryEngine ModifyThen(
    CellBasedTerrainQueryEngine Cell Based Terrain Query Engine,
    string targetAttributeName,
    string expression)

Fluent modification. Returns a new engine whose source is the modified result.

Parameters

nametypedefaultdescription
Cell Based Terrain Query EngineCell Based Terrain Query Engine—
targetAttributeNameText—
expressionText—

Returns

resultCell Based Terrain Query Engine

Overload 2 of 2

Signature
ModifyThen -> Cell Based Terrain Query Engine
    Cell Based Terrain Query Engine: Cell Based Terrain Query Engine
    targetAttributeName: Text
    expression: Text
    where: Text
CellBasedTerrainQueryEngine ModifyThen(
    CellBasedTerrainQueryEngine Cell Based Terrain Query Engine,
    string targetAttributeName,
    string expression,
    string where)

Fluent conditional modification. Returns a new engine whose source is the modified result.

Parameters

nametypedefaultdescription
Cell Based Terrain Query EngineCell Based Terrain Query Engine—
targetAttributeNameText—
expressionText—
whereText—

Returns

resultCell Based Terrain Query Engine
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation

Parse Select Items

Function

This node carries no documentation.

Signature
ParseSelectItems(select: Text) -> Cell Terrain Select Item Array
CellTerrainSelectItem[] ParseSelectItems(string select)

Parameters

nametypedefaultdescription
selectText—

Returns

resultCell Terrain Select Item Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain Query Engine
Package
Procedural Generation