Table of Contents

Class GLPointFigure

Namespace
SearchAThing.OpenGL.Core
Assembly
netcore-opengl-core.dll

Specialization of typed figure within the GLPoint} primitive.

public class GLPointFigure : GLFigureTypeBase<GLPoint>, IGLPointFigure, IGLFigure, IGLVertexManagerObject, INotifyPropertyChanged
Inheritance
GLPointFigure
Implements
Inherited Members
Extension Methods

Constructors

GLPointFigure()

Create an empty points figure.

[JsonConstructor]
public GLPointFigure()

GLPointFigure(params GLPoint[])

Create a point typed figure with the given set of GLPoint primitives.

public GLPointFigure(params GLPoint[] points)

Parameters

points GLPoint[]

GLPointFigure(IEnumerable<GLPoint>)

Create a point typed figure with the given set of GLPoint primitives.

public GLPointFigure(IEnumerable<GLPoint> points)

Parameters

points IEnumerable<GLPoint>

GLPointFigure(IEnumerable<Vector3>)

Create a point typed figure with the given set of GLPoint primitives created by the given coords [local].

public GLPointFigure(IEnumerable<Vector3> points)

Parameters

points IEnumerable<Vector3>

GLPointFigure(params Vector3[])

Create a point typed figure with the given set of GLPoint primitives created by the given coords [local].

public GLPointFigure(params Vector3[] points)

Parameters

points Vector3[]

Properties

PointSize

Size of the point in pixels [screen] ( Default: 10 ).
Changing this property emits FigureInvalidated event.

public float PointSize { get; set; }

Property Value

float

Points

Enumeration of the point primitives of this figure.

public IEnumerable<GLPoint> Points { get; }

Property Value

IEnumerable<GLPoint>

PrimitiveType

Enum that describe which type underlying to the instance.

public override GLPrimitiveType PrimitiveType { get; }

Property Value

GLPrimitiveType

Methods

CopySpecialized(GLFigureBase)

protected override void CopySpecialized(GLFigureBase other)

Parameters

other GLFigureBase

MakeInstance()

Create an instance of derived type.

protected override GLFigureBase MakeInstance()

Returns

GLFigureBase
See Also

Mirror(in Matrix4x4)

Create a mirrored figure against given xy plane.

public override GLFigureBase? Mirror(in Matrix4x4 xyPlane)

Parameters

xyPlane Matrix4x4

XY mirror plane.

Returns

GLFigureBase

Mirrored figure.

SetPointSize(float)

Set figure points size.

public GLPointFigure SetPointSize(float pointSize)

Parameters

pointSize float

point size in pixels [screen].

Returns

GLPointFigure

This figure.

SimpleCmd()

Retrieve e simple cmd representation of this figure.
Its a textual representation of figure information useful to regen in a separate tool.

public override string SimpleCmd()

Returns

string