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 =========================================================================*/
27 #ifndef vtkImageIterateFilter_h
28 #define vtkImageIterateFilter_h
29 
30 #include "vtkImagingCoreModule.h" // For export macro
32 
33 class VTKIMAGINGCORE_EXPORT vtkImageIterateFilter : public vtkThreadedImageAlgorithm
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
44  vtkGetMacro(Iteration,int);
45  vtkGetMacro(NumberOfIterations,int);
47 
48 protected:
50  ~vtkImageIterateFilter() override;
51 
52  // Implement standard requests by calling iterative versions the
53  // specified number of times.
56  vtkInformationVector*) override;
59  vtkInformationVector*) override;
60  int RequestData(vtkInformation* request,
61  vtkInformationVector** inputVector,
62  vtkInformationVector* outputVector) override;
63 
64  // Iterative versions of standard requests. These are given the
65  // pipeline information object for the in/out pair at each
66  // iteration.
67  virtual int IterativeRequestInformation(vtkInformation* in,
68  vtkInformation* out);
69  virtual int IterativeRequestUpdateExtent(vtkInformation* in,
70  vtkInformation* out);
71  virtual int IterativeRequestData(vtkInformation*,
74 
75  virtual void SetNumberOfIterations(int num);
76 
77  // for filters that execute multiple times.
79  int Iteration;
80  // A list of intermediate caches that is created when
81  // is called SetNumberOfIterations()
83 
86 private:
88  void operator=(const vtkImageIterateFilter&) = delete;
89 };
90 
91 #endif
92 
93 
94 
95 
96 
97 
98 
Store vtkAlgorithm input/output information.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkInformationVector * InputVector
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
Generic filter that has one input.
vtkInformationVector * OutputVector
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
Multiple executes per update.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.