Commits

German Larrain committed 7a04219

graphics.vtk_adapter: refactored code of VtkBody into new (super) class Entity;
Axes now subclasses Entity (of 'vtk_adapter', not 'base') instead of VtkBody.

Comments (0)

Files changed (1)

ars/graphics/vtk_adapter.py

 		return vtk_matrix
 
 
-class VtkBody(object):
+class Entity(object):
 
 	adapter = Engine
 
-	def __init__(self):
+	def __init__(self, *args, **kwargs):
 		self._actor = None
 
+
+class VtkBody(Entity):
+
 	def get_color(self):
 		"""
 		Returns the color of the body. If it is an assembly,
 		self._color = color
 
 
-class Axes(VtkBody, base.Axes):
+class Axes(Entity, base.Axes):
 
 	def __init__(self, pos=(0, 0, 0), rot=None, cylinder_radius=0.05):
 		base.Axes.__init__(self, pos, rot, cylinder_radius)