Where is vtkAbstractPolyDataReader::SetFileName() described?

I want to subclass vtkAbstractDataReader and see examples for subclasses, such as this one for vtkSTLReader. The example invokes a method vtkSTLReader::SetFileName():

  auto reader = vtkSmartPointer<vtkSTLReader>::New();
  reader->SetFileName(fileName);

However for the life of me I’m unable to find the definition of vtkSTLREader::SetFileName(), vtkAbstractPolyDataReader::SetFileName() or in any of its parent classes. I’ve looked in the online documentation as well as the source .h files.
Can anyone help?
Thanks!

It’s defined in this block: https://gitlab.kitware.com/vtk/vtk/-/blob/master/IO/Core/vtkAbstractPolyDataReader.h?ref_type=heads#L31-36

1 Like

That block declares vtkSetFilePathMacro(FileName) - where is SetFileName()?

vtkSetFilePathMacro (FileName) is a macro that defines SetFileName(). See https://gitlab.kitware.com/vtk/vtk/-/blob/master/Common/Core/vtkSetGet.h?ref_type=heads#L208 for its definition.

Thanks! I never would have found that one!