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 =========================================================================*/
34 #ifndef vtkImageQuantizeRGBToIndex_h
35 #define vtkImageQuantizeRGBToIndex_h
36 
37 #include "vtkImagingColorModule.h" // For export macro
38 #include "vtkImageAlgorithm.h"
39 
40 class vtkLookupTable;
41 
42 class VTKIMAGINGCOLOR_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
43 {
44 public:
47  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
48 
50 
54  vtkSetClampMacro( NumberOfColors, int, 2, 65536 );
55  vtkGetMacro( NumberOfColors, int );
57 
59 
63  vtkGetObjectMacro( LookupTable, vtkLookupTable );
65 
66  vtkGetMacro( InitializeExecuteTime, double );
67  vtkGetMacro( BuildTreeExecuteTime, double );
68  vtkGetMacro( LookupIndexExecuteTime, double );
69 
71 
74  vtkGetMacro( InputType, int );
76 
78 
81  vtkSetMacro( InitializeExecuteTime, double );
82  vtkSetMacro( BuildTreeExecuteTime, double );
83  vtkSetMacro( LookupIndexExecuteTime, double );
85 
86 protected:
88  ~vtkImageQuantizeRGBToIndex() VTK_OVERRIDE;
89 
90  vtkLookupTable *LookupTable;
91  int NumberOfColors;
92  int InputType;
93 
94  double InitializeExecuteTime;
95  double BuildTreeExecuteTime;
96  double LookupIndexExecuteTime;
97 
98  int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
99  int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
100 
101  int RequestData(vtkInformation *,
102  vtkInformationVector **,
103  vtkInformationVector *) VTK_OVERRIDE;
104 
105 private:
106  vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&) VTK_DELETE_FUNCTION;
107  void operator=(const vtkImageQuantizeRGBToIndex&) VTK_DELETE_FUNCTION;
108 };
109 
110 #endif
111 
112 
113 
114 
115 
116 
117 
118 
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
generalized histograms up to 4 dimensions