[vtkusers] Volume data from application memory

jonathan grimm flymolo at gmail.com
Thu Jan 24 00:40:35 EST 2008


Take a look at vtkImageImport.  It's designed to do what you want.

On Jan 23, 2008 6:17 PM, Wesley Smith <wesley.hoke at gmail.com> wrote:

> Hi,
> I'm just starting out using VTK and have been trying to figure out how
> to pass in volume data held in application memory (but not in any VTK
> class) into the VTK rendering system.  From what I've seen, all of the
> examples use "Readers" which only look for data from file.  Is there
> no such class that I can pass say a pointer along with the memory
> layout to?  To make things more concrete, I'm using a library to load
> VASP files.  From these, I get a buffer of data about 85x54x44 of
> scalar values.  What's the best methodology for getting this data into
> VTK?  Perusing the web, I've only seen examples that require
> subclassing a vtkReader of some sort.  Is this the only way?
> (http://www.comp.leeds.ac.uk/drm/ExampleVolRender.cxx)
>
> thanks,
> wes
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Sometimes it's hard to tell the dancer from the dance - Corwin in CoC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080123/6f201e94/attachment.htm>


More information about the vtkusers mailing list