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 
33 
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
43  void SetComponents(int c1);
44  void SetComponents(int c1, int c2);
45  void SetComponents(int c1, int c2, int c3);
46  vtkGetVector3Macro(Components,int);
48 
50 
52  vtkGetMacro(NumberOfComponents,int);
54 
55 protected:
58 
59  int NumberOfComponents;
60  int Components[3];
61 
64 
65  void ThreadedExecute (vtkImageData *inData, vtkImageData *outData,
66  int ext[6], int id);
67 private:
68  vtkImageExtractComponents(const vtkImageExtractComponents&); // Not implemented.
69  void operator=(const vtkImageExtractComponents&); // Not implemented.
70 };
71 
72 #endif
73 
74 
75 
76 
77 
78 
79 
80 
81 
82 
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:37
#define VTK_IMAGING_EXPORT
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Outputs a single component.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()