View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011790VTK(No Category)public2011-02-03 04:252013-06-05 16:24
ReporterJohn Stark 
Assigned ToJean-Christophe Fillion-Robin 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformWindows OSXPOS Version64
Product Version 
Target VersionFixed in Version5.8 
Summary0011790: vtkBoxWidget2 does not respect interaction filters.
DescriptionvtkBoxWidget2 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 );
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0025787)
Eric Monson (reporter)
2011-03-15 12:10

I have a patch up on Gerrit that should address this issue:

http://review.source.kitware.com/#change,1206 [^]

(Sorry, it looks like I didn't catch a few terminal spaces before submitting...)
(0025791)
John Stark (reporter)
2011-03-16 06:03

These changes look good to me, many thanks.

 Issue History
Date Modified Username Field Change
2011-02-03 04:25 John Stark New Issue
2011-03-15 12:10 Eric Monson Note Added: 0025787
2011-03-16 06:03 John Stark Note Added: 0025791
2011-08-10 14:00 John Biddiscombe Source_changeset_attached => VTK master dcb7cc21
2013-06-05 16:22 Jean-Christophe Fillion-Robin Assigned To => Jean-Christophe Fillion-Robin
2013-06-05 16:22 Jean-Christophe Fillion-Robin Status backlog => tabled
2013-06-05 16:24 Jean-Christophe Fillion-Robin Status tabled => closed
2013-06-05 16:24 Jean-Christophe Fillion-Robin Resolution open => fixed
2013-06-05 16:24 Jean-Christophe Fillion-Robin Fixed in Version => 5.8


Copyright © 2000 - 2018 MantisBT Team