Assimp  v4.1. (December 2018)
JavaProgressHandler Class Reference

Inherits Assimp::ProgressHandler.

Public Member Functions

 JavaProgressHandler (JNIEnv *env, jobject &javaProgressHandler)
 
bool Update (float percentage)
 Progress callback. More...
 
- Public Member Functions inherited from Assimp::ProgressHandler
virtual void UpdateFileRead (int currentStep, int numberOfSteps)
 Progress callback for file loading steps. More...
 
virtual void UpdateFileWrite (int currentStep, int numberOfSteps)
 Progress callback for export steps. More...
 
virtual void UpdatePostProcess (int currentStep, int numberOfSteps)
 Progress callback for post-processing steps. More...
 
virtual ~ProgressHandler ()
 Virtual destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Assimp::ProgressHandler
 ProgressHandler () AI_NO_EXCEPT
 Default constructor. More...
 

Constructor & Destructor Documentation

◆ JavaProgressHandler()

JavaProgressHandler::JavaProgressHandler ( JNIEnv *  env,
jobject &  javaProgressHandler 
)
inline

Member Function Documentation

◆ Update()

bool JavaProgressHandler::Update ( float  percentage)
inlinevirtual

Progress callback.

Parameters
percentageAn estimate of the current loading progress, in percent. Or -1.f if such an estimate is not available.

There are restriction on what you may do from within your implementation of this method: no exceptions may be thrown and no non-const #Importer methods may be called. It is not generally possible to predict the number of callbacks fired during a single import.

Returns
Return false to abort loading at the next possible occasion (loaders and Assimp are generally allowed to perform all needed cleanup tasks prior to returning control to the caller). If the loading is aborted, #Importer::ReadFile() returns always NULL.

Implements Assimp::ProgressHandler.


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