VTK  9.3.1
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:
31  static vtkProgressObserver* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
39  virtual void UpdateProgress(double amount);
40 
42 
45  vtkGetMacro(Progress, double);
47 
48 protected:
50  ~vtkProgressObserver() override;
51 
52  double Progress;
53 
54 private:
56  void operator=(const vtkProgressObserver&) = delete;
57 };
58 
59 VTK_ABI_NAMESPACE_END
60 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Basic class to optionally replace vtkAlgorithm progress functionality.