[vtkusers] Color maps
Ula Popov
ula.popov at gmail.com
Wed Mar 3 20:28:18 EST 2010
Hi all,
I have a couple of questions about color maps.
I have a scalar date that's range is [0..1265]
My code looks like this:
vtkLookupTable *lut = vtkLookupTable::New();
lut->SetNumberOfColors(256);
lut->SetHueRange(0.0,1.0);
lut->Build();
vtkDataSetMapper *mapper = vtkDataSetMapper::New();
mapper->SetInputConnection(T2_reader->GetOutputPort());
mapper->SetLookupTable(lut);
mapper->SetScalarRange(0.0, 1265.0);
I have 2 problems:
- 70% of the picture is red. How can I "shift" the color map? What should I
do to see 70% white?
- How can I change the opacity? If I want [0..300] be 0.3 opaque and
[301..1265] 0.8 opaque?
Thank you,
Uliana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100303/9b33cfd5/attachment.htm>
More information about the vtkusers
mailing list