<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> </DIV>
<DIV>main</DIV>
<DIV>{</DIV>
<DIV>//new a vtkTecplotReader and access to a .plt file ,it's work</DIV>
<DIV> const char *fileName;<BR> vtkTecplotReader *tecR=vtkTecplotReader::New();<BR> fileName="C:/Program Files/VTK 5.6/mycode/Example01/bt_ds_old_bridge.plt";<BR> tecR->SetFileName(fileName);<BR> tecR->Update();</DIV>
<DIV> </DIV>
<DIV> //read the file data into the MultiBlockDataset,</DIV>
<DIV>// I got the mistake"Error 1 error C2248: 'vtkTecplotReader::ReadFile' : cannot access protected member declared in class 'vtkTecplotReader' c:\Program Files\VTK 5.6\mycode\Example01\CreatePolyData.cxx 52 <BR>".<BR> vtkMultiBlockDataSet *multiBDS =vtkMultiBlockDataSet::New ();<BR> tecR->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>