VTK
vtkImageExtractComponents.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageExtractComponents.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 =========================================================================*/
32 #ifndef vtkImageExtractComponents_h
33 #define vtkImageExtractComponents_h
34 
35 
36 #include "vtkImagingCoreModule.h" // For export macro
38 
39 class VTKIMAGINGCORE_EXPORT vtkImageExtractComponents : public vtkThreadedImageAlgorithm
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
50  void SetComponents(int c1);
51  void SetComponents(int c1, int c2);
52  void SetComponents(int c1, int c2, int c3);
53  vtkGetVector3Macro(Components,int);
55 
57 
61  vtkGetMacro(NumberOfComponents,int);
63 
64 protected:
67 
69  int Components[3];
70 
72  vtkInformationVector *) override;
73 
74  void ThreadedExecute (vtkImageData *inData, vtkImageData *outData,
75  int ext[6], int id) override;
76 private:
78  void operator=(const vtkImageExtractComponents&) = delete;
79 };
80 
81 #endif
82 
83 
84 
85 
86 
87 
88 
89 
90 
91 
virtual void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, int extent[6], int threadId)
Store vtkAlgorithm input/output information.
Generic filter that has one input.
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
Outputs a single component.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.