Skip to content

Commit

Permalink
[Volumetric/Implicit] Enabling dynamic_pointer_cast for nodeiterator-…
Browse files Browse the repository at this point in the history
…>getCurrent()
  • Loading branch information
3dJan committed Oct 31, 2023
1 parent 0ac033b commit 094431b
Show file tree
Hide file tree
Showing 36 changed files with 2,449 additions and 318 deletions.
57 changes: 53 additions & 4 deletions Autogenerated/Bindings/C/lib3mf.h
Original file line number Diff line number Diff line change
Expand Up @@ -3447,7 +3447,7 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixnode_getoutputresult(Lib3MF_Com
* @param[out] pRow0 - the input for the first row
* @return error code or 0 (success)
*/
LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromrowvectorsnode_getinputrow0(Lib3MF_ComposeMatrixFromRowVectorsNode pComposeMatrixFromRowVectorsNode, Lib3MF_ImplicitPort * pRow0);
LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromrowvectorsnode_getinputa(Lib3MF_ComposeMatrixFromRowVectorsNode pComposeMatrixFromRowVectorsNode, Lib3MF_ImplicitPort * pRow0);

/**
* Retrieves the input for the second row
Expand All @@ -3456,7 +3456,7 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromrowvectorsnode_getinputrow0
* @param[out] pRow1 - the input for the second row
* @return error code or 0 (success)
*/
LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromrowvectorsnode_getinputrow1(Lib3MF_ComposeMatrixFromRowVectorsNode pComposeMatrixFromRowVectorsNode, Lib3MF_ImplicitPort * pRow1);
LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromrowvectorsnode_getinputb(Lib3MF_ComposeMatrixFromRowVectorsNode pComposeMatrixFromRowVectorsNode, Lib3MF_ImplicitPort * pRow1);

/**
* Retrieves the input for the third row
Expand All @@ -3465,7 +3465,7 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromrowvectorsnode_getinputrow1
* @param[out] pRow2 - the input for the third row
* @return error code or 0 (success)
*/
LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromrowvectorsnode_getinputrow2(Lib3MF_ComposeMatrixFromRowVectorsNode pComposeMatrixFromRowVectorsNode, Lib3MF_ImplicitPort * pRow2);
LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromrowvectorsnode_getinputc(Lib3MF_ComposeMatrixFromRowVectorsNode pComposeMatrixFromRowVectorsNode, Lib3MF_ImplicitPort * pRow2);

/**
* Retrieves the input for the fourth row
Expand All @@ -3474,7 +3474,7 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromrowvectorsnode_getinputrow2
* @param[out] pRow3 - the input for the fourth row
* @return error code or 0 (success)
*/
LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromrowvectorsnode_getinputrow3(Lib3MF_ComposeMatrixFromRowVectorsNode pComposeMatrixFromRowVectorsNode, Lib3MF_ImplicitPort * pRow3);
LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromrowvectorsnode_getinputd(Lib3MF_ComposeMatrixFromRowVectorsNode pComposeMatrixFromRowVectorsNode, Lib3MF_ImplicitPort * pRow3);

/**
* Retrieves the output
Expand All @@ -3485,6 +3485,55 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromrowvectorsnode_getinputrow3
*/
LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromrowvectorsnode_getoutputresult(Lib3MF_ComposeMatrixFromRowVectorsNode pComposeMatrixFromRowVectorsNode, Lib3MF_ImplicitPort * pResult);

/*************************************************************************************************************************
Class definition for ComposeMatrixFromColumnVectors
**************************************************************************************************************************/

/**
* Retrieves the input for the first column
*
* @param[in] pComposeMatrixFromColumnVectors - ComposeMatrixFromColumnVectors instance.
* @param[out] pColumn0 - the input for the first column
* @return error code or 0 (success)
*/
LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromcolumnvectors_getinputa(Lib3MF_ComposeMatrixFromColumnVectors pComposeMatrixFromColumnVectors, Lib3MF_ImplicitPort * pColumn0);

/**
* Retrieves the input for the second column
*
* @param[in] pComposeMatrixFromColumnVectors - ComposeMatrixFromColumnVectors instance.
* @param[out] pColumn1 - the input for the second column
* @return error code or 0 (success)
*/
LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromcolumnvectors_getinputb(Lib3MF_ComposeMatrixFromColumnVectors pComposeMatrixFromColumnVectors, Lib3MF_ImplicitPort * pColumn1);

/**
* Retrieves the input for the third column
*
* @param[in] pComposeMatrixFromColumnVectors - ComposeMatrixFromColumnVectors instance.
* @param[out] pColumn2 - the input for the third column
* @return error code or 0 (success)
*/
LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromcolumnvectors_getinputc(Lib3MF_ComposeMatrixFromColumnVectors pComposeMatrixFromColumnVectors, Lib3MF_ImplicitPort * pColumn2);

/**
* Retrieves the input for the fourth column
*
* @param[in] pComposeMatrixFromColumnVectors - ComposeMatrixFromColumnVectors instance.
* @param[out] pColumn3 - the input for the fourth column
* @return error code or 0 (success)
*/
LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromcolumnvectors_getinputd(Lib3MF_ComposeMatrixFromColumnVectors pComposeMatrixFromColumnVectors, Lib3MF_ImplicitPort * pColumn3);

/**
* Retrieves the output
*
* @param[in] pComposeMatrixFromColumnVectors - ComposeMatrixFromColumnVectors instance.
* @param[out] pResult - the output
* @return error code or 0 (success)
*/
LIB3MF_DECLSPEC Lib3MFResult lib3mf_composematrixfromcolumnvectors_getoutputresult(Lib3MF_ComposeMatrixFromColumnVectors pComposeMatrixFromColumnVectors, Lib3MF_ImplicitPort * pResult);

/*************************************************************************************************************************
Class definition for ConstantNode
**************************************************************************************************************************/
Expand Down
1 change: 1 addition & 0 deletions Autogenerated/Bindings/C/lib3mf_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ typedef Lib3MFHandle Lib3MF_ComposeVectorNode;
typedef Lib3MFHandle Lib3MF_DecomposeVectorNode;
typedef Lib3MFHandle Lib3MF_ComposeMatrixNode;
typedef Lib3MFHandle Lib3MF_ComposeMatrixFromRowVectorsNode;
typedef Lib3MFHandle Lib3MF_ComposeMatrixFromColumnVectors;
typedef Lib3MFHandle Lib3MF_ConstantNode;
typedef Lib3MFHandle Lib3MF_ConstVecNode;
typedef Lib3MFHandle Lib3MF_ConstMatNode;
Expand Down
82 changes: 66 additions & 16 deletions Autogenerated/Bindings/CDynamic/lib3mf_dynamic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,16 @@ Lib3MFResult InitLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable)
pWrapperTable->m_ComposeMatrixNode_GetInputM32 = NULL;
pWrapperTable->m_ComposeMatrixNode_GetInputM33 = NULL;
pWrapperTable->m_ComposeMatrixNode_GetOutputResult = NULL;
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputRow0 = NULL;
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputRow1 = NULL;
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputRow2 = NULL;
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputRow3 = NULL;
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputA = NULL;
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputB = NULL;
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputC = NULL;
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputD = NULL;
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetOutputResult = NULL;
pWrapperTable->m_ComposeMatrixFromColumnVectors_GetInputA = NULL;
pWrapperTable->m_ComposeMatrixFromColumnVectors_GetInputB = NULL;
pWrapperTable->m_ComposeMatrixFromColumnVectors_GetInputC = NULL;
pWrapperTable->m_ComposeMatrixFromColumnVectors_GetInputD = NULL;
pWrapperTable->m_ComposeMatrixFromColumnVectors_GetOutputResult = NULL;
pWrapperTable->m_ConstantNode_SetConstant = NULL;
pWrapperTable->m_ConstantNode_GetConstant = NULL;
pWrapperTable->m_ConstantNode_GetOutputValue = NULL;
Expand Down Expand Up @@ -3508,39 +3513,39 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable,
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputRow0 = (PLib3MFComposeMatrixFromRowVectorsNode_GetInputRow0Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixfromrowvectorsnode_getinputrow0");
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputA = (PLib3MFComposeMatrixFromRowVectorsNode_GetInputAPtr) GetProcAddress(hLibrary, "lib3mf_composematrixfromrowvectorsnode_getinputa");
#else // _WIN32
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputRow0 = (PLib3MFComposeMatrixFromRowVectorsNode_GetInputRow0Ptr) dlsym(hLibrary, "lib3mf_composematrixfromrowvectorsnode_getinputrow0");
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputA = (PLib3MFComposeMatrixFromRowVectorsNode_GetInputAPtr) dlsym(hLibrary, "lib3mf_composematrixfromrowvectorsnode_getinputa");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputRow0 == NULL)
if (pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputA == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputRow1 = (PLib3MFComposeMatrixFromRowVectorsNode_GetInputRow1Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixfromrowvectorsnode_getinputrow1");
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputB = (PLib3MFComposeMatrixFromRowVectorsNode_GetInputBPtr) GetProcAddress(hLibrary, "lib3mf_composematrixfromrowvectorsnode_getinputb");
#else // _WIN32
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputRow1 = (PLib3MFComposeMatrixFromRowVectorsNode_GetInputRow1Ptr) dlsym(hLibrary, "lib3mf_composematrixfromrowvectorsnode_getinputrow1");
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputB = (PLib3MFComposeMatrixFromRowVectorsNode_GetInputBPtr) dlsym(hLibrary, "lib3mf_composematrixfromrowvectorsnode_getinputb");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputRow1 == NULL)
if (pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputB == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputRow2 = (PLib3MFComposeMatrixFromRowVectorsNode_GetInputRow2Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixfromrowvectorsnode_getinputrow2");
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputC = (PLib3MFComposeMatrixFromRowVectorsNode_GetInputCPtr) GetProcAddress(hLibrary, "lib3mf_composematrixfromrowvectorsnode_getinputc");
#else // _WIN32
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputRow2 = (PLib3MFComposeMatrixFromRowVectorsNode_GetInputRow2Ptr) dlsym(hLibrary, "lib3mf_composematrixfromrowvectorsnode_getinputrow2");
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputC = (PLib3MFComposeMatrixFromRowVectorsNode_GetInputCPtr) dlsym(hLibrary, "lib3mf_composematrixfromrowvectorsnode_getinputc");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputRow2 == NULL)
if (pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputC == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputRow3 = (PLib3MFComposeMatrixFromRowVectorsNode_GetInputRow3Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixfromrowvectorsnode_getinputrow3");
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputD = (PLib3MFComposeMatrixFromRowVectorsNode_GetInputDPtr) GetProcAddress(hLibrary, "lib3mf_composematrixfromrowvectorsnode_getinputd");
#else // _WIN32
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputRow3 = (PLib3MFComposeMatrixFromRowVectorsNode_GetInputRow3Ptr) dlsym(hLibrary, "lib3mf_composematrixfromrowvectorsnode_getinputrow3");
pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputD = (PLib3MFComposeMatrixFromRowVectorsNode_GetInputDPtr) dlsym(hLibrary, "lib3mf_composematrixfromrowvectorsnode_getinputd");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputRow3 == NULL)
if (pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetInputD == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
Expand All @@ -3552,6 +3557,51 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable,
if (pWrapperTable->m_ComposeMatrixFromRowVectorsNode_GetOutputResult == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ComposeMatrixFromColumnVectors_GetInputA = (PLib3MFComposeMatrixFromColumnVectors_GetInputAPtr) GetProcAddress(hLibrary, "lib3mf_composematrixfromcolumnvectors_getinputa");
#else // _WIN32
pWrapperTable->m_ComposeMatrixFromColumnVectors_GetInputA = (PLib3MFComposeMatrixFromColumnVectors_GetInputAPtr) dlsym(hLibrary, "lib3mf_composematrixfromcolumnvectors_getinputa");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ComposeMatrixFromColumnVectors_GetInputA == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ComposeMatrixFromColumnVectors_GetInputB = (PLib3MFComposeMatrixFromColumnVectors_GetInputBPtr) GetProcAddress(hLibrary, "lib3mf_composematrixfromcolumnvectors_getinputb");
#else // _WIN32
pWrapperTable->m_ComposeMatrixFromColumnVectors_GetInputB = (PLib3MFComposeMatrixFromColumnVectors_GetInputBPtr) dlsym(hLibrary, "lib3mf_composematrixfromcolumnvectors_getinputb");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ComposeMatrixFromColumnVectors_GetInputB == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ComposeMatrixFromColumnVectors_GetInputC = (PLib3MFComposeMatrixFromColumnVectors_GetInputCPtr) GetProcAddress(hLibrary, "lib3mf_composematrixfromcolumnvectors_getinputc");
#else // _WIN32
pWrapperTable->m_ComposeMatrixFromColumnVectors_GetInputC = (PLib3MFComposeMatrixFromColumnVectors_GetInputCPtr) dlsym(hLibrary, "lib3mf_composematrixfromcolumnvectors_getinputc");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ComposeMatrixFromColumnVectors_GetInputC == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ComposeMatrixFromColumnVectors_GetInputD = (PLib3MFComposeMatrixFromColumnVectors_GetInputDPtr) GetProcAddress(hLibrary, "lib3mf_composematrixfromcolumnvectors_getinputd");
#else // _WIN32
pWrapperTable->m_ComposeMatrixFromColumnVectors_GetInputD = (PLib3MFComposeMatrixFromColumnVectors_GetInputDPtr) dlsym(hLibrary, "lib3mf_composematrixfromcolumnvectors_getinputd");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ComposeMatrixFromColumnVectors_GetInputD == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ComposeMatrixFromColumnVectors_GetOutputResult = (PLib3MFComposeMatrixFromColumnVectors_GetOutputResultPtr) GetProcAddress(hLibrary, "lib3mf_composematrixfromcolumnvectors_getoutputresult");
#else // _WIN32
pWrapperTable->m_ComposeMatrixFromColumnVectors_GetOutputResult = (PLib3MFComposeMatrixFromColumnVectors_GetOutputResultPtr) dlsym(hLibrary, "lib3mf_composematrixfromcolumnvectors_getoutputresult");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ComposeMatrixFromColumnVectors_GetOutputResult == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ConstantNode_SetConstant = (PLib3MFConstantNode_SetConstantPtr) GetProcAddress(hLibrary, "lib3mf_constantnode_setconstant");
#else // _WIN32
Expand Down
Loading

0 comments on commit 094431b

Please sign in to comment.