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 
29 #include "vtkImagingCoreModule.h" // For export macro
31 
33 {
34 public:
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
39 
41  vtkGetMacro(Iteration,int);
42  vtkGetMacro(NumberOfIterations,int);
44 
45 protected:
48 
49  // Implement standard requests by calling iterative versions the
50  // specified number of times.
54  virtual int RequestInformation (vtkInformation*,
57  virtual int RequestData(vtkInformation* request,
58  vtkInformationVector** inputVector,
59  vtkInformationVector* outputVector);
60 
61  // Iterative versions of standard requests. These are given the
62  // pipeline information object for the in/out pair at each
63  // iteration.
64  virtual int IterativeRequestInformation(vtkInformation* in,
65  vtkInformation* out);
66  virtual int IterativeRequestUpdateExtent(vtkInformation* in,
67  vtkInformation* out);
68  virtual int IterativeRequestData(vtkInformation*,
71 
72  virtual void SetNumberOfIterations(int num);
73 
74  // for filters that execute multiple times.
76  int Iteration;
77  // A list of intermediate caches that is created when
78  // is called SetNumberOfIterations()
80 
83 private:
84  vtkImageIterateFilter(const vtkImageIterateFilter&); // Not implemented.
85  void operator=(const vtkImageIterateFilter&); // Not implemented.
86 };
87 
88 #endif
89 
90 
91 
92 
93 
94 
95 
Store vtkAlgorithm input/output information.
vtkInformationVector * InputVector
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Generic filter that has one input..
vtkInformationVector * OutputVector
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKIMAGINGCORE_EXPORT
Multiple executes per update.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.