Commits

German Larrain  committed c50f6a3

graphics.Axes: added param 'rot', just like the regular objects (e.g. Box)

  • Participants
  • Parent commits e6b44ba

Comments (0)

Files changed (2)

File ars/graphics/__init__.py

 	__metaclass__ = ABCMeta
 
 	@abstractmethod
-	def __init__(self, pos=(0,0,0), cylinder_radius=0.05):
+	def __init__(self, pos=(0, 0, 0), rot=None, cylinder_radius=0.05):
 		self._actor = None
 
 	@property

File ars/graphics/adapters.py

 
 
 class Axes(VtkBody, gp.Axes):
-	def __init__(self, pos=(0,0,0), cylinder_radius=0.05):
+	def __init__(self, pos=(0, 0, 0), rot=None, cylinder_radius=0.05):
 		gp.Axes.__init__(self, pos, cylinder_radius)
 
 		# 2 different methods may be used here
 		axesActor.AxisLabelsOn()
 		axesActor.SetShaftTypeToCylinder()
 		axesActor.SetCylinderRadius(cylinder_radius)
+		VtkAdapter._update_pose(axesActor, pos, rot)
 
 		self._actor = axesActor