[vtkusers] How to use vtkDataObjectReader in C++
David Doria
daviddoria at gmail.com
Thu Feb 9 08:44:21 EST 2012
On Thu, Feb 9, 2012 at 8:04 AM, <ycollette.nospam at free.fr> wrote:
> Hello,
>
> I tried to compile the following code under C++, but the compiler complains about not being able to access protected members (the contructor and the destructor).
> Here is the peice of code:
>
> vtkFieldData * dataSet = NULL;
> vtkDataObjectReader * do_reader = new vtkDataObjectReader;
>
> do_reader->ReadAllFieldsOn();
> do_reader->SetFileName(Filename);
> dataSet = do_reader->ReadFieldData();
>
>
> My question is: how to use vtkDataObjectReader in C++ ?
>
> Best regards,
>
> YC
Once you get this working it would be great if you could make a short
example an post it on the wiki:
http://www.vtk.org/Wiki/VTK/Examples/Cxx
David
More information about the vtkusers
mailing list