Example #1
0
	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
Example #2
0
 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 = []
Example #3
0
    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)
Example #4
0
 def __setstate__(self, state):
     PythonCoordSyst.__setstate__(self, state)
     self.old_pos = []
Example #5
0
 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