Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
8dd56bfe
Commit
8dd56bfe
authored
Jul 19, 1995
by
Will Schroeder
Browse files
ENH: Made derivable.
parent
d8570731
Changes
1
Show whitespace changes
Inline
Side-by-side
include/Lut.hh
View file @
8dd56bfe
...
...
@@ -20,10 +20,15 @@ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
// or rgba into scalar values. The color table can be created by direct
// insertion of color values, or by specifying hue, saturation, value, and
// alpha range and generating a table.
// This class is designed as a base class for derivation by other classes.
// The Build(), MapValue(), and SetTableRange() methods are virtual and may
// require overloading in subclasses.
// .SECTION Caveats
// vtkLookupTable is a reference counted object. Therefore you should
// always use operator "new" to construct new objects. This procedure will
// avoid memory problems (see text).
// .SECTION See Also
// vtkLogLookupTable
#ifndef __vtkLookupTable_h
#define __vtkLookupTable_h
...
...
@@ -36,7 +41,7 @@ class vtkLookupTable : public vtkRefCount
public:
vtkLookupTable
(
int
sze
=
256
,
int
ext
=
256
);
int
Allocate
(
int
sz
=
256
,
int
ext
=
256
);
void
Build
();
virtual
void
Build
();
char
*
GetClassName
()
{
return
"vtkLookupTable"
;};
void
PrintSelf
(
ostream
&
os
,
vtkIndent
indent
);
...
...
@@ -46,7 +51,7 @@ public:
vtkGetMacro
(
NumberOfColors
,
int
);
void
SetTableRange
(
float
r
[
2
]);
// can't use macro 'cause don't want modified
void
SetTableRange
(
float
min
,
float
max
);
virtual
void
SetTableRange
(
float
min
,
float
max
);
vtkGetVectorMacro
(
TableRange
,
float
,
2
);
// Description:
...
...
@@ -72,7 +77,7 @@ public:
vtkSetVector2Macro
(
AlphaRange
,
float
);
vtkGetVectorMacro
(
AlphaRange
,
float
,
2
);
unsigned
char
*
MapValue
(
float
v
);
virtual
unsigned
char
*
MapValue
(
float
v
);
void
SetTableValue
(
int
indx
,
float
rgba
[
4
]);
void
SetTableValue
(
int
indx
,
float
r
,
float
g
,
float
b
,
float
a
=
1.0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment