VTK
vtkImageQuantizeRGBToIndex.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageQuantizeRGBToIndex.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
33 #ifndef vtkImageQuantizeRGBToIndex_h
34 #define vtkImageQuantizeRGBToIndex_h
35 
36 #include "vtkImagingColorModule.h" // For export macro
37 #include "vtkImageAlgorithm.h"
38 
39 class vtkLookupTable;
40 
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
51  vtkSetClampMacro( NumberOfColors, int, 2, 65536 );
52  vtkGetMacro( NumberOfColors, int );
54 
56 
58  vtkGetObjectMacro( LookupTable, vtkLookupTable );
60 
61  vtkGetMacro( InitializeExecuteTime, double );
62  vtkGetMacro( BuildTreeExecuteTime, double );
63  vtkGetMacro( LookupIndexExecuteTime, double );
64 
65 //BTX
67 
68  vtkGetMacro( InputType, int );
70 
72 
73  vtkSetMacro( InitializeExecuteTime, double );
74  vtkSetMacro( BuildTreeExecuteTime, double );
75  vtkSetMacro( LookupIndexExecuteTime, double );
76 //ETX
78 
79 protected:
82 
85  int InputType;
86 
90 
93 
94  virtual int RequestData(vtkInformation *,
97 
98 private:
99  vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&); // Not implemented.
100  void operator=(const vtkImageQuantizeRGBToIndex&); // Not implemented.
101 };
102 
103 #endif
104 
105 
106 
107 
108 
109 
110 
111 
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
#define VTKIMAGINGCOLOR_EXPORT
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
generalized histograms up to 4 dimensions