Assimp  v4.1. (December 2018)
jassimp.Jassimp Class Reference

Entry point to the jassimp library. More...

Static Public Member Functions

static native int getdoublesize ()
 
static native String getErrorString ()
 Returns a human readable error description. More...
 
static native int getfloatsize ()
 
static native int getintsize ()
 
static native int getlongsize ()
 
static native int getQKeysize ()
 
static native int getuintsize ()
 
static native int getV3Dsize ()
 
static native int getVKeysize ()
 Returns the size of a struct or ptimitive. More...
 
static AiWrapperProvider<?, ?, ?, ?, ?> getWrapperProvider ()
 Returns the active wrapper provider. More...
 
static AiScene importFile (String filename) throws IOException
 Imports a file via assimp without post processing. More...
 
static AiScene importFile (String filename, AiIOSystem<?> ioSystem) throws IOException
 Imports a file via assimp without post processing. More...
 
static AiScene importFile (String filename, Set< AiPostProcessSteps > postProcessing) throws IOException
 Imports a file via assimp. More...
 
static AiScene importFile (String filename, Set< AiPostProcessSteps > postProcessing, AiIOSystem<?> ioSystem) throws IOException
 Imports a file via assimp. More...
 
static AiScene importFile (String filename, Set< AiPostProcessSteps > postProcessing, AiIOSystem<?> ioSystem, AiProgressHandler progressHandler) throws IOException
 Imports a file via assimp. More...
 
static void setLibraryLoader (JassimpLibraryLoader libraryLoader)
 
static void setWrapperProvider (AiWrapperProvider<?, ?, ?, ?, ?> wrapperProvider)
 Sets a new wrapper provider. More...
 

Static Public Attributes

static final AiWrapperProvider<?, ?, ?, ?, ?> BUILTIN
 The default wrapper provider using built in types. More...
 
static int NATIVE_AIQUATKEY_SIZE
 
static int NATIVE_AIVEKTOR3D_SIZE
 
static int NATIVE_AIVEKTORKEY_SIZE
 
static int NATIVE_DOUBLE_SIZE
 
static int NATIVE_FLOAT_SIZE
 
static int NATIVE_INT_SIZE
 
static int NATIVE_LONG_SIZE
 
static int NATIVE_UINT_SIZE
 

Detailed Description

Entry point to the jassimp library.

Use importFile(String, Set) to load a file.

General Notes and Pitfalls

Due to the loading via JNI, strings (for example as returned by the getName() methods) are not interned. You should therefore compare strings the way it should be done, i.e, via equals(). Pointer comparison will fail.

Member Function Documentation

◆ getdoublesize()

static native int jassimp.Jassimp.getdoublesize ( )
static
See also
getVKeysize

◆ getErrorString()

static native String jassimp.Jassimp.getErrorString ( )
static

Returns a human readable error description.

This method can be called when one of the import methods fails, i.e., throws an exception, to get a human readable error description.

Returns
the error string

◆ getfloatsize()

static native int jassimp.Jassimp.getfloatsize ( )
static
See also
getVKeysize

◆ getintsize()

static native int jassimp.Jassimp.getintsize ( )
static
See also
getVKeysize

◆ getlongsize()

static native int jassimp.Jassimp.getlongsize ( )
static
See also
getVKeysize

◆ getQKeysize()

static native int jassimp.Jassimp.getQKeysize ( )
static
See also
getVKeysize

◆ getuintsize()

static native int jassimp.Jassimp.getuintsize ( )
static
See also
getVKeysize

◆ getV3Dsize()

static native int jassimp.Jassimp.getV3Dsize ( )
static
See also
getVKeysize

◆ getVKeysize()

static native int jassimp.Jassimp.getVKeysize ( )
static

Returns the size of a struct or ptimitive.

Returns
the result of sizeof call

◆ getWrapperProvider()

static AiWrapperProvider<?, ?, ?, ?, ?> jassimp.Jassimp.getWrapperProvider ( )
inlinestatic

Returns the active wrapper provider.

