VTK
vtkImageIterateFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageIterateFilter.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 =========================================================================*/
26 #ifndef __vtkImageIterateFilter_h
27 #define __vtkImageIterateFilter_h
28 
30 
32 {
33 public:
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
38 
40  vtkGetMacro(Iteration,int);
41  vtkGetMacro(NumberOfIterations,int);
43 
44 protected:
47 
48  // Implement standard requests by calling iterative versions the
49  // specified number of times.
53  virtual int RequestInformation (vtkInformation*,
56  virtual int RequestData(vtkInformation* request,
57  vtkInformationVector** inputVector,
58  vtkInformationVector* outputVector);
59 
60  // Iterative versions of standard requests. These are given the
61  // pipeline information object for the in/out pair at each
62  // iteration.
63  virtual int IterativeRequestInformation(vtkInformation* in,
64  vtkInformation* out);
65  virtual int IterativeRequestUpdateExtent(vtkInformation* in,
66  vtkInformation* out);
67  virtual int IterativeRequestData(vtkInformation*,
70 
71  virtual void SetNumberOfIterations(int num);
72 
73  // for filters that execute multiple times.
75  int Iteration;
76  // A list of intermediate caches that is created when
77  // is called SetNumberOfIterations()
79 
80  // returns correct vtkImageDatas based on current iteration.
81  vtkImageData *GetIterationInput();
82  vtkImageData *GetIterationOutput();
83 
86 private:
87  vtkImageIterateFilter(const vtkImageIterateFilter&); // Not implemented.
88  void operator=(const vtkImageIterateFilter&); // Not implemented.
89 };
90 
91 #endif
92 
93 
94 
95 
96 
97 
98