VTK  9.3.0
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
29#ifndef vtkImageExtractComponents_h
30#define vtkImageExtractComponents_h
31
32#include "vtkImagingCoreModule.h" // For export macro
34
35VTK_ABI_NAMESPACE_BEGIN
36class VTKIMAGINGCORE_EXPORT vtkImageExtractComponents : public vtkThreadedImageAlgorithm
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
44
47 void SetComponents(int c1);
48 void SetComponents(int c1, int c2);
49 void SetComponents(int c1, int c2, int c3);
50 vtkGetVector3Macro(Components, int);
52
54
58 vtkGetMacro(NumberOfComponents, int);
60
61protected:
63 ~vtkImageExtractComponents() override = default;
64
66 int Components[3];
67
69
70 void ThreadedExecute(vtkImageData* inData, vtkImageData* outData, int ext[6], int id) override;
71
72private:
74 void operator=(const vtkImageExtractComponents&) = delete;
75};
76
77VTK_ABI_NAMESPACE_END
78#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:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.