<div class="gmail_quote">On Fri, Aug 20, 2010 at 3:47 AM, nclemeur <span dir="ltr"><<a href="mailto:nclemeur@gmail.com">nclemeur@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hello,<br>
<br>
I am beginning with vtk and I am looking at the vtkXYChart class. I am<br>
trying to have more than on chart in a single window. I can't really figured<br>
out how to go about this. I have tried creating multiple vtkContextView and<br>
using the same renderer/renderWindowInteractor for all the views and setting<br>
multiple viewport on the renderer but it keeps opening a new window for each<br>
vtkContextView... I am pretty sure I am not really using the good path<br>
here... Any idea on how to achieve that?<br>
<br></blockquote><div>Hi,</div><div><br></div><div>This is something I have been thinking about quite a lot recently. As a chart is just an item on a scene, we can add multiple charts to a scene. I was thinking about adding a chart layout class, that could lay chart items out in a grid, and modifying the chart class to only appear in that part of the window.</div>
<div><br></div><div>This would make the mouse interaction easier to deal with, as it would all just take place in the scene. I am not sure on what the best approach is with mouse interaction when using the multiple viewport approach. I think Eric asked about this, and I had been meaning to reply to him but things have been very hectic in the last few days.</div>
<div><br></div><div>Marcus</div>--<br clear="all">Marcus D. Hanwell, Ph.D.<br>R&D Engineer, Kitware Inc.<br><div>(518) 881-4937 </div></div>