[vtkusers] how can i access to the proteced member of the VTK Function

David Doria daviddoria at gmail.com
Thu Sep 23 07:23:26 EDT 2010


2010/9/23 Darshan Pai <darshanpai at gmail.com>:
> just subclass it


You're probably doing something unintended if you can't access the
members you want to.

If you really want to do it, as Darshan said, you can do

class YourReader : public vtkTecplotReader
{
 // VTK setup stuff (new and typemacro)
 public:
  void ReallyReadFile(args){this->ReadFile(args)}
};

Thanks,

David



More information about the vtkusers mailing list