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

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 =========================================================================*/
00043 #ifndef __vtkImageExtractComponents_h
00044 #define __vtkImageExtractComponents_h
00045 
00046 
00047 #include "vtkImageToImageFilter.h"
00048 
00049 class VTK_IMAGING_EXPORT vtkImageExtractComponents : public vtkImageToImageFilter
00050 {
00051 public:
00052   static vtkImageExtractComponents *New();
00053   vtkTypeRevisionMacro(vtkImageExtractComponents,vtkImageToImageFilter);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055 
00057 
00058   void SetComponents(int c1);
00059   void SetComponents(int c1, int c2);
00060   void SetComponents(int c1, int c2, int c3);
00061   vtkGetVector3Macro(Components,int);
00063   
00065 
00067   vtkGetMacro(NumberOfComponents,int);
00069 
00070 protected:
00071   vtkImageExtractComponents();
00072   ~vtkImageExtractComponents() {};
00073 
00074   int NumberOfComponents;
00075   int Components[3];
00076 
00077   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00078   void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00079   void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, 
00080                        int ext[6], int id);
00081 private:
00082   vtkImageExtractComponents(const vtkImageExtractComponents&);  // Not implemented.
00083   void operator=(const vtkImageExtractComponents&);  // Not implemented.
00084 };
00085 
00086 #endif
00087 
00088 
00089 
00090 
00091 
00092 
00093 
00094 
00095 
00096