1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkImageExtractComponents.h,v $
6 Date: $Date: 2002/01/22 15:32:29 $
7 Version: $Revision: 1.26 $
9 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
11 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notice for more information.
17 =========================================================================*/
18 // .NAME vtkImageExtractComponents - Outputs a single component
19 // .SECTION Description
20 // vtkImageExtractComponents takes an input with any number of components
21 // and outputs some of them. It does involve a copy of the data.
24 // vtkImageAppendComponents
26 #ifndef __vtkImageExtractComponents_h
27 #define __vtkImageExtractComponents_h
30 #include "vtkImageToImageFilter.h"
32 class VTK_IMAGING_EXPORT vtkImageExtractComponents : public vtkImageToImageFilter
35 static vtkImageExtractComponents *New();
36 vtkTypeRevisionMacro(vtkImageExtractComponents,vtkImageToImageFilter);
37 void PrintSelf(ostream& os, vtkIndent indent);
40 // Set/Get the components to extract.
41 void SetComponents(int c1);
42 void SetComponents(int c1, int c2);
43 void SetComponents(int c1, int c2, int c3);
44 vtkGetVector3Macro(Components,int);
47 // Get the number of components to extract. This is set implicitly by the
48 // SetComponents() method.
49 vtkGetMacro(NumberOfComponents,int);
52 vtkImageExtractComponents();
53 ~vtkImageExtractComponents() {};
55 int NumberOfComponents;
58 void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
59 void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
60 void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
63 vtkImageExtractComponents(const vtkImageExtractComponents&); // Not implemented.
64 void operator=(const vtkImageExtractComponents&); // Not implemented.