[vtkusers] How to use vtkDataObjectReader in C++

ycollette.nospam at free.fr ycollette.nospam at free.fr
Thu Feb 9 08:04:27 EST 2012


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



More information about the vtkusers mailing list