Hi Shashwath,<br><br>To my mind the fix is could be more global than just being in the PlaceWidget method. We have
 to forward the modification as soon as possible which mean when we set 
the "<i>TranslationMode</i>" within the "<i>vtkPointHandleRepresentation3D</i>"; then as Julien mentionned this fix has already been proposed in VTK by 
Chris Kruszynski in 2007 and works well for this problem.<a href="http://www.vtk.org/Bug/view.php?id=5896"></a><br><br>Furthermore, the patch makes sens with the On/Off maccro which are defined as:<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
virtual void name##On () { this->Set##name(static_cast<type>(1));}<br></blockquote><div>The patch will then be also pass with. <br></div><br>A test has been added to illustrate the illustrate the behavior.<br><br>
PS:
 I have also found an other bug when creating the test which is about 
setting the vtkProperty of the Handle which is not applying when used 
through vtkSeedWidget.<br>I have add to the 
vtkHandlePointRepresentation3D the missing(?!) method DeepCopy which is used
 by vtkSeedWidgetRepresentation::GetHandleRepresentation.<br><br>Please find the published changes here: <a href="http://review.source.kitware.com/#change,3120">http://review.source.kitware.com/#change,3120</a><br><br>Best Regards,<br>
Michael Jeulin-L.<br><br><div class="gmail_quote">On Wed, Oct 19, 2011 at 10:04 AM, Julien Finet <span dir="ltr"><<a href="mailto:julien.finet@kitware.com">julien.finet@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Shashwath,<br>
<br>
I just wanted to let you know that we are currently looking at the<br>
issue. We'll keep you posted with any progress we make.<br>
Please note that someone submitted  a different patch than yours:<br>
<a href="http://www.vtk.org/Bug/view.php?id=5896" target="_blank">http://www.vtk.org/Bug/view.php?id=5896</a><br>
<br>
Regards,<br>
<font color="#888888">julien.<br>
</font><div><div></div><div class="h5"><br>
On Tue, Oct 18, 2011 at 5:25 AM, Shashwath T.R. <<a href="mailto:trshash@gmail.com">trshash@gmail.com</a>> wrote:<br>
> Hi all,<br>
> My colleagues and I found a small bug in vtkPointHandleRepresentation3D,<br>
> which prevents its behavior from mimicking the behavior of vtkPointWidget<br>
> from the old widgets hierarchy. Basically, if TranslationMode is set to<br>
> False from outside, and PlaceWidget is called, the crosshair should be<br>
> placed at the center of the bounds passed to PlaceWidget. If TranslationMode<br>
> is true, the bounds should be translated to fit around the position.<br>
> In vtkPointHandleRepresentation3D, the current behavior is that this<br>
> property is not set to the Cursor3D instance until the first interaction.<br>
> Thus, it's impossible to set TranslationMode to false (which is our case)<br>
> before the first interaction. The fix is simple: In PlaceWidget, we update<br>
> the Cursor3D object with the appropriate translation mode.<br>
> The changes are published<br>
> here: <a href="http://review.source.kitware.com/#change,3106" target="_blank">http://review.source.kitware.com/#change,3106</a><br>
> Thanks and Regards,<br>
> Shash<br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
><br>
><br>
><br>
</div></div></blockquote></div><br>