Read data file from disk and convert displayable node to vtkActor or vtkProp

I have some Non-DICOM data files. such as *.nrrd, *.stl, etc. but how can i read these data files from disk in C++, and convert these to vtkActor or vtkProp class? Thanks for replying!

Another question is how can i convert slicer data node to vtkProp or vtkActor and so on, because, maybe i want to display the data node via vtk render window directly not via slicer scene.

In Slicer the mapping between mrml nodes (for image and poly data) and vtk rendering is handled by displayable managers:

https://www.slicer.org/wiki/Documentation/Nightly/Developers/DisplayableManagers

1 Like