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);
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:
89 
92  int InputType;
93 
97 
100 
101  virtual int RequestData(vtkInformation *,
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
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
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.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
generalized histograms up to 4 dimensions