Table of Contents

Struct PolygonInfo

Namespace
LansMap.Core.Vector

A snapshot of one polygon's current settings and vertex count, from TryGetPolygon(int, out PolygonInfo).

public readonly struct PolygonInfo
Inherited Members

Constructors

PolygonInfo(uint, int, int, Rejection)

Creates a snapshot with every field set.

public PolygonInfo(uint colorRgba, int pointCount, int maxPoints, PolygonStore.Rejection lastRefusal)

Parameters

colorRgba uint
pointCount int
maxPoints int
lastRefusal PolygonStore.Rejection

Properties

ColorRgba

Fill color as packed RGBA.

public uint ColorRgba { get; }

Property Value

uint

LastRefusal

Why the last SetPolygonRing(int, IReadOnlyList<LatLon>) call on this polygon was refused; None when it was accepted or the polygon has never been rewritten since add.

public PolygonStore.Rejection LastRefusal { get; }

Property Value

PolygonStore.Rejection

MaxPoints

Reserved capacity plus two - the most ring vertices this polygon can hold without reallocating.

public int MaxPoints { get; }

Property Value

int

PointCount

Ring vertices currently drawn; 0 while the polygon is hidden.

public int PointCount { get; }

Property Value

int