[vtkusers] How to customize mouse actions on vtkImagePlaneWidget?

dean.inglis at camris.ca dean.inglis at camris.ca
Thu Mar 30 16:15:13 EST 2006


Hi Wagner,

the new widget API described in the doc allows
for exactly what you describe. As time permits,
the old style widgets, like vtkIPW, will more than
likely be refactored to follow the new design.  It's just a question of time.  

Dean

> 
> From: Wagner Sales <wsalles2003 at yahoo.com.br>
> Date: 2006/03/30 Thu PM 04:59:30 GMT-05:00
> To: dean.inglis at camris.ca
> CC: vtkusers at vtk.org
> Subject: Re: [vtkusers] How to customize mouse actions on vtkImagePlaneWidget?
> 
> Hi Dean,
> 
> Thnks. This aproach can solve my problem now.
> But, I think if you have a widget with interactions, probably sometimes 
> you'll need override another interactions in this widget by implement an 
> application requirement. I think certanly that's are possible to do and 
> I was taked a look at http://www.vtk.org/Wiki/VTKWidgets#Basic_Concepts, 
> but I'm little bit confused ( i'm not a c++ guru, and since I use qt, 
> i'm not familiarized with callbacks and event implementation in VTK ). 
> Because that, if someone can give a start point to learn about that, or 
> a little example how to override events manipulation, to me will be very 
> useful.
> 
> Thnks in advance,
> 
> Wagner Sales
> dean.inglis at camris.ca wrote:
> > Hi Wagner,
> >
> > I just added two variables to vtkIPW a few days ago
> > so that one can control the offset positions of the 
> > margins.  If you do this:
> > widget->SetMarginSizeX = 0;
> > widget->SetMarginSizeY = 0;
> > you will disable the spinning and rotation by mouse
> > picking.  The other way to do this is to set all mouse
> > buttons to do cursoring or window/levelling but then
> > you lose the ability to push/pull the plane by mouse
> > action but you can still move it using a gui element
> > like a scrollbar/slider/etc.
> >
> > Dean
> >
> > _______________________________________________
> > This is the private VTK discussion list. 
> > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >   
> 




More information about the vtkusers mailing list