This method is part of the wrapped API (see AiWrapperProvider for details on wrappers).

Returns
the active wrapper provider

◆ importFile() [1/5]

static AiScene jassimp.Jassimp.importFile ( String  filename) throws IOException
inlinestatic

Imports a file via assimp without post processing.

Parameters
filenamethe file to import
Returns
the loaded scene
Exceptions
IOExceptionif an error occurs

◆ importFile() [2/5]

static AiScene jassimp.Jassimp.importFile ( String  filename,
AiIOSystem<?>  ioSystem 
) throws IOException
inlinestatic

Imports a file via assimp without post processing.

Parameters
filenamethe file to import
ioSystemioSystem to load files, or null for default
Returns
the loaded scene
Exceptions
IOExceptionif an error occurs

◆ importFile() [3/5]

static AiScene jassimp.Jassimp.importFile ( String  filename,
Set< AiPostProcessSteps postProcessing 
) throws IOException
inlinestatic

Imports a file via assimp.

Parameters
filenamethe file to import
postProcessingpost processing flags
Returns
the loaded scene, or null if an error occurred
Exceptions
IOExceptionif an error occurs

◆ importFile() [4/5]

static AiScene jassimp.Jassimp.importFile ( String  filename,
Set< AiPostProcessSteps postProcessing,
AiIOSystem<?>  ioSystem 
) throws IOException
inlinestatic

Imports a file via assimp.

Parameters
filenamethe file to import
postProcessingpost processing flags
ioSystemioSystem to load files, or null for default
Returns
the loaded scene, or null if an error occurred
Exceptions
IOExceptionif an error occurs

◆ importFile() [5/5]

static AiScene jassimp.Jassimp.importFile ( String  filename,
Set< AiPostProcessSteps postProcessing,
AiIOSystem<?>  ioSystem,
AiProgressHandler  progressHandler 
) throws IOException
inlinestatic

Imports a file via assimp.

Parameters
filenamethe file to import
postProcessingpost processing flags
ioSystemioSystem to load files, or null for default
Returns
the loaded scene, or null if an error occurred
Exceptions
IOExceptionif an error occurs

◆ setLibraryLoader()

static void jassimp.Jassimp.setLibraryLoader ( JassimpLibraryLoader  libraryLoader)
inlinestatic

◆ setWrapperProvider()

static void jassimp.Jassimp.setWrapperProvider ( AiWrapperProvider<?, ?, ?, ?, ?>  wrapperProvider)
inlinestatic

Sets a new wrapper provider.

This method is part of the wrapped API (see AiWrapperProvider for details on wrappers).

Parameters
wrapperProviderthe new wrapper provider

Member Data Documentation

◆ BUILTIN

final AiWrapperProvider<?, ?, ?, ?, ?> jassimp.Jassimp.BUILTIN
static
Initial value:
=
new AiBuiltInWrapperProvider()

The default wrapper provider using built in types.

◆ NATIVE_AIQUATKEY_SIZE

int jassimp.Jassimp.NATIVE_AIQUATKEY_SIZE
static

◆ NATIVE_AIVEKTOR3D_SIZE

int jassimp.Jassimp.NATIVE_AIVEKTOR3D_SIZE
static

◆ NATIVE_AIVEKTORKEY_SIZE

int jassimp.Jassimp.NATIVE_AIVEKTORKEY_SIZE
static

◆ NATIVE_DOUBLE_SIZE

int jassimp.Jassimp.NATIVE_DOUBLE_SIZE
static

◆ NATIVE_FLOAT_SIZE

int jassimp.Jassimp.NATIVE_FLOAT_SIZE
static

◆ NATIVE_INT_SIZE

int jassimp.Jassimp.NATIVE_INT_SIZE
static

◆ NATIVE_LONG_SIZE

int jassimp.Jassimp.NATIVE_LONG_SIZE
static

◆ NATIVE_UINT_SIZE

int jassimp.Jassimp.NATIVE_UINT_SIZE
static

The documentation for this class was generated from the following file: