VTK
dox
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
=========================================================================*/
30
#ifndef vtkProgressObserver_h
31
#define vtkProgressObserver_h
32
33
#include "vtkCommonExecutionModelModule.h"
// For export macro
34
#include "
vtkObject.h
"
35
36
class
VTKCOMMONEXECUTIONMODEL_EXPORT
vtkProgressObserver
:
public
vtkObject
37
{
38
public
:
39
static
vtkProgressObserver
*
New
();
40
vtkTypeMacro(
vtkProgressObserver
,
vtkObject
);
41
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
42
47
virtual
void
UpdateProgress(
double
amount);
48
50
53
vtkGetMacro(Progress,
double
);
55
56
protected
:
57
vtkProgressObserver
();
58
~
vtkProgressObserver
()
override
;
59
60
double
Progress
;
61
62
private
:
63
vtkProgressObserver
(
const
vtkProgressObserver
&) =
delete
;
64
void
operator=(
const
vtkProgressObserver
&) =
delete
;
65
};
66
67
#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:59
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkProgressObserver::Progress
double Progress
Definition:
vtkProgressObserver.h:60
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:36
Generated by
1.8.16