#include <opennurbs_progress_reporter.h>
Public Member Functions | |
ON_ProgressReporter () | |
~ON_ProgressReporter () | |
void | SetSynchronousProgressCallbackFunction (void(*callback_function)(ON__UINT_PTR context, double fraction_complete), ON__UINT_PTR callback_context) |
Set the function that is called when a calculation calls ReportProgress(). More... | |
Static Public Member Functions | |
static double | FractionComplete (ON_ProgressReporter *progress_reporter) |
The calculation may call ON_ProgressReporter::FractionComplete to get the current fraction completed. More... | |
static void | ReportProgress (ON_ProgressReporter *progress_reporter, double fraction_complete) |
The caclulation calls ON_ProgressReporter::ReportProgress to report its current progress. If it is the first call to ReportProgress, or the faction_complete is 1.0, or the fraction_complete has increased a reasonable amount, then the callback function is called. More... | |
static void | ReportProgress (ON_ProgressReporter *progress_reporter, int i, int max_i) |
The caclulation calls ON_ProgressReporter::ReportProgress to report its current progress. If it is the first call to ReportProgress, or the faction_complete is 1.0, or the fraction_complete has increased a reasonable amount, then the callback function is called. More... | |
static void | ReportProgress (ON_ProgressReporter *progress_reporter, unsigned int i, unsigned int max_i) |
The caclulation calls ON_ProgressReporter::ReportProgress to report its current progress. If it is the first call to ReportProgress, or the faction_complete is 1.0, or the fraction_complete has increased a reasonable amount, then the callback function is called. More... | |
ON_ProgressReporter::ON_ProgressReporter | ( | ) |
ON_ProgressReporter::~ON_ProgressReporter | ( | ) |
|
static |
The calculation may call ON_ProgressReporter::FractionComplete to get the current fraction completed.
progress_reporter | [in] A pointer to an ON_ProgressReporter or null pointer. |
|
static |
The caclulation calls ON_ProgressReporter::ReportProgress to report its current progress. If it is the first call to ReportProgress, or the faction_complete is 1.0, or the fraction_complete has increased a reasonable amount, then the callback function is called.
progress_reporter | [in] A pointer to an ON_ProgressReporter or null pointer. |
fraction_complete | [in] a value between 0.0 and 1.0 where 0.0 indicates the calcuation is beginning and 1.0 indicates the calculation is complete. |
|
static |
The caclulation calls ON_ProgressReporter::ReportProgress to report its current progress. If it is the first call to ReportProgress, or the faction_complete is 1.0, or the fraction_complete has increased a reasonable amount, then the callback function is called.
progress_reporter | [in] A pointer to an ON_ProgressReporter or null pointer. |
fraction_complete | [in] a value between 0.0 and 1.0 where 0.0 indicates the calcuation is beginning and 1.0 indicates the calculation is complete. |
|
static |
The caclulation calls ON_ProgressReporter::ReportProgress to report its current progress. If it is the first call to ReportProgress, or the faction_complete is 1.0, or the fraction_complete has increased a reasonable amount, then the callback function is called.
progress_reporter | [in] A pointer to an ON_ProgressReporter or null pointer. |
fraction_complete | [in] a value between 0.0 and 1.0 where 0.0 indicates the calcuation is beginning and 1.0 indicates the calculation is complete. |
void ON_ProgressReporter::SetSynchronousProgressCallbackFunction | ( | void(*)(ON__UINT_PTR context, double fraction_complete) | callback_function, |
ON__UINT_PTR | callback_context | ||
) |
Set the function that is called when a calculation calls ReportProgress().
callback_function | [in]
|
context | [in] the value of callback_context. |
fraction_complete | [in] A value between 0.0 and 1.0 indicating how much of the calculation is compete. |