Struct PinRecord
One named anchor of a rendered frame: where it landed on the canvas, how deep, and whether it is visible. Positions are canvas pixels with a top-left origin, y down; they may lie outside the canvas.
public readonly record struct PinRecord : IEquatable<PinRecord>
- Implements
- Inherited Members
- Extension Methods
Constructors
PinRecord(string, double, double, double, int, PinFlags)
One named anchor of a rendered frame: where it landed on the canvas, how deep, and whether it is visible. Positions are canvas pixels with a top-left origin, y down; they may lie outside the canvas.
public PinRecord(string Name, double X, double Y, double Depth, int PickID, PinFlags Flags)
Parameters
NamestringThe pin name given to PinDrawing.
XdoubleAnchor x in canvas pixels.
YdoubleAnchor y in canvas pixels, y down.
DepthdoubleGL window depth clamped to [0, 1]; 0 is nearest. Comparable within one engine only.
PickIDintThe picking id current when the pin was displayed.
FlagsPinFlagsFlag bits.
Properties
AlwaysOnTop
The pin was displayed always-on-top.
public bool AlwaysOnTop { get; }
Property Value
Depth
GL window depth clamped to [0, 1]; 0 is nearest. Comparable within one engine only.
public double Depth { get; init; }
Property Value
Flags
Flag bits.
public PinFlags Flags { get; init; }
Property Value
IsVisible
On the canvas and not occluded.
public bool IsVisible { get; }
Property Value
Name
The pin name given to PinDrawing.
public string Name { get; init; }
Property Value
Occluded
Scene geometry hides the anchor.
public bool Occluded { get; }
Property Value
OnCanvas
The anchor lies inside the canvas.
public bool OnCanvas { get; }
Property Value
PickID
The picking id current when the pin was displayed.
public int PickID { get; init; }
Property Value
X
Anchor x in canvas pixels.
public double X { get; init; }
Property Value
Y
Anchor y in canvas pixels, y down.
public double Y { get; init; }