[vtk-developers] 2D vs 3D rubber band interactor style

David E DeMarle dave.demarle at kitware.com
Tue Feb 2 18:46:25 EST 2010


The rubber band interactor styles should definately be unified. I stole from
rubberbandzoom to make rubberbandpick and later the other two were stolen
from one of those.

They should all have a common helper class which does the xor rendering of
the rubber band (and whatever else is common) and leaves the functionality
differences to the existing classes.

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109


On Tue, Feb 2, 2010 at 6:26 PM, David Doria
<daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> wrote:

> It looks like the only difference between vtkInteractorStyleRubberBand2D
> and vtkInteractorStyleRubberBand3D is that the right mouse button rotates
> instead of zooms in the 3D version. There seems to be a massive code
> duplication here.
>
> Couldn't one of them just derive from the other and override that little
> part?
>
> Am I missing a bigger difference?
>
> Thanks,
>
> David
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100202/17d92b82/attachment.html>


More information about the vtk-developers mailing list