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
bdf25f82
Commit
bdf25f82
authored
Nov 29, 2011
by
Jeff Baumes
Committed by
Kitware Robot
Nov 29, 2011
Browse files
Merge topic 'tulip-reader-enhancements'
2512ea6c
COMP: Removing conversion warning
parents
6d6ca4af
2512ea6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Infovis/vtkGraphAnnotationLayersFilter.cxx
View file @
bdf25f82
...
...
@@ -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