[vtkusers] Information during callback / vtkImplicitPlaneWidget2

David Doria daviddoria+vtk at gmail.com
Fri Mar 5 08:39:10 EST 2010


On Fri, Mar 5, 2010 at 5:50 AM, Sebastian Gatzka <
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/c7b102ea/attachment.htm>


More information about the vtkusers mailing list