<DIV></DIV>
<DIV>hi,i am worrying about this problem of how to access to the proteced member.</DIV>
<DIV>this is my code below:</DIV>
<DIV>----------------------------------------------------------------</DIV>
<DIV>#include "vtkTecplotReader.h"<BR>#include "vtkMultiBlockDataSet.h"</DIV>
<DIV>&nbsp;</DIV>
<DIV>main</DIV>
<DIV>{</DIV>
<DIV>//new a vtkTecplotReader and access to a .plt file&nbsp;,it's work</DIV>
<DIV>&nbsp; const char *fileName;<BR>&nbsp; vtkTecplotReader *tecR=vtkTecplotReader::New();<BR>&nbsp; fileName="C:/Program Files/VTK 5.6/mycode/Example01/bt_ds_old_bridge.plt";<BR>&nbsp; tecR-&gt;SetFileName(fileName);<BR>&nbsp; tecR-&gt;Update();</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;//read the file data&nbsp;into the MultiBlockDataset,</DIV>
<DIV>// I got the&nbsp;mistake"Error&nbsp;1&nbsp;error C2248: 'vtkTecplotReader::ReadFile' : cannot access protected member declared in class 'vtkTecplotReader'&nbsp;c:\Program Files\VTK 5.6\mycode\Example01\CreatePolyData.cxx&nbsp;52&nbsp;<BR>".<BR>&nbsp; vtkMultiBlockDataSet *multiBDS =vtkMultiBlockDataSet::New ();<BR>&nbsp; tecR-&gt;ReadFile(multiBDS);</DIV>
<DIV>}<BR><BR>Is there any way to access the proteced functions? Or just my code is c<FONT size="3">ompletely wrong?</FONT></DIV>
<DIV><FONT size="3">I am very glad who can help me !! thanks.</FONT><BR></DIV><br><br><span title="neteasefooter"><span id="netease_mail_footer"><hr/>
<a href="http://yxp.163.com/photo/ep.html?sss=fromyx0911" target="_blank">全国最低价,天天在家冲照片,24小时发货上门!</a>
</span></span>