Table of Contents

Class GLFigureTypeBase<P>

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

Template typed GLPrimitiveBase figure base operations such as Add and Remove primitives from the figure.

public abstract class GLFigureTypeBase<P> : GLFigureBase, IGLFigure, IGLVertexManagerObject, INotifyPropertyChanged where P : GLPrimitiveBase

Type Parameters

P
Template typed figure base operations such as Add and Remove primitives from the figure.
Inheritance
GLFigureTypeBase<P>
Implements
Derived
Inherited Members
Extension Methods

Constructors

GLFigureTypeBase()

Create an empty figure.

public GLFigureTypeBase()

GLFigureTypeBase(IEnumerable<P>)

Create a figure with the set of given primitives all of the same type.

public GLFigureTypeBase(IEnumerable<P> primitives)

Parameters

primitives IEnumerable<P>

GLFigureTypeBase(params P[])

Create a figure with the set of given primitives all of the same type.

public GLFigureTypeBase(params P[] primitives)

Parameters

primitives P[]

Fields

PrimitivesOBC

Observable collection of primitives in this figure.

[JsonProperty]
protected ObservableCollection<GLPrimitiveBase> PrimitivesOBC

Field Value

ObservableCollection<GLPrimitiveBase>

Properties

Primitives

A figure can contains primitives that in turn can contains vertexes.

public override ReadOnlyObservableCollection<GLPrimitiveBase> Primitives { get; }

Property Value

ReadOnlyObservableCollection<GLPrimitiveBase>

Methods

Add(P)

Add given primitive to this figure.

public void Add(P primitive)

Parameters

primitive P

Primitive such as GLPoint, GLLine or GLTriangle to be added.

CopySpecialized(GLFigureBase)

protected override void CopySpecialized(GLFigureBase other)

Parameters

other GLFigureBase

Remove(P)

Remove existing primitive from this figure.

public void Remove(P primitive)

Parameters

primitive P

Primitive such as GLPoint, GLLine or GLTriangle to remove.

RemovePrimitive(GLPrimitiveBase)

Remove primitive from this figure.

public override void RemovePrimitive(GLPrimitiveBase primitive)

Parameters

primitive GLPrimitiveBase

Gl primitive to remove.