Skip to content

DiGi.Geometry.Visual.Core.Classes

github-actions[bot] edited this page Jul 15, 2026 · 2 revisions

DiGi.Geometry.Visual.Core.Classes Namespace

Classes

Appearance Class

Represents the visual appearance properties of a geometry object, including color, opacity, and visibility.

public abstract class Appearance : DiGi.Core.Classes.SerializableObject, DiGi.Geometry.Visual.Core.Interfaces.IAppearance, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObject → Appearance

Derived
FaceAppearance
MeshAppearance
PointAppearance
SurfaceAppearance

Implements IAppearance, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject

Constructors

Appearance(Color) Constructor

Initializes a new instance of the Appearance class with a specified color.

public Appearance(DiGi.Core.Classes.Color? color);

Parameters

color DiGi.Core.Classes.Color

The color to assign to the appearance.

Appearance(Appearance) Constructor

Initializes a new instance of the Appearance class by copying properties from an existing appearance object.

public Appearance(DiGi.Geometry.Visual.Core.Classes.Appearance? appearance);

Parameters

appearance Appearance

The source appearance object to copy from.

Appearance(JsonObject) Constructor

Initializes a new instance of the Appearance class from a JSON object.

public Appearance(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the appearance data.

Properties

Appearance.Color Property

Gets or sets the color of the appearance.

public DiGi.Core.Classes.Color? Color { get; set; }

Implements Color

Property Value

DiGi.Core.Classes.Color

Appearance.Opacity Property

Gets or sets the opacity of the appearance.

public double Opacity { get; set; }

Implements Opacity

Property Value

System.Double

Appearance.Visible Property

Gets or sets a value indicating whether the appearance is visible.

public bool Visible { get; set; }

Implements Visible

Property Value

System.Boolean

CurveAppearance Class

Represents the visual appearance settings for a curve, extending point appearance properties.

public class CurveAppearance : DiGi.Geometry.Visual.Core.Classes.PointAppearance, DiGi.Geometry.Visual.Core.Interfaces.ICurveAppearance, DiGi.Geometry.Visual.Core.Interfaces.IPointAppearance, DiGi.Geometry.Visual.Core.Interfaces.IAppearance, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectAppearancePointAppearance → CurveAppearance

Implements ICurveAppearance, IPointAppearance, IAppearance, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject

Constructors

CurveAppearance(Color, double) Constructor

Initializes a new instance of the CurveAppearance class with specified color and thickness.

public CurveAppearance(DiGi.Core.Classes.Color color, double thickness);

Parameters

color DiGi.Core.Classes.Color

The color of the curve.

thickness System.Double

The line thickness of the curve.

CurveAppearance(CurveAppearance) Constructor

Initializes a new instance of the CurveAppearance class by copying values from another CurveAppearance instance.

public CurveAppearance(DiGi.Geometry.Visual.Core.Classes.CurveAppearance curveAppearance);

Parameters

curveAppearance CurveAppearance

The source curve appearance to copy from.

CurveAppearance(JsonObject) Constructor

Initializes a new instance of the CurveAppearance class from a JSON object.

public CurveAppearance(System.Text.Json.Nodes.JsonObject jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the appearance data.

Properties

CurveAppearance.PointAppearance Property

Gets or sets the appearance settings for points associated with the curve.

public DiGi.Geometry.Visual.Core.Interfaces.IPointAppearance? PointAppearance { get; set; }

Implements PointAppearance

Property Value

IPointAppearance

FaceAppearance Class

Represents the visual appearance of a face, including surface and edge properties.

public class FaceAppearance : DiGi.Geometry.Visual.Core.Classes.Appearance, DiGi.Geometry.Visual.Core.Interfaces.IFaceAppearance, DiGi.Geometry.Visual.Core.Interfaces.IAppearance, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectAppearance → FaceAppearance

Implements IFaceAppearance, IAppearance, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject

Constructors

FaceAppearance(Color, Color, double) Constructor

Initializes a new instance of the FaceAppearance class with specified surface color, edge color, and edge thickness.

public FaceAppearance(DiGi.Core.Classes.Color surfaceColor, DiGi.Core.Classes.Color edgeColor, double edgeThickness);

Parameters

surfaceColor DiGi.Core.Classes.Color

The color of the face surface.

edgeColor DiGi.Core.Classes.Color

The color of the edges.

edgeThickness System.Double

The thickness of the edges.

FaceAppearance(FaceAppearance) Constructor

Initializes a new instance of the FaceAppearance class by cloning another FaceAppearance object.

public FaceAppearance(DiGi.Geometry.Visual.Core.Classes.FaceAppearance? faceAppearance);

Parameters

faceAppearance FaceAppearance

The source face appearance to copy from.

FaceAppearance(SurfaceAppearance) Constructor

Initializes a new instance of the FaceAppearance class based on a SurfaceAppearance.

public FaceAppearance(DiGi.Geometry.Visual.Core.Classes.SurfaceAppearance? surfaceAppearance);

Parameters

surfaceAppearance SurfaceAppearance

The source surface appearance to derive settings from.

FaceAppearance(JsonObject) Constructor

Initializes a new instance of the FaceAppearance class from a System.Text.Json.Nodes.JsonObject.

public FaceAppearance(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing appearance data.

Properties

FaceAppearance.ExternalEdgeAppearance Property

Gets or sets the appearance of the external edges of the face.

public DiGi.Geometry.Visual.Core.Interfaces.ICurveAppearance? ExternalEdgeAppearance { get; set; }

Implements ExternalEdgeAppearance

Property Value

ICurveAppearance

FaceAppearance.InternalEdgeAppearance Property

Gets or sets the appearance of the internal edges of the face.

public DiGi.Geometry.Visual.Core.Interfaces.ICurveAppearance? InternalEdgeAppearance { get; set; }

Implements InternalEdgeAppearance

Property Value

ICurveAppearance

MeshAppearance Class

Represents the visual appearance settings for a mesh, including surface and edge properties.

public class MeshAppearance : DiGi.Geometry.Visual.Core.Classes.Appearance, DiGi.Geometry.Visual.Core.Interfaces.IMeshAppearance, DiGi.Geometry.Visual.Core.Interfaces.IAppearance, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectAppearance → MeshAppearance

Implements IMeshAppearance, IAppearance, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject

Constructors

MeshAppearance(Color, Color, double) Constructor

Initializes a new instance of the MeshAppearance class with specified surface color and boundary edge properties.

public MeshAppearance(DiGi.Core.Classes.Color surfaceColor, DiGi.Core.Classes.Color boundaryEdgeColor, double boundaryEdgeThickness);

Parameters

surfaceColor DiGi.Core.Classes.Color

The color of the mesh surface.

boundaryEdgeColor DiGi.Core.Classes.Color

The color of the boundary edges.

boundaryEdgeThickness System.Double

The thickness of the boundary edges.

MeshAppearance(MeshAppearance) Constructor

Initializes a new instance of the MeshAppearance class by cloning an existing mesh appearance.

public MeshAppearance(DiGi.Geometry.Visual.Core.Classes.MeshAppearance? meshAppearance);

Parameters

meshAppearance MeshAppearance

The source mesh appearance to copy from.

MeshAppearance(SurfaceAppearance) Constructor

Initializes a new instance of the MeshAppearance class based on a surface appearance.

public MeshAppearance(DiGi.Geometry.Visual.Core.Classes.SurfaceAppearance? surfaceAppearance);

Parameters

surfaceAppearance SurfaceAppearance

The source surface appearance to copy from.

MeshAppearance(JsonObject) Constructor

Initializes a new instance of the MeshAppearance class from a JSON object.

public MeshAppearance(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing appearance data.

Properties

MeshAppearance.AuxiliaryEdgeAppearance Property

Gets or sets the appearance of the auxiliary edges of the mesh.

public DiGi.Geometry.Visual.Core.Interfaces.ICurveAppearance? AuxiliaryEdgeAppearance { get; set; }

Implements AuxiliaryEdgeAppearance

Property Value

ICurveAppearance

MeshAppearance.BoundaryEdgeAppearance Property

Gets or sets the appearance of the boundary edges of the mesh.

public DiGi.Geometry.Visual.Core.Interfaces.ICurveAppearance? BoundaryEdgeAppearance { get; set; }

Implements BoundaryEdgeAppearance

Property Value

ICurveAppearance

PointAppearance Class

Represents the visual appearance of a point, including its color and thickness.

public class PointAppearance : DiGi.Geometry.Visual.Core.Classes.Appearance, DiGi.Geometry.Visual.Core.Interfaces.IPointAppearance, DiGi.Geometry.Visual.Core.Interfaces.IAppearance, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectAppearance → PointAppearance

Derived
CurveAppearance

Implements IPointAppearance, IAppearance, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject

Constructors

PointAppearance(Color, double) Constructor

Initializes a new instance of the PointAppearance class with specified color and thickness.

public PointAppearance(DiGi.Core.Classes.Color color, double thickness);

Parameters

color DiGi.Core.Classes.Color

The color of the point.

thickness System.Double

The thickness of the point.

PointAppearance(PointAppearance) Constructor

Initializes a new instance of the PointAppearance class by copying another PointAppearance object.

public PointAppearance(DiGi.Geometry.Visual.Core.Classes.PointAppearance pointAppearance);

Parameters

pointAppearance PointAppearance

The source appearance to copy from.

PointAppearance(JsonObject) Constructor

Initializes a new instance of the PointAppearance class from a System.Text.Json.Nodes.JsonObject.

public PointAppearance(System.Text.Json.Nodes.JsonObject jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing appearance data.

Properties

PointAppearance.Thickness Property

Gets or sets the thickness of the point.

public double Thickness { get; set; }

Implements Thickness

Property Value

System.Double

SurfaceAppearance Class

Represents the visual appearance of a surface, including its color and the appearance of its boundary curves.

public class SurfaceAppearance : DiGi.Geometry.Visual.Core.Classes.Appearance, DiGi.Geometry.Visual.Core.Interfaces.ISurfaceAppearance, DiGi.Geometry.Visual.Core.Interfaces.IAppearance, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectAppearance → SurfaceAppearance

Implements ISurfaceAppearance, IAppearance, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject

Constructors

SurfaceAppearance(Color, Color, double) Constructor

Initializes a new instance of the SurfaceAppearance class with specified colors and curve thickness.

public SurfaceAppearance(DiGi.Core.Classes.Color surfaceColor, DiGi.Core.Classes.Color curveColor, double curveThickness);

Parameters

surfaceColor DiGi.Core.Classes.Color

The color of the surface.

curveColor DiGi.Core.Classes.Color

The color of the boundary curves.

curveThickness System.Double

The thickness of the boundary curves.

SurfaceAppearance(SurfaceAppearance) Constructor

Initializes a new instance of the SurfaceAppearance class by cloning an existing surface appearance.

public SurfaceAppearance(DiGi.Geometry.Visual.Core.Classes.SurfaceAppearance? surfaceAppearance);

Parameters

surfaceAppearance SurfaceAppearance

The source surface appearance to copy from.

SurfaceAppearance(JsonObject) Constructor

Initializes a new instance of the SurfaceAppearance class from a JSON object.

public SurfaceAppearance(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing surface appearance data.

Properties

SurfaceAppearance.CurveAppearance Property

Gets or sets the appearance settings for the curves associated with the surface.

public DiGi.Geometry.Visual.Core.Interfaces.ICurveAppearance? CurveAppearance { get; set; }

Implements CurveAppearance

Property Value

ICurveAppearance

Visual Class

Represents a base class for visual objects in the geometry system.

public abstract class Visual : DiGi.Core.Classes.GuidObject, DiGi.Geometry.Visual.Core.Interfaces.IVisual, DiGi.Core.Interfaces.IGuidObject, DiGi.Core.Interfaces.IUniqueObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject, DiGi.Geometry.Object.Core.Interfaces.IGeometryObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectDiGi.Core.Classes.UniqueObjectDiGi.Core.Classes.GuidObject → Visual

Derived
Visual<T,X>
VisualCollection<T>

Implements IVisual, DiGi.Core.Interfaces.IGuidObject, DiGi.Core.Interfaces.IUniqueObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject, DiGi.Geometry.Object.Core.Interfaces.IGeometryObject

Constructors

Visual() Constructor

Initializes a new instance of the Visual class.

public Visual();

Visual(Visual) Constructor

Initializes a new instance of the Visual class by copying another visual object.

public Visual(DiGi.Geometry.Visual.Core.Classes.Visual? visual);

Parameters

visual Visual

The source visual object to copy from.

Visual(JsonObject) Constructor

Initializes a new instance of the Visual class from a JSON object.

public Visual(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing visual data.

Visual<T,X> Class

Represents a generic base class for visual objects that combine a specific geometry and appearance.

public abstract class Visual<T,X> : DiGi.Geometry.Visual.Core.Classes.Visual, DiGi.Geometry.Visual.Core.Interfaces.IVisual<T, X>, DiGi.Geometry.Visual.Core.Interfaces.IVisual, DiGi.Core.Interfaces.IGuidObject, DiGi.Core.Interfaces.IUniqueObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject, DiGi.Geometry.Object.Core.Interfaces.IGeometryObject, DiGi.Geometry.Object.Core.Interfaces.IGeometryObject<T>
    where T : DiGi.Geometry.Core.Interfaces.IGeometry
    where X : DiGi.Geometry.Visual.Core.Interfaces.IAppearance

Type parameters

T

The type of geometry, which must implement DiGi.Geometry.Core.Interfaces.IGeometry.

X

The type of appearance, which must implement IAppearance.

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectDiGi.Core.Classes.UniqueObjectDiGi.Core.Classes.GuidObjectVisual → Visual<T,X>

Derived
VisualCurve2D<T>
VisualPoint2D
VisualPolygon2D
VisualPolygonalFace2D
VisualSegment2D
VisualSurface2D<T>
VisualMesh3D
VisualPoint3D
VisualPolygonal3D
VisualPolygonalFace3D
VisualSegment3D

Implements DiGi.Geometry.Visual.Core.Interfaces.IVisual<T,X>, IVisual, DiGi.Core.Interfaces.IGuidObject, DiGi.Core.Interfaces.IUniqueObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject, DiGi.Geometry.Object.Core.Interfaces.IGeometryObject, DiGi.Geometry.Object.Core.Interfaces.IGeometryObject<T>

Constructors

Visual(Visual<T,X>) Constructor

Initializes a new instance of the Visual<T,X> class by copying another visual object.

public Visual(DiGi.Geometry.Visual.Core.Classes.Visual<T,X>? visual);

Parameters

visual DiGi.Geometry.Visual.Core.Classes.Visual<T,X>

The source visual object to copy from.

Visual(JsonObject) Constructor

Initializes a new instance of the Visual<T,X> class from a JSON object.

public Visual(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing visual data.

Visual(T, X) Constructor

Initializes a new instance of the Visual<T,X> class with specified geometry and appearance.

public Visual(T? geometry, X? appearance);

Parameters

geometry T

The geometry to assign to the visual object.

appearance X

The appearance to assign to the visual object.

Properties

Visual<T,X>.Appearance Property

Gets or sets the appearance of the visual object.

public virtual X? Appearance { get; set; }

Implements Appearance

Property Value

X

Visual<T,X>.Geometry Property

Gets or sets the geometry of the visual object.

public virtual T? Geometry { get; set; }

Implements Geometry

Property Value

T

VisualCollection<T> Class

Represents an abstract base class for a collection of visual elements.

public abstract class VisualCollection<T> : DiGi.Geometry.Visual.Core.Classes.Visual, DiGi.Geometry.Visual.Core.Interfaces.IVisualCollection<T>, DiGi.Geometry.Visual.Core.Interfaces.IVisualCollection, DiGi.Geometry.Visual.Core.Interfaces.IVisual, DiGi.Core.Interfaces.IGuidObject, DiGi.Core.Interfaces.IUniqueObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject, DiGi.Geometry.Object.Core.Interfaces.IGeometryObject, System.Collections.IEnumerable
    where T : DiGi.Geometry.Visual.Core.Interfaces.IVisual

Type parameters

T

The type of visual elements contained in the collection, which must implement IVisual.

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectDiGi.Core.Classes.UniqueObjectDiGi.Core.Classes.GuidObjectVisual → VisualCollection<T>

Derived
VisualCollection2D

Implements DiGi.Geometry.Visual.Core.Interfaces.IVisualCollection<T>, IVisualCollection, IVisual, DiGi.Core.Interfaces.IGuidObject, DiGi.Core.Interfaces.IUniqueObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject, DiGi.Geometry.Object.Core.Interfaces.IGeometryObject, System.Collections.IEnumerable

Constructors

VisualCollection() Constructor

Initializes a new instance of the VisualCollection<T> class.

public VisualCollection();

VisualCollection(VisualCollection<T>) Constructor

Initializes a new instance of the VisualCollection<T> class by copying another visual collection.

public VisualCollection(DiGi.Geometry.Visual.Core.Classes.VisualCollection<T>? visualCollection);

Parameters

visualCollection DiGi.Geometry.Visual.Core.Classes.VisualCollection<T>

The source visual collection to copy from.

VisualCollection(IEnumerable<T>) Constructor

Initializes a new instance of the VisualCollection<T> class with a specified set of visuals.

public VisualCollection(System.Collections.Generic.IEnumerable<T>? visuals);

Parameters

visuals System.Collections.Generic.IEnumerable<T>

The initial collection of visual elements.

VisualCollection(JsonObject) Constructor

Initializes a new instance of the VisualCollection<T> class from a JSON object.

public VisualCollection(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the collection data.

Properties

VisualCollection<T>.this[GuidReference] Property

Gets the visual element associated with the specified unique reference.

public T? this[DiGi.Core.Classes.GuidReference? guidReference] { get; }

Parameters

guidReference DiGi.Core.Classes.GuidReference

The unique reference of the visual element to retrieve.

Property Value

T

Methods

VisualCollection<T>.Add(T) Method

Adds a visual element to the collection.

public bool Add(T? value);

Parameters

value T

The visual element to add.

Returns

System.Boolean
true if the element was successfully added; otherwise, false.

VisualCollection<T>.Clear() Method

Removes all visual elements from the collection.

public void Clear();

VisualCollection<T>.Contains(GuidReference) Method

Determines whether the collection contains a visual element with the specified unique reference.

public bool Contains(DiGi.Core.Classes.GuidReference? guidReference);

Parameters

guidReference DiGi.Core.Classes.GuidReference

The unique reference to locate in the collection.

Returns

System.Boolean
true if the reference is found; otherwise, false.

VisualCollection<T>.Contains(T) Method

Determines whether the collection contains a specific visual element.

public bool Contains(T? value);

Parameters

value T

The visual element to locate in the collection.

Returns

System.Boolean
true if the element is found; otherwise, false.

VisualCollection<T>.GetEnumerator() Method

Returns an enumerator that iterates through the collection of visual elements.

public System.Collections.Generic.IEnumerator<T> GetEnumerator();

Implements GetEnumerator()

Returns

System.Collections.Generic.IEnumerator<T>
An enumerator for the collection.

VisualCollection<T>.GetValues() Method

Retrieves all visual elements currently stored in the collection.

public System.Collections.Generic.IEnumerable<T>? GetValues();

Returns

System.Collections.Generic.IEnumerable<T>
An enumerable collection of visual elements, or null if the internal storage is unavailable.

VisualCollection<T>.Remove(GuidReference) Method

Removes the visual element associated with the specified unique reference from the collection.

public bool Remove(DiGi.Core.Classes.GuidReference? guidReference);

Parameters

guidReference DiGi.Core.Classes.GuidReference

The unique reference of the element to remove.

Returns

System.Boolean
true if the element was successfully removed; otherwise, false.

VisualCollection<T>.Remove(T) Method

Removes the specified visual element from the collection.

public bool Remove(T? value);

Parameters

value T

The visual element to remove.

Returns

System.Boolean
true if the element was successfully removed; otherwise, false.

VisualCollection<T>.SetValues(IEnumerable<T>) Method

Replaces the current contents of the collection with a specified set of visual elements.

public void SetValues(System.Collections.Generic.IEnumerable<T>? values);

Parameters

values System.Collections.Generic.IEnumerable<T>

The new set of visual elements to populate the collection.

Explicit Interface Implementations

System.Collections.IEnumerable.GetEnumerator() Method

Returns an enumerator that iterates through the collection.

System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator();

Implements GetEnumerator()

VisualObject<TVisual,TSerializableObject> Class

Represents a generic visual object that pairs a visual representation with a serializable data object.

public class VisualObject<TVisual,TSerializableObject> : DiGi.Core.Classes.GuidObject, DiGi.Geometry.Visual.Core.Interfaces.IVisualObject<TVisual, TSerializableObject>, DiGi.Geometry.Visual.Core.Interfaces.IVisualObject<TVisual>, DiGi.Geometry.Visual.Core.Interfaces.IVisualObject, DiGi.Core.Interfaces.IGuidObject, DiGi.Core.Interfaces.IUniqueObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject
    where TVisual : DiGi.Geometry.Visual.Core.Interfaces.IVisual
    where TSerializableObject : DiGi.Core.Interfaces.ISerializableObject

Type parameters

TVisual

The type of the visual component, which must implement IVisual.

TSerializableObject

The type of the serializable object, which must implement DiGi.Core.Interfaces.ISerializableObject.

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectDiGi.Core.Classes.UniqueObjectDiGi.Core.Classes.GuidObject → VisualObject<TVisual,TSerializableObject>

Implements DiGi.Geometry.Visual.Core.Interfaces.IVisualObject<TVisual,TSerializableObject>, DiGi.Geometry.Visual.Core.Interfaces.IVisualObject<TVisual>, IVisualObject, DiGi.Core.Interfaces.IGuidObject, DiGi.Core.Interfaces.IUniqueObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject

Constructors

VisualObject() Constructor

Initializes a new instance of the VisualObject<TVisual,TSerializableObject> class.

public VisualObject();

VisualObject(VisualObject<TVisual,TSerializableObject>) Constructor

Initializes a new instance of the VisualObject<TVisual,TSerializableObject> class by copying another visual object.

public VisualObject(DiGi.Geometry.Visual.Core.Classes.VisualObject<TVisual,TSerializableObject>? visualObject);

Parameters

visualObject DiGi.Geometry.Visual.Core.Classes.VisualObject<TVisual,TSerializableObject>

The source visual object to copy from.

VisualObject(JsonObject) Constructor

Initializes a new instance of the VisualObject<TVisual,TSerializableObject> class from a JSON object.

public VisualObject(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the data to initialize the instance.

VisualObject(TVisual) Constructor

Initializes a new instance of the VisualObject<TVisual,TSerializableObject> class with a specified visual.

public VisualObject(TVisual? visual);

Parameters

visual TVisual

The visual component associated with this object.

VisualObject(TVisual, TSerializableObject) Constructor

Initializes a new instance of the VisualObject<TVisual,TSerializableObject> class with a specified visual and serializable object.

public VisualObject(TVisual? visual, TSerializableObject? @object);

Parameters

visual TVisual

The visual component associated with this object.

object TSerializableObject

The serializable data object associated with this object.

Properties

VisualObject<TVisual,TSerializableObject>.Object Property

Gets the serializable data object associated with this visual object.

public TSerializableObject? Object { get; private set; }

Implements Object

Property Value

TSerializableObject

VisualObject<TVisual,TSerializableObject>.Visual Property

Gets the visual component associated with this visual object.

public TVisual? Visual { get; private set; }

Implements Visual

Property Value

TVisual

Clone this wiki locally