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 =========================================================================*/
26 #ifndef vtkImageAppendComponents_h
27 #define vtkImageAppendComponents_h
28 
29 
30 #include "vtkImagingCoreModule.h" // For export macro
32 
33 class VTKIMAGINGCORE_EXPORT vtkImageAppendComponents : public vtkThreadedImageAlgorithm
34 {
35 public:
36  static vtkImageAppendComponents *New();
38 
45  virtual void ReplaceNthInputConnection(int idx, vtkAlgorithmOutput* input);
46 
48 
53  void SetInputData(int num, vtkDataObject *input);
54  void SetInputData(vtkDataObject *input) { this->SetInputData(0, input); };
56 
58 
63  vtkDataObject *GetInput(int num);
64  vtkDataObject *GetInput() { return this->GetInput(0); };
66 
72  int GetNumberOfInputs() { return this->GetNumberOfInputConnections(0); };
73 
74 protected:
77 
79  vtkInformationVector *) override;
80 
81  void ThreadedRequestData (vtkInformation* request,
82  vtkInformationVector** inputVector,
83  vtkInformationVector* outputVector,
84  vtkImageData ***inData, vtkImageData **outData,
85  int ext[6], int id) override;
86 
87  // Implement methods required by vtkAlgorithm.
88  int FillInputPortInformation(int, vtkInformation*) override;
89 
90 private:
92  void operator=(const vtkImageAppendComponents&) = delete;
93 };
94 
95 #endif
96 
97 
98 
99 
100 // VTK-HeaderTest-Exclude: vtkImageAppendComponents.h
int GetNumberOfInputConnections(int port)
Get the number of inputs currently connected to a port.
Store vtkAlgorithm input/output information.
Collects components from two inputs into one output.
vtkDataObject * GetInput()
Get a data object for one of the input port connections.
void SetInputData(vtkDataObject *)
Assign a data object as input.
Proxy object to connect input/output ports.
Generic filter that has one input.
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetInputData(vtkDataObject *input)
Assign a data object as input.
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
If the subclass does not define an Execute method, then the task will be broken up,...
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
int GetNumberOfInputs()
Get the number of inputs to this filter.
vtkDataObject * GetInput()
Get one input to this filter.
general representation of visualization data
Definition: vtkDataObject.h:58