Main Page Class Hierarchy Alphabetical List Compound List File List Compound 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   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 =========================================================================*/
    00050 #ifndef __vtkImageQuantizeRGBToIndex_h
    00051 #define __vtkImageQuantizeRGBToIndex_h
    00052
    00053 #include "vtkImageToImageFilter.h"
    00054
    00055 class vtkLookupTable;
    00056
    00057 class VTK_IMAGING_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageToImageFilter
    00058 {
    00059 public:
    00060   static vtkImageQuantizeRGBToIndex *New();
    00061   vtkTypeRevisionMacro(vtkImageQuantizeRGBToIndex,vtkImageToImageFilter);
    00062   void PrintSelf(ostream& os, vtkIndent indent);
    00063
    00065
    00067   vtkSetClampMacro( NumberOfColors, int, 2, 65536 );
    00068   vtkGetMacro( NumberOfColors, int );
    00070
    00072
    00074   vtkGetObjectMacro( LookupTable, vtkLookupTable );
    00076
    00077   vtkGetMacro( InitializeExecuteTime, float );
    00078   vtkGetMacro( BuildTreeExecuteTime, float );
    00079   vtkGetMacro( LookupIndexExecuteTime, float );
    00080
    00081 //BTX
    00083   /*! For internal use only - get the type of the image */
    00084   vtkGetMacro( InputType, int );
    00086
    00088
    00089   vtkSetMacro( InitializeExecuteTime, float );
    00090   vtkSetMacro( BuildTreeExecuteTime, float );
    00091   vtkSetMacro( LookupIndexExecuteTime, float );
    00093 //ETX
    00094
    00095 protected:
    00096   vtkImageQuantizeRGBToIndex();
    00097   ~vtkImageQuantizeRGBToIndex();
    00098
    00099   vtkLookupTable  *LookupTable;
    00100   int             NumberOfColors;
    00101   int             InputType;
    00102
    00103   float           InitializeExecuteTime;
    00104   float           BuildTreeExecuteTime;
    00105   float           LookupIndexExecuteTime;
    00106
    00107   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
    00108   void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
    00109   void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
    00110
    00111   virtual void ExecuteData(vtkDataObject *out);
    00112 private:
    00113   vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&);  // Not implemented.
    00114   void operator=(const vtkImageQuantizeRGBToIndex&);  // Not implemented.
    00115 };
    00116
    00117 #endif
    00118
    00119
    00120
    00121
    00122
    00123
    00124
    00125