Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Andrew Bauer
VTK
Commits
cc2c7047
Commit
cc2c7047
authored
Sep 09, 1994
by
Will Schroeder
Browse files
ERR: Fixed range bug.
parent
c155b9c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Lut.cc
View file @
cc2c7047
...
...
@@ -52,8 +52,7 @@ int vlLookupTable::Allocate(int sz, int ext)
// range value.
void
vlLookupTable
::
SetTableRange
(
float
r
[
2
])
{
this
->
TableRange
[
0
]
=
r
[
0
];
this
->
TableRange
[
1
]
=
r
[
1
];
this
->
SetTableRange
(
r
[
0
],
r
[
1
]);
}
// Description:
...
...
@@ -63,12 +62,18 @@ void vlLookupTable::SetTableRange(float r[2])
// range value.
void
vlLookupTable
::
SetTableRange
(
float
min
,
float
max
)
{
if
(
min
>=
max
)
{
vlErrorMacro
(
<<
"Bad table range"
);
return
;
}
this
->
TableRange
[
0
]
=
min
;
this
->
TableRange
[
1
]
=
max
;
}
// Description:
// Generate lookup table from
object parameter
s.
// Generate lookup table from
hue, saturation, and value min/max value
s.
void
vlLookupTable
::
Build
()
{
int
i
,
hueCase
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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