VTK  9.4.20241226
vtkImageExtractComponents.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
129#ifndef vtkImageExtractComponents_h
130#define vtkImageExtractComponents_h
131
132#include "vtkImagingCoreModule.h" // For export macro
134
135VTK_ABI_NAMESPACE_BEGIN
136class VTKIMAGINGCORE_EXPORT vtkImageExtractComponents : public vtkThreadedImageAlgorithm
137{
138public:
141 void PrintSelf(ostream& os, vtkIndent indent) override;
142
144
147 void SetComponents(int c1);
148 void SetComponents(int c1, int c2);
149 void SetComponents(int c1, int c2, int c3);
150 vtkGetVector3Macro(Components, int);
152
154
158 vtkGetMacro(NumberOfComponents, int);
160
161protected:
163 ~vtkImageExtractComponents() override = default;
164
166 int Components[3];
167
169
170 void ThreadedExecute(vtkImageData* inData, vtkImageData* outData, int ext[6], int id) override;
171
172private:
174 void operator=(const vtkImageExtractComponents&) = delete;
175};
176
177VTK_ABI_NAMESPACE_END
178#endif
topologically and geometrically regular array of data
Outputs a single component.
void SetComponents(int c1, int c2, int c3)
Set/Get the components to extract.
~vtkImageExtractComponents() override=default
void SetComponents(int c1, int c2)
Set/Get the components to extract.
void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, int ext[6], int id) override
void SetComponents(int c1)
Set/Get the components to extract.
static vtkImageExtractComponents * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.