[vtkusers] Widget

rakesh patil prakeshofficial at gmail.com
Mon May 7 04:59:28 EDT 2012


Hi

Check this example...

http://vtk.org/gitweb?p=VTK.git;a=blob;f=Interaction/Widgets/Testing/Cxx/TestScalarBarWidget.cxx


vtkScalarBarWidget is derived from vtkBoxWidget. Hope that helps

Good luck

Regards
Rakesh Patil

On Fri, May 4, 2012 at 9:53 PM, davide bacci <bacci.davide at gmail.com> wrote:

> Hi All!
>
> I'm going crazy trying to figure out how works the vtkBoxWidget class
>
> I have a vtkBoxWidget connected to an vtkAssembly
>
> everything works fine if I use the widget directly.
>
> but if I move the assembly programmatically, the widget does not
> update its position.
>
> so I tried to move it "manually" ( using vtkTransform ), but that will
> move both (keeping the same relative position. In practice the
> assembly is out of the widget)
>
> so I tried to move only the widget, and it works! but does not update
> the location of the assembly until I click on the widget ... there is
> no way to programmatically update it?
>
> Also this only works the first time. subsequent times just do not move
> anything .... Help!
>
> I desperately searched the internet but found nothing
>
> Can someone help me? Please ...
>
> greetings,
> Davide.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120507/66d2714b/attachment.htm>


More information about the vtkusers mailing list