VTK  9.3.20240423
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
27VTK_ABI_NAMESPACE_BEGIN
28class VTKCOMMONEXECUTIONMODEL_EXPORT vtkProgressObserver : public vtkObject
29{
30public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
39 virtual void UpdateProgress(double amount);
40
42
45 vtkGetMacro(Progress, double);
47
48protected:
51
52 double Progress;
53
54private:
56 void operator=(const vtkProgressObserver&) = delete;
57};
58
59VTK_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:162
Basic class to optionally replace vtkAlgorithm progress functionality.
static vtkProgressObserver * New()
~vtkProgressObserver() override
virtual void UpdateProgress(double amount)
The default behavior is to update the Progress data member and invoke a ProgressEvent.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.