VTK  9.3.0
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
18#ifndef vtkProgressObserver_h
19#define vtkProgressObserver_h
20
21#include "vtkCommonExecutionModelModule.h" // For export macro
22#include "vtkObject.h"
23
24VTK_ABI_NAMESPACE_BEGIN
25class VTKCOMMONEXECUTIONMODEL_EXPORT vtkProgressObserver : public vtkObject
26{
27public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
36 virtual void UpdateProgress(double amount);
37
39
42 vtkGetMacro(Progress, double);
44
45protected:
48
49 double Progress;
50
51private:
53 void operator=(const vtkProgressObserver&) = delete;
54};
55
56VTK_ABI_NAMESPACE_END
57#endif
a simple class to control print indentation
Definition vtkIndent.h:29
abstract base class for most VTK objects
Definition vtkObject.h:49
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.