[vtkusers] VTK interactor in PyQt
Lic. José M. Rodriguez Bacallao
jmrbcu at gmail.com
Wed Nov 18 12:23:02 EST 2009
in fact this is for 2d images, I'll eventually need to do the same
thing as U but right now, I don;t know how to do it.
What thing is not working with PyQt4?
PS: sorry for my English, am a Cuban guy
On 11/18/09, KS Jothybasu <jothybasu at gmail.com> wrote:
> Hi,
>
> Thanks for your suggestions
>
> I tried but when I use InteractorStyleImage no rotation is possible (maybe
> thats for 2D images). But I want to move the orthogonal planes and change
> the window level with mouse , it perfectly works with vtkRenderwindow with
> vtkrenderwindowinteractor out of the GUI. But with PyQt its not working, see
> the pic below
>
>
> On Wed, Nov 18, 2009 at 3:20 PM, Lic. José M. Rodriguez Bacallao <
> jmrbcu at gmail.com> wrote:
>
>> U need to setup an interactor style:
>>
>> Ej:
>>
>> interactor_style = vtk.vtkInteractorStyleImage()
>> interactor.SetInteractorStyle(interactor_style)
>>
>> PS: How do U setup QVTKrenderwindowinteractor to work with PyQt4
>>
>> On 11/18/09, KS Jothybasu <jothybasu at gmail.com> wrote:
>> > Hi,
>> >
>> > Could anybody please tell me how to setup the interactors properly in
>> > QVTKrenderwindowinteractor. My application renders the image but it does
>> the
>> > default interaction which it does for cone example even for 3D widgets
>> such
>> > as vtkImagePlane widget.
>> >
>> > Thanks
>> >
>> > Jothy
>> >
>>
>>
>> --
>> Lic. José M. Rodriguez Bacallao
>> Centro de Biofisica Medica
>> -----------------------------------------------------------------
>> Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo
>> mismo.
>>
>> Recuerda: El arca de Noe fue construida por aficionados, el titanic
>> por profesionales
>> -----------------------------------------------------------------
>>
>
--
Lic. José M. Rodriguez Bacallao
Centro de Biofisica Medica
-----------------------------------------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.
Recuerda: El arca de Noe fue construida por aficionados, el titanic
por profesionales
-----------------------------------------------------------------
More information about the vtkusers
mailing list