<DIV>HI, All</DIV>
<DIV>&nbsp;</DIV>
<DIV>I met a problem in reading a VTK file format from a file.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I use Windows XP + VS7</DIV>
<DIV>&nbsp;</DIV>
<DIV>The code is as follows:</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#0000ff size=2>
<P><STRONG>#include</STRONG></FONT><FONT size=2><STRONG> "vtkPolyDataReader.h"</STRONG></FONT></P>
<P><FONT size=2><STRONG>int main(){</STRONG></P></FONT></DIV>
<DIV><FONT size=2>
<P><STRONG>vtkPolyDataReader *reader = vtkPolyDataReader::New();</STRONG></P>
<P><STRONG>reader-&gt;setFileName("C:\image.vtk");</STRONG></P>
<P><STRONG>return 0;</STRONG></P>
<P><STRONG>}</STRONG></P></FONT></DIV>
<P>There is always an error message saying" SetFileName is not a member of vtkPolyDataReader. </P>
<P>I try to change setFileName to FileName, but the following error messages occurs:</P>
<P><STRONG>&nbsp;error C2248: 'vtkDataReader::FileName' : cannot access protected member declared in class 'vtkDataReader'</STRONG></P>
<P><STRONG></STRONG>&nbsp;</P>
<P>So please help!</P>
<P>&nbsp;</P>
<P>thanks alot</P>
<P>Steven Chen</P>
<P><BR></P>
<P>&nbsp;</P><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://search.yahoo.com/top2003">Find out what made the Top Yahoo! Searches of 2003
</a>