[vtkusers] Disabling vtkImagePlaneWidget rotations?

dean.inglis at camris.ca dean.inglis at camris.ca
Fri Jun 30 16:17:40 EDT 2006


I added a work around for this a few months ago, so you may need a
VTK cvs checkout instead of a stable release.  you
can set the size of the margins to be 0 so that
when picking the widget, rotations are disabled:

// Set the size of the margins based on a percentage of the 
// plane's width and height, limited between 0 and 50%. 
     vtkSetClampMacro(MarginSizeX,double, 0.0, 0.5); 
     vtkGetMacro(MarginSizeX, double); 
     vtkSetClampMacro(MarginSizeY,double, 0.0, 0.5); 
     vtkGetMacro(MarginSizeY, double); 

so SetMarginSizeX(0) and SetMarginSizeY(0)
should do the trick!


More information about the vtkusers mailing list