VTK
vtkImageAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageAlgorithm.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 =========================================================================*/
30 #ifndef vtkImageAlgorithm_h
31 #define vtkImageAlgorithm_h
32 
33 #include "vtkCommonExecutionModelModule.h" // For export macro
34 #include "vtkAlgorithm.h"
35 
36 class vtkDataSet;
37 class vtkImageData;
38 
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
47  vtkImageData* GetOutput();
48  vtkImageData* GetOutput(int);
49  virtual void SetOutput(vtkDataObject* d);
51 
53 
56  virtual int ProcessRequest(vtkInformation*,
60 
62 
65  void SetInputData(vtkDataObject *);
66  void SetInputData(int, vtkDataObject*);
68 
70 
73  vtkDataObject *GetInput(int port);
74  vtkDataObject *GetInput() { return this->GetInput(0); };
75  vtkImageData *GetImageDataInput(int port);
77 
79 
82  virtual void AddInputData(vtkDataObject *);
83  virtual void AddInputData(int, vtkDataObject*);
85 
86 protected:
89 
91 
93  virtual int RequestInformation(vtkInformation* request,
94  vtkInformationVector** inputVector,
95  vtkInformationVector* outputVector);
97 
98 
100 
103  virtual int RequestUpdateExtent(vtkInformation*,
107 
109 
114  virtual void CopyInputArrayAttributesToOutput(vtkInformation* request,
115  vtkInformationVector** inputVector,
116  vtkInformationVector* outputVector);
118 
119 
121 
126  virtual int RequestData(vtkInformation *request,
127  vtkInformationVector** inputVector,
128  vtkInformationVector* outputVector);
130 
132 
134  virtual void ExecuteDataWithInformation(vtkDataObject *output,
135  vtkInformation* outInfo);
137 
139 
141  virtual void ExecuteData(vtkDataObject *output);
142  virtual void Execute();
144 
146 
148  virtual void AllocateOutputData(vtkImageData *out,
149  vtkInformation* outInfo,
150  int *uExtent);
151  virtual vtkImageData *AllocateOutputData(vtkDataObject *out,
152  vtkInformation *outInfo);
154 
156 
158  virtual void CopyAttributeData(vtkImageData *in, vtkImageData *out,
159  vtkInformationVector** inputVector);
161 
163 
169 
170 private:
171  vtkImageAlgorithm(const vtkImageAlgorithm&); // Not implemented.
172  void operator=(const vtkImageAlgorithm&); // Not implemented.
173 };
174 
175 #endif
176 
177 
178 
179 
180 
181 
182 
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
vtkDataObject * GetInput()
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
virtual int FillInputPortInformation(int port, vtkInformation *info)
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)