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

NameTypeAccessDescription
rootNodeNodeReadGets the root node.
assetInfoAssetInfoReadGets the asset info.
subScenesList<Scene>ReadGets the sub scenes.
libraryList<A3DObject>ReadGets the library.
animationClipsList<AnimationClip>ReadGets the animation clips.
currentAnimationClipAnimationClipReadGets the current animation clip.
posesCollection<Pose>ReadGets the poses.
VERSIONStringReadGets the version.
sceneSceneReadGets the scene.
nameStringReadGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
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()NodeReturns the root node.
getAssetInfo()AssetInfoReturns 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()AnimationClipReturns the current animation clip.
setCurrentAnimationClip(value: AnimationClip)Sets the current animation clip value.
getAnimationClip(name: String)AnimationClipCalls getAnimationClip(name) on this Scene instance.
createAnimationClip(name: String)AnimationClipCalls 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)SceneCalls fromFile(filePath) on this Scene instance.
fromFile(filePath: String, cancellationToken: Cancellation)SceneCalls fromFile(filePath, cancellationToken) on this Scene instance.
fromFile(filePath: String, format: FileFormat)SceneCalls fromFile(filePath, format) on this Scene instance.
fromFile(filePath: String, format: FileFormat, cancellationToken: Cancellation)SceneCalls fromFile(filePath, format, cancellationToken) on this Scene instance.
fromFile(filePath: String, options: LoadOptions)SceneCalls fromFile(filePath, options) on this Scene instance.
fromFile(filePath: String, options: LoadOptions, cancellationToken: Cancellation)SceneCalls fromFile(filePath, options, cancellationToken) on this Scene instance.
fromStream(stream: InputStream)SceneCalls fromStream(stream) on this Scene instance.
fromStream(stream: InputStream, cancellationToken: Cancellation)SceneCalls fromStream(stream, cancellationToken) on this Scene instance.
fromStream(stream: InputStream, format: FileFormat)SceneCalls fromStream(stream, format) on this Scene instance.
fromStream(stream: InputStream, format: FileFormat, cancellationToken: Cancellation)SceneCalls fromStream(stream, format, cancellationToken) on this Scene instance.
fromStream(stream: InputStream, options: LoadOptions)SceneCalls fromStream(stream, options) on this Scene instance.
fromStream(stream: InputStream, options: LoadOptions, cancellationToken: Cancellation)SceneCalls fromStream(stream, options, cancellationToken) on this Scene instance.
fromStream(stream: Stream)SceneCalls fromStream(stream) on this Scene instance.
fromStream(stream: Stream, cancellationToken: Cancellation)SceneCalls fromStream(stream, cancellationToken) on this Scene instance.
fromStream(stream: Stream, format: FileFormat)SceneCalls fromStream(stream, format) on this Scene instance.
fromStream(stream: Stream, format: FileFormat, cancellationToken: Cancellation)SceneCalls fromStream(stream, format, cancellationToken) on this Scene instance.
fromStream(stream: Stream, options: LoadOptions)SceneCalls fromStream(stream, options) on this Scene instance.
fromStream(stream: Stream, options: LoadOptions, cancellationToken: Cancellation)SceneCalls 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()SceneReturns the scene.
getName()StringReturns the name.
setName(name: String)Sets the name value.
getProperties()PropertyCollectionReturns the properties.
findProperty(name: String)PropertyCalls findProperty(name) on this Scene instance.
getProperty(name: String)ObjectCalls getProperty(name) on this Scene instance.
setProperty(name: String, value: Object)Sets the property value.
removeProperty(name: String)booleanCalls removeProperty(name) on this Scene instance.

See Also

 English