Reputation: 63
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
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