VB: [vtkusers] Transformation of imported objects

johan.winell at dynamics.saab.se johan.winell at dynamics.saab.se
Wed Jul 4 08:07:55 EDT 2001


Ok, 

now I got the actors (via the
vtkRendererCollection...vtkRenderer...vtkActorCollection) , but how can I
now apply the transforms (ie. move and rotate them in the world) on them.
The actor does not have the SetTransform method.

/Johan 

-----Ursprungligt meddelande-----
Från: Prabhu Ramachandran [mailto:prabhu at aero.iitm.ernet.in]
Skickat: den 4 juli 2001 11:42
Till: johan.winell at dynamics.saab.se
Ämne: SV: [vtkusers] Transformation of imported objects


hi,

I am a bit short on time right now but here is the code from CVS.  Its
written in Python but hopefully should be easy to decipher.  

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mayavi/mayavi/Sources/mv3DSIm
porter.py?rev=1.1&content-type=text/vnd.viewcvs-markup

Look specifically at the _get_actors(...) member function.  Should not
be to hard to understand I guess

prabhu

>>>>> "JW" == johan winell <johan.winell at dynamics.saab.se> writes:

    JW> Hello again Prabhu, can you plese send me a code example of
    JW> how you traverse the renders of the renderwindow and how you
    JW> find the new actor.

    JW> Best Regards

    JW> /Johan Winell




More information about the vtkusers mailing list