[vtkusers] Activiz and vtkChartXY

Jochen jochen.kling at email.de
Mon May 21 20:57:46 EDT 2012


Hi Matthias, Eric,


this thread is quite old, but it might be worth to post an alternative way
to get activiz and vtkContextView working smoothly together.


I just replaced the following two lines in Eric's "Hello world" example (see
the second post of the thread):

           
renderWindowControl1.RenderWindow.RemoveRenderer(renderWindowControl1.RenderWindow.GetRenderers().GetFirstRenderer());
           
renderWindowControl1.RenderWindow.AddRenderer(view.GetRenderer());

with
         
 view.SetRenderWindow(renderWindowControl1.RenderWindow);


The default Interactor is working perfectly, the control can be resized, no
second window is popping up whilst interacting, and the whole GUI can be
moved to a second monitor without any problems.

Hope this helps a bit.

with best regards

Jochen




--
View this message in context: http://vtk.1045678.n5.nabble.com/Activiz-and-vtkChartXY-tp3397315p5713222.html
Sent from the VTK - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120521/c0194192/attachment.htm>


More information about the vtkusers mailing list