[vtkusers] Image plane widget + color transfer function?

dean.inglis at camris.ca dean.inglis at camris.ca
Thu Jan 31 08:54:19 EST 2008


Hi Paul,

ipw->GetColorMap()->SetOutputFormatToRGBA();

should do the trick...


*Hi Dean,

Thanks! That does the trick.

This feature does immediately raise the following question: is it 
possible to have an image-plane widget with transparent areas (i.e. 
colors with alpha < 1)  using a vtkColorTransferFunction? The latter 
only handles colors, not opacities, and the only other option to pass to 
ipw.GetColorMap().SetLookupTable() would be a vtkLookupTable which takes 
me back to my original problem in not wanting to use that class, hmmm

Paul



More information about the vtkusers mailing list