[vtkusers] vtkInteractorStyleRubberBandZoom - flashes & slow inMFC

John Platt jcplatt at dsl.pipex.com
Tue Oct 20 17:34:18 EDT 2009


Hi Ben,

Yes, I am using Win XP. I have tried the rubber band redraw code from vtkInteractorStyleRubberBandPick and it appears much quicker. I just need to work out how to show the band on the background.

Many thanks for your reply.

John.
  ----- Original Message ----- 
  From: Ben Held 
  To: John Platt ; vtkusers 
  Sent: Tuesday, October 20, 2009 12:33 PM
  Subject: Re: [vtkusers] vtkInteractorStyleRubberBandZoom - flashes & slow inMFC


  John,

   

  Is this under XP by any chance?  What action are you doing (zoom window, area picker, etc?)  We've had this problem under XP with the zoom window support but not with the area picker.  We ended up tweaking the zoom window mode to use the same commands for drawing the rectangle as the area picker did.

   

  Ben

   

  From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of John Platt
  Sent: Monday, October 19, 2009 11:31 AM
  To: vtkusers
  Subject: [vtkusers] vtkInteractorStyleRubberBandZoom - flashes & slow in MFC

   

  Hi,

   

  The drawing of the rubber band as the mouse moves flashes and is slow (VTK 5.4.2, MFC, VS2008). I wondered if anybody else has noticed this behaviour in Windows?

   

  I have tried to improve the speed by creating "tmpPixelArray" outside of the mouse move handler but it has little effect. As the window size is reduced, the movement becomes smoother but unfortunately this is not a solution :)

   

  Thanks for any ideas.

   

  John.

   



------------------------------------------------------------------------------


  _______________________________________________
  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/20091020/8ce8cde3/attachment.htm>


More information about the vtkusers mailing list