<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 20, 2016 at 8:52 AM, Liu_tj <span dir="ltr"><<a href="mailto:tjlp@netease.com" target="_blank">tjlp@netease.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi, VTK guys,</div><div><br></div><div>I am using Activiz VTK 7.0 for my C# application. I try to use vtkResliceImageViewer to display DICOM axial, coronal or saggital view. The vtkRenderWindow is defined in a WPF user control. When I run my application, I get this error reported:</div><div><br></div><div><div>ERROR: In ..\..\..\VTK-7.0\Interaction\Widgets\vtkAbstractWidget.cxx, line 118</div><div>vtkResliceCursorWidget (0000000025A638B0): The interactor must be set prior to enabling the widget</div><div><br></div><div>ERROR: In ..\..\..\VTK-7.0\Interaction\Widgets\vtkAbstractWidget.cxx, line 118</div><div>vtkResliceCursorWidget (0000000025A638B0): The interactor must be set prior to enabling the widget</div><div><br></div><div>Below is my code. Do I miss any step?</div></div></blockquote><div><br></div><div>I don't use vtkResliceImageViewer, but my guess is that since you call SetRenderWindow(), you should also call SetRenderer() and SetupInteractor().</div><div><br></div><div>You can get the renderer from the render window with GetRenderer(), but you will probably have to create your own interactor.</div><div><br></div><div> - David</div><div> </div></div></div></div>