[vtkusers] vtkPoints modification in the method Execute for a CallBack Process

David Doria daviddoria at gmail.com
Tue Jan 18 07:24:57 EST 2011


n Tue, Jan 18, 2011 at 5:39 AM, youpie <meriadegp at yahoo.fr> wrote:

>
> Hi,
>
> I'm using a CallBack Procedure with Execute Method to associate event of my
> widgetBox with my vtkPoints.
> In fact when i use a vtkTransform obtained with widgetBox->getTransform
> (vtkTrasnform) and after use it on the actor associated to the widget, My
> actor move exaclty as I want when I move the widget.
> But if I draw my vtkPoints I can see that points don't have changed. So How
> can that be possible if my actor is moving ?
> And if I use the vtkTransfor of the widget box to change directly the
> coordonates of my points of vtkPoints, (whithout use the setUserTransform
> method of my actor). I can see coordinates changing, but nothing appened on
> the screen.
>

Please see the "Transforms" slide set here:
http://www.vtk.org/Wiki/VTK/Presentations

<http://www.vtk.org/Wiki/VTK/Presentations>By transforming the actor, you
are just telling OpenGL to move the object, not changing the actual
coordinates that you can access (i.e. your vtkPoints, as you've noticed).

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110118/56fb8762/attachment.htm>


More information about the vtkusers mailing list