Scene
Overview
Scene is a class in Aspose.3D FOSS for Java.
Inherits from: SceneObject.
Scene.Scene creates an empty Scene instance.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
rootNode | Node | Read | Property provides access to the scene’s root Node |
assetInfo | AssetInfo | Read | Property gets or sets the scene’s AssetInfo |
subScenes | List<Scene> | Read | Property returns the list of sub‑Scenes |
library | List<A3DObject> | Read | Property returns the list of library A3DObject items |
animationClips | List<AnimationClip> | Read | Property returns the list of AnimationClip objects |
currentAnimationClip | AnimationClip | Read | Property gets or sets the active AnimationClip |
poses | Collection<Pose> | Read | Property provides the collection of Pose objects |
VERSION | String | Read | Property contains the library version string |
Methods
| Signature | Description |
|---|---|
Scene() | Creates a new sub‑Scene under the given parent Scene with the specified name |
Scene(entity: Entity) | |
Scene(scene: Scene, name: String) | |
getRootNode() → Node | Returns the root Node of the scene hierarchy |
getAssetInfo() → AssetInfo | Returns the AssetInfo associated with the scene |
setAssetInfo(value: AssetInfo) | Assigns the given AssetInfo to the scene |
getSubScenes() → List<Scene> | Returns a list of child Scene objects |
getLibrary() → List<A3DObject> | Returns a list of library A3DObject resources |
getAnimationClips() → List<AnimationClip> | Returns all AnimationClip objects in the scene |
getCurrentAnimationClip() → AnimationClip | Returns the currently active AnimationClip |
setCurrentAnimationClip(value: AnimationClip) | Sets the active AnimationClip |
getAnimationClip(name: String) → AnimationClip | Returns the AnimationClip with the specified name |
createAnimationClip(name: String) → AnimationClip | Creates a new AnimationClip with the given name |
getPoses() → Collection<Pose> | Returns the collection of Pose objects in the scene |
clear() | Removes all content from the scene |
open(filePath: String) | Loads a scene from an InputStream with LoadOptions and cancellation support |
open(filePath: String, cancellationToken: Cancellation) | |
open(filePath: String, format: FileFormat) | |
open(filePath: String, format: FileFormat, cancellationToken: Cancellation) | |
open(filePath: String, options: LoadOptions) | |
open(filePath: String, options: LoadOptions, cancellationToken: Cancellation) | |
open(stream: InputStream) | |
open(stream: InputStream, cancellationToken: Cancellation) | |
open(stream: InputStream, format: FileFormat) | |
open(stream: InputStream, format: FileFormat, cancellationToken: Cancellation) | |
open(stream: InputStream, options: LoadOptions) | |
open(stream: InputStream, options: LoadOptions, cancellationToken: Cancellation) | |
open(stream: Stream, format: FileFormat, options: LoadOptions) | |
open(stream: Stream, format: FileFormat, options: LoadOptions, cancellationToken: Cancellation) | |
open(stream: Stream) | |
open(stream: Stream, cancellationToken: Cancellation) | |
open(stream: Stream, format: FileFormat) | |
open(stream: Stream, format: FileFormat, cancellationToken: Cancellation) | |
open(stream: Stream, options: LoadOptions) | |
open(stream: Stream, options: LoadOptions, cancellationToken: Cancellation) | |
fromFile(filePath: String) → Scene | |
fromFile(filePath: String, cancellationToken: Cancellation) → Scene | |
fromFile(filePath: String, format: FileFormat) → Scene | |
fromFile(filePath: String, format: FileFormat, cancellationToken: Cancellation) → Scene | |
fromFile(filePath: String, options: LoadOptions) → Scene | |
fromFile(filePath: String, options: LoadOptions, cancellationToken: Cancellation) → Scene | |
fromStream(stream: InputStream) → Scene | |
fromStream(stream: InputStream, cancellationToken: Cancellation) → Scene | |
fromStream(stream: InputStream, format: FileFormat) → Scene | |
fromStream(stream: InputStream, format: FileFormat, cancellationToken: Cancellation) → Scene | |
fromStream(stream: InputStream, options: LoadOptions) → Scene | |
fromStream(stream: InputStream, options: LoadOptions, cancellationToken: Cancellation) → Scene | |
fromStream(stream: Stream) → Scene | |
fromStream(stream: Stream, cancellationToken: Cancellation) → Scene | |
fromStream(stream: Stream, format: FileFormat) → Scene | |
fromStream(stream: Stream, format: FileFormat, cancellationToken: Cancellation) → Scene | |
fromStream(stream: Stream, options: LoadOptions) → Scene | |
fromStream(stream: Stream, options: LoadOptions, cancellationToken: Cancellation) → Scene | |
save(filePath: String) | |
save(filePath: String, format: FileFormat) | |
save(filePath: String, format: FileFormat, cancellationToken: Cancellation) | |
save(filePath: String, options: SaveOptions) | |
save(filePath: String, options: SaveOptions, cancellationToken: Cancellation) | |
save(stream: OutputStream, format: FileFormat) | |
save(stream: OutputStream, format: FileFormat, cancellationToken: Cancellation) | |
save(stream: OutputStream, options: SaveOptions) | |
save(stream: OutputStream, options: SaveOptions, cancellationToken: Cancellation) | |
save(stream: OutputStream, format: FileFormat, options: SaveOptions) | |
save(stream: OutputStream, format: FileFormat, options: SaveOptions, cancellationToken: Cancellation) | |
save(stream: Stream, format: FileFormat) | |
save(stream: Stream, format: FileFormat, cancellationToken: Cancellation) | |
save(stream: Stream, options: SaveOptions) | |
save(stream: Stream, options: SaveOptions, cancellationToken: Cancellation) | |
render(camera: Camera, fileName: String) | Not implemented in the FOSS edition — throws at runtime. |
render(camera: Camera, fileName: String, size: Vector2, format: String) | Not implemented in the FOSS edition — throws at runtime. |
render(camera: Camera, fileName: String, size: Vector2, format: String, options: ImageRenderOptions) | Not implemented in the FOSS edition — throws at runtime. |
render(camera: Camera, texture: TextureData) | Not implemented in the FOSS edition — throws at runtime. |
render(camera: Camera, texture: TextureData, options: ImageRenderOptions) | Not implemented in the FOSS edition — throws at runtime. |