VTK  9.2.6
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 =========================================================================*/
58 #ifndef vtkImageAppendComponents_h
59 #define vtkImageAppendComponents_h
60 
61 #include "vtkImagingCoreModule.h" // For export macro
63 
64 class VTKIMAGINGCORE_EXPORT vtkImageAppendComponents : public vtkThreadedImageAlgorithm
65 {
66 public:
69  void PrintSelf(ostream& os, vtkIndent indent) override;
70 
77  virtual void ReplaceNthInputConnection(int idx, vtkAlgorithmOutput* input);
78 
80 
85  void SetInputData(int num, vtkDataObject* input);
86  void SetInputData(vtkDataObject* input) { this->SetInputData(0, input); }
88 
90 
96  vtkDataObject* GetInput() { return this->GetInput(0); }
98 
105 
106 protected:
108  ~vtkImageAppendComponents() override = default;
109 
111 
113  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData, int ext[6],
114  int id) override;
115 
116  // Implement methods required by vtkAlgorithm.
118 
119 private:
121  void operator=(const vtkImageAppendComponents&) = delete;
122 };
123 
124 #endif
Proxy object to connect input/output ports.
int GetNumberOfInputConnections(int port)
Get the number of inputs currently connected to a port.
general representation of visualization data
Collects components from two inputs into one output.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetInputData(int num, vtkDataObject *input)
Assign a data object as input.
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int ext[6], int id) override
If the subclass does not define an Execute method, then the task will be broken up,...
vtkImageAppendComponents()=default
virtual void ReplaceNthInputConnection(int idx, vtkAlgorithmOutput *input)
Replace one of the input connections with a new input.
vtkDataObject * GetInput()
Get one input to this filter.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkImageAppendComponents * New()
void SetInputData(vtkDataObject *input)
Assign a data object as input.
vtkDataObject * GetInput(int num)
Get one input to this filter.
int GetNumberOfInputs()
Get the number of inputs to this filter.
~vtkImageAppendComponents() override=default
int FillInputPortInformation(int, vtkInformation *) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
topologically and geometrically regular array of data
Definition: vtkImageData.h:163
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.