VectSharp 2.6.1
A light library for C# vector graphics
Loading...
Searching...
No Matches
VectSharp.ThreeD.Scene Class Reference

Represents a 3D scene. More...

Inheritance diagram for VectSharp.ThreeD.Scene:

Public Member Functions

 Scene ()
 Creates a new Scene. More...
 
void AddElement (Element3D element)
 Adds the specified element to the scene.
Parameters
elementThe Element3D to add.
More...
 
void AddRange (IEnumerable< Element3D > elements)
 Adds the specified elements to the scene.
Parameters
elementsA collection of Element3Ds to add.
More...
 
void Replace (Func< Element3D, Element3D > replacementFunction)
 Replaces each element in the scene with the element returned by the replacementFunction .
Parameters
replacementFunctionA function replacing each Element3D in the scene with another Element3D.
More...
 
void Replace (Func< Element3D, IEnumerable< Element3D > > replacementFunction)
 Replaces each element in the scene with the element(s) returned by the replacementFunction .
Parameters
replacementFunctionA function replacing each Element3D in the scene with 0 or more Element3Ds.
More...
 
void AddElement (Element3D element)
 Adds the specified element to the scene. More...
 
void AddRange (IEnumerable< Element3D > elements)
 Adds the specified elements to the scene. More...
 
void Replace (Func< Element3D, Element3D > replacementFunction)
 Replaces each element in the scene with the element returned by the replacementFunction . More...
 
void Replace (Func< Element3D, IEnumerable< Element3D > > replacementFunction)
 Replaces each element in the scene with the element(s) returned by the replacementFunction . More...
 

Properties

object SceneLock [get]
 An object used to synchronise multithreaded rendering of the same scene. More...
 
IEnumerable< Element3D > SceneElements [get]
 The Element3Ds constituting the scene. More...
 
- Properties inherited from VectSharp.ThreeD.IScene
IEnumerable< Element3D > SceneElements [get]
 The Element3Ds constituting the scene. More...
 
object SceneLock [get]
 An object used to synchronise multithreaded rendering of the same scene. More...
 

Detailed Description

Represents a 3D scene.

Definition at line 66 of file Scene.cs.

Constructor & Destructor Documentation

◆ Scene()

VectSharp.ThreeD.Scene.Scene ( )

Creates a new Scene.

Definition at line 79 of file Scene.cs.

Member Function Documentation

◆ AddElement()

void VectSharp.ThreeD.Scene.AddElement ( Element3D  element)

Adds the specified element to the scene.

Parameters
elementThe Element3D to add.

Implements VectSharp.ThreeD.IScene.

Definition at line 86 of file Scene.cs.

◆ AddRange()

void VectSharp.ThreeD.Scene.AddRange ( IEnumerable< Element3D >  elements)

Adds the specified elements to the scene.

Parameters
elementsA collection of Element3Ds to add.

Implements VectSharp.ThreeD.IScene.

Definition at line 92 of file Scene.cs.

◆ Replace() [1/2]

void VectSharp.ThreeD.Scene.Replace ( Func< Element3D, Element3D >  replacementFunction)

Replaces each element in the scene with the element returned by the replacementFunction .

Parameters
replacementFunctionA function replacing each Element3D in the scene with another Element3D.

Implements VectSharp.ThreeD.IScene.

Definition at line 98 of file Scene.cs.

◆ Replace() [2/2]

void VectSharp.ThreeD.Scene.Replace ( Func< Element3D, IEnumerable< Element3D > >  replacementFunction)

Replaces each element in the scene with the element(s) returned by the replacementFunction .

Parameters
replacementFunctionA function replacing each Element3D in the scene with 0 or more Element3Ds.

Implements VectSharp.ThreeD.IScene.

Definition at line 107 of file Scene.cs.

Property Documentation

◆ SceneElements

IEnumerable<Element3D> VectSharp.ThreeD.Scene.SceneElements
get

The Element3Ds constituting the scene.

Implements VectSharp.ThreeD.IScene.

Definition at line 74 of file Scene.cs.

◆ SceneLock

object VectSharp.ThreeD.Scene.SceneLock
get

An object used to synchronise multithreaded rendering of the same scene.

Implements VectSharp.ThreeD.IScene.

Definition at line 69 of file Scene.cs.


The documentation for this class was generated from the following file: