Simple3D
Search Results for

    Show / Hide Table of Contents

    Class Scene

    A mutable scene. Mutate and render on the same thread; notifications are synchronous.

    Inheritance
    object
    Scene
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Simple3D.Core
    Assembly: Simple3D.Core.dll
    Syntax
    public sealed class Scene

    Constructors

    | Edit this page View Source

    Scene()

    Creates an empty scene.

    Declaration
    public Scene()

    Fields

    | Edit this page View Source

    MaximumNodes

    Maximum node visits during bounds calculation or rendering, including empty groups and repeated instances.

    Declaration
    public const int MaximumNodes = 100000
    Field Value
    Type Description
    int

    Properties

    | Edit this page View Source

    Labels

    World anchored overlay labels.

    Declaration
    public IReadOnlyList<WorldLabel> Labels { get; }
    Property Value
    Type Description
    IReadOnlyList<WorldLabel>
    | Edit this page View Source

    Shapes

    Top-level immutable nodes.

    Declaration
    public IReadOnlyList<Shape> Shapes { get; }
    Property Value
    Type Description
    IReadOnlyList<Shape>

    Methods

    | Edit this page View Source

    Add(Shape)

    Appends a node and notifies observers.

    Declaration
    public Scene Add(Shape shape)
    Parameters
    Type Name Description
    Shape shape
    Returns
    Type Description
    Scene
    | Edit this page View Source

    AddLabel(WorldLabel)

    Adds a label and notifies observers.

    Declaration
    public Scene AddLabel(WorldLabel label)
    Parameters
    Type Name Description
    WorldLabel label
    Returns
    Type Description
    Scene
    | Edit this page View Source

    Clear()

    Removes all nodes and labels.

    Declaration
    public Scene Clear()
    Returns
    Type Description
    Scene
    | Edit this page View Source

    GetBounds()

    World axis-aligned bounds of geometry, or null for an empty scene. Labels are excluded. Overflowing transforms or excessive node or triangle visits throw.

    Declaration
    public Bounds3? GetBounds()
    Returns
    Type Description
    Bounds3?
    | Edit this page View Source

    Remove(Shape)

    Removes the first matching top-level node.

    Declaration
    public bool Remove(Shape shape)
    Parameters
    Type Name Description
    Shape shape
    Returns
    Type Description
    bool
    | Edit this page View Source

    RemoveLabel(WorldLabel)

    Removes the first matching label.

    Declaration
    public bool RemoveLabel(WorldLabel label)
    Parameters
    Type Name Description
    WorldLabel label
    Returns
    Type Description
    bool
    | Edit this page View Source

    Replace(Shape, Shape)

    Replaces the first matching top-level node. Returns false when absent or unchanged.

    Declaration
    public bool Replace(Shape oldShape, Shape newShape)
    Parameters
    Type Name Description
    Shape oldShape
    Shape newShape
    Returns
    Type Description
    bool

    Events

    | Edit this page View Source

    Changed

    Raised once after each successful mutation; replacements provide ShapeReplacementEventArgs.

    Declaration
    public event EventHandler? Changed
    Event Type
    Type Description
    EventHandler
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX