[vtkusers] vtkVolumeReader

Amy Henderson amy.henderson at kitware.com
Mon Apr 5 12:59:27 EDT 2004


Vetria,

Did you include the vtkVolumeReader header file (#include "vtkVolumeReader.h")?

- Amy

At 12:47 PM 4/5/2004, Vetria Byrd wrote:
>I have manually created data files that consists of zero's and one's (no 
>header info) to resemble a (5x5x5) 3D cube.
>There are 5 data files.  When I try to use vtkVolumeReader I get the 
>following error message:
>
>error C2440: 'initializing' : cannot convert from 'class vtkObject *' to 
>'class vtkVolumeReader *'
>         Types pointed to are unrelated; conversion requires 
> reinterpret_cast, C-style cast or function-style cast
>
>This is where the error occurs:
>:
>:
>
>   vtkVolumeReader *volReader = vtkVolumeReader::New();
>     volReader->SetImageRange (1,5);
>     volReader->SetFilePrefix (argv[1]);
>     volReader->SetDataSpacing (1,1,1);
>     volReader->Update();
>
>Any assistance will be greatly appreciated.
>Thanks,
>_______________
>Vetria L. Byrd
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040405/147e6790/attachment.htm>


More information about the vtkusers mailing list