class Draw(WorldObject): protocols.advise(instancesProvide=[ISceneItem]) def __init__(self, name="Draw", **params): WorldObject.__init__(self, name=name, **params) self.geom = DrawGeom() def clear(self): self.geom.clear() def marker(self, pos, col=(1,1,1), size=1.0): self.geom.marker(vec3(pos), vec3(col), size) def line(self, pos1, pos2, col=(1,1,1), size=1.0): self.geom.line(vec3(pos1), vec3(pos2), vec3(col), size)
def __init__(self, name="Draw", **params): WorldObject.__init__(self, name=name, **params) self.geom = DrawGeom()