[vtkusers] Read raw volume.

Charl P. Botha c.p.botha at its.tudelft.nl
Thu May 23 03:27:56 EDT 2002


On Wed, May 22, 2002 at 08:22:29PM -0300, Wagner Luiz Cambruzzi wrote:
> I'm using vtkVolume16Reader but I don't know read a volume with all slices in the same file.  

Use the vtkImageReader.  I'm assuming that you're using VTK 4.0?

The methods that you should look at are:
SetFileName()
SetDataScalarType()
SetNumberOfScalarComponents()
SetDataExtent()
SetFileDimensionality()
SetDataSpacing()
SetDataOrigin()
SetDataByteOrderToBigEndian()

Look at the documentation of vtkImageReader and vtkImageReader2 (from which
the former is derived).

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/



More information about the vtkusers mailing list