#include <opennurbs_progress_reporter.h>
◆ ON_ProgressStepCounter() [1/2]
ON_ProgressStepCounter::ON_ProgressStepCounter |
( |
| ) |
|
|
default |
This class makes it easy for functions to use a progress reporter.
◆ ~ON_ProgressStepCounter()
ON_ProgressStepCounter::~ON_ProgressStepCounter |
( |
| ) |
|
|
default |
◆ ON_ProgressStepCounter() [2/2]
◆ Create() [1/2]
When you have a process that needs to call a ON_ProgressReporter::ReportProgress() a reasonable number of times and you can calculate the number of steps your process takes, then ON_ProgressStepCounter will handle all the details.
- Parameters
-
This will create a ON_ProgressStepCounter that will call ON_ProgressReporter::ReportProgress(progress_reporter) at most 101 times. The first call reports progress 0.0. The last call reports progress 1.0.
◆ Create() [2/2]
static ON_ProgressStepCounter ON_ProgressStepCounter::Create |
( |
ON_ProgressReporter * |
progress_reporter, |
|
|
unsigned int |
step_count, |
|
|
double |
progress_interval_start, |
|
|
double |
progress_interval_finish, |
|
|
unsigned int |
maximum_progress_reports |
|
) |
| |
|
static |
When you have a process that needs to call a ON_ProgressReporter::ReportProgress() a reasonable number of times and you can calculate the number of steps your process takes, then ON_ProgressStepCounter will handle all the details.
- Parameters
-
progress_reporter | [in] Parameter passed to ON_ProgressReporter::ReportProgress(). |
step_count | [in] Number of steps. |
progress_interval_start | [in] |
progress_interval_finish | [in] 0.0 <= progress_interval_start < progress_interval_finish <= 1.0 |
maximum_progress_reports | [in] Maximum number of times to call ON_ProgressReporter::ReportProgress() after the initial call reporting progress of progress_interval_start. 10 to 100 are good values. |
◆ Finished()
void ON_ProgressStepCounter::Finished |
( |
| ) |
|
◆ IncrementStep()
void ON_ProgressStepCounter::IncrementStep |
( |
| ) |
|
◆ operator=()
◆ Progress()
double ON_ProgressStepCounter::Progress |
( |
| ) |
const |
◆ Step()
unsigned int ON_ProgressStepCounter::Step |
( |
| ) |
const |
◆ StepCount()
unsigned int ON_ProgressStepCounter::StepCount |
( |
| ) |
const |
◆ Empty