[vtkusers] Scalar to opacity mapping for vtkImageProperty

David Gobbi david.gobbi at gmail.com
Mon Dec 5 14:18:35 EST 2016

Hi Doug,

The opacity is the fourth column of the lookup table (i.e. the lookup table
is RGBA).  So you can use the lookup table to set the opacities.

 - David

On Mon, Dec 5, 2016 at 11:56 AM, Doug Hoppes <dhoppes at mbfbioscience.com>

> Hey All,
>                 In the vtkVolumeProperty, there are methods to set the
> scalar opacity.  Is there an equivalent method for the vtkImageProperty?
> In my case, I have a vtkvolume that I use the resliced mapper to get
> individual slices.  The user loves the ability to set the opacities in the
> volume individually (we do this using the setScalarOpacity) and would like
> to do this for the slices.  However, I don’t see that the vtkImageProperty
> has a function to do this…. Or I’m missing something.
> Dougie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161205/2bff436d/attachment.html>

More information about the vtkusers mailing list