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 =========================================================================*/
31 #ifndef vtkImageQuantizeRGBToIndex_h
32 #define vtkImageQuantizeRGBToIndex_h
33 
34 #include "vtkImagingColorModule.h" // For export macro
35 #include "vtkImageAlgorithm.h"
36 
37 class vtkLookupTable;
38 
39 class VTKIMAGINGCOLOR_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45 
47 
51  vtkSetClampMacro( NumberOfColors, int, 2, 65536 );
52  vtkGetMacro( NumberOfColors, int );
54 
56 
60  vtkGetObjectMacro( LookupTable, vtkLookupTable );
62 
63  vtkGetMacro( InitializeExecuteTime, double );
64  vtkGetMacro( BuildTreeExecuteTime, double );
65  vtkGetMacro( LookupIndexExecuteTime, double );
66 
68 
71  vtkGetMacro( InputType, int );
73 
75 
78  vtkSetMacro( InitializeExecuteTime, double );
79  vtkSetMacro( BuildTreeExecuteTime, double );
80  vtkSetMacro( LookupIndexExecuteTime, double );
82 
83 protected:
85  ~vtkImageQuantizeRGBToIndex() VTK_OVERRIDE;
86 
87  vtkLookupTable *LookupTable;
88  int NumberOfColors;
89  int InputType;
90 
91  double InitializeExecuteTime;
92  double BuildTreeExecuteTime;
93  double LookupIndexExecuteTime;
94 
95  int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
96  int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
97 
98  int RequestData(vtkInformation *,
99  vtkInformationVector **,
100  vtkInformationVector *) VTK_OVERRIDE;
101 
102 private:
103  vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&) VTK_DELETE_FUNCTION;
104  void operator=(const vtkImageQuantizeRGBToIndex&) VTK_DELETE_FUNCTION;
105 };
106 
107 #endif
108 
109 
110 
111 
112 
113 
114 
115 
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table
a simple class to control print indentation
Definition: vtkIndent.h:33
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