Skip to content

WindBarbStyle

Namespace: ThinkGeo.Core

Draws wind barbs for point features by parsing their METAR description and converting wind speed to knots.

public class WindBarbStyle : Style

Inheritance objectStyleWindBarbStyle

Properties

WindDirectionAngleColumnName

Gets or sets the column name containing the wind direction angle in degrees.

public string WindDirectionAngleColumnName { get; set; }

Property Value

string

WindSpeedInKnotsColumnName

Gets or sets the column name containing the wind speed expressed in knots.

public string WindSpeedInKnotsColumnName { get; set; }

Property Value

string

DrawingLevel

Gets or sets the drawing level at which the barbs are rendered.

public DrawingLevel DrawingLevel { get; set; }

Property Value

DrawingLevel

SymbolSize

Gets or sets the size, in pixels, of the wind barb symbol.

public float SymbolSize { get; set; }

Property Value

float

Pen

Gets or sets the pen used to stroke the wind barb.

public GeoPen Pen { get; set; }

Property Value

GeoPen

Brush

Gets or sets the brush used when filling the triangular pennants.

public GeoBrush Brush { get; set; }

Property Value

GeoBrush

Name

This property gets and set the name of the style.

public string Name { get; set; }

Property Value

string
This property gets the name of the style.

Remarks:

This name is not used by the system; it is only for the developer. However, it can be used if you generate your own legend.

IsActive

This property gets and sets the active status of the style.

public bool IsActive { get; set; }

Property Value

bool
This property gets the active status of the style.

Remarks:

If the style is not active then it will not draw.

RequiredColumnNames

This property gets the collection of fields that are required for the style.

public Collection<string> RequiredColumnNames { get; }

Property Value

Collection<string>

Remarks:

This property gets the collection of fields that are required for the style. These are in addition to any other columns you specify in styles that inherit from this one. For example, if you have use a ValueStyle and it requires a column name for the value comparison, then that column does not need to be in this collection. You only use the RequiredColumnNames for columns you need beyond those required by specific inherited styles.

Filters

Gets the list of SQL-style filters applied to this style.

public Collection<string> Filters { get; }

Property Value

Collection<string>

LabelDisplayMode

Gets the current label display mode that determines whether labels, shapes, or both are rendered.

public LabelDisplayMode LabelDisplayMode { get; }

Property Value

LabelDisplayMode

Constructors

WindBarbStyle()

Initializes a new instance of the WindBarbStyle class with sensible defaults for size and symbology.

public WindBarbStyle()

Methods

DrawCore(IEnumerable<Feature>, GeoCanvas, Collection<SimpleCandidate>, Collection<SimpleCandidate>)

Provides the overridable implementation that draws onto and appends any label candidates to .

protected void DrawCore(IEnumerable<Feature> features, GeoCanvas canvas, Collection<SimpleCandidate> labelsInThisLayer, Collection<SimpleCandidate> labelsInAllLayers)

Parameters

features IEnumerable<Feature>
The features.

canvas GeoCanvas
The to draw to.

labelsInThisLayer Collection<SimpleCandidate>
The labels in this layer.

labelsInAllLayers Collection<SimpleCandidate>
A shared collection that receives label candidates generated during drawing.

Returns

void