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

Mantis Bug Tracker mantis at public.kitware.com
Thu Feb 3 04:25:36 EST 2011


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                                    
======================================================================




More information about the vtk-developers mailing list