Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class 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 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00028 #ifndef __vtkImageExtractComponents_h
00029 #define __vtkImageExtractComponents_h
00030 
00031 
00032 #include "vtkImageToImageFilter.h"
00033 
00034 class VTK_IMAGING_EXPORT vtkImageExtractComponents : public vtkImageToImageFilter
00035 {
00036 public:
00037   static vtkImageExtractComponents *New();
00038   vtkTypeRevisionMacro(vtkImageExtractComponents,vtkImageToImageFilter);
00039   void PrintSelf(ostream& os, vtkIndent indent);
00040 
00042 
00043   void SetComponents(int c1);
00044   void SetComponents(int c1, int c2);
00045   void SetComponents(int c1, int c2, int c3);
00046   vtkGetVector3Macro(Components,int);
00048   
00050 
00052   vtkGetMacro(NumberOfComponents,int);
00054 
00055 protected:
00056   vtkImageExtractComponents();
00057   ~vtkImageExtractComponents() {};
00058 
00059   int NumberOfComponents;
00060   int Components[3];
00061 
00062   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00063   void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00064   void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, 
00065                        int ext[6], int id);
00066 private:
00067   vtkImageExtractComponents(const vtkImageExtractComponents&);  // Not implemented.
00068   void operator=(const vtkImageExtractComponents&);  // Not implemented.
00069 };
00070 
00071 #endif
00072 
00073 
00074 
00075 
00076 
00077 
00078 
00079 
00080 
00081