<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi David et al,<br>
<br>
I've made the necessary changes and tested them (and followed the
proper coding conventions ;-).<br>
Where can I get information on creating a patch? Once I have a patch,
where do I post it?<br>
I've looked at <a class="moz-txt-link-freetext" href="http://www.vtk.org/contribute.php">http://www.vtk.org/contribute.php</a> and in the mailing
list archives, but I couldn't find any details. I'm on the Windows
platform, in case that matters.<br>
<br>
BTW, if anyone is interested in the code for the uniform scaling, I'd
be happy to share.<br>
Related to another question that I posted, I also have code that aborts
the interaction if the user presses the Escape key. I could also share
if anyone needs it.<br>
<br>
Thanks.<br>
<br>
David Cole wrote:
<blockquote
cite="mid:f435c2c50807181418q19b16091xa7139d1cf4e9c6a8@mail.gmail.com"
type="cite">
<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>
<div class="gmail_quote">On Fri, Jul 18, 2008 at 4:13 PM, Serge
Lalonde <<a moz-do-not-send="true" 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;">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>
</blockquote>
</div>
</div>
</blockquote>
</body>
</html>