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
21e0d575
Commit
21e0d575
authored
Oct 02, 2001
by
Will Schroeder
Browse files
ERR:Removed conversion warnings
parent
b74cc9a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Common/vtkLookupTable.cxx
View file @
21e0d575
...
...
@@ -567,7 +567,7 @@ static void vtkLookupTableMapData(vtkLookupTable *self, T *input,
*
output
++
=
*
cptr
++
;
*
output
++
=
*
cptr
++
;
*
output
++
=
*
cptr
++
;
*
output
++
=
(
*
cptr
)
*
alpha
;
cptr
++
;
*
output
++
=
(
unsigned
char
)(
(
*
cptr
)
*
alpha
)
;
cptr
++
;
input
+=
inIncr
;
}
}
...
...
@@ -591,7 +591,7 @@ static void vtkLookupTableMapData(vtkLookupTable *self, T *input,
cptr
=
vtkLinearLookup
(
val
,
table
,
maxIndex
,
shift
,
scale
);
*
output
++
=
(
unsigned
char
)(
cptr
[
0
]
*
0.30
+
cptr
[
1
]
*
0.59
+
cptr
[
2
]
*
0.11
+
0.5
);
*
output
++
=
alpha
*
cptr
[
3
];
*
output
++
=
(
unsigned
char
)(
alpha
*
cptr
[
3
]
)
;
input
+=
inIncr
;
}
}
...
...
@@ -624,7 +624,7 @@ static void vtkLookupTableMapData(vtkLookupTable *self, T *input,
*
output
++
=
*
cptr
++
;
*
output
++
=
*
cptr
++
;
*
output
++
=
*
cptr
++
;
*
output
++
=
(
*
cptr
)
*
alpha
;
cptr
++
;
*
output
++
=
(
unsigned
char
)(
(
*
cptr
)
*
alpha
)
;
cptr
++
;
input
+=
inIncr
;
}
}
...
...
@@ -646,7 +646,7 @@ static void vtkLookupTableMapData(vtkLookupTable *self, T *input,
cptr
=
vtkLinearLookup
(
*
input
,
table
,
maxIndex
,
shift
,
scale
);
*
output
++
=
(
unsigned
char
)(
cptr
[
0
]
*
0.30
+
cptr
[
1
]
*
0.59
+
cptr
[
2
]
*
0.11
+
0.5
);
*
output
++
=
cptr
[
3
]
*
alpha
;
*
output
++
=
(
unsigned
char
)(
cptr
[
3
]
*
alpha
)
;
input
+=
inIncr
;
}
}
...
...
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