ParaView
vtkTimeStepProgressFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkTimeStepProgressFilter.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
24 #ifndef vtkTimeStepProgressFilter_h
25 #define vtkTimeStepProgressFilter_h
26 
27 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
28 #include "vtkTableAlgorithm.h"
29 
30 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkTimeStepProgressFilter : public vtkTableAlgorithm
31 {
32 public:
33  static vtkTimeStepProgressFilter* New();
34  vtkTypeMacro(vtkTimeStepProgressFilter, vtkTableAlgorithm);
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
37 protected:
40 
41  virtual int FillInputPortInformation(int port, vtkInformation* info);
42  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
43  vtkInformationVector* outputVector);
44 
45  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
46  vtkInformationVector* outputVector);
47 
48  double TimeRange[2];
49  double* TimeSteps;
52 
53 private:
54  vtkTimeStepProgressFilter(const vtkTimeStepProgressFilter&) VTK_DELETE_FUNCTION;
55  void operator=(const vtkTimeStepProgressFilter&) VTK_DELETE_FUNCTION;
56 };
57 
58 #endif
This filter can be attached to any filter/source/reader that supports time.