[vtkusers] Get active renderwindow

KS Jothybasu jothybasu at gmail.com
Wed Jan 20 10:02:30 EST 2010


Here is it:

self.win1=QVTKWidget()
self.win2=QVTKWidget()
self.win3=QVTKWidget3()
self.win4=QVTKWidget()

Tiled in a mainwindow

Now when I want to measure distance using distance widget, how to pass the
active renderwindowInteractor  to the distacne widget.

if we know the active render window, we can use renwin.getInteractor() and
pass it to it.

Otherwise, I have to create separate functions to each and every window I
would like to measure.

I am trying from PyQt side, is there any method to get active widget..there
should be isn't it??

Thanks

Jothy

On Wed, Jan 20, 2010 at 2:53 PM, David Doria
<daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> wrote:

> On Wed, Jan 20, 2010 at 9:28 AM, KS Jothybasu <jothybasu at gmail.com> wrote:
>
>> Hi all,
>>
>> How to get the active render window?
>>
>> Any hint?
>>
>> Thanks
>>
>> Jothy
>>
>>
>>
> Can you give an example of code where you wouldn't know which window was
> active?
>
> Thanks,
>
> David
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://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/20100120/378ac3b4/attachment.htm>


More information about the vtkusers mailing list