VTK
9.0.1
Common
ExecutionModel
vtkProgressObserver.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkProgressObserver.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
33
#ifndef vtkProgressObserver_h
34
#define vtkProgressObserver_h
35
36
#include "vtkCommonExecutionModelModule.h"
// For export macro
37
#include "
vtkObject.h
"
38
39
class
VTKCOMMONEXECUTIONMODEL_EXPORT
vtkProgressObserver
:
public
vtkObject
40
{
41
public
:
42
static
vtkProgressObserver
*
New
();
43
vtkTypeMacro(
vtkProgressObserver
,
vtkObject
);
44
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
45
50
virtual
void
UpdateProgress(
double
amount);
51
53
56
vtkGetMacro(Progress,
double
);
58
59
protected
:
60
vtkProgressObserver
();
61
~
vtkProgressObserver
()
override
;
62
63
double
Progress
;
64
65
private
:
66
vtkProgressObserver
(
const
vtkProgressObserver
&) =
delete
;
67
void
operator=(
const
vtkProgressObserver
&) =
delete
;
68
};
69
70
#endif
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:62
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkProgressObserver::Progress
double Progress
Definition:
vtkProgressObserver.h:63
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject.h
vtkProgressObserver
Basic class to optionally replace vtkAlgorithm progress functionality.
Definition:
vtkProgressObserver.h:39
Generated on Thu Jun 24 2021 15:17:26 for VTK by
1.8.17