VTK  9.3.20240328
vtkProgressObserver.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
21 #ifndef vtkProgressObserver_h
22 #define vtkProgressObserver_h
23 
24 #include "vtkCommonExecutionModelModule.h" // For export macro
25 #include "vtkObject.h"
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkProgressObserver : public vtkObject
29 {
30 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
39  virtual void UpdateProgress(double amount);
40 
42 
45  vtkGetMacro(Progress, double);
47 
48 protected:
51 
52  double Progress;
53 
54 private:
56  void operator=(const vtkProgressObserver&) = delete;
57 };
58 
59 VTK_ABI_NAMESPACE_END
60 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
abstract base class for most VTK objects
Definition: vtkObject.h:161
Basic class to optionally replace vtkAlgorithm progress functionality.
~vtkProgressObserver() override
virtual void UpdateProgress(double amount)
The default behavior is to update the Progress data member and invoke a ProgressEvent.
static vtkProgressObserver * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.