[vtkusers] What method I get value RotateZ Actor from?

Hugo Gratama van Andel h.a.gratamavanandel at amc.uva.nl
Tue Jan 24 05:05:15 EST 2006


Hello Kitti,
You can apply a rotation with ".RotateZ(22);" on a vtkActor. You recieve 
the current orientation with ".GetOrientation(float o[3]);" The third 
element in the array "o(2)" gives you the angle in the z-direction of 
the actor.

- Hugo

kitti koonsanit wrote:
> cylinder = new vtkCylinderSource();
> cylinder.SetResolution(50);
> cylinder.SetRadius(0.08);
> 
> cylinderMapper = new vtkPolyDataMapper();
> cylinderMapper.SetInput(cylinder[0].GetOutput());
> 
> vtkActorcylinderArray = new vtkActor();
> vtkActorcylinderArray.SetPosition(0.0,0.0,0.0);
> vtkActorcylinderArray.SetMapper(cylinderMapper[0]);
> 
> vtkActorcylinderArray.RotateZ(22);
> I set  vtkActor property   that  rotatez  value 22; 
> 
> . . .
> vtkActor  kk = new vtkActor();
> kk=vtkActorcylinderArray;
> 
> 
> kk.GetRotateZ()????  = 22    in VTK  do not have  GetAngleRotateZ()  Method
> ----------------------------------------------------------------------------
> see code  on the top
>  What method  I get  value AngleZ Actor from?
> if  I want get   RotateAngleZ()  that  value  20
>  
> --->  What method  I get value AngleZ from?
>  
> thank you
> 
> 
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

-- 
Hugo Gratama van Andel - MSc
Academic Medical Centre - University of Amsterdam
Dept. Medical Physics      L0-152
Meibergdreef 9
1105 AZ Amsterdam
The Netherlands
Phone  :  +31 20 566 5206
FAX    :  +31 20 691 7233
e-mail :  h.a.gratamavanandel at amc.uva.nl



More information about the vtkusers mailing list