Open CASCADE Technology 7.8.2.dev
|
Progress scope with lazy updates and abort fetches. More...
#include <Message_LazyProgressScope.hxx>
Public Member Functions | |
Message_LazyProgressScope (const Message_ProgressRange &theRange, const char *theName, const Standard_Real theMax, const Standard_Real thePatchStep, const Standard_Boolean theIsInf=Standard_False) | |
Main constructor. | |
void | Next () |
Increment progress with 1. | |
Standard_Boolean | More () const |
Return TRUE if progress has been aborted - return the cached state lazily updated. | |
Standard_Boolean | IsAborted () |
Return TRUE if progress has been aborted - fetches actual value from the Progress. | |
Protected Attributes | |
Standard_Real | myPatchStep |
Standard_Real | myPatchProgress |
Standard_Boolean | myIsLazyAborted |
Additional Inherited Members |
Progress scope with lazy updates and abort fetches.
Although Message_ProgressIndicator implementation is encouraged to spare GUI updates, even optimized implementation might show a noticeable overhead on a very small update step (e.g. per triangle).
The class splits initial (displayed) number of overall steps into larger chunks specified in constructor, so that displayed progress is updated at larger steps.
|
inline |
Main constructor.
theRange | [in] progress range to scope |
theName | [in] name of this scope |
theMax | [in] number of steps within this scope |
thePatchStep | [in] number of steps to update progress |
theIsInf | [in] infinite flag |
|
inline |
Return TRUE if progress has been aborted - fetches actual value from the Progress.
|
inline |
Return TRUE if progress has been aborted - return the cached state lazily updated.
|
inline |
Increment progress with 1.
|
protected |
|
protected |
|
protected |