UsdSaveOptions

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

public class UsdSaveOptions extends SaveOptions

Save options for USD/USDZ formats.

Constructors

Constructor Description
UsdSaveOptions() Initialize a new UsdSaveOptions with FileFormat.USD format
UsdSaveOptions(FileFormat fileFormat) Initialize a new UsdSaveOptions with specified USD/USDZ format.

Methods

Method Description
equals(Object arg0)
getClass()
getEncoding() Gets the default encoding for text-based files.
getExportMetaData() Export node’s properties through USD’s customData field.
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.
getLookupPaths() Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load.
getMaterialConverter() Custom converter to convert the geometry’s material to PBR material If this is unassigned, USD exporter will automatically convert the standard material to PBR material.
getPrimitiveToMesh() Convert the primitive entities to mesh during the export.
hashCode()
notify()
notifyAll()
setEncoding(Charset value) Sets the default encoding for text-based files.
setExportMetaData(boolean value) Export node’s properties through USD’s customData field.
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.
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.
setMaterialConverter(MaterialConverter value) Custom converter to convert the geometry’s material to PBR material If this is unassigned, USD exporter will automatically convert the standard material to PBR material.
setPrimitiveToMesh(boolean value) Convert the primitive entities to mesh during the export.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

UsdSaveOptions()

public UsdSaveOptions()

Initialize a new UsdSaveOptions with FileFormat.USD format

UsdSaveOptions(FileFormat fileFormat)

public UsdSaveOptions(FileFormat fileFormat)

Initialize a new UsdSaveOptions with specified USD/USDZ format.

Parameters:

Parameter Type Description
fileFormat FileFormat

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

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

getExportMetaData()

public boolean getExportMetaData()

Export node’s properties through USD’s customData field.

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

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>

getMaterialConverter()

public MaterialConverter getMaterialConverter()

Custom converter to convert the geometry’s material to PBR material If this is unassigned, USD exporter will automatically convert the standard material to PBR material. Default value is null

Returns: MaterialConverter

getPrimitiveToMesh()

public boolean getPrimitiveToMesh()

Convert the primitive entities to mesh during the export. Or directly encode the primitives to the output file(will use Aspose’s extension definition for unofficial primitives like Dish, Torus) Default value is true.

Returns: boolean

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

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:

Parameter Type Description
value java.nio.charset.Charset New value

setExportMetaData(boolean value)

public void setExportMetaData(boolean value)

Export node’s properties through USD’s customData field.

Parameters:

Parameter Type Description
value boolean New 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:

Parameter Type Description
value java.lang.String New value

setFileSystem(FileSystem value)

public void setFileSystem(FileSystem value)

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

Parameters:

Parameter Type Description
value FileSystem New 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:

Parameter Type Description
value FileSystemFactory New 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:

Parameter Type Description
value java.util.ArrayList<java.lang.String> New value

setMaterialConverter(MaterialConverter value)

public void setMaterialConverter(MaterialConverter value)

Custom converter to convert the geometry’s material to PBR material If this is unassigned, USD exporter will automatically convert the standard material to PBR material. Default value is null

Parameters:

Parameter Type Description
value MaterialConverter New value

setPrimitiveToMesh(boolean value)

public void setPrimitiveToMesh(boolean value)

Convert the primitive entities to mesh during the export. Or directly encode the primitives to the output file(will use Aspose’s extension definition for unofficial primitives like Dish, Torus) Default value is true.

Parameters:

Parameter Type Description
value boolean New value

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int