If I run itk-vtk-viewer from the command line (as per Command Line Interface | itk-vtk-viewer) I can drag data sources in and visualise.
This is a two part question
-
What are the data types that can be dragged and dropped here. Have tried
.nrrdand.vtias examples and they work. Is there a full list? -
In an application, I am visualising data currently using
itkwidgetswhich usesitk-vtk-viewerto visualisevtk.vtkGlyph3D()
i.e. along the lines of
glyphs = vtk.vtkGlyph3D()
glyphs.ScalingOff()
glyphs.SetSourceConnection(vtk.vtkSphereSource().GetOutputPort())
glyphs.SetInputData(data) # Data is of type polydata
glyphs.Update()
glyphs.GetOutput()
itkwidgets.view(geometries=glyphs.GetOutput())
How can I save this data so that I can drag it into this CLI version of the itk-vtk-viewer similarly to how I can drag in an .rnnd file?
Thanks