VTK
vtkLookupTableWithEnabling.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkLookupTableWithEnabling.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=========================================================================*/
36#ifndef vtkLookupTableWithEnabling_h
37#define vtkLookupTableWithEnabling_h
38
39#include "vtkRenderingCoreModule.h" // For export macro
40#include "vtkLookupTable.h"
41
42class vtkDataArray;
43
44class VTKRENDERINGCORE_EXPORT vtkLookupTableWithEnabling : public vtkLookupTable
45{
46public:
48
50 void PrintSelf(ostream& os, vtkIndent indent);
51
53
59 vtkGetObjectMacro(EnabledArray,vtkDataArray);
60 virtual void SetEnabledArray(vtkDataArray *enabledArray);
62
66 void MapScalarsThroughTable2(void *input, unsigned char *output,
67 int inputDataType, int numberOfValues,
68 int inputIncrement, int outputIncrement);
69
73 virtual void DisableColor(unsigned char r, unsigned char g, unsigned char b,
74 unsigned char *rd, unsigned char *gd, unsigned char *bd);
75
76protected:
77 vtkLookupTableWithEnabling(int sze=256, int ext=256);
79
81
82private:
84 void operator=(const vtkLookupTableWithEnabling&) VTK_DELETE_FUNCTION;
85};
86
87
88#endif
89
90
91
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
a simple class to control print indentation
Definition: vtkIndent.h:40
A lookup table that allows for an optional array to be provided that specifies which scalars to "enab...
void MapScalarsThroughTable2(void *input, unsigned char *output, int inputDataType, int numberOfValues, int inputIncrement, int outputIncrement)
Map a set of scalars through the lookup table.
virtual void SetEnabledArray(vtkDataArray *enabledArray)
static vtkLookupTableWithEnabling * New()
vtkLookupTableWithEnabling(int sze=256, int ext=256)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void DisableColor(unsigned char r, unsigned char g, unsigned char b, unsigned char *rd, unsigned char *gd, unsigned char *bd)
A convenience method for taking a color and desaturating it.
map scalar values into colors via a lookup table