VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
33 #include "vtkThreadedImageAlgorithm.h"
34 
35 class VTKIMAGINGCORE_EXPORT vtkImageExtractComponents : public vtkThreadedImageAlgorithm
36 {
37 public:
38  static vtkImageExtractComponents *New();
39  vtkTypeMacro(vtkImageExtractComponents,vtkThreadedImageAlgorithm);
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 
60  int NumberOfComponents;
61  int Components[3];
62 
63  virtual int RequestInformation (vtkInformation *, vtkInformationVector**,
64  vtkInformationVector *);
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 
Outputs a single component.