<html>
<body>
Vetria,<br><br>
Did you include the vtkVolumeReader header file (#include
"vtkVolumeReader.h")?<br><br>
- Amy<br><br>
At 12:47 PM 4/5/2004, Vetria Byrd wrote:<br>
<blockquote type=cite class=cite cite><font face="arial" size=2>I have
manually created data files that consists of zero’s and one’s (no header
info) to resemble a (5x5x5) 3D cube.<br>
There are 5 data files. When I try to use vtkVolumeReader I get the
following error message:<br>
<br>
error C2440: 'initializing' : cannot convert from 'class vtkObject *' to
'class vtkVolumeReader *'<br>
Types pointed to are
unrelated; conversion requires reinterpret_cast, C-style cast or
function-style cast<br>
<br>
This is where the error occurs:<br>
:<br>
:<br>
<br>
vtkVolumeReader *volReader = vtkVolumeReader::New();<br>
volReader->SetImageRange (1,5);<br>
volReader->SetFilePrefix (argv[1]);<br>
volReader->SetDataSpacing (1,1,1);<br>
volReader->Update();<br>
<br>
Any assistance will be greatly appreciated.<br>
Thanks,<br>
_______________<br>
Vetria L. Byrd<br>
</font><font face="Times New Roman, Times"> <br>
</font></blockquote></body>
</html>