Scene
Overview
Scene is a class in Aspose.3D FOSS for Java.
Inherits from: SceneObject.
Scene.open(filePath) loads a 3D file, automatically detecting its format based on the file extension.
This class provides 79 methods for working with Scene objects in Java programs.
Available methods include: Scene, clear, createAnimationClip, findProperty, fromFile, fromStream, getAnimationClip, getAnimationClips, getAssetInfo, getCurrentAnimationClip, getLibrary, getName, and 14 additional methods.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: VERSION, animationClips, assetInfo, currentAnimationClip, library, name, and 5 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
rootNode | Node | Read | Gets the root node. |
assetInfo | AssetInfo | Read | Gets the asset info. |
subScenes | List<Scene> | Read | Gets the sub scenes. |
library | List<A3DObject> | Read | Gets the library. |
animationClips | List<AnimationClip> | Read | Gets the animation clips. |
currentAnimationClip | AnimationClip | Read | Gets the current animation clip. |
poses | Collection<Pose> | Read | Gets the poses. |
VERSION | String | Read | Gets the version. |
scene | Scene | Read | Gets the scene. |
name | String | Read | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
Scene() | Calls Scene on this Scene instance. |
Scene(entity: Entity) | Calls Scene(entity) on this Scene instance. |
Scene(scene: Scene, name: String) | Calls Scene(scene, name) on this Scene instance. |
getRootNode() → Node | Returns the root node. |
getAssetInfo() → AssetInfo | Returns the asset info. |
setAssetInfo(value: AssetInfo) | Sets the asset info value. |
getSubScenes() → List<Scene> | Returns the sub scenes. |
getLibrary() → List<A3DObject> | Returns the library. |
getAnimationClips() → List<AnimationClip> | Returns the animation clips. |
getCurrentAnimationClip() → AnimationClip | Returns the current animation clip. |
setCurrentAnimationClip(value: AnimationClip) | Sets the current animation clip value. |
getAnimationClip(name: String) → AnimationClip | Calls getAnimationClip(name) on this Scene instance. |
createAnimationClip(name: String) → AnimationClip | Calls createAnimationClip(name) on this Scene instance. |
getPoses() → Collection<Pose> | Returns the poses. |
clear() | Calls clear on this Scene instance. |
open(filePath: String) | Loads a 3D file, automatically detecting its format based on the file extension |
open(filePath: String, cancellationToken: Cancellation) | Calls open(filePath, cancellationToken) on this Scene instance. |
open(filePath: String, format: FileFormat) | Calls open(filePath, format) on this Scene instance. |
open(filePath: String, format: FileFormat, cancellationToken: Cancellation) | Calls open(filePath, format, cancellationToken) on this Scene instance. |
open(filePath: String, options: LoadOptions) | Calls open(filePath, options) on this Scene instance. |
open(filePath: String, options: LoadOptions, cancellationToken: Cancellation) | Calls open(filePath, options, cancellationToken) on this Scene instance. |
open(stream: InputStream) | Calls open(stream) on this Scene instance. |
open(stream: InputStream, cancellationToken: Cancellation) | Calls open(stream, cancellationToken) on this Scene instance. |
open(stream: InputStream, format: FileFormat) | Calls open(stream, format) on this Scene instance. |
open(stream: InputStream, format: FileFormat, cancellationToken: Cancellation) | Calls open(stream, format, cancellationToken) on this Scene instance. |
open(stream: InputStream, options: LoadOptions) | Calls open(stream, options) on this Scene instance. |
open(stream: InputStream, options: LoadOptions, cancellationToken: Cancellation) | Calls open(stream, options, cancellationToken) on this Scene instance. |
open(stream: Stream, format: FileFormat, options: LoadOptions) | Calls open(stream, format, options) on this Scene instance. |
open(stream: Stream, format: FileFormat, options: LoadOptions, cancellationToken: Cancellation) | Calls open(stream, format, options, cancellationToken) on this Scene instance. |
open(stream: Stream) | Calls open(stream) on this Scene instance. |
open(stream: Stream, cancellationToken: Cancellation) | Calls open(stream, cancellationToken) on this Scene instance. |
open(stream: Stream, format: FileFormat) | Calls open(stream, format) on this Scene instance. |
open(stream: Stream, format: FileFormat, cancellationToken: Cancellation) | Calls open(stream, format, cancellationToken) on this Scene instance. |
open(stream: Stream, options: LoadOptions) | Calls open(stream, options) on this Scene instance. |
open(stream: Stream, options: LoadOptions, cancellationToken: Cancellation) | Calls open(stream, options, cancellationToken) on this Scene instance. |
fromFile(filePath: String) → Scene | Calls fromFile(filePath) on this Scene instance. |
fromFile(filePath: String, cancellationToken: Cancellation) → Scene | Calls fromFile(filePath, cancellationToken) on this Scene instance. |
fromFile(filePath: String, format: FileFormat) → Scene | Calls fromFile(filePath, format) on this Scene instance. |
fromFile(filePath: String, format: FileFormat, cancellationToken: Cancellation) → Scene | Calls fromFile(filePath, format, cancellationToken) on this Scene instance. |
fromFile(filePath: String, options: LoadOptions) → Scene | Calls fromFile(filePath, options) on this Scene instance. |
fromFile(filePath: String, options: LoadOptions, cancellationToken: Cancellation) → Scene | Calls fromFile(filePath, options, cancellationToken) on this Scene instance. |
fromStream(stream: InputStream) → Scene | Calls fromStream(stream) on this Scene instance. |
fromStream(stream: InputStream, cancellationToken: Cancellation) → Scene | Calls fromStream(stream, cancellationToken) on this Scene instance. |
fromStream(stream: InputStream, format: FileFormat) → Scene | Calls fromStream(stream, format) on this Scene instance. |
fromStream(stream: InputStream, format: FileFormat, cancellationToken: Cancellation) → Scene | Calls fromStream(stream, format, cancellationToken) on this Scene instance. |
fromStream(stream: InputStream, options: LoadOptions) → Scene | Calls fromStream(stream, options) on this Scene instance. |
fromStream(stream: InputStream, options: LoadOptions, cancellationToken: Cancellation) → Scene | Calls fromStream(stream, options, cancellationToken) on this Scene instance. |
fromStream(stream: Stream) → Scene | Calls fromStream(stream) on this Scene instance. |
fromStream(stream: Stream, cancellationToken: Cancellation) → Scene | Calls fromStream(stream, cancellationToken) on this Scene instance. |
fromStream(stream: Stream, format: FileFormat) → Scene | Calls fromStream(stream, format) on this Scene instance. |
fromStream(stream: Stream, format: FileFormat, cancellationToken: Cancellation) → Scene | Calls fromStream(stream, format, cancellationToken) on this Scene instance. |
fromStream(stream: Stream, options: LoadOptions) → Scene | Calls fromStream(stream, options) on this Scene instance. |
fromStream(stream: Stream, options: LoadOptions, cancellationToken: Cancellation) → Scene | Calls fromStream(stream, options, cancellationToken) on this Scene instance. |
save(filePath: String) | Calls save(filePath) on this Scene instance. |
save(filePath: String, format: FileFormat) | Calls save(filePath, format) on this Scene instance. |
save(filePath: String, format: FileFormat, cancellationToken: Cancellation) | Calls save(filePath, format, cancellationToken) on this Scene instance. |
save(filePath: String, options: SaveOptions) | Calls save(filePath, options) on this Scene instance. |
save(filePath: String, options: SaveOptions, cancellationToken: Cancellation) | Calls save(filePath, options, cancellationToken) on this Scene instance. |
save(stream: OutputStream, format: FileFormat) | Calls save(stream, format) on this Scene instance. |
save(stream: OutputStream, format: FileFormat, cancellationToken: Cancellation) | Calls save(stream, format, cancellationToken) on this Scene instance. |
save(stream: OutputStream, options: SaveOptions) | Calls save(stream, options) on this Scene instance. |
save(stream: OutputStream, options: SaveOptions, cancellationToken: Cancellation) | Calls save(stream, options, cancellationToken) on this Scene instance. |
save(stream: OutputStream, format: FileFormat, options: SaveOptions) | Calls save(stream, format, options) on this Scene instance. |
save(stream: OutputStream, format: FileFormat, options: SaveOptions, cancellationToken: Cancellation) | Calls save(stream, format, options, cancellationToken) on this Scene instance. |
save(stream: Stream, format: FileFormat) | Calls save(stream, format) on this Scene instance. |
save(stream: Stream, format: FileFormat, cancellationToken: Cancellation) | Calls save(stream, format, cancellationToken) on this Scene instance. |
save(stream: Stream, options: SaveOptions) | Calls save(stream, options) on this Scene instance. |
save(stream: Stream, options: SaveOptions, cancellationToken: Cancellation) | Calls save(stream, options, cancellationToken) on this Scene instance. |
render(camera: Camera, fileName: String) | Not implemented in the FOSS edition — throws at runtime. Calls render(camera, fileName) on this Scene instance. |
render(camera: Camera, fileName: String, size: Vector2, format: String) | Not implemented in the FOSS edition — throws at runtime. Calls render(camera, fileName, size, format) on this Scene instance. |
render(camera: Camera, texture: TextureData) | Not implemented in the FOSS edition — throws at runtime. Calls render(camera, texture) on this Scene instance. |
getScene() → Scene | Returns the scene. |
getName() → String | Returns the name. |
setName(name: String) | Sets the name value. |
getProperties() → PropertyCollection | Returns the properties. |
findProperty(name: String) → Property | Calls findProperty(name) on this Scene instance. |
getProperty(name: String) → Object | Calls getProperty(name) on this Scene instance. |
setProperty(name: String, value: Object) | Sets the property value. |
removeProperty(name: String) → boolean | Calls removeProperty(name) on this Scene instance. |