Take a look at vtkImageImport. It's designed to do what you want. <br><br><div class="gmail_quote">On Jan 23, 2008 6:17 PM, Wesley Smith <<a href="mailto:wesley.hoke@gmail.com">wesley.hoke@gmail.com</a>> wrote:
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>I'm just starting out using VTK and have been trying to figure out how<br>to pass in volume data held in application memory (but not in any VTK
<br>class) into the VTK rendering system. From what I've seen, all of the<br>examples use "Readers" which only look for data from file. Is there<br>no such class that I can pass say a pointer along with the memory
<br>layout to? To make things more concrete, I'm using a library to load<br>VASP files. From these, I get a buffer of data about 85x54x44 of<br>scalar values. What's the best methodology for getting this data into
<br>VTK? Perusing the web, I've only seen examples that require<br>subclassing a vtkReader of some sort. Is this the only way?<br>(<a href="http://www.comp.leeds.ac.uk/drm/ExampleVolRender.cxx" target="_blank">http://www.comp.leeds.ac.uk/drm/ExampleVolRender.cxx
</a>)<br><br>thanks,<br>wes<br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote>
</div><br><br clear="all"><br>-- <br>Sometimes it's hard to tell the dancer from the dance - Corwin in CoC