<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello VTK users,<br>
<br>
I would like to set a global transformation to my entire scene to
translate the model that the viewer is examining into a different
coordinate frame.<br>
Has anyone done this before?<br>
<br>
I found 3 APIs in vtkCamera that look promising, but they each have
some problems:<br>
<ul>
<li>
<title>Snippet</title>
SetUserTransform()</li>
<li>SetUserViewTransform()</li>
<li>SetModelTransformMatrix()</li>
</ul>
<p>What's the difference between them and in what circumstances
should each be used? The documentation is not specific.<br>
</p>
<p>The problem with using SetUserTransform() and
SetUserViewTransform() is that ResetCamera() doesn't take them
into effect, so the model is shifted.<br>
The problem with SetModelTransformMatrix() is that the
interactor's rotation center is no longer the model center since
the model transformation doesn't seem to be applied (but I can
probably fix that).<br>
</p>
<p>One hint that maybe this is the wrong approach is that the
vtkCubeAxesActor I use to display the bounds never changes it's
axes coordinates (they're not transformed).<br>
</p>
<p>So would a better approach be to add a vtkTransformFilter to the
root of my pipeline?<br>
</p>
<p>Thanks for any tips you may share.<br>
<title>Snippet</title>
</p>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Signature</title>
<a href="http:://www.infolytica.com">www.infolytica.com </a><br>
300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3<br>
(514) 849-8752 x236, Fax: (514) 849-4239
</div>
</body>
</html>