From: Eunki, Hong Date: Wed, 19 Oct 2022 12:37:21 +0000 (+0900) Subject: Bind Matrix *= operator + ValueOfIndex X-Git-Tag: dali_2.2.2~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f68902326d2dba27381c163262372f217afa3f53;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Bind Matrix *= operator + ValueOfIndex Change-Id: I594641bba070f5760e60e66fdf748a6fd6f1ee0a Signed-off-by: Eunki, Hong --- diff --git a/dali-csharp-binder/src/dali-wrap.cpp b/dali-csharp-binder/src/dali-wrap.cpp index d8a0670..2476be3 100755 --- a/dali-csharp-binder/src/dali-wrap.cpp +++ b/dali-csharp-binder/src/dali-wrap.cpp @@ -8001,7 +8001,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Matrix_Multiply__SWIG_4(void * nuiMatr { try { jresult = new Dali::Matrix(false); - Dali::Matrix::Multiply((Dali::Matrix &)*jresult,(Dali::Matrix const &)*rhsPtr,(Dali::Quaternion const &)*lhsPtr); + Dali::Matrix::Multiply((Dali::Matrix &)*jresult,(Dali::Matrix const &)*rhsPtr,(Dali::Matrix const &)*lhsPtr); } CALL_CATCH_EXCEPTION(0); } @@ -8009,6 +8009,33 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Matrix_Multiply__SWIG_4(void * nuiMatr } +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Matrix_MultiplyAssign(void * nuiMatrix, void * nuiMatrixRhs) { + void * jresult = 0; + Dali::Matrix *lhsPtr = (Dali::Matrix *) 0 ; + Dali::Matrix *rhsPtr = (Dali::Matrix *) 0 ; + Dali::Matrix *retPtr = (Dali::Matrix *) 0 ; + + lhsPtr = (Dali::Matrix *)nuiMatrix; + if (!lhsPtr) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lhs Dali::Matrix const & type is null", 0); + return 0; + } + rhsPtr = (Dali::Matrix *)nuiMatrixRhs; + if (!rhsPtr) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "rhs Dali::Matrix const & type is null", 0); + return 0; + } + { + try { + retPtr = (Dali::Matrix *) &(lhsPtr)->operator *=((Dali::Matrix const &)*rhsPtr); + } CALL_CATCH_EXCEPTION(0); + } + + jresult = (void *)retPtr; + return jresult; +} + + SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_Matrix_EqualTo(void * jarg1, void * jarg2) { bool jresult ; Dali::Matrix *arg1 = (Dali::Matrix *) 0 ; @@ -8054,6 +8081,97 @@ SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_Matrix_NotEqualTo(void * jarg1, void * j return jresult; } +SWIGEXPORT float SWIGSTDCALL CSharp_Dali_Matrix_ValueOfIndex__SWIG_0(void * nuiMatrix, unsigned int index) { + float jresult ; + Dali::Matrix *pMatrix = (Dali::Matrix *) 0 ; + + pMatrix = (Dali::Matrix *)nuiMatrix; + if (!pMatrix) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Matrix const & type is null", 0); + return 0; + } + if (index >= 16) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, "index is out of range. (Check whether index >= 16.)", 0); + return 0; + } + { + try { + const float* temp = ((Dali::Matrix const *)pMatrix)->AsFloat(); + jresult = temp[index]; + } CALL_CATCH_EXCEPTION(0); + } + return jresult; +} + +SWIGEXPORT float SWIGSTDCALL CSharp_Dali_Matrix_ValueOfIndex__SWIG_1(void * nuiMatrix, unsigned int indexRow, unsigned int indexColumn) { + float jresult ; + Dali::Matrix *pMatrix = (Dali::Matrix *) 0 ; + + pMatrix = (Dali::Matrix *)nuiMatrix; + if (!pMatrix) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Matrix const & type is null", 0); + return 0; + } + if (indexRow >= 4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, "indexRow is out of range. (Check whether indexRow >= 4.)", 0); + return 0; + } + if (indexColumn >= 4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, "indexColumn is out of range. (Check whether indexColumn >= 4.)", 0); + return 0; + } + { + try { + const float* temp = ((Dali::Matrix const *)pMatrix)->AsFloat(); + jresult = temp[(indexColumn << 2) | indexRow]; + } CALL_CATCH_EXCEPTION(0); + } + return jresult; +} + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Matrix_SetValueAtIndex__SWIG_0(void * nuiMatrix, unsigned int index, float value) { + Dali::Matrix *pMatrix = (Dali::Matrix *) 0 ; + + pMatrix = (Dali::Matrix *)nuiMatrix; + if (!pMatrix) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Matrix const & type is null", 0); + return; + } + if (index >= 16) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, "index is out of range. (Check whether index >= 16.)", 0); + return; + } + { + try { + float* temp = ((Dali::Matrix *)pMatrix)->AsFloat(); + temp[index] = value; + } CALL_CATCH_EXCEPTION(); + } +} + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Matrix_SetValueAtIndex__SWIG_1(void * nuiMatrix, unsigned int indexRow, unsigned int indexColumn, float value) { + Dali::Matrix *pMatrix = (Dali::Matrix *) 0 ; + + pMatrix = (Dali::Matrix *)nuiMatrix; + if (!pMatrix) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Matrix const & type is null", 0); + return; + } + if (indexRow >= 4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, "indexRow is out of range. (Check whether indexRow >= 4.)", 0); + return; + } + if (indexColumn >= 4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, "indexColumn is out of range. (Check whether indexColumn >= 4.)", 0); + return; + } + { + try { + float* temp = ((Dali::Matrix *)pMatrix)->AsFloat(); + temp[(indexColumn << 2) | indexRow] = value; + } CALL_CATCH_EXCEPTION(); + } +} SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Matrix_SetTransformComponents(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { Dali::Matrix *arg1 = (Dali::Matrix *) 0 ; @@ -8390,6 +8508,99 @@ SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_Matrix3_NotEqualTo(void * jarg1, void * } +SWIGEXPORT float SWIGSTDCALL CSharp_Dali_Matrix3_ValueOfIndex__SWIG_0(void * nuiMatrix, unsigned int index) { + float jresult ; + Dali::Matrix3 *pMatrix = (Dali::Matrix3 *) 0 ; + + pMatrix = (Dali::Matrix3 *)nuiMatrix; + if (!pMatrix) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Matrix3 const & type is null", 0); + return 0; + } + if (index >= 9) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, "index is out of range. (Check whether index >= 9.)", 0); + return 0; + } + { + try { + const float* temp = ((Dali::Matrix3 const *)pMatrix)->AsFloat(); + jresult = temp[index]; + } CALL_CATCH_EXCEPTION(0); + } + return jresult; +} + +SWIGEXPORT float SWIGSTDCALL CSharp_Dali_Matrix3_ValueOfIndex__SWIG_1(void * nuiMatrix, unsigned int indexRow, unsigned int indexColumn) { + float jresult ; + Dali::Matrix3 *pMatrix = (Dali::Matrix3 *) 0 ; + + pMatrix = (Dali::Matrix3 *)nuiMatrix; + if (!pMatrix) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Matrix3 const & type is null", 0); + return 0; + } + if (indexRow >= 3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, "indexRow is out of range. (Check whether indexRow >= 3.)", 0); + return 0; + } + if (indexColumn >= 3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, "indexColumn is out of range. (Check whether indexColumn >= 3.)", 0); + return 0; + } + { + try { + const float* temp = ((Dali::Matrix3 const *)pMatrix)->AsFloat(); + jresult = temp[indexColumn * 3 + indexRow]; + } CALL_CATCH_EXCEPTION(0); + } + return jresult; +} + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Matrix3_SetValueAtIndex__SWIG_0(void * nuiMatrix, unsigned int index, float value) { + Dali::Matrix3 *pMatrix = (Dali::Matrix3 *) 0 ; + + pMatrix = (Dali::Matrix3 *)nuiMatrix; + if (!pMatrix) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Matrix3 const & type is null", 0); + return; + } + if (index >= 9) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, "index is out of range. (Check whether index >= 9.)", 0); + return; + } + { + try { + float* temp = ((Dali::Matrix3 *)pMatrix)->AsFloat(); + temp[index] = value; + } CALL_CATCH_EXCEPTION(); + } +} + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Matrix3_SetValueAtIndex__SWIG_1(void * nuiMatrix, unsigned int indexRow, unsigned int indexColumn, float value) { + Dali::Matrix3 *pMatrix = (Dali::Matrix3 *) 0 ; + + pMatrix = (Dali::Matrix3 *)nuiMatrix; + if (!pMatrix) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Matrix3 const & type is null", 0); + return; + } + if (indexRow >= 3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, "indexRow is out of range. (Check whether indexRow >= 3.)", 0); + return; + } + if (indexColumn >= 3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, "indexColumn is out of range. (Check whether indexColumn >= 3.)", 0); + return; + } + { + try { + float* temp = ((Dali::Matrix3 *)pMatrix)->AsFloat(); + temp[indexColumn * 3 + indexRow] = value; + } CALL_CATCH_EXCEPTION(); + } +} + + SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Matrix3(void * jarg1) { Dali::Matrix3 *arg1 = (Dali::Matrix3 *) 0 ; @@ -8626,6 +8837,32 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Matrix3_Multiply__SWIG_3(void * nuiMat return jresult; } +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Matrix3_MultiplyAssign(void * nuiMatrix, void * nuiMatrixRhs) { + void * jresult = 0; + Dali::Matrix3 *lhsPtr = (Dali::Matrix3 *) 0 ; + Dali::Matrix3 *rhsPtr = (Dali::Matrix3 *) 0 ; + Dali::Matrix3 *retPtr = (Dali::Matrix3 *) 0 ; + + lhsPtr = (Dali::Matrix3 *)nuiMatrix; + if (!lhsPtr) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lhs Dali::Matrix3 const & type is null", 0); + return 0; + } + rhsPtr = (Dali::Matrix3 *)nuiMatrixRhs; + if (!rhsPtr) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "rhs Dali::Matrix3 const & type is null", 0); + return 0; + } + { + try { + retPtr = (Dali::Matrix3 *) &(lhsPtr)->operator *=((Dali::Matrix3 const &)*rhsPtr); + } CALL_CATCH_EXCEPTION(0); + } + + jresult = (void *)retPtr; + return jresult; +} + SWIGEXPORT float SWIGSTDCALL CSharp_Dali_Range(float jarg1, float jarg2) { float jresult ;