Table of Contents

Interface IElevationFetch

Namespace
LansMap.Map.Elevation

A terrain data set being resolved. Poll IsDone, then read Result once.

public interface IElevationFetch

Properties

IsDone

True once Result can be read. Polled once a frame, so an implementation may advance its own work here.

bool IsDone { get; }

Property Value

bool

Result

The resolved data set. Never null once IsDone: a failed or empty fetch returns a set whose sampler degrades flat (LoadFailed true), so the map draws flat terrain rather than a hole.

IElevationTileSet Result { get; }

Property Value

IElevationTileSet

Remarks

Read once. May allocate GPU resources on first read; ownership of the returned set passes to the map, which disposes it. A cancelled handle is dead and may return null instead.

Methods

Cancel()

Abandons the fetch and releases anything it holds, including a result the map decided not to take. Safe to call more than once, and safe to call after IsDone.

void Cancel()