<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p>First of all I would like to apologise in advance if this
question is too simple for bothering you with via the mailing list
but I have not been able to figure it out after quite some
investigation. <br>
</p>
<p>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
</p>
<div class="post-text" itemprop="text">
<p>I have a poly actor which has a vtkBoxWidget that is connected
to a callback as from the example in the docs:</p>
<pre><code>def widget_callback(obj, event):
t = vtk.vtkTransform()
obj.GetTransform(t)
obj.GetProp3D().SetUserTransform(t)
</code></pre>
<p>All works fine and I am able to move and transform the actor
with the widget but the transformation is applied to the
UserTransform and not processed down to the actor properties. </p>
<p>So if I call:</p>
<pre><code>actor.GetPosition()
</code></pre>
<p>It returns the initial position prior to making the changes
with the widget. And if I call:</p>
<pre><code>actor.GetUserTransform().GetPosition()
</code></pre>
<p>I get the updated position relative to the starting point of
the first interaction. <br>
</p>
<p>Do I have to connect it all through a
vtkTransformPolyDataFilter and then update the input connection
to the mapper and also calculate the coordinate space offset or
is there a simpler way of doing it? ... in short:<br>
</p>
<p><b>What is the correct way of updating an actor with changes
applied to SetUserTransform?</b></p>
<p>Many thanks in advance. <br>
</p>
<p>/Victor<br>
</p>
</div>
</body>
</html>