VTK  9.3.0
vtkLookupTableWithEnabling.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
24 #ifndef vtkLookupTableWithEnabling_h
25 #define vtkLookupTableWithEnabling_h
26 
27 #include "vtkLookupTable.h"
28 #include "vtkRenderingCoreModule.h" // For export macro
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class vtkDataArray;
32 
33 class VTKRENDERINGCORE_EXPORT vtkLookupTableWithEnabling : public vtkLookupTable
34 {
35 public:
37 
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
48  vtkGetObjectMacro(EnabledArray, vtkDataArray);
49  virtual void SetEnabledArray(vtkDataArray* enabledArray);
51 
55  void MapScalarsThroughTable2(void* input, unsigned char* output, int inputDataType,
56  int numberOfValues, int inputIncrement, int outputFormat) override;
57 
61  virtual void DisableColor(unsigned char r, unsigned char g, unsigned char b, unsigned char* rd,
62  unsigned char* gd, unsigned char* bd);
63 
64 protected:
65  vtkLookupTableWithEnabling(int sze = 256, int ext = 256);
67 
69 
70 private:
72  void operator=(const vtkLookupTableWithEnabling&) = delete;
73 };
74 
75 VTK_ABI_NAMESPACE_END
76 #endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
a simple class to control print indentation
Definition: vtkIndent.h:38
A lookup table that allows for an optional array to be provided that specifies which scalars to "enab...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.
static vtkLookupTableWithEnabling * New()
virtual void SetEnabledArray(vtkDataArray *enabledArray)
This must be set before MapScalars() is called.
vtkLookupTableWithEnabling(int sze=256, int ext=256)
~vtkLookupTableWithEnabling() override
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