Hello everyone,
I am trying to build a windows form application in C# and show a 3D reconstruction of a dicom series via putting a “RenderWindowControl” in the form. Actually, I could successfully build the reconstruction in a new Window (not inside the form) and could interact (rotate and zoom) with it via:
vtkRenderer ren = vtkRenderer.New();
vtkRenderWindow ren_win = vtkRenderWindow.New()
ren_win.AddRenderer(ren);
vtkRenderWindowInteractor iren = vtkRenderWindowInteractor.New();
iren.SetRenderWindow(ren_win);
iren.Initialize();
ren_win.Render();
iren.Start();
However when I use vtkRenderWindow ren_win = renderWindowControl1.RenderWindow;
to show the 3D image in the RenderWindowControl
, it is shown but I cannot interact with it. Any suggestion is welcome. Thanks in advance.