Table of Contents

Class PickOrder

Namespace
EncDotNet.S100.Datasets.Pipelines
Assembly
EncDotNet.S100.Core.dll

The pick report's order (S-98 15.1; S-164 FeatureInformation2): features with the highest drawing priority in the portrayal first, and at equal priority points, then curves, then surfaces. A feature with no drawing priority (not drawn at the current settings, or from a dataset with no portrayal) comes after every drawn one.

public static class PickOrder
Inheritance
PickOrder
Inherited Members

Methods

Compare(int?, S100GeometryType, int?, S100GeometryType)

Compares two features by drawing priority, then geometry.

public static int Compare(int? priorityA, S100GeometryType geometryA, int? priorityB, S100GeometryType geometryB)

Parameters

priorityA int?

The first feature's drawing priority, or null.

geometryA S100GeometryType

The first feature's geometry.

priorityB int?

The second feature's drawing priority, or null.

geometryB S100GeometryType

The second feature's geometry.

Returns

int

Negative when the first comes first, positive when the second does, else 0.

ComparePriority(int?, int?)

Compares two drawing priorities: higher first, and a priority before none. Two features with no priority compare equal.

public static int ComparePriority(int? a, int? b)

Parameters

a int?

The first feature's drawing priority, or null.

b int?

The second feature's drawing priority, or null.

Returns

int

Negative when a comes first, positive when b does, else 0.

GeometryRank(S100GeometryType)

The rank of a geometry at equal drawing priority: points 0, curves 1, surfaces 2, no geometry 3.

public static int GeometryRank(S100GeometryType geometry)

Parameters

geometry S100GeometryType

The feature's geometry.

Returns

int

The rank, lowest first.