Scene

概述

Scene 是一个类在Aspose.3D FOSS的.NET中. 继承人: SceneObject, INamedObject.

场景是包含节点,几何体,材料,纹理,动画,姿势,子场面等的顶级对象.

本类提供了42种方法,用于在.NET 程序中使用 Scene 对象. 有的方法包括: A3DObject, Clear, CreateAnimationClip, FindProperty, FromFile, FromStream, GetAnimationClip, GetProperty, Open, RemoveProperty, Render, Save,另外还有3种方法. 所有公众成员在安装了Aspose.3D FOSS for .NET 包后,可以访问任何.NET应用程序. 特性: AnimationClips, AssetInfo, CurrentAnimationClip, Library, Name, Poses,另外5个.

属性

名称:类型Access描述情况
SubScenesIList<Scene>阅读获取所有子场景
LibraryIList<A3DObject>阅读没有直接用于场景等级的对象可以在图书馆中定义.
AnimationClipsIList<AnimationClip>阅读获取场景中定义的所有 AnimationClip。.
CurrentAnimationClipAnimationClip?阅读/写作获取或设置活动的 AnimationClip
AssetInfoAssetInfo?阅读/写作获取或设置顶层资产信息
PosesICollection<Pose>阅读获取此场景中使用的所有 Pose。.
RootNodeNode阅读获取场景的根节点。.
Versionstring阅读图书馆的版本.
SceneScene阅读获取此对象所属的场景
Namestring阅读/写作获取或设置名称。.
PropertiesPropertyCollection阅读获取所有属性的集合。.

方法

Signature描述情况
Scene()启动一个新的场景类实例.
Scene(entity: Entity)启动 Scene 类的新实例,该实体附加在一个新的节点上.
Scene(parentScene: Scene, name: string)将 Scene 类的新实例作为子场景初始化.
GetAnimationClip(name: string)获取一个已命名的 AnimationClip
Clear()清除场景内容并恢复默认设置.
CreateAnimationClip(name: string)创建和注册一个缩写函数第一个 AnimationClip 将被分配到
Open(stream: Stream, format: FileFormat, cancellationToken: CancellationToken)使用指定文件格式从给定的流中打开场景.
Open(stream: Stream, options: LoadOptions, cancellationToken: CancellationToken)使用指定IO配置从给定的流开放场景.
Open(stream: Stream)开放现场从给定的流.
Open(stream: Stream, cancellationToken: CancellationToken)开放现场从给定的流.
Open(fileName: string, format: FileFormat, cancellationToken: CancellationToken)使用指定文件格式从给定的路径打开场景.
Open(fileName: string, options: LoadOptions)使用指定文件格式从给定的路径打开场景.
Open(fileName: string, options: LoadOptions, cancellationToken: CancellationToken)使用指定文件格式从给定的路径打开场景.
Open(fileName: string)从给定的路线开放场景.
Open(fileName: string, cancellationToken: CancellationToken)从给定的路线开放场景.
FromStream(stream: Stream, format: FileFormat, cancellationToken: CancellationToken)使用指定文件格式从给定的流中打开场景.
FromStream(stream: Stream, options: LoadOptions, cancellationToken: CancellationToken)使用指定IO配置从给定的流开放场景.
FromStream(stream: Stream, cancellationToken: CancellationToken)从给定的流中打开场景.
FromFile(fileName: string, format: FileFormat, cancellationToken: CancellationToken)使用指定文件格式从给定的路径打开场景.
FromFile(fileName: string, options: LoadOptions, cancellationToken: CancellationToken)使用指定文件格式从给定的路径打开场景.
FromFile(fileName: string)从给定的路线开放场景.
FromFile(fileName: string, cancellationToken: CancellationToken)从给定的路线开放场景.
Save(stream: Stream, format: FileFormat)保存场景以使用指定文件格式进行流媒体.
Save(stream: Stream, format: FileFormat, cancellationToken: CancellationToken)保存场景以使用指定文件格式进行流媒体.
Save(stream: Stream, options: SaveOptions)保存场景以使用指定文件格式进行流媒体.
Save(stream: Stream, options: SaveOptions, cancellationToken: CancellationToken)保存场景以使用指定文件格式进行流媒体.
Save(fileName: string, format: FileFormat, cancellationToken: CancellationToken)使用指定文件格式将场景保存到指定的路径.
Save(fileName: string)使用指定文件格式将场景保存到指定的路径.
Save(fileName: string, format: FileFormat)使用指定文件格式将场景保存到指定的路径.
Save(fileName: string, options: SaveOptions)使用指定文件格式将场景保存到指定的路径.
Save(fileName: string, options: SaveOptions, cancellationToken: CancellationToken)使用指定文件格式将场景保存到指定的路径.
Render(camera: Entities.Camera, fileName: string)在FOSS版本中未实现. 在运行时投放. 从给定的摄像头的角度将场景呈现为外部文件.
Render(camera: Entities.Camera, fileName: string, size: Vector2, format: string)在FOSS版本中未实现. 在运行时投放. 从给定的摄像头的角度将场景呈现为外部文件.
Render(camera: Entities.Camera, fileName: string, size: Vector2, format: string, options: ImageRenderOptions)在FOSS版本中未实现. 在运行时投放. 从给定的摄像头的角度将场景转换为外部文件.
Render(camera: Entities.Camera, bitmap: TextureData)在FOSS版本中未实现. 在运行时投放. 从给定的摄像头的角度将场景转换为位图.
Render(camera: Entities.Camera, bitmap: TextureData, options: ImageRenderOptions)在FOSS版本中未实现. 在运行时投放. 从给定的摄像头的角度将场景转换为位图.
SceneObject(name: string)用默认名称初始化 SceneObject
A3DObject()启动一个没有名称的A3DOobject类新实例.
RemoveProperty(property: Property)删除动态属性.
GetProperty(property: string)获取指定属性的值
SetProperty(property: string, value: object?)设置指定属性的值
FindProperty(propertyName: string)找到了房地产.

查看更多

 中文