Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Imaging/vtkImageExtractComponents.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkImageExtractComponents.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00032 #ifndef __vtkImageExtractComponents_h 00033 #define __vtkImageExtractComponents_h 00034 00035 00036 #include "vtkImageToImageFilter.h" 00037 00038 class VTK_IMAGING_EXPORT vtkImageExtractComponents : public vtkImageToImageFilter 00039 { 00040 public: 00041 static vtkImageExtractComponents *New(); 00042 vtkTypeRevisionMacro(vtkImageExtractComponents,vtkImageToImageFilter); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00046 00047 void SetComponents(int c1); 00048 void SetComponents(int c1, int c2); 00049 void SetComponents(int c1, int c2, int c3); 00050 vtkGetVector3Macro(Components,int); 00052 00054 00056 vtkGetMacro(NumberOfComponents,int); 00058 00059 protected: 00060 vtkImageExtractComponents(); 00061 ~vtkImageExtractComponents() {}; 00062 00063 int NumberOfComponents; 00064 int Components[3]; 00065 00066 void ExecuteInformation(vtkImageData *inData, vtkImageData *outData); 00067 void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();}; 00068 void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, 00069 int ext[6], int id); 00070 private: 00071 vtkImageExtractComponents(const vtkImageExtractComponents&); // Not implemented. 00072 void operator=(const vtkImageExtractComponents&); // Not implemented. 00073 }; 00074 00075 #endif 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085