[vtkusers] multiple vtkXYChart in the same vtkRenderWindow

Marcus D. Hanwell marcus.hanwell at kitware.com
Fri Aug 20 09:54:34 EDT 2010


On Fri, Aug 20, 2010 at 3:47 AM, nclemeur <nclemeur at gmail.com> wrote:

>
> Hello,
>
> I am beginning with vtk and I am looking at the vtkXYChart class. I am
> trying to have more than on chart in a single window. I can't really
> figured
> out how to go about this. I have tried creating multiple vtkContextView and
> using the same renderer/renderWindowInteractor for all the views and
> setting
> multiple viewport on the renderer but it keeps opening a new window for
> each
> vtkContextView... I am pretty sure I am not really using the good path
> here... Any idea on how to achieve that?
>
> Hi,

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.

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.

Marcus
--
Marcus D. Hanwell, Ph.D.
R&D Engineer, Kitware Inc.
(518) 881-4937
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100820/9d4bcce3/attachment.htm>


More information about the vtkusers mailing list