just subclass it <br><br><div class="gmail_quote">2010/9/22 赖瑞勋 <span dir="ltr">&lt;<a href="mailto:lairuixun@163.com">lairuixun@163.com</a>&gt;</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 &quot;vtkTecplotReader.h&quot;<br>#include &quot;vtkMultiBlockDataSet.h&quot;</div>
<div>&nbsp;</div>
<div>main</div>
<div>{</div>
<div>//new a vtkTecplotReader and access to a .plt file&nbsp;,it&#39;s work</div>
<div>&nbsp; const char *fileName;<br>&nbsp; vtkTecplotReader *tecR=vtkTecplotReader::New();<br>&nbsp; fileName=&quot;C:/Program Files/VTK 5.6/mycode/Example01/bt_ds_old_bridge.plt&quot;;<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&quot;Error&nbsp;1&nbsp;error C2248: &#39;vtkTecplotReader::ReadFile&#39; : cannot access protected member declared in class &#39;vtkTecplotReader&#39;&nbsp;c:\Program Files\VTK 5.6\mycode\Example01\CreatePolyData.cxx&nbsp;52&nbsp;<br>
&quot;.<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><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>