<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br>
<br>
Thanks for the answer.<br>
In fact, after actor, I used the vtkTransformPolyDataFilter. And if at
the screen, I still have my object moving as with the widget. When I
draw my vtkPoints, the coordonates don'ts change.<br>
<br>
My connection is like that :<br>
vtkTransformPolyDataFilter->SetInput(vtkPolyData);<br>
vtkTubeFilter->SetInput(vtkTransformPolyDataFilter->GetOutput());<br>
<br>
I forgot to say between the vtkPolyData and the vtkPolyDataMapper, I
connect a vtkTubeFilter (for the representation of my lines).<br>
<br>
And maybe that could be helpful to know when I see my coordonates :<br>
<br>
In the Execute method, I create a vtkPoints that is initialized outside
of the method by the vtkPoints that I put into the vtkPolyData.<br>
And before the transform and after it I read the vtkPoints to see if the coordonates is changed but it's still not.<br>
<br>
Another answer ??<br>
<br>
<br><br>--- En date de : <b>Mar 18.1.11, David Doria <i><daviddoria@gmail.com></i></b> a écrit :<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>De: David Doria <daviddoria@gmail.com><br>Objet: Re: [vtkusers] vtkPoints modification in the method Execute for a CallBack Process<br>À: "youpie" <meriadegp@yahoo.fr><br>Cc: vtkusers@vtk.org<br>Date: Mardi 18 janvier 2011, 13h24<br><br><div id="yiv1268405123"><div class="yiv1268405123gmail_quote">n Tue, Jan 18, 2011 at 5:39 AM, youpie <span dir="ltr"><<a rel="nofollow" target="_blank" href="compose?to=meriadegp@yahoo.fr">meriadegp@yahoo.fr</a>></span> wrote:<br><blockquote class="yiv1268405123gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hi,<br>
<br>
I'm using a CallBack Procedure with Execute Method to associate event of my<br>
widgetBox with my vtkPoints.<br>
In fact when i use a vtkTransform obtained with widgetBox->getTransform<br>
(vtkTrasnform) and after use it on the actor associated to the widget, My<br>
actor move exaclty as I want when I move the widget.<br>
But if I draw my vtkPoints I can see that points don't have changed. So How<br>
can that be possible if my actor is moving ?<br>
And if I use the vtkTransfor of the widget box to change directly the<br>
coordonates of my points of vtkPoints, (whithout use the setUserTransform<br>
method of my actor). I can see coordinates changing, but nothing appened on<br>
the screen.<br></blockquote><div><br></div></div>Please see the "Transforms" slide set here: <a rel="nofollow" target="_blank" href="http://www.vtk.org/Wiki/VTK/Presentations">http://www.vtk.org/Wiki/VTK/Presentations</a><div>
<br></div><div>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).<br>
<div><br>David</div></div>
</div></blockquote></td></tr></table><br>