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

dox/Imaging/vtkImageQuantizeRGBToIndex.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkImageQuantizeRGBToIndex.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00037 #ifndef __vtkImageQuantizeRGBToIndex_h 00038 #define __vtkImageQuantizeRGBToIndex_h 00039 00040 #include "vtkImageToImageFilter.h" 00041 00042 class vtkLookupTable; 00043 00044 class VTK_IMAGING_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageToImageFilter 00045 { 00046 public: 00047 static vtkImageQuantizeRGBToIndex *New(); 00048 vtkTypeRevisionMacro(vtkImageQuantizeRGBToIndex,vtkImageToImageFilter); 00049 void PrintSelf(ostream& os, vtkIndent indent); 00050 00052 00054 vtkSetClampMacro( NumberOfColors, int, 2, 65536 ); 00055 vtkGetMacro( NumberOfColors, int ); 00057 00059 00061 vtkGetObjectMacro( LookupTable, vtkLookupTable ); 00063 00064 vtkGetMacro( InitializeExecuteTime, float ); 00065 vtkGetMacro( BuildTreeExecuteTime, float ); 00066 vtkGetMacro( LookupIndexExecuteTime, float ); 00067 00068 //BTX 00070 00071 vtkGetMacro( InputType, int ); 00073 00075 00076 vtkSetMacro( InitializeExecuteTime, float ); 00077 vtkSetMacro( BuildTreeExecuteTime, float ); 00078 vtkSetMacro( LookupIndexExecuteTime, float ); 00080 //ETX 00081 00082 protected: 00083 vtkImageQuantizeRGBToIndex(); 00084 ~vtkImageQuantizeRGBToIndex(); 00085 00086 vtkLookupTable *LookupTable; 00087 int NumberOfColors; 00088 int InputType; 00089 00090 float InitializeExecuteTime; 00091 float BuildTreeExecuteTime; 00092 float LookupIndexExecuteTime; 00093 00094 void ExecuteInformation(vtkImageData *inData, vtkImageData *outData); 00095 void ComputeInputUpdateExtent(int inExt[6], int outExt[6]); 00096 void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();}; 00097 00098 virtual void ExecuteData(vtkDataObject *out); 00099 private: 00100 vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&); // Not implemented. 00101 void operator=(const vtkImageQuantizeRGBToIndex&); // Not implemented. 00102 }; 00103 00104 #endif 00105 00106 00107 00108 00109 00110 00111 00112