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
Christian Butz
VTK
Commits
2512ea6c
Commit
2512ea6c
authored
Nov 29, 2011
by
Jeff Baumes
Browse files
COMP: Removing conversion warning
Change-Id: I9d97735cf72bae96b9a693c0eb0527dc6c8eeb45
parent
346ce493
Changes
1
Hide whitespace changes
Inline
Side-by-side
Infovis/vtkGraphAnnotationLayersFilter.cxx
View file @
2512ea6c
...
...
@@ -220,8 +220,11 @@ int vtkGraphAnnotationLayersFilter::RequestData(vtkInformation *vtkNotUsed(reque
outColors
->
SetName
(
"Hull color"
);
double
*
color
=
annotation
->
GetInformation
()
->
Get
(
vtkAnnotation
::
COLOR
());
double
opacity
=
annotation
->
GetInformation
()
->
Get
(
vtkAnnotation
::
OPACITY
());
unsigned
char
outColor
[
4
]
=
{
color
[
0
]
*
255
,
color
[
1
]
*
255
,
color
[
2
]
*
255
,
opacity
*
255
};
unsigned
char
outColor
[
4
]
=
{
static_cast
<
unsigned
char
>
(
color
[
0
]
*
255
),
static_cast
<
unsigned
char
>
(
color
[
1
]
*
255
),
static_cast
<
unsigned
char
>
(
color
[
2
]
*
255
),
static_cast
<
unsigned
char
>
(
opacity
*
255
)
};
for
(
vtkIdType
i
=
0
;
i
<
numberOfCells
;
++
i
)
{
outColors
->
InsertNextTupleValue
(
outColor
);
...
...
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