[vtkusers] 2D API with multiple renderers
Eric E. Monson
emonson at cs.duke.edu
Fri Aug 20 10:59:30 EDT 2010
Hey again,
I think having a nice way to place multiple charts in the same scene would be a great feature. I've still never quite "gotten" the plot corners thing in a single chart, and I think being able to have a grid of separate charts in a single scene (or context view) would be very useful and would get around the need to map the interactions into multiple viewports.
If this could be general enough to handle context items and not just charts, that would make it very easy to create widgets/controls for the charts. Since the context items are already built to handle mouse events, it seems natural to have some easy way to make buttons, sliders, etc, which control other parts of the scene, but can be placed without overlapping the chart.
Thanks, and I'll talk to you later,
-Eric
On Aug 20, 2010, at 9:58 AM, Marcus D. Hanwell wrote:
> On Wed, Aug 18, 2010 at 2:31 PM, Eric E. Monson <emonson at cs.duke.edu> wrote:
> Hey,
>
> Has anyone tried using the 2D API with multiple renderers / viewports (like in Charts/Testing/Cxx/TestMultipleChartRenderers.cxx), but actually including interaction? The way the mouse events are coded in things like vtkChartXY, it's based on vtkContextMouseEvent mouse.ScreenPos, which doesn't seem to take viewports into account, but just looks at where the mouse is in the window. (e.g. If I have chart in the top half of a render window, to control selections I have to interact with the bottom half of the window, as if the chart was being rendered there.)
>
> This is the post I had intended to reply to. I am aware of this issue, and when Rob added the support for multiple viewports we discussed how we might deal with mouse interaction in multiple viewports. I wonder if anyone more experienced with mouse interaction as it pertains to the multiple viewports might shed some light on how we should deal with this.
>
> Since I just started to play with multiple viewports to test some possibilities, I was wondering if there are standard ways of dealing with the mouse position mapping that I'm not aware of?
>
> It seems like this would have come up in the work on widgets too. I am not sure, my plan was to place multiple charts in the scene as I know I can make that work. It requires a few changes to the chart code to set a fixed size, and then a class to place/resize child objects in the scene.
>
> 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/2d008d73/attachment.htm>
More information about the vtkusers
mailing list