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 
49  virtual void SetOutput(vtkDataObject* d);
51 
53 
60 
62 
68 
70 
74  vtkDataObject *GetInput() { return this->GetInput(0); };
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 
107 
109 
115  vtkInformationVector** inputVector,
116  vtkInformationVector* outputVector);
118 
119 
121 
126  virtual int RequestData(vtkInformation *request,
127  vtkInformationVector** inputVector,
128  vtkInformationVector* outputVector);
130 
132 
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);
152  vtkInformation *outInfo);
154 
156 
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 
vtkImageAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkImageAlgorithm::SetInputData
void SetInputData(int, vtkDataObject *)
vtkImageAlgorithm::AddInputData
virtual void AddInputData(int, vtkDataObject *)
VTKCOMMONEXECUTIONMODEL_EXPORT
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Definition: vtkCommonExecutionModelModule.h:15
vtkImageAlgorithm::ExecuteData
virtual void ExecuteData(vtkDataObject *output)
vtkImageAlgorithm::GetOutput
vtkImageData * GetOutput(int)
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkImageAlgorithm::ExecuteDataWithInformation
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkImageAlgorithm::AllocateOutputData
virtual vtkImageData * AllocateOutputData(vtkDataObject *out, vtkInformation *outInfo)
vtkCommonExecutionModelModule.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:40
vtkgl::in
GLuint in
Definition: vtkgl.h:16905
vtkImageAlgorithm::GetInput
vtkDataObject * GetInput()
Definition: vtkImageAlgorithm.h:74
vtkAlgorithm.h
vtkImageAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkImageAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkImageAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
vtkImageAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkImageAlgorithm::AllocateOutputData
virtual void AllocateOutputData(vtkImageData *out, vtkInformation *outInfo, int *uExtent)
vtkImageAlgorithm::GetOutput
vtkImageData * GetOutput()
vtkImageAlgorithm::GetInput
vtkDataObject * GetInput(int port)
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImageAlgorithm::SetOutput
virtual void SetOutput(vtkDataObject *d)
vtkImageAlgorithm::CopyInputArrayAttributesToOutput
virtual void CopyInputArrayAttributesToOutput(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkImageAlgorithm::vtkImageAlgorithm
vtkImageAlgorithm()
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkImageAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkImageAlgorithm::CopyAttributeData
virtual void CopyAttributeData(vtkImageData *in, vtkImageData *out, vtkInformationVector **inputVector)
vtkImageAlgorithm::Execute
virtual void Execute()
vtkImageAlgorithm::~vtkImageAlgorithm
~vtkImageAlgorithm()
vtkImageAlgorithm::AddInputData
virtual void AddInputData(vtkDataObject *)
vtkImageAlgorithm::GetImageDataInput
vtkImageData * GetImageDataInput(int port)
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65