just subclass it <br><br><div class="gmail_quote">2010/9/22 赖瑞勋 <span dir="ltr"><<a href="mailto:lairuixun@163.com">lairuixun@163.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<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><hr>
<a href="http://yxp.163.com/photo/ep.html?sss=fromyx0911" target="_blank">全国最低价,天天在家冲照片,24小时发货上门!</a>
</span></span><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>