VTK  9.7.20260929
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
23
24#ifndef vtkLookupTableWithEnabling_h
25#define vtkLookupTableWithEnabling_h
26
27#include "vtkLookupTable.h"
28#include "vtkRenderingCoreModule.h" // For export macro
29#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
30
31VTK_ABI_NAMESPACE_BEGIN
32class vtkDataArray;
33
34class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkLookupTableWithEnabling : public vtkLookupTable
35{
36public:
38
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
49 vtkGetObjectMacro(EnabledArray, vtkDataArray);
50 virtual void SetEnabledArray(vtkDataArray* enabledArray);
52
54
57 void MapScalarsThroughTable(vtkAbstractArray* input, unsigned char* output, int numberOfTuples,
58 int numberOfComponents, int vectorComponent, int outputFormat) override;
61
65 virtual void DisableColor(unsigned char r, unsigned char g, unsigned char b, unsigned char* rd,
66 unsigned char* gd, unsigned char* bd);
67
68protected:
69 vtkLookupTableWithEnabling(int sze = 256, int ext = 256);
71
73
74private:
76 void operator=(const vtkLookupTableWithEnabling&) = delete;
77};
78
79VTK_ABI_NAMESPACE_END
80#endif
Abstract superclass for all arrays.
a simple class to control print indentation
Definition vtkIndent.h:108
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetEnabledArray(vtkDataArray *enabledArray)
This must be set before MapScalars() is called.
static vtkLookupTableWithEnabling * New()
vtkLookupTableWithEnabling(int sze=256, int ext=256)
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.
~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.
vtkLookupTable(int sze=256, int ext=256)
void MapScalarsThroughTable(vtkDataArray *scalars, unsigned char *output, int outputFormat)
Map a set of scalars through the lookup table in a single operation.
#define vtkDataArray
#define VTK_MARSHALAUTO