Scene Class
A scene is a top-level object that contains the nodes, geometries, materials, textures, animation, poses, sub-scenes and etc. Scene can have sub-scenes, acts as multiple-document support in files like collada/blender/fbx Node hierarchy can be accessed through RootNodeLibrary is used to keep a reference of unattached objects during serialization(like meta data or custom objects) so it can be used as a library.
Inheritance Hierarchy
SystemObject
  Aspose.ThreeDA3DObject
    Aspose.ThreeDSceneObject
      Aspose.ThreeDScene

Namespace: Aspose.ThreeD
Assembly: Aspose.3D (in Aspose.3D.dll) Version: 21.6.0.0 (21.6)
Syntax
public class Scene : SceneObject

The Scene type exposes the following members.

Constructors
  NameDescription
Public methodScene
Initializes a new instance of the Scene class.
Public methodScene(String)
Initializes a new instance of the Scene class and open the file immediately.
Public methodScene(Entity)
Initializes a new instance of the Scene class with an entity attached to a new node.
Public methodScene(Scene, String)
Initializes a new instance of the Scene class as a sub-scene.
Properties
  NameDescription
Public propertyAnimationClips
Gets all AnimationClip defined in the scene.
Public propertyAssetInfo
Gets or sets the top-level asset information
Public propertyCurrentAnimationClip
Gets or sets the active AnimationClip
Public propertyLibrary
Objects that not directly used in scene hierarchy can be defined in Library. This is useful when you're using sub-scenes and put reusable components under sub-scenes.
Public propertyName
Gets or sets the name.
(Inherited from A3DObject.)
Public propertyPoses
Gets all Pose used in this scene.
Public propertyProperties
Gets the collection of all properties.
(Inherited from A3DObject.)
Public propertyRootNode
Gets the root node of the scene.
Public propertyScene
Gets the scene that this object belongs to
(Inherited from SceneObject.)
Public propertySubScenes
Gets all sub-scenes
Methods
  NameDescription
Public methodClear
Clears the scene content and restores the default settings.
Public methodCreateAnimationClip
A shorthand function to create and register the AnimationClip The first AnimationClip will be assigned to the CurrentAnimationClip
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFindProperty
Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)
(Inherited from A3DObject.)
Public methodGetAnimationClip
Gets a named AnimationClip
Public methodGetHashCode (Inherited from Object.)
Public methodGetProperty
Get the value of specified property
(Inherited from A3DObject.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodOpen(Stream, CancellationToken)
Opens the scene from given stream
Public methodOpen(String, CancellationToken)
Opens the scene from given path
Public methodOpen(Stream, FileFormat, CancellationToken)
Opens the scene from given stream using specified file format.
Public methodOpen(Stream, LoadOptions, CancellationToken)
Opens the scene from given stream using specified IO config.
Public methodOpen(String, FileFormat, CancellationToken)
Opens the scene from given path using specified file format.
Public methodOpen(String, LoadOptions, CancellationToken)
Opens the scene from given path using specified file format.
Protected methodReloadSceneAs
Public methodRemoveProperty(String)
Remove the specified property identified by name
(Inherited from A3DObject.)
Public methodRemoveProperty(Property)
Removes a dynamic property.
(Inherited from A3DObject.)
Public methodRender(Camera, Bitmap)
Render the scene into bitmap from given camera's perspective.
Public methodRender(Camera, String)
Render the scene into external file from given camera's perspective. The default output size is 1024x768 and output format is png
Public methodRender(Camera, Bitmap, ImageRenderOptions)
Render the scene into bitmap from given camera's perspective.
Public methodRender(Camera, String, Size, ImageFormat)
Render the scene into external file from given camera's perspective.
Public methodRender(Camera, String, Size, ImageFormat, ImageRenderOptions)
Render the scene into external file from given camera's perspective.
Public methodSave(Stream, FileFormat, CancellationToken)
Saves the scene to stream using specified file format.
Public methodSave(Stream, SaveOptions, CancellationToken)
Saves the scene to stream using specified file format.
Public methodSave(String, FileFormat, CancellationToken)
Saves the scene to specified path using specified file format.
Public methodSave(String, SaveOptions, CancellationToken)
Saves the scene to specified path using specified file format.
Public methodSetProperty
Sets the value of specified property
(Inherited from A3DObject.)
Public methodToString (Inherited from Object.)
Fields
  NameDescription
Protected fieldname (Inherited from A3DObject.)
Protected fieldproperties (Inherited from A3DObject.)
See Also