Hoang Anh Tuan
Hoang Anh Tuan

Reputation: 63

How to rotate/translate/flip vtkActor2D object using vtk?

I have a vtkActor2D object that I wish to rotate/translate/flip. Is there a simple way to rotate/translate/flip about its center?

Upvotes: 1

Views: 675

Answers (1)

mirni
mirni

Reputation: 695

For vtkActor2D, use SetPoint(float, float) (lower left) and SetPoint2(float, float) (upper right) to control the position. Note that this will allow you to rotate the prop as well, but you'll have to to do the math yourself, or use vtkCoordinate that Actor2D gives you.

Upvotes: 1

Related Questions