vtkVolume
Lisa S. Avila
lisa.avila at kitware.com
Mon Jul 26 22:21:55 EDT 1999
Hello Tony,
At the moment, you must render the volume to the window. You can obtain the
image by asking the render window for the RGB pixel values. In the future
there is likely to be other options, but I cannot predict a time schedule
for that.
Lisa
On Monday, July 26, 1999 7:24 PM, Tony Rudd [SMTP:tonyrudd at yahoo.com]
wrote:
> I working with vtkVolumeRayCastFunction. Instead of rendering (like in
> the examples)
> onto the "visible" Window, I would like to render onto a 2-D image
> where there I could apply some of the vtk
> imaging routines to it.
>
> So my question is: How can I ray-cast a volume to a projected plane
> without
> drawing on the Window AND have direct access to the projected image, ie
> a pointer to the image.
>
> VolumeProperty = vtkVolumeProperty::New();
> VolumeProperty->ShadeOn();
> VolumeProperty->SetInterpolationTypeToNearest();
> VolumeProperty->SetColor(gtfun);
>
> MipFunction = vtkVolumeRayCastMIPFunction::New();
>
> VolumeMapper = vtkVolumeRayCastMapper::New();
> VolumeMapper->SetScalarInput(pDocVol16Reader->GetOutput());
> VolumeMapper->SetVolumeRayCastFunction(MipFunction);
> VolumeMapper->SetSampleDistance(1.0);
>
> Volume = vtkVolume::New();
> Volume->SetVolumeMapper(VolumeMapper);
> Volume->SetVolumeProperty(VolumeProperty);
>
> Props->AddItem(Volume);
> // WOULD LIKE to render onto a image!!!
> // NOT render on the screen
>
> thanks
>
> tony
>
> Tony Rudd
> Medical Student
> tonyrudd at yahoo.com
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
>
------------------------------------------------------------------------
-----
> This is the private VTK discussion list. Please keep messages on-topic.
> Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at gsao.med.ge.com>. For help, send message body containing
> "info vtkusers" to the same address. Live long and prosper.
>
------------------------------------------------------------------------
-----
>
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list