<p dir="ltr">Den 27 juni 2016 7:54 fm skrev "arasu via vtkusers" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>>:<br>
><br>
> Thanks to Elvis Stansvik for responding to the request. The correction is as below - it is the view's renderwindow that needs to be set to my renderwindow, not the other way around as shown for the Qt widget in the documentation - specifically:<br>
> view->SetRenderWindow(GetRenderWindow()); <br>
> view->SetInteractor(GetInteractor()); </p>
<p dir="ltr">Glad it worked out. I don't know why the docs says otherwise. Perhaps it's old information.</p>
<p dir="ltr">Elvis</p>
<p dir="ltr">><br>
><br>
><br>
> ----- Forwarded Message -----<br>
> From: arasu <<a href="mailto:arasakumaran@yahoo.com">arasakumaran@yahoo.com</a>><br>
> To: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>> <br>
> Sent: Sunday, June 26, 2016 4:41 PM<br>
> Subject: Relationship between interactor/render window and VTKRenderWindowInteractor for VTK Charting<br>
><br>
> The problem is similiar to the one reported by Elvis Stansvik earlier this month about creating and displaying Chart in own Window. <br>
><br>
> I am using C++ on Windows and VTK7.0. I am not using QT. I have adapted the MFC version that comes with VTK to not be dependent on MFC. I am using the lines below (based on the documentation shows for QT )<br>
> SetRenderWindow(vtkWin32OpenGLRenderWindow::SafeDownCast(view->GetRenderWindow())); <br>
> view->SetInteractor(GetInteractor()); <br>
><br>
> I am able to get the chart to display on the Window I create in the program. However the Interactor does not work - i.e. mouse actions do not pan/zoom the chart. <br>
><br>
> I have no such problem when using VTK for other visualizations -creating and connecting Mapper / Actor / Renderer / Interactor etc. and connecting the renderwindow to the renderer. The visualization is shown in my window and the display responds to mouse and keyboard actions. What do I need to do in order to do the same with VTK Charting ? The interacting seems to have been initialized and started as I can put a break in the program and step through the Interactor code for mouse events.<br>
><br>
> Thanks in advance,<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
><br>
</p>