VTK
vtkImageAppendComponents.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageAppendComponents.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 =========================================================================*/
28 #ifndef vtkImageAppendComponents_h
29 #define vtkImageAppendComponents_h
30 
31 
32 #include "vtkImagingCoreModule.h" // For export macro
34 
36 {
37 public:
38  static vtkImageAppendComponents *New();
40 
45  virtual void ReplaceNthInputConnection(int idx, vtkAlgorithmOutput* input);
46 
48 
51  void SetInputData(int num, vtkDataObject *input);
52  void SetInputData(vtkDataObject *input) { this->SetInputData(0, input); };
54 
56 
59  vtkDataObject *GetInput(int num);
60  vtkDataObject *GetInput() { return this->GetInput(0); };
62 
66  int GetNumberOfInputs() { return this->GetNumberOfInputConnections(0); };
67 
68 protected:
71 
74 
75  void ThreadedRequestData (vtkInformation* request,
76  vtkInformationVector** inputVector,
77  vtkInformationVector* outputVector,
78  vtkImageData ***inData, vtkImageData **outData,
79  int ext[6], int id);
80 
81  // Implement methods required by vtkAlgorithm.
82  virtual int FillInputPortInformation(int, vtkInformation*);
83 
84 private:
85  vtkImageAppendComponents(const vtkImageAppendComponents&); // Not implemented.
86  void operator=(const vtkImageAppendComponents&); // Not implemented.
87 };
88 
89 #endif
90 
91 
92 
93 
94 // VTK-HeaderTest-Exclude: vtkImageAppendComponents.h
int GetNumberOfInputConnections(int port)
Store vtkAlgorithm input/output information.
Collects components from two inputs into one output.
vtkDataObject * GetInput()
void SetInputData(vtkDataObject *)
Proxy object to connect input/output ports.
Generic filter that has one input..
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKIMAGINGCORE_EXPORT
void SetInputData(vtkDataObject *input)
virtual int FillInputPortInformation(int port, vtkInformation *info)
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:64