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

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 =========================================================================*/
00046 #ifndef __vtkImageQuantizeRGBToIndex_h
00047 #define __vtkImageQuantizeRGBToIndex_h
00048 
00049 #include "vtkImageToImageFilter.h"
00050 
00051 class vtkLookupTable;
00052 
00053 class VTK_IMAGING_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageToImageFilter
00054 {
00055 public:
00056   static vtkImageQuantizeRGBToIndex *New();
00057   vtkTypeRevisionMacro(vtkImageQuantizeRGBToIndex,vtkImageToImageFilter);
00058   void PrintSelf(ostream& os, vtkIndent indent);
00059 
00061 
00063   vtkSetClampMacro( NumberOfColors, int, 2, 65536 );
00064   vtkGetMacro( NumberOfColors, int );
00066 
00068 
00070   vtkGetObjectMacro( LookupTable, vtkLookupTable );
00072 
00073   vtkGetMacro( InitializeExecuteTime, double );
00074   vtkGetMacro( BuildTreeExecuteTime, double );
00075   vtkGetMacro( LookupIndexExecuteTime, double );
00076 
00077 //BTX
00079 
00080   vtkGetMacro( InputType, int );
00082 
00084 
00085   vtkSetMacro( InitializeExecuteTime, double );
00086   vtkSetMacro( BuildTreeExecuteTime, double );
00087   vtkSetMacro( LookupIndexExecuteTime, double );
00089 //ETX
00090 
00091 protected:
00092   vtkImageQuantizeRGBToIndex();
00093   ~vtkImageQuantizeRGBToIndex();
00094 
00095   vtkLookupTable  *LookupTable;
00096   int             NumberOfColors;
00097   int             InputType;
00098 
00099   double           InitializeExecuteTime;
00100   double           BuildTreeExecuteTime;
00101   double           LookupIndexExecuteTime;
00102 
00103   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00104   void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00105   void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00106 
00107   virtual void ExecuteData(vtkDataObject *out);
00108 private:
00109   vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&);  // Not implemented.
00110   void operator=(const vtkImageQuantizeRGBToIndex&);  // Not implemented.
00111 };
00112 
00113 #endif
00114 
00115 
00116 
00117 
00118 
00119 
00120 
00121