Open CASCADE Technology
6.5.4
|
Implements ProgressIndicator (interface provided by Message)
for DRAW, with possibility to output to TCL window
and/or trace file
#include <Draw_ProgressIndicator.hxx>
Public Member Functions | |
Draw_ProgressIndicator (const Draw_Interpretor &di, const Standard_Integer updateTime=0) | |
Creates a progress indicator and remembers pointer to Draw_Interpretor The updateTime, if given, defines time interval between updates of the indicator (in seconds) | |
void | Destroy () |
Destructor; calls Reset() | |
~Draw_ProgressIndicator () | |
void | SetTextMode (const Standard_Boolean theTextMode) |
Sets text output mode (on/off) | |
Standard_Boolean | GetTextMode () const |
Gets text output mode (on/off) | |
void | SetGraphMode (const Standard_Boolean theGraphMode) |
Sets graphical output mode (on/off) | |
Standard_Boolean | GetGraphMode () const |
Gets graphical output mode (on/off) | |
virtual void | Reset () |
Clears/erases opened TCL windows if any and sets myBreak to False | |
virtual Standard_Boolean | Show (const Standard_Boolean force=Standard_True) |
Defines method Show of Progress Indicator | |
virtual Standard_Boolean | UserBreak () |
Redefines method UserBreak of Progress Indicator | |
Static Public Member Functions | |
static Standard_Boolean & | DefaultTextMode () |
static Standard_Boolean & | DefaultGraphMode () |
Get/Set default values for output modes | |
static Standard_Integer & | StopIndicator () |
Internal method for implementation of UserBreak mechanism |
Draw_ProgressIndicator::Draw_ProgressIndicator | ( | const Draw_Interpretor & | di, |
const Standard_Integer | updateTime = 0 |
||
) |
Draw_ProgressIndicator::~Draw_ProgressIndicator | ( | ) | [inline] |
static Standard_Boolean& Draw_ProgressIndicator::DefaultGraphMode | ( | ) | [static] |
static Standard_Boolean& Draw_ProgressIndicator::DefaultTextMode | ( | ) | [static] |
virtual void Draw_ProgressIndicator::Reset | ( | ) | [virtual] |
Reimplemented from Message_ProgressIndicator.
void Draw_ProgressIndicator::SetGraphMode | ( | const Standard_Boolean | theGraphMode | ) |
void Draw_ProgressIndicator::SetTextMode | ( | const Standard_Boolean | theTextMode | ) |
virtual Standard_Boolean Draw_ProgressIndicator::Show | ( | const Standard_Boolean | force = Standard_True | ) | [virtual] |
Implements Message_ProgressIndicator.
static Standard_Integer& Draw_ProgressIndicator::StopIndicator | ( | ) | [static] |
virtual Standard_Boolean Draw_ProgressIndicator::UserBreak | ( | ) | [virtual] |
Reimplemented from Message_ProgressIndicator.