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=========================================================================*/
29#ifndef vtkImageAppendComponents_h
30#define vtkImageAppendComponents_h
31
32
33#include "vtkImagingCoreModule.h" // For export macro
35
36class VTKIMAGINGCORE_EXPORT vtkImageAppendComponents : public vtkThreadedImageAlgorithm
37{
38public:
41
48 virtual void ReplaceNthInputConnection(int idx, vtkAlgorithmOutput* input);
49
51
56 void SetInputData(int num, vtkDataObject *input);
57 void SetInputData(vtkDataObject *input) { this->SetInputData(0, input); };
59
61
67 vtkDataObject *GetInput() { return this->GetInput(0); };
69
76
77protected:
80
82 vtkInformationVector *) VTK_OVERRIDE;
83
85 vtkInformationVector** inputVector,
86 vtkInformationVector* outputVector,
87 vtkImageData ***inData, vtkImageData **outData,
88 int ext[6], int id) VTK_OVERRIDE;
89
90 // Implement methods required by vtkAlgorithm.
91 virtual int FillInputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
92
93private:
94 vtkImageAppendComponents(const vtkImageAppendComponents&) VTK_DELETE_FUNCTION;
95 void operator=(const vtkImageAppendComponents&) VTK_DELETE_FUNCTION;
96};
97
98#endif
99
100
101
102
103// VTK-HeaderTest-Exclude: vtkImageAppendComponents.h
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
Definition: vtkDataObject.h:65
Collects components from two inputs into one output.
void SetInputData(int num, vtkDataObject *input)
Assign a data object as input.
static vtkImageAppendComponents * New()
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,...
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
virtual void ReplaceNthInputConnection(int idx, vtkAlgorithmOutput *input)
Replace one of the input connections with a new input.
virtual int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
vtkDataObject * GetInput(int num)
Get one input to this filter.
void SetInputData(vtkDataObject *input)
int GetNumberOfInputs()
Get the number of inputs to this filter.
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.