[vtk-developers] [VTK 0011790]: vtkBoxWidget2 does not respect interaction filters.

Shashwath T.R. trshash at gmail.com
Thu Mar 17 15:47:02 EDT 2011


Hi,

I think I was the one who did the vtkBoxRepresentation implementation that
came up earlier. I put it there because it was more convenient for me to
implement at that point. You're right, I think the widget is a more logical
place for it to be in. I like this better than what I had done.

Regards,
Shash

On Tue, Mar 15, 2011 at 9:52 PM, Eric E. Monson <emonson at cs.duke.edu> wrote:

> Grrr...
>
> http://review.source.kitware.com/#change,1206
>
>
> On Mar 15, 2011, at 12:18 PM, Eric E. Monson wrote:
>
> > Hey all,
> >
> > I just put a patch up on Gerrit for this "Missing BoxWidget2
> functionality" issue. Could someone take a look?
> >
> > (Sorry, it looks like I missed a few terminal spaces before submitting.
> Ugh.. I might have to actually learn how to make changes in uploaded
> patches... :)
> >
> > If it looks okay I can send out an email to some of the people who have
> posted questions about this missing functionality on the mailing list in the
> past 6 months or so.
> >
> > There was a patch for vtkBoxRepresentation submitted on the mailing list
> a while back, but since the Widget is the one that handles event routing, I
> thought maybe it would be better to just implement it there.
> >
> > Thanks,
> > -Eric
> >
> > · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
> > Eric E Monson
> > Duke Visualization Technology Group
> >
> >
> > On Feb 3, 2011, at 4:25 AM, Mantis Bug Tracker wrote:
> >
> >>
> >> The following issue has been SUBMITTED.
> >> ======================================================================
> >> http://www.vtk.org/Bug/view.php?id=11790
> >> ======================================================================
> >> Reported By:                John Stark
> >> Assigned To:
> >> ======================================================================
> >> Project:                    VTK
> >> Issue ID:                   11790
> >> Category:                   (No Category)
> >> Reproducibility:            always
> >> Severity:                   minor
> >> Priority:                   normal
> >> Status:                     new
> >> ======================================================================
> >> Date Submitted:             2011-02-03 04:25 EST
> >> Last Modified:              2011-02-03 04:25 EST
> >> ======================================================================
> >> Summary:                    vtkBoxWidget2 does not respect interaction
> filters.
> >> Description:
> >> vtkBoxWidget2 has several attributes that would appear from the
> documentation to
> >> control the interaction, namely : TranslationEnabled, ScalingEnabled and
> >> RotationEnabled. However, when I set some these to false, I see no
> change in the
> >> available interactions.
> >>
> >>
> >> Steps to Reproduce:
> >> // Requires this input :
> >> // vtkImageData * image;
> >> // And these to display :
> >> // vtkRenderWindowInteractor * iren;
> >> // vtkRenderer * ren;
> >>
> >>   typedef vtkSmartPointer<vtkBoxWidget2> vtkBoxWidget2Pointer;
> >>   typedef vtkSmartPointer<vtkBoxRepresentation>
> vtkBoxRepresentationPointer;
> >>
> >>   vtkBoxRepresentationPointer boxRep
> (vtkBoxRepresentationPointer::New());
> >>   boxRep->PlaceWidget( image->GetBounds() );
> >>   boxRep->HandlesOn();
> >>
> >>   vtkBoxWidget2Pointer boxWidget = vtkBoxWidget2Pointer::New();
> >>   boxWidget->SetInteractor( iren );
> >>   boxWidget->SetRepresentation( boxRep );
> >>   boxWidget->On();
> >>   boxWidget->TranslationEnabledOff();
> >>   boxWidget->ScalingEnabledOff();
> >>   boxWidget->RotationEnabledOn();
> >>
> >>   ren->AddViewProp( boxRep );
> >>
> >> ======================================================================
> >>
> >> Issue History
> >> Date Modified    Username       Field                    Change
> >> ======================================================================
> >> 2011-02-03 04:25 John Stark     New Issue
> >> ======================================================================
> >>
> >> _______________________________________________
> >> 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
> >
>
> _______________________________________________
> 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/20110318/45b4dc91/attachment.html>


More information about the vtk-developers mailing list