[vtkusers] how to interact two renderers
Antonin Perrot-Audet
antonin07130 at gmail.com
Mon May 17 00:23:21 EDT 2010
Hello Jinyoung,
I have been facing the same problem, and alos posted with no sucess in
this mailing list.
In order to synchronize 2 renderers, I setup one observer on each
renderer's camera, osberving the event : vtkCommand::ModifiedEvent
This event triggers a function which forces the other renderer to render.
Hope that it helps, I can send you a small code sample if you need to
see how to setup callbacks.
Regards
--
Antonin
On 5/17/10 12:16 AM, Jinyoung Hwang wrote:
> Hi all,
> Even I posted the same question, I didn't find appropriate answers.
>
> I'm trying to generate stereo views (left and right view).
> First, I made two renderers (vtkMFCwindow) in one application.
> Each renderer will be captured in bitmap, then all of bitmaps are
> converted to movie file (AVI).
>
> I met a problem in implementation.
> If one renderer are translated or scaled by mouse control, another
> renderer should certainly be translated or scaled.
> How to capture the mouse operation in one renderer?
> Additionally, how to send the mouse operation to another renderer?
>
> Thanks,
>
> JY
>
>
>
>
> _______________________________________________
> Powered bywww.kitware.com
>
> Visit other Kitware open-source projects athttp://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100517/be264f48/attachment.htm>
More information about the vtkusers
mailing list