<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
One way to to do this is to make a texture(vtkTexture) out of this
image and then map it on to vtkPlaneSource (I think thats right, just<br>
use a single quadrilateral). Then that object can be transformed as you
please. The texture is input to the actor (there is a actor <br>
method for this)..<br>
<br>
I have done this long time back..<br>
<br>
== krs<br>
<br>
<br>
Pankaj Daga wrote:
<blockquote
cite="mid9779cb90610020648j7d1a3383v34fcab5f6f02dcb@mail.gmail.com"
type="cite">Hi Kalpathi,<br>
<br>
Thanks for replying.<br>
<br>
Basically, I have a PNG imag that I read using vtkPNGReader and display
it using vtkActor2D and vtkImageMapper objects. So, I just wanted to do
a simple 2D rotation on it.<br>
<br>
Cheers and thanks,<br>
<br>
Pankaj<br>
<br>
<div><span class="gmail_quote">On 10/2/06, <b
class="gmail_sendername">Kalpathi Subramanian</b> <<a
href="mailto:krs@uncc.edu">krs@uncc.edu</a>> wrote:</span>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">Pankaj:<br>
<br>
There is no transformation matrix associated with 2D actors and hence
you cannot transform it (like rotate).. if you<br>
need to transform your objects use vtkActor. Tell us what object you
need to rotate in your app and we might be<br>
able to offer suggestions. (again, read the vtk doc for vtkAcor2D you
will see this in the description).<br>
<br>
== krs<br>
<br>
<br>
Pankaj Daga wrote:
<blockquote
cite="http://mid9779cb90610020136p38f1db9cqb85a722cc065ff4a@mail.gmail.com"
type="cite">
<div><span class="e" id="q_10e093acb1f3e124_1">
<pre>Hi there,
@Tony: I am a bit confused as to how a vtkCubeAxesActor2D fits into this??? Could you elaborate a bit
Posting my original message again, as the old one is in September thread.
I have a vtkActor2D object that I wish to rotate. Is there a simple way to
rotate it about its center?
I know all vtkProp3D based objects have built in rotation functions. How can
I implement something similar in a vtkActor2D?
Basically, I have a 2D image that I wish to rotate on the screen.
Thanks,
Pankaj</pre>
</span></div>
<pre><hr size="4" width="90%"><span class="q">
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: <a
href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank"
onclick="return top.js.OpenExtLink(window,event,this)">
http://www.vtk.org/Wiki/VTK_FAQ</a></span><span class="q">
Follow this link to subscribe/unsubscribe:
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank"
onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</span></pre>
</blockquote>
<br>
<pre cols="72">--
K.R.Subramanian Phone: (704) 687-8579
Department of Computer Science FAX: (704) 687-3516
UNC Charlotte, Woodward 435E Email: <a
href="mailto:krs@uncc.edu" target="_blank"
onclick="return top.js.OpenExtLink(window,event,this)">
krs@uncc.edu</a>
Charlotte, NC 28223-0001 Web: <a
href="http://www.cs.uncc.edu/%7Ekrs" target="_blank"
onclick="return top.js.OpenExtLink(window,event,this)">http://www.cs.uncc.edu/~krs</a>
</pre>
</div>
</blockquote>
</div>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
K.R.Subramanian Phone: (704) 687-8579
Department of Computer Science FAX: (704) 687-3516
UNC Charlotte, Woodward 435E Email: <a class="moz-txt-link-abbreviated" href="mailto:krs@uncc.edu">krs@uncc.edu</a>
Charlotte, NC 28223-0001 Web: <a class="moz-txt-link-freetext" href="http://www.cs.uncc.edu/~krs">http://www.cs.uncc.edu/~krs</a>
</pre>
</body>
</html>