[vtkusers] Converting RayCast data & picking question

Nico Vermaas vermaas at astron.nl
Tue Aug 12 10:16:57 EDT 2003


hi,

I am displaying my ImageData cube with a raycast function. 
(1) Is there a way to write the result of that raycast back to a vtkImageData again? So that I get a new data cube with the max pixels projected on the outside?
(2) Is there a way to find out which x,y,z pixel was responsible for the maximum projection on the outside?
(3) Is there a way to 'shoot' a line through a cube and get back the highest value it encounters? (I thought the picking might work in that way, but it doesn't seem to work like this).

...
vtkVolumeRayCastMIPFunction *function = vtkVolumeRayCastMIPFunction::New();
vtkVolumeRayCastMapper *mapper = vtkVolumeRayCastMapper::New();
mapper->SetVolumeRayCastFunction(function);
mapper->SetInput(myImageData);
actorVolume->SetMapper(mapper);
...

Nico





More information about the vtkusers mailing list