Hi <div><br></div><div>Check this example...</div><div><br></div><div><a href="http://vtk.org/gitweb?p=VTK.git;a=blob;f=Interaction/Widgets/Testing/Cxx/TestScalarBarWidget.cxx">http://vtk.org/gitweb?p=VTK.git;a=blob;f=Interaction/Widgets/Testing/Cxx/TestScalarBarWidget.cxx</a> </div>
<div><br></div><div>vtkScalarBarWidget is derived from vtkBoxWidget. Hope that helps</div><div><br></div><div>Good luck</div><div><br></div><div>Regards</div><div>Rakesh Patil<br><br><div class="gmail_quote">On Fri, May 4, 2012 at 9:53 PM, davide bacci <span dir="ltr"><<a href="mailto:bacci.davide@gmail.com" target="_blank">bacci.davide@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All!<br>
<br>
I'm going crazy trying to figure out how works the vtkBoxWidget class<br>
<br>
I have a vtkBoxWidget connected to an vtkAssembly<br>
<br>
everything works fine if I use the widget directly.<br>
<br>
but if I move the assembly programmatically, the widget does not<br>
update its position.<br>
<br>
so I tried to move it "manually" ( using vtkTransform ), but that will<br>
move both (keeping the same relative position. In practice the<br>
assembly is out of the widget)<br>
<br>
so I tried to move only the widget, and it works! but does not update<br>
the location of the assembly until I click on the widget ... there is<br>
no way to programmatically update it?<br>
<br>
Also this only works the first time. subsequent times just do not move<br>
anything .... Help!<br>
<br>
I desperately searched the internet but found nothing<br>
<br>
Can someone help me? Please ...<br>
<br>
greetings,<br>
Davide.<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></div>