VTK
9.0.1
Rendering
Core
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
=========================================================================*/
33
#ifndef vtkLookupTableWithEnabling_h
34
#define vtkLookupTableWithEnabling_h
35
36
#include "
vtkLookupTable.h
"
37
#include "vtkRenderingCoreModule.h"
// For export macro
38
39
class
vtkDataArray
;
40
41
class
VTKRENDERINGCORE_EXPORT
vtkLookupTableWithEnabling
:
public
vtkLookupTable
42
{
43
public
:
44
static
vtkLookupTableWithEnabling
*
New
();
45
46
vtkTypeMacro(
vtkLookupTableWithEnabling
,
vtkLookupTable
);
47
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
48
50
56
vtkGetObjectMacro(EnabledArray,
vtkDataArray
);
57
virtual
void
SetEnabledArray(
vtkDataArray
* enabledArray);
59
63
void
MapScalarsThroughTable2
(
void
* input,
unsigned
char
* output,
int
inputDataType,
64
int
numberOfValues,
int
inputIncrement,
int
outputIncrement)
override
;
65
69
virtual
void
DisableColor(
unsigned
char
r,
unsigned
char
g,
unsigned
char
b,
unsigned
char
* rd,
70
unsigned
char
* gd,
unsigned
char
* bd);
71
72
protected
:
73
vtkLookupTableWithEnabling
(
int
sze = 256,
int
ext = 256);
74
~
vtkLookupTableWithEnabling
()
override
;
75
76
vtkDataArray
*
EnabledArray
;
77
78
private
:
79
vtkLookupTableWithEnabling
(
const
vtkLookupTableWithEnabling
&) =
delete
;
80
void
operator=(
const
vtkLookupTableWithEnabling
&) =
delete
;
81
};
82
83
#endif
vtkLookupTable::New
static vtkLookupTable * New()
Construct with range=[0,1]; and hsv ranges set up for rainbow color table (from red to blue).
vtkLookupTableWithEnabling::EnabledArray
vtkDataArray * EnabledArray
Definition:
vtkLookupTableWithEnabling.h:76
vtkDataArray
abstract superclass for arrays of numeric data
Definition:
vtkDataArray.h:49
vtkLookupTable::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkLookupTable.h
vtkLookupTable
map scalar values into colors via a lookup table
Definition:
vtkLookupTable.h:68
vtkLookupTable::MapScalarsThroughTable2
void MapScalarsThroughTable2(void *input, unsigned char *output, int inputDataType, int numberOfValues, int inputIncrement, int outputIncrement) override
Map a set of scalars through the lookup table.
vtkLookupTableWithEnabling
A lookup table that allows for an optional array to be provided that specifies which scalars to "enab...
Definition:
vtkLookupTableWithEnabling.h:41
Generated on Thu Jun 24 2021 15:17:26 for VTK by
1.8.17