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

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