VTK  9.7.1
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 
53 
56  void MapScalarsThroughTable(vtkAbstractArray* input, unsigned char* output, int numberOfTuples,
57  int numberOfComponents, int vectorComponent, int outputFormat) override;
60 
64  virtual void DisableColor(unsigned char r, unsigned char g, unsigned char b, unsigned char* rd,
65  unsigned char* gd, unsigned char* bd);
66 
67 protected:
68  vtkLookupTableWithEnabling(int sze = 256, int ext = 256);
69  ~vtkLookupTableWithEnabling() override;
70 
72 
73 private:
75  void operator=(const vtkLookupTableWithEnabling&) = delete;
76 };
77 
78 VTK_ABI_NAMESPACE_END
79 #endif
void MapScalarsThroughTable(vtkAbstractArray *input, unsigned char *output, int numberOfTuples, int numberOfComponents, int vectorComponent, int outputFormat) override
Map a set of scalars through the lookup table.
Abstract superclass for all arrays.
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:28
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
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.
void MapScalarsThroughTable(vtkDataArray *scalars, unsigned char *output, int outputFormat)
Map a set of scalars through the lookup table in a single operation.