Scene

Overview

Scene is a class in Aspose.3D FOSS for Java. Inherits from: SceneObject.

Scene.Scene creates an empty Scene instance.

Properties

NameTypeAccessDescription
rootNodeNodeReadProperty provides access to the scene’s root Node
assetInfoAssetInfoReadProperty gets or sets the scene’s AssetInfo
subScenesList<Scene>ReadProperty returns the list of sub‑Scenes
libraryList<A3DObject>ReadProperty returns the list of library A3DObject items
animationClipsList<AnimationClip>ReadProperty returns the list of AnimationClip objects
currentAnimationClipAnimationClipReadProperty gets or sets the active AnimationClip
posesCollection<Pose>ReadProperty provides the collection of Pose objects
VERSIONStringReadProperty contains the library version string

Methods

SignatureDescription
Scene()Creates a new sub‑Scene under the given parent Scene with the specified name
Scene(entity: Entity)
Scene(scene: Scene, name: String)
getRootNode()NodeReturns the root Node of the scene hierarchy
getAssetInfo()AssetInfoReturns 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()AnimationClipReturns the currently active AnimationClip
setCurrentAnimationClip(value: AnimationClip)Sets the active AnimationClip
getAnimationClip(name: String)AnimationClipReturns the AnimationClip with the specified name
createAnimationClip(name: String)AnimationClipCreates 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.