VectorFieldStyle¶
Namespace: ThinkGeo.Core.Styling
How a VectorFieldSource draws as arrows. Every property has a working default, so AddVectorField(field) alone draws.
public sealed class VectorFieldStyle
Inheritance object → VectorFieldStyle
Properties¶
ColorStops¶
The colours, by speed in the field's own units: (0, blue), (10, yellow), (25, red) for metres per second. The stops fix the range - a speed below the first takes the first colour, above the last the last - so a colour means the same speed in every update of the field. Null colours each update over its own range with a built-in blue-to-red ramp. The stops GridFillStyle.ColorStops takes.
public IReadOnlyList<ColorStop> ColorStops { get; set; }
Property Value¶
ArrowSizeInPixel¶
Arrow length at the field's maximum magnitude; weaker cells draw smaller.
public float ArrowSizeInPixel { get; set; }
Property Value¶
MaxArrows¶
The most arrows the whole field draws - not per screen. The field is sampled every n-th row and column, n chosen so the samples come to at most this many: 2500 is about 50 by 50 over the field. The stride does not change with the zoom, so zooming in shows fewer arrows on screen, further apart. Cells slower than VectorFieldStyle.MinSpeed are sampled but draw nothing, so fewer may draw.
public int MaxArrows { get; set; }
Property Value¶
MinSpeed¶
Cells slower than this, in the field's own units, draw no arrow - calm air is not an arrow.
public float MinSpeed { get; set; }
Property Value¶
Constructors¶
VectorFieldStyle()¶
public VectorFieldStyle()