VTK  9.2.6
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 "vtkLookupTable.h"
40 #include "vtkRenderingCoreModule.h" // For export macro
41 
42 class vtkDataArray;
43 
44 class VTKRENDERINGCORE_EXPORT vtkLookupTableWithEnabling : public vtkLookupTable
45 {
46 public:
48 
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
59  vtkGetObjectMacro(EnabledArray, vtkDataArray);
60  virtual void SetEnabledArray(vtkDataArray* enabledArray);
62 
66  void MapScalarsThroughTable2(void* input, unsigned char* output, int inputDataType,
67  int numberOfValues, int inputIncrement, int outputFormat) override;
68 
72  virtual void DisableColor(unsigned char r, unsigned char g, unsigned char b, unsigned char* rd,
73  unsigned char* gd, unsigned char* bd);
74 
75 protected:
76  vtkLookupTableWithEnabling(int sze = 256, int ext = 256);
77  ~vtkLookupTableWithEnabling() override;
78 
80 
81 private:
83  void operator=(const vtkLookupTableWithEnabling&) = delete;
84 };
85 
86 #endif
void MapScalarsThroughTable2(void *input, unsigned char *output, int inputDataType, int numberOfValues, int inputIncrement, int outputFormat) override
Map a set of scalars through the lookup table.
map scalar values into colors via a lookup table
A lookup table that allows for an optional array to be provided that specifies which scalars to "enab...
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
static vtkLookupTable * New()
Construct with range=[0,1]; and hsv ranges set up for rainbow color table (from red to blue)...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.