[vtkusers] vtkColorTransferFunction and opacity

Steve Joyce Steve.Joyce at sercoassurance.com
Wed Jan 28 10:03:35 EST 2004


Hi,

Setting the opacity of actors does not work when using a
vtkColorTransferFunction as the colour lookup table. This is because the
alpha value for a colour is always returned as 255 by
vtkColorTransferFunction.

As a fix for this I replaced the places where this occurred in
vtkColorTransferFunction  with
(unsigned char)(this->GetAlpha() * 255.0)
or
(unsigned char)(self->GetAlpha() * 255.0) 
as appropriate.

This seemed to work for me, so I was wondering why it was fixed at 255
in the first place. Am I doing the wrong thing?

Thanks,
Steve





****Disclaimer***********
This e-mail and any attachments may contain confidential and/or privileged material; it  is for the intended addressee(s) only.  If you are not a named addressee, you must not use, retain or disclose such information.
 
Serco cannot guarantee that the e-mail or any attachments are free from viruses.
 
The views expressed in this e-mail are those of the originator and do not necessarily represent the views of Serco.
 
Nothing in this e-mail shall bind Serco in any contract or obligation.
 
Serco Group plc.  Registered in England and Wales.  No: 2048608
Registered Office:  Serco House, 16 Bartley Wood Business Park, Bartley Way, Hook, Hampshire, RG27 9UY, United Kingdom.
****End Disclaimer*******
<<<<GWIASIG 0.07>>>>



More information about the vtkusers mailing list