// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
- int i;
- double spc[3];
- double range[2];
- int ext[6];
+ int i;
+ double spc[3];
+ double range[2];
+ int ext[6];
bbGetInputImage()->GetSpacing(spc);
bbGetInputImage()->GetScalarRange(range);
-
//EED 2017-01-01 Migration VTK7
#if VTK_MAJOR_VERSION <= 5
bbGetInputImage()->GetWholeExtent(ext);
colorLookupTable->SetTableValue(10,1 ,0.5,0.5,1);
colorLookupTable->SetTableValue(11,0.5,0.5,1 ,1);
- } // type 2
+ } // type 3
+
+ } // firsttime
- }
bbGetInputMesh()->GetPointData()->SetScalars(colors);
colorLookupTableWL->SetLevel( bbGetInputColorLevel() );
colorLookupTableWL->SetWindow( bbGetInputColorWindow() );
}
+
+
+ if (bbGetInputExternalLookupTable()!=NULL)
+ {
+ generalLookupTable = bbGetInputExternalLookupTable();
+ } else {
+ generalLookupTable = colorLookupTable;
+ }
int missingpoints = bbGetInputMesh()->GetNumberOfPoints() - colors->GetDataSize()/colors->GetNumberOfComponents();
for(i = 0; i < missingpoints; i++)
} else {
gl=0;
}
- colorLookupTable->GetColor(gl, dcolor);
+ generalLookupTable->GetColor(gl, dcolor);
colors->SetTuple3(i,255*dcolor[0],255*dcolor[1],255*dcolor[2]);
} // for i
bbGetInputMesh()->Modified();
firsttime = true;
colors = NULL;
colorLookupTable = NULL;
- colorLookupTableWL = NULL;
+ colorLookupTableWL = NULL;
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)