[vtkusers] Information during callback / vtkImplicitPlaneWidget2

Sebastian Gatzka sebastian.gatzka at stud.tu-darmstadt.de
Fri Mar 5 08:47:48 EST 2010


How is that possible.
I'm not understanding the syntax of the callback function.
I'm afraid I can't alter it myself ...

Am 05.03.2010 14:39, schrieb David Doria:
> On Fri, Mar 5, 2010 at 5:50 AM, Sebastian Gatzka 
> <sebastian.gatzka at stud.tu-darmstadt.de 
> <mailto:sebastian.gatzka at stud.tu-darmstadt.de>> wrote:
>
>     Hello world.
>
>     Is it possible to update a vtkTextActor during a Callback function?
>
>     I'm using the callback function like the one from the
>     vtkImplicitPlaneWidget2 example:
>     http://www.cmake.org/Wiki/VTK/Examples/Widgets/ImplicitPlaneWidget2
>     I want to be able to display the current center of the widget and
>     its normal direction in text form!
>
>     Any ideas?
>     Sebastian
>
>
> Sure - you just have to make the text actor a member of the callback 
> (there is currently a vtkPlane and a vtkActor in the example, copy the 
> way those were done) and set the pointer from main like this:
>
> myCallback->Plane = plane;
>
> Good luck,
>
> David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100305/24eee4d2/attachment.htm>


More information about the vtkusers mailing list