VTK
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 =========================================================================*/
32 #ifndef vtkProgressObserver_h
33 #define vtkProgressObserver_h
34 
35 #include "vtkCommonExecutionModelModule.h" // For export macro
36 #include "vtkObject.h"
37 
39 {
40 public:
41  static vtkProgressObserver *New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
47  virtual void UpdateProgress(double amount);
48 
50 
51  vtkGetMacro(Progress, double);
53 
54 protected:
57 
58  double Progress;
59 
60 private:
61  vtkProgressObserver(const vtkProgressObserver&); // Not implemented.
62  void operator=(const vtkProgressObserver&); // Not implemented.
63 };
64 
65 #endif
#define VTKCOMMONEXECUTIONMODEL_EXPORT
abstract base class for most VTK objects
Definition: vtkObject.h:61
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkObject * New()
Basic class to optionally replace vtkAlgorithm progress functionality.