VTK  9.0.1
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 #include "vtkImagingCoreModule.h" // For export macro
31 
32 class VTKIMAGINGCORE_EXPORT vtkImageAppendComponents : public vtkThreadedImageAlgorithm
33 {
34 public:
35  static vtkImageAppendComponents* New();
37 
44  virtual void ReplaceNthInputConnection(int idx, vtkAlgorithmOutput* input);
45 
47 
52  void SetInputData(int num, vtkDataObject* input);
53  void SetInputData(vtkDataObject* input) { this->SetInputData(0, input); }
55 
57 
62  vtkDataObject* GetInput(int num);
63  vtkDataObject* GetInput() { return this->GetInput(0); }
65 
72 
73 protected:
76 
78 
79  void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
80  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData, int ext[6],
81  int id) override;
82 
83  // Implement methods required by vtkAlgorithm.
84  int FillInputPortInformation(int, vtkInformation*) override;
85 
86 private:
88  void operator=(const vtkImageAppendComponents&) = delete;
89 };
90 
91 #endif
92 
93 // VTK-HeaderTest-Exclude: vtkImageAppendComponents.h
vtkThreadedImageAlgorithm::ThreadedRequestData
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,...
vtkImageAppendComponents::vtkImageAppendComponents
vtkImageAppendComponents()
Definition: vtkImageAppendComponents.h:74
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkImageAppendComponents::~vtkImageAppendComponents
~vtkImageAppendComponents() override
Definition: vtkImageAppendComponents.h:75
vtkThreadedImageAlgorithm
Generic filter that has one input.
Definition: vtkThreadedImageAlgorithm.h:37
vtkImageAlgorithm::GetInput
vtkDataObject * GetInput()
Definition: vtkImageAlgorithm.h:77
vtkThreadedImageAlgorithm.h
vtkImageAppendComponents
Collects components from two inputs into one output.
Definition: vtkImageAppendComponents.h:32
vtkImageAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkImageAppendComponents::SetInputData
void SetInputData(vtkDataObject *input)
Definition: vtkImageAppendComponents.h:53
vtkImageAppendComponents::GetNumberOfInputs
int GetNumberOfInputs()
Get the number of inputs to this filter.
Definition: vtkImageAppendComponents.h:71
vtkImageAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkImageAppendComponents::GetInput
vtkDataObject * GetInput()
Definition: vtkImageAppendComponents.h:63
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:41
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:36
vtkAlgorithm::GetNumberOfInputConnections
int GetNumberOfInputConnections(int port)
Get the number of inputs currently connected to a port.
vtkImageAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59