[vtkusers] Help when using vtkLookupTable (above and below of a range)

-Daniel- ich_daniel at habmalnefrage.de
Wed Apr 1 07:18:50 EDT 2015


Hi,

in the vtkLookupTable class are the functions SetAboveRangeColor(..) and
SetBelowRangeColor(..). 
What do I note to use these functions?
Which other parameters are necessary to be set?
Does anyone have an example of this?

So far I have only this code snippet. But only the color of NaN is used
currently (with my polydata-object).
//******************************************************//
vtkLookupTable lut = new vtkLookupTable();
lut.SetNumberOfColors(3);
lut.SetAboveRangeColor(0.0, 0.8, 0, 1);
lut.SetBelowRangeColor(0.8, 0.0, 0, 1);
lut.SetNanColor(0, 0.2, 0.5, 1);
lut.UseBelowRangeColorOn();
lut.UseAboveRangeColorOn();
lut.SetTableValue(2, 0.8, 0.0, 0.0, 1);
lut.SetTableValue(1, 0.9, 0.9, 0.9, 1); 
lut.SetTableValue(0, 0.0, 0.8, 0.0, 1);
lut.SetRange(-5, 5);
lut.IndexedLookupOn();
lut.SetAnnotation("0", "G ");
lut.SetAnnotation("1", "W ");
lut.SetAnnotation("2", "R ");

mapper.SetLookupTable(lut);
//******************************************************//





--
View this message in context: http://vtk.1045678.n5.nabble.com/Help-when-using-vtkLookupTable-above-and-below-of-a-range-tp5731282.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list