Part::ProgressIndicator Class Reference

#include <ProgressIndicator.h>

List of all members.

Public Member Functions

 ProgressIndicator (int theMaxVal=100)
virtual Standard_Boolean Show (const Standard_Boolean theForce=Standard_True)
virtual Standard_Boolean UserBreak ()
virtual ~ProgressIndicator ()

Detailed Description

Definition at line 33 of file ProgressIndicator.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

Standard_Boolean ProgressIndicator::Show ( const Standard_Boolean  theForce = Standard_True  )  [virtual]

Definition at line 67 of file ProgressIndicator.cpp.

References Handle(), and Py::int.

Standard_Boolean ProgressIndicator::UserBreak (  )  [virtual]

Definition at line 82 of file ProgressIndicator.cpp.


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:36 2011 for FreeCAD by  doxygen 1.6.1