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 =========================================================================*/
26 #ifndef vtkImageExtractComponents_h
27 #define vtkImageExtractComponents_h
28 
29 
30 #include "vtkImagingCoreModule.h" // For export macro
32 
33 class VTKIMAGINGCORE_EXPORT vtkImageExtractComponents : public vtkThreadedImageAlgorithm
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
39 
41 
44  void SetComponents(int c1);
45  void SetComponents(int c1, int c2);
46  void SetComponents(int c1, int c2, int c3);
47  vtkGetVector3Macro(Components,int);
49 
51 
55  vtkGetMacro(NumberOfComponents,int);
57 
58 protected:
60  ~vtkImageExtractComponents() VTK_OVERRIDE {}
61 
63  int Components[3];
64 
66  vtkInformationVector *) VTK_OVERRIDE;
67 
68  void ThreadedExecute (vtkImageData *inData, vtkImageData *outData,
69  int ext[6], int id) VTK_OVERRIDE;
70 private:
71  vtkImageExtractComponents(const vtkImageExtractComponents&) VTK_DELETE_FUNCTION;
72  void operator=(const vtkImageExtractComponents&) VTK_DELETE_FUNCTION;
73 };
74 
75 #endif
76 
77 
78 
79 
80 
81 
82 
83 
84 
85 
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:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
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.