VTK
dox/Imaging/Color/vtkImageQuantizeRGBToIndex.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageQuantizeRGBToIndex.h
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 "vtkImagingColorModule.h" // For export macro
00037 #include "vtkImageAlgorithm.h"
00038 
00039 class vtkLookupTable;
00040 
00041 class VTKIMAGINGCOLOR_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
00042 {
00043 public:
00044   static vtkImageQuantizeRGBToIndex *New();
00045   vtkTypeMacro(vtkImageQuantizeRGBToIndex,vtkImageAlgorithm);
00046   void PrintSelf(ostream& os, vtkIndent indent);
00047 
00049 
00051   vtkSetClampMacro( NumberOfColors, int, 2, 65536 );
00052   vtkGetMacro( NumberOfColors, int );
00054 
00056 
00058   vtkGetObjectMacro( LookupTable, vtkLookupTable );
00060 
00061   vtkGetMacro( InitializeExecuteTime, double );
00062   vtkGetMacro( BuildTreeExecuteTime, double );
00063   vtkGetMacro( LookupIndexExecuteTime, double );
00064 
00065 //BTX
00067 
00068   vtkGetMacro( InputType, int );
00070 
00072 
00073   vtkSetMacro( InitializeExecuteTime, double );
00074   vtkSetMacro( BuildTreeExecuteTime, double );
00075   vtkSetMacro( LookupIndexExecuteTime, double );
00076 //ETX
00078 
00079 protected:
00080   vtkImageQuantizeRGBToIndex();
00081   ~vtkImageQuantizeRGBToIndex();
00082 
00083   vtkLookupTable  *LookupTable;
00084   int             NumberOfColors;
00085   int             InputType;
00086 
00087   double           InitializeExecuteTime;
00088   double           BuildTreeExecuteTime;
00089   double           LookupIndexExecuteTime;
00090 
00091   virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00092   virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00093 
00094   virtual int RequestData(vtkInformation *,
00095                           vtkInformationVector **,
00096                           vtkInformationVector *);
00097 
00098 private:
00099   vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&);  // Not implemented.
00100   void operator=(const vtkImageQuantizeRGBToIndex&);  // Not implemented.
00101 };
00102 
00103 #endif
00104 
00105 
00106 
00107 
00108 
00109 
00110 
00111