I have a vtkActor2D object that I wish to rotate/translate/flip. Is there a simple way to rotate/translate/flip about its center?
答案 0 :(得分:1)
对于vtkActor2D
,请使用SetPoint(float, float)
(左下角)和SetPoint2(float, float)
(右上角)来控制位置。请注意,这也允许您旋转道具,但您必须自己进行数学运算,或者使用
Actor2D给你的vtkCoordinate
。