[vtkusers] how can i access to the proteced member of the VTK Function
Darshan Pai
darshanpai at gmail.com
Thu Sep 23 00:39:43 EDT 2010
just subclass it
2010/9/22 赖瑞勋 <lairuixun at 163.com>
> hi,i am worrying about this problem of how to access to the proteced
> member.
> this is my code below:
> ----------------------------------------------------------------
> #include "vtkTecplotReader.h"
> #include "vtkMultiBlockDataSet.h"
>
> main
> {
> //new a vtkTecplotReader and access to a .plt file ,it's work
> const char *fileName;
> vtkTecplotReader *tecR=vtkTecplotReader::New();
> fileName="C:/Program Files/VTK
> 5.6/mycode/Example01/bt_ds_old_bridge.plt";
> tecR->SetFileName(fileName);
> tecR->Update();
>
> //read the file data into the MultiBlockDataset,
> // 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
> ".
> vtkMultiBlockDataSet *multiBDS =vtkMultiBlockDataSet::New ();
> tecR->ReadFile(multiBDS);
> }
>
> Is there any way to access the proteced functions? Or just my code is completely
> wrong?
> I am very glad who can help me !! thanks.
>
>
> ------------------------------
> 全国最低价,天天在家冲照片,24小时发货上门! <http://yxp.163.com/photo/ep.html?sss=fromyx0911>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100923/7175f4f8/attachment.htm>
More information about the vtkusers
mailing list