示例#1
0
 def update_matrices(self):
     '''Update inverse and OpenGL matrices, from the current transformation.
     If you change manually the transformation, you should call this
     function, or the drawing will failed.
     '''
     self._transform_inv = inverse_matrix(self._transform)
     self._transform_gl = self._transform.T.tolist() #for openGL
     self._transform_inv_gl = self._transform.T.tolist() #for openGL
示例#2
0
文件: scatter.py 项目: gavine199/pymt
 def update_matrices(self):
     '''Update inverse and OpenGL matrices, from the current transformation.
     If you change manually the transformation, you should call this
     function, or the drawing will failed.
     '''
     self._transform_inv = inverse_matrix(self._transform)
     self._transform_gl = ascontiguousarray(self._transform.T,
                                            dtype='float32')
     self._transform_inv_gl = ascontiguousarray(self._transform.T,
                                                dtype='float32')
示例#3
0
文件: scatter.py 项目: Markitox/pymt
 def update_matrices(self):
     '''Update inverse and OpenGL matrices, from the current transformation.
     If you change manually the transformation, you should call this
     function, or the drawing will failed.
     '''
     self._transform_inv = inverse_matrix(self._transform)
     self._transform_gl = ascontiguousarray(self._transform.T,
                                            dtype='float32')
     self._transform_inv_gl = ascontiguousarray(self._transform.T,
                                                dtype='float32')