[vtkusers] Disabling features of vtkPlaneWidget

Kevin Funk kevin.funk at kdab.com
Thu Feb 28 04:35:00 EST 2013


Kevin Funk | kevin.funk at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutionsOn Thursday 28 
February 2013, 10:12,  wrote:
> Hey there,
> 
> We're using vtkPlaneWidget to show manipulation handles of a data set slice.
> This works fine, however, the data set we are viewing does only allow
> orthogonal slices, that means sections only along either the X,Y or Z axis.
> 
> Hence, we do not want/need the ability to rotate or even spin the plane
> around. While it is rather easy to just hide the actors for the normal line
> (which makes it impossible to rotate the plane with the mouse), it is not
> easily possible to disallow spinning because this is triggered with keyboard
> interaction.
> 
> Does anyone have any tips in how to disable those features in
> vtkPlaneWidget? I've looked at vtkPlaneWidget.cxx and it looks like this
> would require some additional code in there to achieve my intended
> behavior.
> 
> Any suggestions?
> 
> Greets

Ah, and I forgot to ask about something else.

Related to that, is it possible to define a bounding box for the 
vtkPlaneWidget, e.g. to limit the extent to which the plane can be scaled 
using the actors at the corners of the plane?

Greets

-- 
Kevin Funk | kevin.funk at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions



More information about the vtkusers mailing list