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 =========================================================================*/
28 #ifndef vtkImageExtractComponents_h
29 #define vtkImageExtractComponents_h
30 
31 
32 #include "vtkImagingCoreModule.h" // For export macro
34 
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
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 
53  vtkGetMacro(NumberOfComponents,int);
55 
56 protected:
59 
61  int Components[3];
62 
65 
66  void ThreadedExecute (vtkImageData *inData, vtkImageData *outData,
67  int ext[6], int id);
68 private:
69  vtkImageExtractComponents(const vtkImageExtractComponents&); // Not implemented.
70  void operator=(const vtkImageExtractComponents&); // Not implemented.
71 };
72 
73 #endif
74 
75 
76 
77 
78 
79 
80 
81 
82 
83 
virtual void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, int extent[6], int threadId)
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent)
Generic filter that has one input..
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKIMAGINGCORE_EXPORT
Outputs a single component.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()