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