static PyObject *meth_QMatrix3x4_data(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; { QMatrix3x4 *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x4, &sipCpp)) { PyObject * sipRes = 0; sipErrorState sipError = sipErrorNone; #line 409 "C:\\Users\\marcus\\Downloads\\PyQt-gpl-5.4\\PyQt-gpl-5.4\\sip/QtGui/qgenericmatrix.sip" sipError = qtgui_matrixDataAsList(12, sipCpp->constData(), &sipRes); #line 53 "C:\\Users\\marcus\\Downloads\\PyQt-gpl-5.4\\PyQt-gpl-5.4\\QtGui/sipQtGuiQMatrix3x4.cpp" if (sipError == sipErrorFail) return 0; if (sipError == sipErrorNone) { return sipRes; } sipAddException(sipError, &sipParseErr); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QMatrix3x4, sipName_data, doc_QMatrix3x4_data); return NULL; }
static PyObject *meth_QMatrix3x4_data(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; { QMatrix3x4 *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x4, &sipCpp)) { PyObject * sipRes = 0; sipErrorState sipError = sipErrorNone; #line 419 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/sip/QtGui/qgenericmatrix.sip" sipError = qtgui_matrixDataAsList(12, sipCpp->constData(), &sipRes); #line 58 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/QtGui/sipQtGuiQMatrix3x4.cpp" if (sipError == sipErrorFail) return 0; if (sipError == sipErrorNone) { return sipRes; } sipAddException(sipError, &sipParseErr); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QMatrix3x4, sipName_data, doc_QMatrix3x4_data); return NULL; }
static PyObject *slot_QMatrix3x4___getitem__(PyObject *sipSelf,PyObject *sipArg) { QMatrix3x4 *sipCpp = reinterpret_cast<QMatrix3x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x4)); if (!sipCpp) return 0; PyObject *sipParseErr = NULL; { PyObject * a0; if (sipParseArgs(&sipParseErr, sipArg, "1P0", &a0)) { PyObject * sipRes = 0; sipErrorState sipError = sipErrorNone; #line 422 "C:\\Users\\marcus\\Downloads\\PyQt-gpl-5.4\\PyQt-gpl-5.4\\sip/QtGui/qgenericmatrix.sip" int row, column; if ((sipError = qtgui_matrixParseIndex(a0, 3, 4, &row, &column)) == sipErrorNone) { sipRes = PyFloat_FromDouble(sipCpp->operator()(row, column)); if (!sipRes) sipError = sipErrorFail; } #line 518 "C:\\Users\\marcus\\Downloads\\PyQt-gpl-5.4\\PyQt-gpl-5.4\\QtGui/sipQtGuiQMatrix3x4.cpp" if (sipError == sipErrorFail) return 0; if (sipError == sipErrorNone) { return sipRes; } sipAddException(sipError, &sipParseErr); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QMatrix3x4, sipName___getitem__, NULL); return 0; }
static PyObject *pickle_QMatrix3x4(void *sipCppV) { QMatrix3x4 *sipCpp = reinterpret_cast<QMatrix3x4 *>(sipCppV); PyObject *sipRes; #line 335 "C:\\Users\\marcus\\Downloads\\PyQt-gpl-5.4\\PyQt-gpl-5.4\\sip/QtGui/qgenericmatrix.sip" PYQT_FLOAT data[12]; // We want the data in row-major order. sipCpp->copyDataTo(data); sipRes = Py_BuildValue((char *)"dddddddddddd", (double)data[0], (double)data[1], (double)data[2], (double)data[3], (double)data[4], (double)data[5], (double)data[6], (double)data[7], (double)data[8], (double)data[9], (double)data[10], (double)data[11]); #line 644 "C:\\Users\\marcus\\Downloads\\PyQt-gpl-5.4\\PyQt-gpl-5.4\\QtGui/sipQtGuiQMatrix3x4.cpp" return sipRes; }
static PyObject *meth_QMatrix3x4_setToIdentity(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; { QMatrix3x4 *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x4, &sipCpp)) { sipCpp->setToIdentity(); Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QMatrix3x4, sipName_setToIdentity, doc_QMatrix3x4_setToIdentity); return NULL; }
static PyObject *meth_QMatrix3x4_fill(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; { qreal a0; QMatrix3x4 *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QMatrix3x4, &sipCpp, &a0)) { sipCpp->fill(a0); Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QMatrix3x4, sipName_fill, doc_QMatrix3x4_fill); return NULL; }
void GLClass::uniformMatrix3x4fv(const QString& location, bool transpose, const QMatrix3x4& value) { if (transpose) d_ptr->renderWidget->shaderProgram()->setUniformValue(location.toLatin1().constData(), value.transposed()); else d_ptr->renderWidget->shaderProgram()->setUniformValue(location.toLatin1().constData(), value); }
static PyObject *slot_QMatrix3x4___repr__(PyObject *sipSelf) { QMatrix3x4 *sipCpp = reinterpret_cast<QMatrix3x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x4)); if (!sipCpp) return 0; { { PyObject * sipRes = 0; #line 360 "C:\\Users\\marcus\\Downloads\\PyQt-gpl-5.4\\PyQt-gpl-5.4\\sip/QtGui/qgenericmatrix.sip" bool bad = false; int i; PyObject *m[12]; PYQT_FLOAT data[12]; // The raw data is in column-major order but we want row-major order. sipCpp->copyDataTo(data); for (i = 0; i < 12; ++i) { m[i] = PyFloat_FromDouble(data[i]); if (!m[i]) bad = true; } if (!bad) { #if PY_MAJOR_VERSION >= 3 sipRes = PyUnicode_FromFormat("PyQt5.QtGui.QMatrix3x4(" "%R, %R, %R, " "%R, %R, %R, " "%R, %R, %R, " "%R, %R, %R)", m[0], m[1], m[2], m[3], m[4], m[5], m[6], m[7], m[8], m[9], m[10], m[11]); #else sipRes = PyString_FromString("PyQt5.QtGui.QMatrix3x4("); for (i = 0; i < 12; ++i) { if (i != 0) PyString_ConcatAndDel(&sipRes, PyString_FromString(", ")); PyString_ConcatAndDel(&sipRes, PyObject_Repr(m[i])); } PyString_ConcatAndDel(&sipRes, PyString_FromString(")")); #endif } for (i = 0; i < 12; ++i) Py_XDECREF(m[i]); #line 598 "C:\\Users\\marcus\\Downloads\\PyQt-gpl-5.4\\PyQt-gpl-5.4\\QtGui/sipQtGuiQMatrix3x4.cpp" return sipRes; } } return 0; }