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
33class VTKIMAGINGCORE_EXPORT vtkImageIterateFilter : public vtkThreadedImageAlgorithm
34{
35public:
37 void PrintSelf(ostream& os, vtkIndent indent) VTK_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 vtkInformationVector*) VTK_OVERRIDE;
59 vtkInformationVector*) VTK_OVERRIDE;
60 virtual int RequestData(vtkInformation* request,
61 vtkInformationVector** inputVector,
62 vtkInformationVector* outputVector) VTK_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.
68 vtkInformation* out);
70 vtkInformation* out);
74
75 virtual void SetNumberOfIterations(int num);
76
77 // for filters that execute multiple times.
80 // A list of intermediate caches that is created when
81 // is called SetNumberOfIterations()
83
86private:
87 vtkImageIterateFilter(const vtkImageIterateFilter&) VTK_DELETE_FUNCTION;
88 void operator=(const vtkImageIterateFilter&) VTK_DELETE_FUNCTION;
89};
90
91#endif
92
93
94
95
96
97
98
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
Multiple executes per update.
vtkInformationVector * OutputVector
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
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 *)
virtual int IterativeRequestInformation(vtkInformation *in, vtkInformation *out)
virtual int IterativeRequestUpdateExtent(vtkInformation *in, vtkInformation *out)
virtual void SetNumberOfIterations(int num)
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.