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)


 		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)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.