FbxSaveOptions

Inheritance: java.lang.Object, com.aspose.threed.IOConfig, com.aspose.threed.SaveOptions

public class FbxSaveOptions extends SaveOptions

Save options for Fbx file.

Constructors

ConstructorDescription
FbxSaveOptions(FileFormat format)Initializes a FbxSaveOptions
FbxSaveOptions(FileContentType contentType)Initialize a FbxSaveOptions using latest supported version.

Methods

MethodDescription
equals(Object arg0)
getClass()
getEmbedTextures()Gets whether to embed the texture to the final output file.
getEnableCompression()Compression large binary data in the FBX file(e.g.
getEncoding()Gets the default encoding for text-based files.
getExportLegacyMaterialProperties()Gets whether export legacy material properties, used for back compatibility.
getExportTextures()Try to copy textures used in scene to output directory.
getFileFormat()Gets the file format that specified in current Save/Load option.
getFileName()The file name of the exporting/importing scene.
getFileSystem()Allow user to handle how to manage the external dependencies during load/save.
getFileSystemFactory()Gets the factory class for FileSystem.
getFoldRepeatedCurveData()Gets whether reuse repeated curve data by increasing last data’s ref count
getGenerateVertexElementMaterial()Gets whether always generate a VertexElementMaterial for geometries if the attached node contains materials.
getLookupPaths()Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load.
getReusePrimitiveMesh()Reuse the mesh for the primitives with same parameters, this will significantly reduce the size of FBX output which scene was constructed by large set of primitive shapes(like imported from CAD files).
getVideoForTexture()Gets whether generate a Video instance for Texture when exporting as FBX.
hashCode()
notify()
notifyAll()
setEmbedTextures(boolean value)Sets whether to embed the texture to the final output file.
setEnableCompression(boolean value)Compression large binary data in the FBX file(e.g.
setEncoding(Charset value)Sets the default encoding for text-based files.
setExportLegacyMaterialProperties(boolean value)Sets whether export legacy material properties, used for back compatibility.
setExportTextures(boolean value)Try to copy textures used in scene to output directory.
setFileName(String value)The file name of the exporting/importing scene.
setFileSystem(FileSystem value)Allow user to handle how to manage the external dependencies during load/save.
setFileSystemFactory(FileSystemFactory value)Sets the factory class for FileSystem.
setFoldRepeatedCurveData(Boolean value)Sets whether reuse repeated curve data by increasing last data’s ref count
setGenerateVertexElementMaterial(boolean value)Sets whether always generate a VertexElementMaterial for geometries if the attached node contains materials.
setLookupPaths(ArrayList value)Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load.
setReusePrimitiveMesh(boolean value)Reuse the mesh for the primitives with same parameters, this will significantly reduce the size of FBX output which scene was constructed by large set of primitive shapes(like imported from CAD files).
setVideoForTexture(boolean value)Sets whether generate a Video instance for Texture when exporting as FBX.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

FbxSaveOptions(FileFormat format)

public FbxSaveOptions(FileFormat format)

Initializes a FbxSaveOptions

Parameters:

ParameterTypeDescription
formatFileFormat

FbxSaveOptions(FileContentType contentType)

public FbxSaveOptions(FileContentType contentType)

Initialize a FbxSaveOptions using latest supported version.

Parameters:

ParameterTypeDescription
contentTypeFileContentType

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getEmbedTextures()

public boolean getEmbedTextures()

Gets whether to embed the texture to the final output file. FBX Exporter will try to find the texture’s raw data from IOConfig.getFileSystem, and embed the file to final FBX file. Default value is false.

Returns: boolean

getEnableCompression()

public boolean getEnableCompression()

Compression large binary data in the FBX file(e.g. animation data, control points, vertex element data, indices), default value is true.

Returns: boolean

getEncoding()

public Charset getEncoding()

Gets the default encoding for text-based files. Default value is null which means the importer/exporter will decide which encoding to use.

Returns: java.nio.charset.Charset

getExportLegacyMaterialProperties()

public boolean getExportLegacyMaterialProperties()

Gets whether export legacy material properties, used for back compatibility. This option is turned on by default.

Returns: boolean

getExportTextures()

public boolean getExportTextures()

Try to copy textures used in scene to output directory.

Returns: boolean

getFileFormat()

public FileFormat getFileFormat()

Gets the file format that specified in current Save/Load option.

Returns: FileFormat

getFileName()

public String getFileName()

The file name of the exporting/importing scene. This is optional, but useful when serialize external assets like OBJ’s material.

Returns: java.lang.String

getFileSystem()

public FileSystem getFileSystem()

Allow user to handle how to manage the external dependencies during load/save.

Returns: FileSystem

getFileSystemFactory()

public static FileSystemFactory getFileSystemFactory()

Gets the factory class for FileSystem. The default factory will create LocalFileSystem which is not suitable for server environment.

Returns: FileSystemFactory

getFoldRepeatedCurveData()

public Boolean getFoldRepeatedCurveData()

Gets whether reuse repeated curve data by increasing last data’s ref count

Returns: java.lang.Boolean

getGenerateVertexElementMaterial()

public boolean getGenerateVertexElementMaterial()

Gets whether always generate a VertexElementMaterial for geometries if the attached node contains materials. This is turned off by default.

Returns: boolean

getLookupPaths()

public ArrayList<String> getLookupPaths()

Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load.

Returns: java.util.ArrayList<java.lang.String>

getReusePrimitiveMesh()

public boolean getReusePrimitiveMesh()

Reuse the mesh for the primitives with same parameters, this will significantly reduce the size of FBX output which scene was constructed by large set of primitive shapes(like imported from CAD files). Default value is false

Returns: boolean

getVideoForTexture()

public boolean getVideoForTexture()

Gets whether generate a Video instance for Texture when exporting as FBX.

Returns: boolean

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setEmbedTextures(boolean value)

public void setEmbedTextures(boolean value)

Sets whether to embed the texture to the final output file. FBX Exporter will try to find the texture’s raw data from IOConfig.getFileSystem, and embed the file to final FBX file. Default value is false.

Parameters:

ParameterTypeDescription
valuebooleanNew value

setEnableCompression(boolean value)

public void setEnableCompression(boolean value)

Compression large binary data in the FBX file(e.g. animation data, control points, vertex element data, indices), default value is true.

Parameters:

ParameterTypeDescription
valuebooleanNew value

setEncoding(Charset value)

public void setEncoding(Charset value)

Sets the default encoding for text-based files. Default value is null which means the importer/exporter will decide which encoding to use.

Parameters:

ParameterTypeDescription
valuejava.nio.charset.CharsetNew value

setExportLegacyMaterialProperties(boolean value)

public void setExportLegacyMaterialProperties(boolean value)

Sets whether export legacy material properties, used for back compatibility. This option is turned on by default.

Parameters:

ParameterTypeDescription
valuebooleanNew value

setExportTextures(boolean value)

public void setExportTextures(boolean value)

Try to copy textures used in scene to output directory.

Parameters:

ParameterTypeDescription
valuebooleanNew value

setFileName(String value)

public void setFileName(String value)

The file name of the exporting/importing scene. This is optional, but useful when serialize external assets like OBJ’s material.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setFileSystem(FileSystem value)

public void setFileSystem(FileSystem value)

Allow user to handle how to manage the external dependencies during load/save.

Parameters:

ParameterTypeDescription
valueFileSystemNew value

setFileSystemFactory(FileSystemFactory value)

public static void setFileSystemFactory(FileSystemFactory value)

Sets the factory class for FileSystem. The default factory will create LocalFileSystem which is not suitable for server environment.

Parameters:

ParameterTypeDescription
valueFileSystemFactoryNew value

setFoldRepeatedCurveData(Boolean value)

public void setFoldRepeatedCurveData(Boolean value)

Sets whether reuse repeated curve data by increasing last data’s ref count

Parameters:

ParameterTypeDescription
valuejava.lang.BooleanNew value

setGenerateVertexElementMaterial(boolean value)

public void setGenerateVertexElementMaterial(boolean value)

Sets whether always generate a VertexElementMaterial for geometries if the attached node contains materials. This is turned off by default.

Parameters:

ParameterTypeDescription
valuebooleanNew value

setLookupPaths(ArrayList value)

public void setLookupPaths(ArrayList<String> value)

Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load.

Parameters:

ParameterTypeDescription
valuejava.util.ArrayList<java.lang.String>New value

setReusePrimitiveMesh(boolean value)

public void setReusePrimitiveMesh(boolean value)

Reuse the mesh for the primitives with same parameters, this will significantly reduce the size of FBX output which scene was constructed by large set of primitive shapes(like imported from CAD files). Default value is false

Parameters:

ParameterTypeDescription
valuebooleanNew value

setVideoForTexture(boolean value)

public void setVideoForTexture(boolean value)

Sets whether generate a Video instance for Texture when exporting as FBX.

Parameters:

ParameterTypeDescription
valuebooleanNew value

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int