[vtkusers] vtkBoxWidget Transform
Stefan Bruckner
stefan.bruckner at chello.at
Mon Dec 2 19:59:41 EST 2002
Hi. To solve my problems with vtkBoxWidget (the problem was that I
assumed the the widget would automatically be initialized with the
specified prop's transform when calling PlaceWidget()) I modified it.
Now there is a new method called SetTransform() which allows the user to
specify an initial transform of the widget.
The transform returned by GetTransform() then is relative to the
user-specified transform.
If SetTransform() is not used the behaviour remains unchanged.
Here's the code.
--
Stefan Bruckner
Am Mon, 2002-12-02 um 21.49 schrieb Will Schroeder:
> Hi Stefan-
>
> Nice idea, there is no way now. Do you want to take a crack at it and send
> the code?
>
> Will
>
> At 08:46 PM 12/2/2002 +0100, Stefan Bruckner wrote:
> >Is there any way to initialize vtkBoxWidget's transform in order to
> >perform an arbitrary rotation when the widget is placed?
> >
> >--
> >Thanks,
> >Stefan Bruckner
> >
> >
> >
> >_______________________________________________
> >This is the private VTK discussion list.
> >Please keep messages on-topic. Check the FAQ at:
> ><http://public.kitware.com/cgi-bin/vtkfaq>
> >Follow this link to subscribe/unsubscribe:
> >http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkBoxWidget.cxx
Type: text/x-c
Size: 36967 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20021203/e4be0431/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkBoxWidget.h
Type: text/x-c
Size: 12057 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20021203/e4be0431/attachment-0001.bin>
More information about the vtkusers
mailing list