Commit bdf25f82 authored by Jeff Baumes's avatar Jeff Baumes Committed by Kitware Robot
Browse files

Merge topic 'tulip-reader-enhancements'

2512ea6c COMP: Removing conversion warning
parents 6d6ca4af 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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment