[vtkusers] setposition

Louis Desjardins lost_bits1110 at hotmail.com
Wed Jul 20 15:55:43 EDT 2005

Hi experts,

just a simple question -

I have a vtkActor2D (a vtkTextActor to be exact) whose position I want to 
set according to its view coordinates (or viewport even). When i use the 
SetPosition() method, this seems to use some other coordinate system 
(because I can set the position to values greater than 1, like 100 for 

However I have also used a vtkScalarBarActor in my program whose position I 
set using SetPosition and it seems to be working in view coordinates..

So I'm a littel confused as to how I should go about setting my 
vtkTextActor's position, in terms of view (or viewport) coordinates. Maybe 
its not using the SetPosition() mehtod..?


More information about the vtkusers mailing list