#include <fbxprogress.h>
Class Description
Class for progress reporting.
Definition at line 31 of file fbxprogress.h.
List of all
members.
Public Member Functions
|
| void |
SetProgressCallback
(FbxProgressCallback
pCallback, void *pArgs=NULL) |
| |
Register a callback function for progress
reporting in single thread mode.
|
| void |
SetTotal
(float pTotal) |
| |
Set the total amount of workload needed to
complete the progress.
|
| void |
SetThreshold
(float pThreshold) |
| |
Set the threshold at which the progress
callback should be called.
|
| void |
Update
(float pDelta, const char *pStatus=NULL) |
| |
Update current progress with recent
workload.
|
| void |
Reset
() |
| |
Reset the progress status percentage and
status string.
|
| float |
GetProgress
(FbxString
*pStatus=NULL) |
| |
Retrieve the progress status.
|
| void |
Complete
(const char *pStatus=NULL) |
| |
Set the progress status to completed.
|
| void |
Cancel
() |
| |
Cancel this progress.
|
| bool |
IsCanceled
() const |
| |
Query whether user canceled this progress.
|
Member Function Documentation
Register a callback function for progress reporting in single
thread mode.
- Parameters:
-
| pCallback |
Pointer of the callback function. |
| pArgs |
Pointer to the optional arguments passed to the callback
function. |
| void SetTotal |
( |
float |
pTotal |
) |
|
Set the total amount of workload needed to complete the
progress.
- Parameters:
-
| pTotal |
Total amount of workload. |
| void SetThreshold |
( |
float |
pThreshold |
) |
|
Set the threshold at which the progress callback should be
called.
- Parameters:
-
| pThreshold |
The threshold value, between 0.0 and 100.0, that triggers the
callback. |
| void Update |
( |
float |
pDelta, |
|
|
const char * |
pStatus =
NULL |
|
) |
|
|
Update current progress with recent workload.
- Parameters:
-
| pDelta |
Delta amount of workload progressed so far. |
| pStatus |
Optional current progress status string. |
Reset the progress status percentage and status string.
| float GetProgress |
( |
FbxString * |
pStatus = NULL |
) |
|
Retrieve the progress status.
- Parameters:
-
| pStatus |
Optional current progress status string. |
- Returns:
- The current progress percentage.
| void Complete |
( |
const char * |
pStatus = NULL |
) |
|
Set the progress status to completed.
- Parameters:
-
| pStatus |
Optional current progress status string. |
| bool IsCanceled |
( |
|
) |
const [inline] |
Query whether user canceled this progress.
Definition at line 71 of file fbxprogress.h.
The documentation for this class was generated from the following
file: