<div dir="ltr">If you send along a patch and the Widgets developers think it's reasonable, there's a good chance it will be applied to CVS HEAD of VTK...<br><br><br>HTH,<br>David<br><br><br><div class="gmail_quote">
On Fri, Jul 18, 2008 at 4:13 PM, Serge Lalonde <<a href="mailto:serge@infolytica.com">serge@infolytica.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I would like to enforce a uniform scaling in the vtkBoxWidget's.InteractionEvent. I have most of the code working but I would ideally like to detect if the operation is really a scaling because it may be moving or rotating instead (in which case I do the default).<br>
<br>
The problem is that there is no API that I could find in vtkBoxWidget that can tell me this. The frustrating part is that there is a private WidgetState enum, but it's protected.<br>
<br>
One idea was to compare the vtkBoxWidget's transform with its previous state and detect the biggest difference in orientation, position and scale (since only one can change), but that seems error prone.<br>
<br>
I could modify the code and add a vtkSetMacro()/vtkGetMacro() for the State field, but before I do that I wanted to check if there was a better way to do it. If I resort to this source code change, any chance that this can become a "standard" feature?<br>
<br>
Thanks.<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>