Skip to content

Slicing through ImageData - Interactor does change image slice #485

Closed Answered by juanprietob
juanprietob asked this question in Trame/VTK
Discussion options

You must be logged in to vote

Found a solution!

resliceViewer = vtkResliceImageViewer()
renderWindowInteractor = vtkRenderWindowInteractor()
resliceViewer.SetupInteractor(renderWindowInteractor)
resliceViewer.GetRenderWindow().SetOffScreenRendering(1)
resliceViewer.SetInputData(image_data)

And then in UI view:

view = vtk_widgets.VtkRemoteView(resliceViewer.GetRenderWindow())
ctrl.on_server_ready.add(view.update) 

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@jourdain
Comment options

@jourdain
Comment options

@juanprietob
Comment options

@juanprietob
Comment options

Answer selected by juanprietob
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants