FbxProgress Class Reference
         
    
#include <fbxprogress.h>
Class for progress reporting. 
Definition at line 31 of file fbxprogress.h.
 
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 = ((void *) 0)  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
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 = ((void *) 0) | ) | 
           | 
        
      
 
Retrieve the progress status. 
- Parameters
 - 
  
    | pStatus | Optional current progress status string.  | 
  
   
- Returns
 - The current progress percentage. 
 
 
 
      
        
          | void Complete  | 
          ( | 
          const char *  | 
          pStatus = ((void *) 0) | ) | 
           | 
        
      
 
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: