Changing opacity in lookup table?
William A. Rozzi
warozzi at imation.com
Tue Jun 22 11:04:43 EDT 1999
Matt,
Try this:
vtkLookupTable *lut = vtkLookupTable::New();
lut->SetNumberOfColors(256);
lut->SetHueRange(0.0, 0.6666667);
lut->SetAlphaRange(1.0, 0.08); // <<<<<<<<<<
lut->Build();
You can also set each table entry's RGBA values directly.
Regards,
Bill Rozzi
warozzi at imation.com
>>I would like my model to have a transparent shell but become less
>>transparent for the higher valued points within the model. Is it possible to
>>change the opacity along with color in a lookup table, or is there a way I
>>can set the opacity for the different contours being generated by the
>>contour filter?
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list