Go to the documentation of this file.
47 #ifndef AI_PROGRESSHANDLER_H_INC
48 #define AI_PROGRESSHANDLER_H_INC
51 # pragma GCC system_header
65 :
public Intern::AllocateFromAssimpHeap
96 virtual bool Update(
float percentage = -1.f) = 0;
111 float f = numberOfSteps ? currentStep / (float)numberOfSteps : 1.0f;
125 float f = numberOfSteps ? currentStep / (float)numberOfSteps : 1.0f;
126 Update( f * 0.5f + 0.5f );
140 float f = numberOfSteps ? currentStep / (float)numberOfSteps : 1.0f;
149 #endif // AI_PROGRESSHANDLER_H_INC
virtual void UpdateFileWrite(int currentStep, int numberOfSteps)
Progress callback for export steps.
Definition: ProgressHandler.hpp:139
virtual void UpdateFileRead(int currentStep, int numberOfSteps)
Progress callback for file loading steps.
Definition: ProgressHandler.hpp:110
ProgressHandler() AI_NO_EXCEPT
Default constructor.
Definition: ProgressHandler.hpp:70
virtual ~ProgressHandler()
Virtual destructor.
Definition: ProgressHandler.hpp:76
virtual void UpdatePostProcess(int currentStep, int numberOfSteps)
Progress callback for post-processing steps.
Definition: ProgressHandler.hpp:124
virtual bool Update(float percentage=-1.f)=0
Progress callback.
Definition: ai_assert.h:50
CPP-API: Abstract interface for custom progress report receivers.
Definition: ProgressHandler.hpp:67