Commits

German Larrain committed 5b8aaf5

graphics.vtk_adapter: in VtkBody subclasses, replaced usage of VtkAdapter with `self.adapter`.

  • Participants
  • Parent commits e044e7b

Comments (0)

Files changed (1)

ars/graphics/vtk_adapter.py

 		axesActor.AxisLabelsOn()
 		axesActor.SetShaftTypeToCylinder()
 		axesActor.SetCylinderRadius(cylinder_radius)
-		VtkAdapter._update_pose(axesActor, pos, rot)
+		self.adapter._update_pose(axesActor, pos, rot)
 
 		self._actor = axesActor
 
 		boxMapper.SetInputConnection(box.GetOutputPort())
 		boxActor = vtk.vtkActor()
 
-		VtkAdapter._update_pose(boxActor, pos, rot)
+		self.adapter._update_pose(boxActor, pos, rot)
 		boxActor.SetMapper(boxMapper)
 
 		self._actor = boxActor
 		coneMapper.SetInputConnection(cone.GetOutputPort())
 		coneActor = vtk.vtkActor()
 
-		VtkAdapter._update_pose(coneActor, center, rot)
+		self.adapter._update_pose(coneActor, center, rot)
 		coneActor.SetMapper(coneMapper)
 
 		self._actor = coneActor
 		sphereMapper.SetInputConnection(sphere.GetOutputPort())
 		sphereActor = vtk.vtkActor()
 
-		VtkAdapter._update_pose(sphereActor, center, rot)
+		self.adapter._update_pose(sphereActor, center, rot)
 		sphereActor.SetMapper(sphereMapper)
 
 		self._actor = sphereActor
 		cylMapper.SetInputConnection(transFilter.GetOutputPort())
 		cylActor = vtk.vtkActor()
 
-		VtkAdapter._update_pose(cylActor, center, rot)
+		self.adapter._update_pose(cylActor, center, rot)
 		cylActor.SetMapper(cylMapper)
 
 		self._actor = cylActor
 		assembly.AddPart(sphereActor1)
 		assembly.AddPart(sphereActor2)
 
-		VtkAdapter._update_pose(assembly, center, rot)
+		self.adapter._update_pose(assembly, center, rot)
 		self._actor = assembly
 
 
 
 		# actor: represents an object (geometry & properties) in a rendered scene
 		triangles_actor = vtk.vtkActor()
-		VtkAdapter._update_pose(triangles_actor, pos, rot)
+		self.adapter._update_pose(triangles_actor, pos, rot)
 		triangles_actor.SetMapper(mapper)
 
 		self._actor = triangles_actor