parameters: (self)
docstring: Get matrix of the active view.
docstring_summary: Get matrix of the active view.
docstring_tokens: Get matrix of the active view .
function: def getMatrix(self):
          """Get matrix of the active view."""
          r = FreeCADGui.ActiveDocument.ActiveView.getViewer().getSoRenderManager().getViewportRegion()
          v = coin.SoGetMatrixAction(r)
          m = self.trans.getMatrix(v)
          if m:
              m = m.getValue()
              return FreeCAD.Matrix(m[0][0], m[0][1], m[0][2], m[0][3],
                                    m[1][0], m[1][1], m[1][2], m[1][3],
                                    m[2][0], m[2][1], m[2][2], m[2][3],
                                    m[3][0], m[3][1], m[3][2], m[3][3])
          else:
              return FreeCAD.Matrix()
function_tokens: def getMatrix ( self ) : r = FreeCADGui . ActiveDocument . ActiveView . getViewer ( ) . getSoRenderManager ( ) . getViewportRegion ( ) v = coin . SoGetMatrixAction ( r ) m = self . trans . getMatrix ( v ) if m : m = m . getValue ( ) return FreeCAD . Matrix ( m [ 0 ] [ 0 ] , m [ 0 ] [ 1 ] , m [ 0 ] [ 2 ] , m [ 0 ] [ 3 ] , m [ 1 ] [ 0 ] , m [ 1 ] [ 1 ] , m [ 1 ] [ 2 ] , m [ 1 ] [ 3 ] , m [ 2 ] [ 0 ] , m [ 2 ] [ 1 ] , m [ 2 ] [ 2 ] , m [ 2 ] [ 3 ] , m [ 3 ] [ 0 ] , m [ 3 ] [ 1 ] , m [ 3 ] [ 2 ] , m [ 3 ] [ 3 ] ) else : return FreeCAD . Matrix ( )