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

Imaging/vtkImageQuantizeRGBToIndex.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageQuantizeRGBToIndex.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 =========================================================================*/
00033 #ifndef __vtkImageQuantizeRGBToIndex_h
00034 #define __vtkImageQuantizeRGBToIndex_h
00035 
00036 #include "vtkImageToImageFilter.h"
00037 
00038 class vtkLookupTable;
00039 
00040 class VTK_IMAGING_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageToImageFilter
00041 {
00042 public:
00043   static vtkImageQuantizeRGBToIndex *New();
00044   vtkTypeRevisionMacro(vtkImageQuantizeRGBToIndex,vtkImageToImageFilter);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048 
00050   vtkSetClampMacro( NumberOfColors, int, 2, 65536 );
00051   vtkGetMacro( NumberOfColors, int );
00053 
00055 
00057   vtkGetObjectMacro( LookupTable, vtkLookupTable );
00059 
00060   vtkGetMacro( InitializeExecuteTime, double );
00061   vtkGetMacro( BuildTreeExecuteTime, double );
00062   vtkGetMacro( LookupIndexExecuteTime, double );
00063 
00064 //BTX
00066 
00067   vtkGetMacro( InputType, int );
00069 
00071 
00072   vtkSetMacro( InitializeExecuteTime, double );
00073   vtkSetMacro( BuildTreeExecuteTime, double );
00074   vtkSetMacro( LookupIndexExecuteTime, double );
00076 //ETX
00077 
00078 protected:
00079   vtkImageQuantizeRGBToIndex();
00080   ~vtkImageQuantizeRGBToIndex();
00081 
00082   vtkLookupTable  *LookupTable;
00083   int             NumberOfColors;
00084   int             InputType;
00085 
00086   double           InitializeExecuteTime;
00087   double           BuildTreeExecuteTime;
00088   double           LookupIndexExecuteTime;
00089 
00090   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00091   void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00092   void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00093 
00094   virtual void ExecuteData(vtkDataObject *out);
00095 private:
00096   vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&);  // Not implemented.
00097   void operator=(const vtkImageQuantizeRGBToIndex&);  // Not implemented.
00098 };
00099 
00100 #endif
00101 
00102 
00103 
00104 
00105 
00106 
00107 
00108