Hi John, I will take a look. Thanks!<br><br><div class="gmail_quote">On Thu, Jul 14, 2011 at 5:34 PM, Biddiscombe, John A. <span dir="ltr"><<a href="mailto:biddisco@cscs.ch">biddisco@cscs.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I've just pushed a branch called box_widget2_limiters to the stage. It contains Eric's Gerrit patch onto the release branch from stage<br>
<br>
If possible, I'd like it merged into release.<br>
<br>
Thanks<br>
<br>
JB<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a> [mailto:<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>] On Behalf Of Eric E. Monson<br>
Sent: 17 May 2011 21:04<br>
To: Matheus Brasileiro<br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Subject: Re: [vtkusers] Disable rotation of vtkBoxWidget2<br>
<br>
Hey Matheus,<br>
<br>
This functionality was never implemented for some reason. I have a patch sitting on Gerrit, but nobody with commit powers has had a chance to review it yet and see if it is good enough to include in VTK:<br>
<br>
<a href="http://review.source.kitware.com/#change,1206" target="_blank">http://review.source.kitware.com/#change,1206</a><br>
<br>
If you're using the VTK development head and can figure out how to pull this patch from gerrit, you could try it out. But, I don't know when it will make it into a real VTK release.<br>
<br>
-Eric<br>
<br>
· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·<br>
Eric E Monson<br>
Duke Visualization Technology Group<br>
<br>
<br>
On May 16, 2011, at 12:52 PM, Matheus Brasileiro wrote:<br>
<br>
> Hi,<br>
><br>
> I'm using vtkBoxWidget2 to select a part of something in the scene, but I don't want to let the selection box rotate I just want the Handles (little spheres) able.<br>
> That way I will Just Resize the selection box through the handles.<br>
><br>
> I try the method vtkBoxWidget2::RotationEnableOff() but it seems not to work.<br>
><br>
> ..... some part of the code where I create some VTK objects ......<br>
><br>
>     BoxWidget2 = vtkBoxWidget2::New();<br>
>     BoxWidget2->SetInteractor(Interactor);<br>
>     BoxWidget2->SetRepresentation(BoxRepresentation);<br>
>     BoxWidget2->KeyPressActivationOff();<br>
><br>
> ..... some part of the code where I want to enable the Widget but turn of its rotation .....<br>
><br>
>     BoxRepresentation->OutlineCursorWiresOff();<br>
>     BoxRepresentation->OutlineFaceWiresOff();<br>
><br>
>     BoxWidget2->RotationEnableOff(); // this line don't disable the rotation... I still can click on one of the planes of the box and rotate it.<br>
><br>
>     BoxWidget2->On();<br>
>     Renderer->Render();<br>
><br>
> Hope someone can help me.<br>
><br>
> Best regards.<br>
><br>
> --<br>
> Matheus Brasileiro Passos<br>
> Engenharia de Controle e Automação<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 <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><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>
<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 <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<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>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<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>