List of all members.
Detailed Description
ProgressCallback is a general purpose interface for functions that need to report progress.
Definition at line 30 of file Progress.
Constructor & Destructor Documentation
| ProgressCallback::ProgressCallback |
( |
| ) |
|
| virtual osgEarth::ProgressCallback::~ProgressCallback |
( |
| ) |
[inline, virtual] |
Member Function Documentation
| void osgEarth::ProgressCallback::cancel |
( |
| ) |
[inline] |
| bool osgEarth::ProgressCallback::isCanceled |
( |
| ) |
const [inline] |
| std::string& osgEarth::ProgressCallback::message |
( |
| ) |
[inline] |
| bool osgEarth::ProgressCallback::needsRetry |
( |
| ) |
const [inline] |
Whether or not the task should be retried.
Definition at line 66 of file Progress.
| virtual void osgEarth::ProgressCallback::onCompleted |
( |
| ) |
[inline, virtual] |
| virtual void osgEarth::ProgressCallback::onStarted |
( |
| ) |
[inline, virtual] |
| bool ProgressCallback::reportProgress |
( |
double |
current, |
|
|
double |
total, |
|
|
const std::string & |
msg = std::string() |
|
) |
| [virtual] |
Callback function that will be called.
- Parameters:
-
| current | The current amount of work to be done. |
| total | The total amount of work to be done. |
| msg | Description of what is being done. Useful when total is unknown. |
| returns | Returns true if the current task should be cancelled, false otherwise. |
Reimplemented in osgEarth::ConsoleProgressCallback.
Definition at line 34 of file Progress.cpp.
| void osgEarth::ProgressCallback::setNeedsRetry |
( |
bool |
needsRetry | ) |
[inline] |
Sets whether or not the task should be retried
Definition at line 70 of file Progress.
Member Data Documentation
The documentation for this class was generated from the following files:
- /home/cube/sources/osgearth/src/osgEarth/Progress
- /home/cube/sources/osgearth/src/osgEarth/Progress.cpp