#include <ProgressIndicator.h>
Public Member Functions | |
ProgressIndicator (int theMaxVal=100) | |
virtual Standard_Boolean | Show (const Standard_Boolean theForce=Standard_True) |
virtual Standard_Boolean | UserBreak () |
virtual | ~ProgressIndicator () |
Definition at line 33 of file ProgressIndicator.h.
ProgressIndicator::ProgressIndicator | ( | int | theMaxVal = 100 |
) |
#include <XSControl_WorkSession.hxx> #include <Transfer_TransientProcess.hxx> STEPControl_Reader aReader; Handle_Message_ProgressIndicator pi = new ProgressIndicator(100); pi->NewScope(20, "Loading STEP file..."); pi->Show(); aReader.ReadFile("myfile.stp"); pi->EndScope(); Handle(StepData_StepModel) Model = aReader.StepModel(); pi->NewScope(80, "Translating..."); pi->Show(); aReader.WS()->MapReader()->SetProgress(pi); Standard_Integer nbr = aReader.NbRootsForTransfer(); for ( Standard_Integer n = 1; n<= nbr; n++) { ... } pi->EndScope();
Definition at line 57 of file ProgressIndicator.cpp.
ProgressIndicator::~ProgressIndicator | ( | ) | [virtual] |
Definition at line 63 of file ProgressIndicator.cpp.
Standard_Boolean ProgressIndicator::Show | ( | const Standard_Boolean | theForce = Standard_True |
) | [virtual] |
Definition at line 67 of file ProgressIndicator.cpp.
Standard_Boolean ProgressIndicator::UserBreak | ( | ) | [virtual] |
Definition at line 82 of file ProgressIndicator.cpp.