Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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 =========================================================================*/
00033 #ifndef __vtkImageQuantizeRGBToIndex_h
00034 #define __vtkImageQuantizeRGBToIndex_h
00035 
00036 #include "vtkImageAlgorithm.h"
00037 
00038 class vtkLookupTable;
00039 
00040 class VTK_IMAGING_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
00041 {
00042 public:
00043   static vtkImageQuantizeRGBToIndex *New();
00044   vtkTypeRevisionMacro(vtkImageQuantizeRGBToIndex,vtkImageAlgorithm);
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   virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00091   virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00092 
00093   virtual int RequestData(vtkInformation *,
00094                           vtkInformationVector **,
00095                           vtkInformationVector *);
00096 
00097 private:
00098   vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&);  // Not implemented.
00099   void operator=(const vtkImageQuantizeRGBToIndex&);  // Not implemented.
00100 };
00101 
00102 #endif
00103 
00104 
00105 
00106 
00107 
00108 
00109 
00110 

Generated on Mon Jan 21 23:07:30 2008 for VTK by  doxygen 1.4.3-20050530