def __init__(self, parent = None, color = (1.0, 0.0, 0.0, 1.0), reflect = 0, collide=True, max_reflect=50): PythonCoordSyst.__init__(self, parent) self.color = color self.reflect = reflect self.max_reflect = max_reflect self.points = [] self.collide = collide
def __init__(self, parent=None, color=(1.0, 0.0, 0.0, 1.0), endp=(0, 0, 1)): PythonCoordSyst.__init__(self, parent) # instead of startp, we have the 'position' self.color = color self.endp = endp self.points = []
def __init__(self, parent=None, material=DEFAULT_MATERIAL, length=10): PythonCoordSyst.__init__(self) self.material = material self.length = length self.old_pos = [] self.endpoint = Point(self, 0.0, 0.0, -1.0) if parent: parent.add(self)
def __setstate__(self, state): PythonCoordSyst.__setstate__(self, state) self.old_pos = []
def __getstate__(self): state = PythonCoordSyst.__getstate__(self) if state[1] is self.__dict__: state = state[0], state[1].copy() del state[1]["old_pos"] return state