InMemoryGridSource¶
Namespace: ThinkGeo.Core
A grid the application holds in memory - a model's output, a satellite product, a frame of an animation - read as it is, with nothing interpolated. InMemoryGridSource.SetValues(Single[,]) replaces the values, and every map drawing the grid draws the new ones.
public sealed class InMemoryGridSource : GridSource
Inheritance object → GridSource → InMemoryGridSource
Properties¶
ColumnCount¶
How many cells across.
public int ColumnCount { get; }
Property Value¶
RowCount¶
How many cells down.
public int RowCount { get; }
Property Value¶
Extent¶
The ground the grid covers, in GridSource.SourceProjection.
public RectangleShape Extent { get; }
Property Value¶
SourceProjection¶
The coordinate system GridSource.Extent is in, or null when it is the map's.
public Projection SourceProjection { get; }
Property Value¶
Constructors¶
InMemoryGridSource(Single[,], RectangleShape, Projection)¶
public InMemoryGridSource(Single[,] values, RectangleShape extent, Projection sourceProjection)
Parameters¶
values Single[,]
The value in each cell, [row, column]: row 0 on the north edge, column 0 on the west. The
array's size is the grid's. NaN is a cell with no data.
extent RectangleShape
The ground the grid covers, in .
sourceProjection Projection
The coordinate system is in, or null when it is the map's.
Methods¶
SetValues(Single[,])¶
Replaces the values - an array the size of the grid's, [row, column] - and raises GridSource.Changed.
public void SetValues(Single[,] values)
Parameters¶
values Single[,]
Returns¶
FillValuesCore(GridSlot[])¶
protected void FillValuesCore(GridSlot[] slots)
Parameters¶
slots GridSlot[]
Returns¶
A()¶
internal Single[] A()
Returns¶
Events¶
Changed¶
Raised when the values change, so the maps drawing the grid draw it again.
public event EventHandler Changed;