[vtkusers] How apply color mapping on volume with a lut.

Francois Louis LAILLIER flaillier at eldim.fr
Wed Feb 21 03:00:21 EST 2007


Hi every body.

 

I create a vtkcolortransferfunction, and I call it in the volume
property with setcolor.

 

Dim lut As vtkColorTransferFunction

Set lut = New vtkColorTransferFunction

lut.AddRGBPoint 0#, 0#, 0#, 0#

lut.AddRGBPoint 64#, 1#, 0#, 0#

lut.AddRGBPoint 128#, 0#, 0#, 1#

lut.AddRGBPoint 192#, 0#, 1#, 0#

lut.AddRGBPoint 255#, 0#, 0.2, 0#

 

Dim property As vtkVolumeProperty

Set property = New vtkVolumeProperty

property.SetColor 0, lut

 

After that I run program and it return me, "Method setcolor of object
vtkvolumeproperty failed"

Like amy say me I put a zero value in first argument of
setcolorproperty. Like when I want to apply opacity.

 

Maybe the error it is here? 

 

Someone know where I can find documentation for Activiz. Thanks

 

Best regards Francois Louis.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070221/a689ce47/attachment.htm>


More information about the vtkusers mailing list