[vtkusers] Fw: Relationship between interactor/render window and VTKRenderWindowInteractor for VTK Charting

arasu arasakumaran at yahoo.com
Mon Jun 27 01:51:49 EDT 2016

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:        view->SetRenderWindow(GetRenderWindow());         view->SetInteractor(GetInteractor()); 

----- Forwarded Message -----
 From: arasu <arasakumaran at yahoo.com>
 To: "vtkusers at vtk.org" <vtkusers at vtk.org> 
 Sent: Sunday, June 26, 2016 4:41 PM
 Subject: Relationship between interactor/render window and VTKRenderWindowInteractor for VTK Charting
The problem is similiar to the one reported by Elvis Stansvik earlier this month about creating and displaying Chart in own Window. 

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 )

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. 

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.

Thanks in advance,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160627/37169e82/attachment.html>

More information about the vtkusers mailing list