vtkBoxWidget change handles behavior

Hi,

Is it possible to change vtkBoxWidget handle’s behavior? I’d like to have the widget to either rotate or move locked on the axis of the handle I’m dragging (instead of resizing the box).

Thanks!

Hi,

I’d like to bump up this thread to see if anybody knows of a way to constraint the transformation of a vtkBoxWidget. For instance, when dragging on it with the mouse, I’d like to lock its rotation to one axis only. Is that possible?

Thanks!

I do not believe vtkBoxWidget supports this. If you are ambitious, the vtkHandleWidget handles translation constraints … you could learn from this class and integrate something similar to vtkBoxWidget.

Thanks Will. Taking at initial look, it eventually led me to the vtkAxesTransformWidget component, which looks like what I’m looking for, but I haven’t been able to make it work (or work like it’s supposed to based on its description). Anybody has any information or examples of it? Thanks!