VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkProgressObserver.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00032 #ifndef vtkProgressObserver_h 00033 #define vtkProgressObserver_h 00034 00035 #include "vtkCommonExecutionModelModule.h" // For export macro 00036 #include "vtkObject.h" 00037 00038 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkProgressObserver : public vtkObject 00039 { 00040 public: 00041 static vtkProgressObserver *New(); 00042 vtkTypeMacro(vtkProgressObserver,vtkObject); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00047 virtual void UpdateProgress(double amount); 00048 00050 00051 vtkGetMacro(Progress, double); 00053 00054 protected: 00055 vtkProgressObserver(); 00056 ~vtkProgressObserver(); 00057 00058 double Progress; 00059 00060 private: 00061 vtkProgressObserver(const vtkProgressObserver&); // Not implemented. 00062 void operator=(const vtkProgressObserver&); // Not implemented. 00063 }; 00064 00065 #endif