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
40class vtkLookupTable;
41
42class VTKIMAGINGCOLOR_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
43{
44public:
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
86protected:
89
93
97
100
104
105private:
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
Generic algorithm superclass for image algs.
generalized histograms up to 4 dimensions
static vtkImageQuantizeRGBToIndex * New()
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called in response to a REQUEST_DATA request from the executive.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.