PdfSaveOptions
Inheritance: java.lang.Object、com.aspose.threed.IOConfig、com.aspose.threed.SaveOptions
public class PdfSaveOptions extends SaveOptions
PDF エクスポート時の保存オプションです。
コンストラクタ
| コンストラクタ | 説明 |
|---|---|
| PdfSaveOptions() | PdfSaveOptions のコンストラクタ |
メソッド
| メソッド | 説明 |
|---|---|
| equals(Object arg0) | |
| getAuxiliaryColor() | 3D コンテンツのレンダリング時に使用される補助色を取得します。 |
| getBackgroundColor() | PDF ファイル内の 3D ビューの背景色。 |
| getClass() | |
| getEmbedTextures() | 外部テクスチャを PDF ファイルに埋め込みます。デフォルト値は false です。 |
| getEncoding() | テキストベースのファイルのデフォルトエンコーディングを取得します。 |
| getExportTextures() | シーンで使用されているテクスチャを出力ディレクトリにコピーしようとします。 |
| getFaceColor() | 3D コンテンツのレンダリング時に使用される面の色を取得します。 |
| getFileFormat() | 現在の保存/読み込みオプションで指定されたファイル形式を取得します。 |
| getFileName() | エクスポート/インポートシーンのファイル名。 |
| getFileSystem() | ロード/セーブ時に外部依存関係を管理する方法をユーザーが処理できるようにします。 |
| getFileSystemFactory() | FileSystem のファクトリークラスを取得します。 |
| getFlipCoordinateSystem() | エクスポート時にシーンの座標系を反転させるかどうかを取得します。 |
| getLightingScheme() | LightingScheme は 3D アートワークに適用するライティングを指定します。 |
| getLookupPaths() | OBJ のような一部のファイルは外部ファイルに依存しており、検索パスにより Aspose.3D が外部ファイルを読み込むために探すことができます。 |
| getRenderMode() | レンダーモードは 3D アートワークがレンダリングされるスタイルを指定します。 |
| hashCode() | |
| notify() | |
| notifyAll() | |
| setAuxiliaryColor(Vector3 value) | 3D コンテンツのレンダリング時に使用される補助色を設定します。 |
| setBackgroundColor(Vector3 value) | PDF ファイル内の 3D ビューの背景色。 |
| setEmbedTextures(boolean value) | 外部テクスチャを PDF ファイルに埋め込みます。デフォルト値は false です。 |
| setEncoding(Charset value) | テキストベースのファイルのデフォルトエンコーディングを設定します。 |
| setExportTextures(boolean value) | シーンで使用されているテクスチャを出力ディレクトリにコピーしようとします。 |
| setFaceColor(Vector3 value) | 3D コンテンツのレンダリング時に使用される面の色を設定します。 |
| setFileName(String value) | エクスポート/インポートシーンのファイル名。 |
| setFileSystem(FileSystem value) | ロード/セーブ時に外部依存関係を管理する方法をユーザーが処理できるようにします。 |
| setFileSystemFactory(FileSystemFactory value) | FileSystem のファクトリークラスを設定します。 |
| setFlipCoordinateSystem(boolean value) | エクスポート時にシーンの座標系を反転させるように設定します。 |
| setLightingScheme(PdfLightingScheme value) | LightingScheme は 3D アートワークに適用するライティングを指定します。 |
| setLookupPaths(ArrayList | OBJ のような一部のファイルは外部ファイルに依存しており、検索パスにより Aspose.3D が外部ファイルを読み込むために探すことができます。 |
| setRenderMode(PdfRenderMode value) | レンダーモードは 3D アートワークがレンダリングされるスタイルを指定します。 |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
PdfSaveOptions()
public PdfSaveOptions()
PdfSaveOptions のコンストラクタ
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getAuxiliaryColor()
public Vector3 getAuxiliaryColor()
3D コンテンツのレンダリング時に使用される補助色を取得します。この色の解釈は getRenderMode に依存します。
Returns: Vector3 - the auxiliary color to be used when rendering the 3D content. The interpretation of this color depends on the getRenderMode
getBackgroundColor()
public Vector3 getBackgroundColor()
PDF ファイル内の 3D ビューの背景色。
Returns: Vector3 - Background color of the 3D view in PDF file.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getEmbedTextures()
public boolean getEmbedTextures()
外部テクスチャを PDF ファイルに埋め込みます。デフォルト値は false です。
Returns: boolean - 外部テクスチャを PDF ファイルに埋め込みます。デフォルト値は false です。
getEncoding()
public Charset getEncoding()
テキストベースのファイルのデフォルトエンコーディングを取得します。デフォルト値は null で、インポーター/エクスポーターが使用するエンコーディングを決定します。
Returns: java.nio.charset.Charset - テキストベースのファイルのデフォルトエンコーディングです。デフォルト値は null で、インポーター/エクスポーターが使用するエンコーディングを決定します。
getExportTextures()
public boolean getExportTextures()
シーンで使用されているテクスチャを出力ディレクトリにコピーしようとします。
Returns: boolean - シーンで使用されているテクスチャを出力ディレクトリにコピーしようとします。
getFaceColor()
public Vector3 getFaceColor()
3D コンテンツのレンダリング時に使用される面の色を取得します。このプロパティは、getRenderMode が Illustration の値を持つ場合にのみ関連します。
Returns: Vector3 - the face color to be used when rendering the 3D content. This is only relevant only when the getRenderMode has a value of Illustration.
getFileFormat()
public FileFormat getFileFormat()
現在の保存/読み込みオプションで指定されたファイル形式を取得します。
Returns: FileFormat - the file format that specified in current Save/Load option.
getFileName()
public String getFileName()
エクスポート/インポートシーンのファイル名です。これはオプションですが、OBJ のマテリアルのような外部アセットをシリアライズする際に便利です。
Returns: java.lang.String - エクスポート/インポートシーンのファイル名です。これはオプションですが、OBJ のマテリアルのような外部アセットをシリアライズする際に便利です。
getFileSystem()
public FileSystem getFileSystem()
ロード/セーブ時に外部依存関係を管理する方法をユーザーが処理できるようにします。
Returns: FileSystem - Allow user to handle how to manage the external dependencies during load/save. Example: The default FileSystem is LocalFileSystem, it is not safe in environment like server side, But you can override the file system access by specifying a different implementation. Aspose.3D provides different FileSystem implementation like:
- Memory-based file system
- Directory-based file system
- Dummy file system
- Zip file system
また、独自の実装を使用することもできます。
Scene scene = new Scene();
var material = new PhongMaterial();
var boxNode = scene.getRootNode().createChildNode(new Box());
boxNode.setMaterial(material);
var opt = new ObjSaveOptions();
var memFs = new HashMap<string, MemoryStream>();
opt.setFileSystem(FileSystem.createMemoryFileSystem(memFs));
opt.setFileName("output.obj");
try(var output = new ByteArrayOutputStream()) {
scene.save(output, opt);
//The material will be written to variable memFs named output.mtl
var materialInBytes = memFs["output.mtl"].toArray();
}
getFileSystemFactory()
public static FileSystemFactory getFileSystemFactory()
FileSystem のファクトリークラスを取得します。デフォルトのファクトリーは com.aspose.threed.LocalFileSystem を作成しますが、サーバー環境には適していません。
Returns: FileSystemFactory - the factory class for FileSystem. The default factory will create com.aspose.threed.LocalFileSystem which is not suitable for server environment. Example: The default FileSystem in SaveOptions/LoadOptions is directory-based file system, You can override the default implementation by specify it through IOConfig.FileSystemFactory:
IOConfig.setFileSystemFactory(new FileSystemFactory() {
@Override
public FileSystem call() {
return FileSystem.createDummyFileSystem();
}
});
Scene scene = new Scene();
var material = new PhongMaterial();
var boxNode = scene.getRootNode().createChildNode(new Box());
boxNode.setMaterial(material);
//opt.FileSystem would be dummy file system now
var opt = new ObjSaveOptions();
scene.Save("output.obj", opt);
//the material file output.mtl will not be written to any places because we've configured a dummy file system as default implementation.
getFlipCoordinateSystem()
public boolean getFlipCoordinateSystem()
エクスポート時にシーンの座標系を反転させるかどうかを取得します。
Returns: boolean - エクスポート時にシーンの座標系を反転させます。
getLightingScheme()
public PdfLightingScheme getLightingScheme()
LightingScheme は 3D アートワークに適用するライティングを指定します。
Returns: PdfLightingScheme - LightingScheme specifies the lighting to apply to 3D artwork.
getLookupPaths()
public ArrayList<String> getLookupPaths()
OBJ のような一部のファイルは外部ファイルに依存しており、検索パスにより Aspose.3D が外部ファイルを読み込むために探すことができます。
Returns: java.util.ArrayList<java.lang.String> - OBJ のような一部のファイルは外部ファイルに依存しており、検索パスにより Aspose.3D が外部ファイルを探してロードできるようになります。Example: 以下のコードは、テクスチャの検索パスを手動で指定する方法を示しており、インポーターが見つけられるようにします
var opt = new ObjLoadOptions();
//Specify the lookup paths, so the textures can be located.
opt.getLookupPaths().add("textures");
var scene = Scene.fromFile("input.obj", opt);
scene.save("output.glb");
getRenderMode()
public PdfRenderMode getRenderMode()
レンダーモードは 3D アートワークがレンダリングされるスタイルを指定します。
Returns: PdfRenderMode - Render mode specifies the style in which the 3D artwork is rendered.
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setAuxiliaryColor(Vector3 value)
public void setAuxiliaryColor(Vector3 value)
3D コンテンツのレンダリング時に使用される補助色を設定します。この色の解釈は getRenderMode に依存します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| value | Vector3 | 新しい値 |
setBackgroundColor(Vector3 value)
public void setBackgroundColor(Vector3 value)
PDF ファイル内の 3D ビューの背景色。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| value | Vector3 | 新しい値 |
setEmbedTextures(boolean value)
public void setEmbedTextures(boolean value)
外部テクスチャを PDF ファイルに埋め込みます。デフォルト値は false です。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | boolean | 新しい値 |
setEncoding(Charset value)
public void setEncoding(Charset value)
テキストベースのファイルのデフォルトエンコーディングを設定します。デフォルト値は null で、インポーター/エクスポーターが使用するエンコーディングを決定することを意味します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.nio.charset.Charset | 新しい値 |
setExportTextures(boolean value)
public void setExportTextures(boolean value)
シーンで使用されているテクスチャを出力ディレクトリにコピーしようとします。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | boolean | 新しい値 |
setFaceColor(Vector3 value)
public void setFaceColor(Vector3 value)
3D コンテンツのレンダリング時に使用される面の色を設定します。このプロパティは、getRenderMode が Illustration の値を持つ場合にのみ関連します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| value | Vector3 | 新しい値 |
setFileName(String value)
public void setFileName(String value)
エクスポート/インポートシーンのファイル名です。これはオプションですが、OBJ のマテリアルのような外部アセットをシリアライズする際に便利です。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.String | 新しい値 |
setFileSystem(FileSystem value)
public void setFileSystem(FileSystem value)
ロード/セーブ時に外部依存関係を管理する方法をユーザーが処理できるようにします。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| value | FileSystem |
- Memory-based file system
- Directory-based file system
- Dummy file system
- Zip file system
また、独自の実装を使用することもできます。
Scene scene = new Scene();
var material = new PhongMaterial();
var boxNode = scene.getRootNode().createChildNode(new Box());
boxNode.setMaterial(material);
var opt = new ObjSaveOptions();
var memFs = new HashMap<string, MemoryStream>();
opt.setFileSystem(FileSystem.createMemoryFileSystem(memFs));
opt.setFileName("output.obj");
try(var output = new ByteArrayOutputStream()) {
scene.save(output, opt);
//The material will be written to variable memFs named output.mtl
var materialInBytes = memFs["output.mtl"].toArray();
}
``` |
### setFileSystemFactory(FileSystemFactory value) {#setFileSystemFactory-com.aspose.threed.FileSystemFactory-}
public static void setFileSystemFactory(FileSystemFactory value)
FileSystem のファクトリークラスを設定します。デフォルトのファクトリーは com.aspose.threed.LocalFileSystem を作成しますが、サーバー環境には適していません。
**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| | value | [FileSystemFactory](../../com.aspose.threed/filesystemfactory) | 新しい値 **Example:** SaveOptions/LoadOptions のデフォルト FileSystem はディレクトリベースのファイルシステムです。IOConfig.FileSystemFactory を介して指定することでデフォルトの実装をオーバーライドできます: |
IOConfig.setFileSystemFactory(new FileSystemFactory() { @Override public FileSystem call() { return FileSystem.createDummyFileSystem(); } });
Scene scene = new Scene();
var material = new PhongMaterial();
var boxNode = scene.getRootNode().createChildNode(new Box());
boxNode.setMaterial(material);
//opt.FileSystem would be dummy file system now
var opt = new ObjSaveOptions();
scene.Save("output.obj", opt);
//the material file output.mtl will not be written to any places because we've configured a dummy file system as default implementation.
### setFlipCoordinateSystem(boolean value) {#setFlipCoordinateSystem-boolean-}
public void setFlipCoordinateSystem(boolean value)
エクスポート時にシーンの座標系を反転させるように設定します。
**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| 値 | boolean | 新しい値 |
### setLightingScheme(PdfLightingScheme value) {#setLightingScheme-com.aspose.threed.PdfLightingScheme-}
public void setLightingScheme(PdfLightingScheme value)
LightingScheme は 3D アートワークに適用するライティングを指定します。
**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| value | [PdfLightingScheme](../../com.aspose.threed/pdflightingscheme) | 新しい値 |
### setLookupPaths(ArrayList<String> value) {#setLookupPaths-java.util.ArrayList-java.lang.String--}
public void setLookupPaths(ArrayList
OBJ のような一部のファイルは外部ファイルに依存しており、検索パスにより Aspose.3D が外部ファイルを読み込むために探すことができます。
**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| | 値 | java.util.ArrayList<java.lang.String> | 新しい値 **Example:** 以下のコードは、テクスチャの検索パスを手動で指定する方法を示しており、インポーターが見つけられるようにします |
var opt = new ObjLoadOptions(); //Specify the lookup paths, so the textures can be located. opt.getLookupPaths().add(“textures”); var scene = Scene.fromFile(“input.obj”, opt); scene.save(“output.glb”);
### setRenderMode(PdfRenderMode value) {#setRenderMode-com.aspose.threed.PdfRenderMode-}
public void setRenderMode(PdfRenderMode value)
レンダーモードは 3D アートワークがレンダリングされるスタイルを指定します。
**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| value | [PdfRenderMode](../../com.aspose.threed/pdfrendermode) | 新しい値 |
### toString() {#toString--}
public String toString()
**Returns:**
java.lang.String
### wait() {#wait--}
public final void wait()
### wait(long arg0) {#wait-long-}
public final void wait(long arg0)
**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| arg0 | long | |
### wait(long arg0, int arg1) {#wait-long-int-}
public final void wait(long arg0, int arg1)
**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| arg0 | long | |
| arg1 | int | |