Microsoft3MFSaveOptions
概述
Microsoft3MFSaveOptions 是 Aspose.3D FOSS 中用于 Java 的类。继承自:SaveOptions。
Microsoft3MFSaveOptions 继承自 SaveOptions,并添加了 exportTextures 标志,以在保存为 3MF 格式时包含或排除纹理。
此类在 Java 程序中提供了 17 个用于操作 Microsoft3MFSaveOptions 对象的方法。可用的方法包括:Microsoft3MFSaveOptions、SaveOptions、getEncoding、getExportTextures、getFileFormat、getFileName、getFileSystem、getFileSystemFactory、getLookupPaths、setEncoding、setExportTextures、setFileName,以及另外 3 个方法。所有公共成员在安装了 Aspose.3D FOSS for Java 包后,任何 Java 应用程序均可访问。属性有:encoding、exportTextures、fileFormat、fileName、fileSystem、fileSystemFactory,以及另一个。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
exportTextures | boolean | 读取 | 尝试将场景中使用的纹理复制到输出目录。 |
fileFormat | FileFormat | 读取 | 获取文件格式。 |
fileSystemFactory | FileSystemFactory | 读取 | 获取 FileSystem 的工厂类。 |
encoding | java.nio.charset.Charset | 读取 | 获取基于文本文件的默认编码。 |
fileSystem | FileSystem | 读取 | 允许用户自行决定在加载/保存期间如何管理外部依赖。 |
lookupPaths | java.util.ArrayList<String> | 读取 | 某些文件如 OBJ 依赖外部文件,查找路径将允许 Aspose.3D 查找并加载外部文件。 |
fileName | String | 读取 | 导出/导入场景的文件名。 |
方法
| 签名 | 描述 |
|---|---|
Microsoft3MFSaveOptions() | 在此 Microsoft3MFSaveOptions 实例上调用 Microsoft3MFSaveOptions。 |
SaveOptions() | 初始化 SaveOptions 类的新实例。 |
SaveOptions(format: FileFormat) | 使用文件格式初始化 SaveOptions 类的新实例。 |
SaveOptions(contentType: FileContentType) | 使用文件内容类型初始化 SaveOptions 类的新实例。 |
getExportTextures() → boolean | 尝试将场景中使用的纹理复制到输出目录。 |
setExportTextures(value: boolean) | 尝试将场景中使用的纹理复制到输出目录。 |
getFileFormat() → FileFormat | 返回文件格式。 |
getFileSystemFactory() → FileSystemFactory | 获取 FileSystem 的工厂类。 |
setFileSystemFactory(value: FileSystemFactory) | 设置 FileSystem 的工厂类。 |
getEncoding() → java.nio.charset.Charset | 获取基于文本的文件的默认编码。 |
setEncoding(value: java.nio.charset.Charset) | 设置基于文本的文件的默认编码。 |
getFileSystem() → FileSystem | 允许用户在加载/保存期间处理外部依赖的管理方式。 |
setFileSystem(value: FileSystem) | 允许用户在加载/保存期间处理外部依赖的管理方式。 |
getLookupPaths() → java.util.ArrayList<String> | 某些文件如 OBJ 依赖外部文件,查找路径将允许 Aspose.3D 查找并加载外部文件。 |
setLookupPaths(value: java.util.ArrayList<String>) | 某些文件如 OBJ 依赖外部文件,查找路径将允许 Aspose.3D 查找并加载外部文件。 |
getFileName() → String | 导出/导入场景的文件名。 |
setFileName(value: String) | 导出/导入场景的文件名。 |