diff --git a/Autogenerated/Bindings/Cpp/lib3mf_implicit.hpp b/Autogenerated/Bindings/Cpp/lib3mf_implicit.hpp index 3c978144..cc9e59ba 100644 --- a/Autogenerated/Bindings/Cpp/lib3mf_implicit.hpp +++ b/Autogenerated/Bindings/Cpp/lib3mf_implicit.hpp @@ -540,16 +540,17 @@ typedef PModel PLib3MFModel; template class classParam { private: + std::shared_ptr m_sharedPtr; const T* m_ptr; public: classParam(const T* ptr) - : m_ptr (ptr) + : m_ptr(ptr) { } classParam(std::shared_ptr sharedPtr) - : m_ptr (sharedPtr.get()) + : m_sharedPtr(sharedPtr), m_ptr(sharedPtr.get()) { } @@ -557,10 +558,11 @@ template class classParam { { if (m_ptr != nullptr) return m_ptr->handle(); - return nullptr; + return (Lib3MFHandle)nullptr; } }; + /************************************************************************************************************************* Class ELib3MFException **************************************************************************************************************************/ @@ -3606,7 +3608,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ inline PModel CWrapper::CreateModel() { - Lib3MFHandle hModel = nullptr; + Lib3MFHandle hModel = (Lib3MFHandle)nullptr; CheckError(nullptr,lib3mf_createmodel(&hModel)); if (!hModel) { @@ -3803,7 +3805,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) return resultTransform; } - + inline void CWrapper::CheckError(CBase * pBaseClass, Lib3MFResult nResult) { if (nResult != 0) { @@ -4003,7 +4005,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CReader::ReadFromBuffer(const CInputVector & BufferBuffer) { - CheckError(lib3mf_reader_readfrombuffer(m_pHandle, (Lib3MF_uint64)BufferBuffer.size(), BufferBuffer.data())); + Lib3MF_uint64 nBufferSize = BufferBuffer.size(); + CheckError(lib3mf_reader_readfrombuffer(m_pHandle, nBufferSize, BufferBuffer.data())); } /** @@ -4179,7 +4182,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PPackagePart CResource::PackagePart() { - Lib3MFHandle hPackagePart = nullptr; + Lib3MFHandle hPackagePart = (Lib3MFHandle)nullptr; CheckError(lib3mf_resource_packagepart(m_pHandle, &hPackagePart)); if (!hPackagePart) { @@ -4244,7 +4247,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResource CResourceIterator::GetCurrent() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_resourceiterator_getcurrent(m_pHandle, &hResource)); if (!hResource) { @@ -4259,7 +4262,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResourceIterator CResourceIterator::Clone() { - Lib3MFHandle hOutResourceIterator = nullptr; + Lib3MFHandle hOutResourceIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_resourceiterator_clone(m_pHandle, &hOutResourceIterator)); if (!hOutResourceIterator) { @@ -4290,7 +4293,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSliceStack CSliceStackIterator::GetCurrentSliceStack() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_slicestackiterator_getcurrentslicestack(m_pHandle, &hResource)); if (!hResource) { @@ -4309,7 +4312,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PObject CObjectIterator::GetCurrentObject() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_objectiterator_getcurrentobject(m_pHandle, &hResource)); if (!hResource) { @@ -4328,7 +4331,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMeshObject CMeshObjectIterator::GetCurrentMeshObject() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_meshobjectiterator_getcurrentmeshobject(m_pHandle, &hResource)); if (!hResource) { @@ -4347,7 +4350,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PComponentsObject CComponentsObjectIterator::GetCurrentComponentsObject() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_componentsobjectiterator_getcurrentcomponentsobject(m_pHandle, &hResource)); if (!hResource) { @@ -4366,7 +4369,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTexture2D CTexture2DIterator::GetCurrentTexture2D() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_texture2diterator_getcurrenttexture2d(m_pHandle, &hResource)); if (!hResource) { @@ -4385,7 +4388,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBaseMaterialGroup CBaseMaterialGroupIterator::GetCurrentBaseMaterialGroup() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_basematerialgroupiterator_getcurrentbasematerialgroup(m_pHandle, &hResource)); if (!hResource) { @@ -4404,7 +4407,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PColorGroup CColorGroupIterator::GetCurrentColorGroup() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_colorgroupiterator_getcurrentcolorgroup(m_pHandle, &hResource)); if (!hResource) { @@ -4423,7 +4426,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTexture2DGroup CTexture2DGroupIterator::GetCurrentTexture2DGroup() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_texture2dgroupiterator_getcurrenttexture2dgroup(m_pHandle, &hResource)); if (!hResource) { @@ -4442,7 +4445,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PCompositeMaterials CCompositeMaterialsIterator::GetCurrentCompositeMaterials() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_compositematerialsiterator_getcurrentcompositematerials(m_pHandle, &hResource)); if (!hResource) { @@ -4461,7 +4464,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMultiPropertyGroup CMultiPropertyGroupIterator::GetCurrentMultiPropertyGroup() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_multipropertygroupiterator_getcurrentmultipropertygroup(m_pHandle, &hResource)); if (!hResource) { @@ -4480,7 +4483,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImage3D CImage3DIterator::GetCurrentImage3D() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_image3diterator_getcurrentimage3d(m_pHandle, &hResource)); if (!hResource) { @@ -4499,7 +4502,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PFunction CFunctionIterator::GetCurrentFunction() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_functioniterator_getcurrentfunction(m_pHandle, &hResource)); if (!hResource) { @@ -4518,7 +4521,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PLevelSet CLevelSetIterator::GetCurrentLevelSet() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_levelsetiterator_getcurrentlevelset(m_pHandle, &hResource)); if (!hResource) { @@ -4686,7 +4689,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMetaData CMetaDataGroup::GetMetaData(const Lib3MF_uint32 nIndex) { - Lib3MFHandle hMetaData = nullptr; + Lib3MFHandle hMetaData = (Lib3MFHandle)nullptr; CheckError(lib3mf_metadatagroup_getmetadata(m_pHandle, nIndex, &hMetaData)); if (!hMetaData) { @@ -4703,7 +4706,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMetaData CMetaDataGroup::GetMetaDataByKey(const std::string & sNameSpace, const std::string & sName) { - Lib3MFHandle hMetaData = nullptr; + Lib3MFHandle hMetaData = (Lib3MFHandle)nullptr; CheckError(lib3mf_metadatagroup_getmetadatabykey(m_pHandle, sNameSpace.c_str(), sName.c_str(), &hMetaData)); if (!hMetaData) { @@ -4742,7 +4745,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMetaData CMetaDataGroup::AddMetaData(const std::string & sNameSpace, const std::string & sName, const std::string & sValue, const std::string & sType, const bool bMustPreserve) { - Lib3MFHandle hMetaData = nullptr; + Lib3MFHandle hMetaData = (Lib3MFHandle)nullptr; CheckError(lib3mf_metadatagroup_addmetadata(m_pHandle, sNameSpace.c_str(), sName.c_str(), sValue.c_str(), sType.c_str(), bMustPreserve, &hMetaData)); if (!hMetaData) { @@ -4888,7 +4891,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CObject::GetThumbnailAttachment() { - Lib3MFHandle hAttachment = nullptr; + Lib3MFHandle hAttachment = (Lib3MFHandle)nullptr; CheckError(lib3mf_object_getthumbnailattachment(m_pHandle, &hAttachment)); if (hAttachment) { @@ -4949,7 +4952,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMetaDataGroup CObject::GetMetaDataGroup() { - Lib3MFHandle hMetaDataGroup = nullptr; + Lib3MFHandle hMetaDataGroup = (Lib3MFHandle)nullptr; CheckError(lib3mf_object_getmetadatagroup(m_pHandle, &hMetaDataGroup)); if (!hMetaDataGroup) { @@ -5006,7 +5009,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSliceStack CObject::GetSliceStack() { - Lib3MFHandle hSliceStackInstance = nullptr; + Lib3MFHandle hSliceStackInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_object_getslicestack(m_pHandle, &hSliceStackInstance)); if (!hSliceStackInstance) { @@ -5201,7 +5204,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CMeshObject::SetAllTriangleProperties(const CInputVector & PropertiesArrayBuffer) { - CheckError(lib3mf_meshobject_setalltriangleproperties(m_pHandle, (Lib3MF_uint64)PropertiesArrayBuffer.size(), PropertiesArrayBuffer.data())); + Lib3MF_uint64 nPropertiesArraySize = PropertiesArrayBuffer.size(); + CheckError(lib3mf_meshobject_setalltriangleproperties(m_pHandle, nPropertiesArraySize, PropertiesArrayBuffer.data())); } /** @@ -5232,7 +5236,9 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CMeshObject::SetGeometry(const CInputVector & VerticesBuffer, const CInputVector & IndicesBuffer) { - CheckError(lib3mf_meshobject_setgeometry(m_pHandle, (Lib3MF_uint64)VerticesBuffer.size(), VerticesBuffer.data(), (Lib3MF_uint64)IndicesBuffer.size(), IndicesBuffer.data())); + Lib3MF_uint64 nVerticesSize = VerticesBuffer.size(); + Lib3MF_uint64 nIndicesSize = IndicesBuffer.size(); + CheckError(lib3mf_meshobject_setgeometry(m_pHandle, nVerticesSize, VerticesBuffer.data(), nIndicesSize, IndicesBuffer.data())); } /** @@ -5253,7 +5259,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBeamLattice CMeshObject::BeamLattice() { - Lib3MFHandle hTheBeamLattice = nullptr; + Lib3MFHandle hTheBeamLattice = (Lib3MFHandle)nullptr; CheckError(lib3mf_meshobject_beamlattice(m_pHandle, &hTheBeamLattice)); if (!hTheBeamLattice) { @@ -5268,7 +5274,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PVolumeData CMeshObject::GetVolumeData() { - Lib3MFHandle hTheVolumeData = nullptr; + Lib3MFHandle hTheVolumeData = (Lib3MFHandle)nullptr; CheckError(lib3mf_meshobject_getvolumedata(m_pHandle, &hTheVolumeData)); if (hTheVolumeData) { @@ -5298,7 +5304,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PFunction CLevelSet::GetFunction() { - Lib3MFHandle hTheFunction = nullptr; + Lib3MFHandle hTheFunction = (Lib3MFHandle)nullptr; CheckError(lib3mf_levelset_getfunction(m_pHandle, &hTheFunction)); if (hTheFunction) { @@ -5442,7 +5448,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMeshObject CLevelSet::GetMesh() { - Lib3MFHandle hTheMesh = nullptr; + Lib3MFHandle hTheMesh = (Lib3MFHandle)nullptr; CheckError(lib3mf_levelset_getmesh(m_pHandle, &hTheMesh)); if (hTheMesh) { @@ -5458,7 +5464,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PVolumeData CLevelSet::GetVolumeData() { - Lib3MFHandle hTheVolumeData = nullptr; + Lib3MFHandle hTheVolumeData = (Lib3MFHandle)nullptr; CheckError(lib3mf_levelset_getvolumedata(m_pHandle, &hTheVolumeData)); if (hTheVolumeData) { @@ -5619,7 +5625,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CBeamLattice::SetBeams(const CInputVector & BeamInfoBuffer) { - CheckError(lib3mf_beamlattice_setbeams(m_pHandle, (Lib3MF_uint64)BeamInfoBuffer.size(), BeamInfoBuffer.data())); + Lib3MF_uint64 nBeamInfoSize = BeamInfoBuffer.size(); + CheckError(lib3mf_beamlattice_setbeams(m_pHandle, nBeamInfoSize, BeamInfoBuffer.data())); } /** @@ -5689,7 +5696,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CBeamLattice::SetBalls(const CInputVector & BallInfoBuffer) { - CheckError(lib3mf_beamlattice_setballs(m_pHandle, (Lib3MF_uint64)BallInfoBuffer.size(), BallInfoBuffer.data())); + Lib3MF_uint64 nBallInfoSize = BallInfoBuffer.size(); + CheckError(lib3mf_beamlattice_setballs(m_pHandle, nBallInfoSize, BallInfoBuffer.data())); } /** @@ -5723,7 +5731,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBeamSet CBeamLattice::AddBeamSet() { - Lib3MFHandle hBeamSet = nullptr; + Lib3MFHandle hBeamSet = (Lib3MFHandle)nullptr; CheckError(lib3mf_beamlattice_addbeamset(m_pHandle, &hBeamSet)); if (!hBeamSet) { @@ -5739,7 +5747,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBeamSet CBeamLattice::GetBeamSet(const Lib3MF_uint32 nIndex) { - Lib3MFHandle hBeamSet = nullptr; + Lib3MFHandle hBeamSet = (Lib3MFHandle)nullptr; CheckError(lib3mf_beamlattice_getbeamset(m_pHandle, nIndex, &hBeamSet)); if (!hBeamSet) { @@ -5878,7 +5886,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBaseMaterialGroup CVolumeDataComposite::GetBaseMaterialGroup() { - Lib3MFHandle hBaseMaterialGroupInstance = nullptr; + Lib3MFHandle hBaseMaterialGroupInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_volumedatacomposite_getbasematerialgroup(m_pHandle, &hBaseMaterialGroupInstance)); if (!hBaseMaterialGroupInstance) { @@ -5916,7 +5924,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMaterialMapping CVolumeDataComposite::GetMaterialMapping(const Lib3MF_uint32 nIndex) { - Lib3MFHandle hTheMaterialMapping = nullptr; + Lib3MFHandle hTheMaterialMapping = (Lib3MFHandle)nullptr; CheckError(lib3mf_volumedatacomposite_getmaterialmapping(m_pHandle, nIndex, &hTheMaterialMapping)); if (!hTheMaterialMapping) { @@ -5932,7 +5940,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMaterialMapping CVolumeDataComposite::AddMaterialMapping(const sTransform & Transform) { - Lib3MFHandle hTheMaterialMapping = nullptr; + Lib3MFHandle hTheMaterialMapping = (Lib3MFHandle)nullptr; CheckError(lib3mf_volumedatacomposite_addmaterialmapping(m_pHandle, &Transform, &hTheMaterialMapping)); if (!hTheMaterialMapping) { @@ -6000,7 +6008,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PVolumeDataComposite CVolumeData::GetComposite() { - Lib3MFHandle hTheCompositeData = nullptr; + Lib3MFHandle hTheCompositeData = (Lib3MFHandle)nullptr; CheckError(lib3mf_volumedata_getcomposite(m_pHandle, &hTheCompositeData)); if (hTheCompositeData) { @@ -6016,7 +6024,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PVolumeDataComposite CVolumeData::CreateNewComposite() { - Lib3MFHandle hTheCompositeData = nullptr; + Lib3MFHandle hTheCompositeData = (Lib3MFHandle)nullptr; CheckError(lib3mf_volumedata_createnewcomposite(m_pHandle, &hTheCompositeData)); if (!hTheCompositeData) { @@ -6039,7 +6047,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PVolumeDataColor CVolumeData::GetColor() { - Lib3MFHandle hTheColorData = nullptr; + Lib3MFHandle hTheColorData = (Lib3MFHandle)nullptr; CheckError(lib3mf_volumedata_getcolor(m_pHandle, &hTheColorData)); if (hTheColorData) { @@ -6057,7 +6065,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PVolumeDataColor CVolumeData::CreateNewColor(classParam pTheFunction) { Lib3MFHandle hTheFunction = pTheFunction.GetHandle(); - Lib3MFHandle hTheColorData = nullptr; + Lib3MFHandle hTheColorData = (Lib3MFHandle)nullptr; CheckError(lib3mf_volumedata_createnewcolor(m_pHandle, hTheFunction, &hTheColorData)); if (!hTheColorData) { @@ -6093,7 +6101,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PVolumeDataProperty CVolumeData::GetProperty(const Lib3MF_uint32 nIndex) { - Lib3MFHandle hTheVolumeDataProperty = nullptr; + Lib3MFHandle hTheVolumeDataProperty = (Lib3MFHandle)nullptr; CheckError(lib3mf_volumedata_getproperty(m_pHandle, nIndex, &hTheVolumeDataProperty)); if (!hTheVolumeDataProperty) { @@ -6111,7 +6119,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PVolumeDataProperty CVolumeData::AddPropertyFromFunction(const std::string & sName, classParam pTheFunction) { Lib3MFHandle hTheFunction = pTheFunction.GetHandle(); - Lib3MFHandle hTheVolumeDataProperty = nullptr; + Lib3MFHandle hTheVolumeDataProperty = (Lib3MFHandle)nullptr; CheckError(lib3mf_volumedata_addpropertyfromfunction(m_pHandle, sName.c_str(), hTheFunction, &hTheVolumeDataProperty)); if (!hTheVolumeDataProperty) { @@ -6139,7 +6147,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PObject CComponent::GetObjectResource() { - Lib3MFHandle hObjectResource = nullptr; + Lib3MFHandle hObjectResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_component_getobjectresource(m_pHandle, &hObjectResource)); if (!hObjectResource) { @@ -6231,7 +6239,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PComponent CComponentsObject::AddComponent(classParam pObjectResource, const sTransform & Transform) { Lib3MFHandle hObjectResource = pObjectResource.GetHandle(); - Lib3MFHandle hComponentInstance = nullptr; + Lib3MFHandle hComponentInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_componentsobject_addcomponent(m_pHandle, hObjectResource, &Transform, &hComponentInstance)); if (!hComponentInstance) { @@ -6247,7 +6255,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PComponent CComponentsObject::GetComponent(const Lib3MF_uint32 nIndex) { - Lib3MFHandle hComponentInstance = nullptr; + Lib3MFHandle hComponentInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_componentsobject_getcomponent(m_pHandle, nIndex, &hComponentInstance)); if (!hComponentInstance) { @@ -6338,7 +6346,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CBeamSet::SetReferences(const CInputVector & ReferencesBuffer) { - CheckError(lib3mf_beamset_setreferences(m_pHandle, (Lib3MF_uint64)ReferencesBuffer.size(), ReferencesBuffer.data())); + Lib3MF_uint64 nReferencesSize = ReferencesBuffer.size(); + CheckError(lib3mf_beamset_setreferences(m_pHandle, nReferencesSize, ReferencesBuffer.data())); } /** @@ -6372,7 +6381,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CBeamSet::SetBallReferences(const CInputVector & BallReferencesBuffer) { - CheckError(lib3mf_beamset_setballreferences(m_pHandle, (Lib3MF_uint64)BallReferencesBuffer.size(), BallReferencesBuffer.data())); + Lib3MF_uint64 nBallReferencesSize = BallReferencesBuffer.size(); + CheckError(lib3mf_beamset_setballreferences(m_pHandle, nBallReferencesSize, BallReferencesBuffer.data())); } /** @@ -6633,7 +6643,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTexture2D CTexture2DGroup::GetTexture2D() { - Lib3MFHandle hTexture2DInstance = nullptr; + Lib3MFHandle hTexture2DInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_texture2dgroup_gettexture2d(m_pHandle, &hTexture2DInstance)); if (!hTexture2DInstance) { @@ -6677,7 +6687,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBaseMaterialGroup CCompositeMaterials::GetBaseMaterialGroup() { - Lib3MFHandle hBaseMaterialGroupInstance = nullptr; + Lib3MFHandle hBaseMaterialGroupInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_compositematerials_getbasematerialgroup(m_pHandle, &hBaseMaterialGroupInstance)); if (!hBaseMaterialGroupInstance) { @@ -6693,8 +6703,9 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ Lib3MF_uint32 CCompositeMaterials::AddComposite(const CInputVector & CompositeBuffer) { + Lib3MF_uint64 nCompositeSize = CompositeBuffer.size(); Lib3MF_uint32 resultPropertyID = 0; - CheckError(lib3mf_compositematerials_addcomposite(m_pHandle, (Lib3MF_uint64)CompositeBuffer.size(), CompositeBuffer.data(), &resultPropertyID)); + CheckError(lib3mf_compositematerials_addcomposite(m_pHandle, nCompositeSize, CompositeBuffer.data(), &resultPropertyID)); return resultPropertyID; } @@ -6758,8 +6769,9 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ Lib3MF_uint32 CMultiPropertyGroup::AddMultiProperty(const CInputVector & PropertyIDsBuffer) { + Lib3MF_uint64 nPropertyIDsSize = PropertyIDsBuffer.size(); Lib3MF_uint32 resultPropertyID = 0; - CheckError(lib3mf_multipropertygroup_addmultiproperty(m_pHandle, (Lib3MF_uint64)PropertyIDsBuffer.size(), PropertyIDsBuffer.data(), &resultPropertyID)); + CheckError(lib3mf_multipropertygroup_addmultiproperty(m_pHandle, nPropertyIDsSize, PropertyIDsBuffer.data(), &resultPropertyID)); return resultPropertyID; } @@ -6771,7 +6783,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CMultiPropertyGroup::SetMultiProperty(const Lib3MF_uint32 nPropertyID, const CInputVector & PropertyIDsBuffer) { - CheckError(lib3mf_multipropertygroup_setmultiproperty(m_pHandle, nPropertyID, (Lib3MF_uint64)PropertyIDsBuffer.size(), PropertyIDsBuffer.data())); + Lib3MF_uint64 nPropertyIDsSize = PropertyIDsBuffer.size(); + CheckError(lib3mf_multipropertygroup_setmultiproperty(m_pHandle, nPropertyID, nPropertyIDsSize, PropertyIDsBuffer.data())); } /** @@ -6949,7 +6962,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CImageStack::GetSheet(const Lib3MF_uint32 nIndex) { - Lib3MFHandle hSheet = nullptr; + Lib3MFHandle hSheet = (Lib3MFHandle)nullptr; CheckError(lib3mf_imagestack_getsheet(m_pHandle, nIndex, &hSheet)); if (!hSheet) { @@ -6977,7 +6990,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CImageStack::CreateEmptySheet(const Lib3MF_uint32 nIndex, const std::string & sPath) { - Lib3MFHandle hSheet = nullptr; + Lib3MFHandle hSheet = (Lib3MFHandle)nullptr; CheckError(lib3mf_imagestack_createemptysheet(m_pHandle, nIndex, sPath.c_str(), &hSheet)); if (!hSheet) { @@ -6995,8 +7008,9 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CImageStack::CreateSheetFromBuffer(const Lib3MF_uint32 nIndex, const std::string & sPath, const CInputVector & DataBuffer) { - Lib3MFHandle hSheet = nullptr; - CheckError(lib3mf_imagestack_createsheetfrombuffer(m_pHandle, nIndex, sPath.c_str(), (Lib3MF_uint64)DataBuffer.size(), DataBuffer.data(), &hSheet)); + Lib3MF_uint64 nDataSize = DataBuffer.size(); + Lib3MFHandle hSheet = (Lib3MFHandle)nullptr; + CheckError(lib3mf_imagestack_createsheetfrombuffer(m_pHandle, nIndex, sPath.c_str(), nDataSize, DataBuffer.data(), &hSheet)); if (!hSheet) { CheckError(LIB3MF_ERROR_INVALIDPARAM); @@ -7013,7 +7027,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CImageStack::CreateSheetFromFile(const Lib3MF_uint32 nIndex, const std::string & sPath, const std::string & sFileName) { - Lib3MFHandle hSheet = nullptr; + Lib3MFHandle hSheet = (Lib3MFHandle)nullptr; CheckError(lib3mf_imagestack_createsheetfromfile(m_pHandle, nIndex, sPath.c_str(), sFileName.c_str(), &hSheet)); if (!hSheet) { @@ -7056,7 +7070,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PPackagePart CAttachment::PackagePart() { - Lib3MFHandle hPackagePart = nullptr; + Lib3MFHandle hPackagePart = (Lib3MFHandle)nullptr; CheckError(lib3mf_attachment_packagepart(m_pHandle, &hPackagePart)); if (!hPackagePart) { @@ -7150,7 +7164,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CAttachment::ReadFromBuffer(const CInputVector & BufferBuffer) { - CheckError(lib3mf_attachment_readfrombuffer(m_pHandle, (Lib3MF_uint64)BufferBuffer.size(), BufferBuffer.data())); + Lib3MF_uint64 nBufferSize = BufferBuffer.size(); + CheckError(lib3mf_attachment_readfrombuffer(m_pHandle, nBufferSize, BufferBuffer.data())); } /** @@ -7163,7 +7178,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CTexture2D::GetAttachment() { - Lib3MFHandle hAttachment = nullptr; + Lib3MFHandle hAttachment = (Lib3MFHandle)nullptr; CheckError(lib3mf_texture2d_getattachment(m_pHandle, &hAttachment)); if (!hAttachment) { @@ -7391,7 +7406,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CImplicitPortIterator::GetCurrent() { - Lib3MFHandle hPort = nullptr; + Lib3MFHandle hPort = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitportiterator_getcurrent(m_pHandle, &hPort)); if (!hPort) { @@ -7496,7 +7511,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CImplicitNode::AddInput(const std::string & sIdentifier, const std::string & sDisplayName) { - Lib3MFHandle hPort = nullptr; + Lib3MFHandle hPort = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitnode_addinput(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), &hPort)); if (!hPort) { @@ -7511,7 +7526,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPortIterator CImplicitNode::GetInputs() { - Lib3MFHandle hIterator = nullptr; + Lib3MFHandle hIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitnode_getinputs(m_pHandle, &hIterator)); if (!hIterator) { @@ -7528,7 +7543,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CImplicitNode::AddOutput(const std::string & sIdentifier, const std::string & sDisplayName) { - Lib3MFHandle hPort = nullptr; + Lib3MFHandle hPort = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitnode_addoutput(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), &hPort)); if (!hPort) { @@ -7543,7 +7558,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPortIterator CImplicitNode::GetOutputs() { - Lib3MFHandle hIterator = nullptr; + Lib3MFHandle hIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitnode_getoutputs(m_pHandle, &hIterator)); if (!hIterator) { @@ -7559,7 +7574,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CImplicitNode::FindInput(const std::string & sIdentifier) { - Lib3MFHandle hInput = nullptr; + Lib3MFHandle hInput = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitnode_findinput(m_pHandle, sIdentifier.c_str(), &hInput)); if (hInput) { @@ -7576,7 +7591,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CImplicitNode::FindOutput(const std::string & sIdentifier) { - Lib3MFHandle hOutput = nullptr; + Lib3MFHandle hOutput = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitnode_findoutput(m_pHandle, sIdentifier.c_str(), &hOutput)); if (hOutput) { @@ -7608,7 +7623,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort COneInputNode::GetInputA() { - Lib3MFHandle hInput = nullptr; + Lib3MFHandle hInput = (Lib3MFHandle)nullptr; CheckError(lib3mf_oneinputnode_getinputa(m_pHandle, &hInput)); if (!hInput) { @@ -7623,7 +7638,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort COneInputNode::GetOutputResult() { - Lib3MFHandle hResult = nullptr; + Lib3MFHandle hResult = (Lib3MFHandle)nullptr; CheckError(lib3mf_oneinputnode_getoutputresult(m_pHandle, &hResult)); if (!hResult) { @@ -7744,7 +7759,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResource CResourceIdNode::GetResource() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_resourceidnode_getresource(m_pHandle, &hResource)); if (!hResource) { @@ -7759,7 +7774,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CResourceIdNode::GetOutputValue() { - Lib3MFHandle hValue = nullptr; + Lib3MFHandle hValue = (Lib3MFHandle)nullptr; CheckError(lib3mf_resourceidnode_getoutputvalue(m_pHandle, &hValue)); if (!hValue) { @@ -7778,7 +7793,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CTwoInputNode::GetInputB() { - Lib3MFHandle hB = nullptr; + Lib3MFHandle hB = (Lib3MFHandle)nullptr; CheckError(lib3mf_twoinputnode_getinputb(m_pHandle, &hB)); if (!hB) { @@ -7849,7 +7864,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CSelectNode::GetInputB() { - Lib3MFHandle hB = nullptr; + Lib3MFHandle hB = (Lib3MFHandle)nullptr; CheckError(lib3mf_selectnode_getinputb(m_pHandle, &hB)); if (!hB) { @@ -7864,7 +7879,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CSelectNode::GetInputC() { - Lib3MFHandle hC = nullptr; + Lib3MFHandle hC = (Lib3MFHandle)nullptr; CheckError(lib3mf_selectnode_getinputc(m_pHandle, &hC)); if (!hC) { @@ -7879,7 +7894,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CSelectNode::GetInputD() { - Lib3MFHandle hD = nullptr; + Lib3MFHandle hD = (Lib3MFHandle)nullptr; CheckError(lib3mf_selectnode_getinputd(m_pHandle, &hD)); if (!hD) { @@ -7898,7 +7913,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CClampNode::GetInputMin() { - Lib3MFHandle hMin = nullptr; + Lib3MFHandle hMin = (Lib3MFHandle)nullptr; CheckError(lib3mf_clampnode_getinputmin(m_pHandle, &hMin)); if (!hMin) { @@ -7913,7 +7928,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CClampNode::GetInputMax() { - Lib3MFHandle hMax = nullptr; + Lib3MFHandle hMax = (Lib3MFHandle)nullptr; CheckError(lib3mf_clampnode_getinputmax(m_pHandle, &hMax)); if (!hMax) { @@ -7932,7 +7947,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeVectorNode::GetInputX() { - Lib3MFHandle hX = nullptr; + Lib3MFHandle hX = (Lib3MFHandle)nullptr; CheckError(lib3mf_composevectornode_getinputx(m_pHandle, &hX)); if (!hX) { @@ -7947,7 +7962,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeVectorNode::GetInputY() { - Lib3MFHandle hY = nullptr; + Lib3MFHandle hY = (Lib3MFHandle)nullptr; CheckError(lib3mf_composevectornode_getinputy(m_pHandle, &hY)); if (!hY) { @@ -7962,7 +7977,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeVectorNode::GetInputZ() { - Lib3MFHandle hZ = nullptr; + Lib3MFHandle hZ = (Lib3MFHandle)nullptr; CheckError(lib3mf_composevectornode_getinputz(m_pHandle, &hZ)); if (!hZ) { @@ -7977,7 +7992,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeVectorNode::GetOutputResult() { - Lib3MFHandle hResult = nullptr; + Lib3MFHandle hResult = (Lib3MFHandle)nullptr; CheckError(lib3mf_composevectornode_getoutputresult(m_pHandle, &hResult)); if (!hResult) { @@ -8000,7 +8015,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CDecomposeVectorNode::GetInputA() { - Lib3MFHandle hA = nullptr; + Lib3MFHandle hA = (Lib3MFHandle)nullptr; CheckError(lib3mf_decomposevectornode_getinputa(m_pHandle, &hA)); if (!hA) { @@ -8015,7 +8030,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CDecomposeVectorNode::GetOutputX() { - Lib3MFHandle hX = nullptr; + Lib3MFHandle hX = (Lib3MFHandle)nullptr; CheckError(lib3mf_decomposevectornode_getoutputx(m_pHandle, &hX)); if (!hX) { @@ -8030,7 +8045,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CDecomposeVectorNode::GetOutputY() { - Lib3MFHandle hY = nullptr; + Lib3MFHandle hY = (Lib3MFHandle)nullptr; CheckError(lib3mf_decomposevectornode_getoutputy(m_pHandle, &hY)); if (!hY) { @@ -8045,7 +8060,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CDecomposeVectorNode::GetOutputZ() { - Lib3MFHandle hZ = nullptr; + Lib3MFHandle hZ = (Lib3MFHandle)nullptr; CheckError(lib3mf_decomposevectornode_getoutputz(m_pHandle, &hZ)); if (!hZ) { @@ -8064,7 +8079,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM00() { - Lib3MFHandle hM00 = nullptr; + Lib3MFHandle hM00 = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getinputm00(m_pHandle, &hM00)); if (!hM00) { @@ -8079,7 +8094,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM01() { - Lib3MFHandle hM01 = nullptr; + Lib3MFHandle hM01 = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getinputm01(m_pHandle, &hM01)); if (!hM01) { @@ -8094,7 +8109,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM02() { - Lib3MFHandle hM02 = nullptr; + Lib3MFHandle hM02 = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getinputm02(m_pHandle, &hM02)); if (!hM02) { @@ -8109,7 +8124,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM03() { - Lib3MFHandle hM03 = nullptr; + Lib3MFHandle hM03 = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getinputm03(m_pHandle, &hM03)); if (!hM03) { @@ -8124,7 +8139,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM10() { - Lib3MFHandle hM10 = nullptr; + Lib3MFHandle hM10 = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getinputm10(m_pHandle, &hM10)); if (!hM10) { @@ -8139,7 +8154,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM11() { - Lib3MFHandle hM11 = nullptr; + Lib3MFHandle hM11 = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getinputm11(m_pHandle, &hM11)); if (!hM11) { @@ -8154,7 +8169,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM12() { - Lib3MFHandle hM12 = nullptr; + Lib3MFHandle hM12 = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getinputm12(m_pHandle, &hM12)); if (!hM12) { @@ -8169,7 +8184,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM13() { - Lib3MFHandle hM13 = nullptr; + Lib3MFHandle hM13 = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getinputm13(m_pHandle, &hM13)); if (!hM13) { @@ -8184,7 +8199,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM20() { - Lib3MFHandle hM20 = nullptr; + Lib3MFHandle hM20 = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getinputm20(m_pHandle, &hM20)); if (!hM20) { @@ -8199,7 +8214,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM21() { - Lib3MFHandle hM21 = nullptr; + Lib3MFHandle hM21 = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getinputm21(m_pHandle, &hM21)); if (!hM21) { @@ -8214,7 +8229,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM22() { - Lib3MFHandle hM22 = nullptr; + Lib3MFHandle hM22 = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getinputm22(m_pHandle, &hM22)); if (!hM22) { @@ -8229,7 +8244,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM23() { - Lib3MFHandle hM23 = nullptr; + Lib3MFHandle hM23 = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getinputm23(m_pHandle, &hM23)); if (!hM23) { @@ -8244,7 +8259,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM30() { - Lib3MFHandle hM30 = nullptr; + Lib3MFHandle hM30 = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getinputm30(m_pHandle, &hM30)); if (!hM30) { @@ -8259,7 +8274,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM31() { - Lib3MFHandle hM31 = nullptr; + Lib3MFHandle hM31 = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getinputm31(m_pHandle, &hM31)); if (!hM31) { @@ -8274,7 +8289,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM32() { - Lib3MFHandle hM32 = nullptr; + Lib3MFHandle hM32 = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getinputm32(m_pHandle, &hM32)); if (!hM32) { @@ -8289,7 +8304,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM33() { - Lib3MFHandle hM33 = nullptr; + Lib3MFHandle hM33 = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getinputm33(m_pHandle, &hM33)); if (!hM33) { @@ -8304,7 +8319,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetOutputResult() { - Lib3MFHandle hResult = nullptr; + Lib3MFHandle hResult = (Lib3MFHandle)nullptr; CheckError(lib3mf_composematrixnode_getoutputresult(m_pHandle, &hResult)); if (!hResult) { @@ -8323,7 +8338,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromRowsNode::GetInputA() { - Lib3MFHandle hRow0 = nullptr; + Lib3MFHandle hRow0 = (Lib3MFHandle)nullptr; CheckError(lib3mf_matrixfromrowsnode_getinputa(m_pHandle, &hRow0)); if (!hRow0) { @@ -8338,7 +8353,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromRowsNode::GetInputB() { - Lib3MFHandle hRow1 = nullptr; + Lib3MFHandle hRow1 = (Lib3MFHandle)nullptr; CheckError(lib3mf_matrixfromrowsnode_getinputb(m_pHandle, &hRow1)); if (!hRow1) { @@ -8353,7 +8368,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromRowsNode::GetInputC() { - Lib3MFHandle hRow2 = nullptr; + Lib3MFHandle hRow2 = (Lib3MFHandle)nullptr; CheckError(lib3mf_matrixfromrowsnode_getinputc(m_pHandle, &hRow2)); if (!hRow2) { @@ -8368,7 +8383,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromRowsNode::GetInputD() { - Lib3MFHandle hRow3 = nullptr; + Lib3MFHandle hRow3 = (Lib3MFHandle)nullptr; CheckError(lib3mf_matrixfromrowsnode_getinputd(m_pHandle, &hRow3)); if (!hRow3) { @@ -8383,7 +8398,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromRowsNode::GetOutputResult() { - Lib3MFHandle hResult = nullptr; + Lib3MFHandle hResult = (Lib3MFHandle)nullptr; CheckError(lib3mf_matrixfromrowsnode_getoutputresult(m_pHandle, &hResult)); if (!hResult) { @@ -8402,7 +8417,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromColumnsNode::GetInputA() { - Lib3MFHandle hColumn0 = nullptr; + Lib3MFHandle hColumn0 = (Lib3MFHandle)nullptr; CheckError(lib3mf_matrixfromcolumnsnode_getinputa(m_pHandle, &hColumn0)); if (!hColumn0) { @@ -8417,7 +8432,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromColumnsNode::GetInputB() { - Lib3MFHandle hColumn1 = nullptr; + Lib3MFHandle hColumn1 = (Lib3MFHandle)nullptr; CheckError(lib3mf_matrixfromcolumnsnode_getinputb(m_pHandle, &hColumn1)); if (!hColumn1) { @@ -8432,7 +8447,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromColumnsNode::GetInputC() { - Lib3MFHandle hColumn2 = nullptr; + Lib3MFHandle hColumn2 = (Lib3MFHandle)nullptr; CheckError(lib3mf_matrixfromcolumnsnode_getinputc(m_pHandle, &hColumn2)); if (!hColumn2) { @@ -8447,7 +8462,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromColumnsNode::GetInputD() { - Lib3MFHandle hColumn3 = nullptr; + Lib3MFHandle hColumn3 = (Lib3MFHandle)nullptr; CheckError(lib3mf_matrixfromcolumnsnode_getinputd(m_pHandle, &hColumn3)); if (!hColumn3) { @@ -8462,7 +8477,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromColumnsNode::GetOutputResult() { - Lib3MFHandle hResult = nullptr; + Lib3MFHandle hResult = (Lib3MFHandle)nullptr; CheckError(lib3mf_matrixfromcolumnsnode_getoutputresult(m_pHandle, &hResult)); if (!hResult) { @@ -8502,7 +8517,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CConstantNode::GetOutputValue() { - Lib3MFHandle hValue = nullptr; + Lib3MFHandle hValue = (Lib3MFHandle)nullptr; CheckError(lib3mf_constantnode_getoutputvalue(m_pHandle, &hValue)); if (!hValue) { @@ -8542,7 +8557,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CConstVecNode::GetOutputVector() { - Lib3MFHandle hVector = nullptr; + Lib3MFHandle hVector = (Lib3MFHandle)nullptr; CheckError(lib3mf_constvecnode_getoutputvector(m_pHandle, &hVector)); if (!hVector) { @@ -8582,7 +8597,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CConstMatNode::GetOutputMatrix() { - Lib3MFHandle hMatrix = nullptr; + Lib3MFHandle hMatrix = (Lib3MFHandle)nullptr; CheckError(lib3mf_constmatnode_getoutputmatrix(m_pHandle, &hMatrix)); if (!hMatrix) { @@ -8601,7 +8616,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMeshNode::GetInputMesh() { - Lib3MFHandle hMesh = nullptr; + Lib3MFHandle hMesh = (Lib3MFHandle)nullptr; CheckError(lib3mf_meshnode_getinputmesh(m_pHandle, &hMesh)); if (!hMesh) { @@ -8616,7 +8631,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMeshNode::GetInputPos() { - Lib3MFHandle hPos = nullptr; + Lib3MFHandle hPos = (Lib3MFHandle)nullptr; CheckError(lib3mf_meshnode_getinputpos(m_pHandle, &hPos)); if (!hPos) { @@ -8631,7 +8646,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMeshNode::GetOutputDistance() { - Lib3MFHandle hDistance = nullptr; + Lib3MFHandle hDistance = (Lib3MFHandle)nullptr; CheckError(lib3mf_meshnode_getoutputdistance(m_pHandle, &hDistance)); if (!hDistance) { @@ -8650,7 +8665,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CUnsignedMeshNode::GetInputMesh() { - Lib3MFHandle hMesh = nullptr; + Lib3MFHandle hMesh = (Lib3MFHandle)nullptr; CheckError(lib3mf_unsignedmeshnode_getinputmesh(m_pHandle, &hMesh)); if (!hMesh) { @@ -8665,7 +8680,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CUnsignedMeshNode::GetInputPos() { - Lib3MFHandle hPos = nullptr; + Lib3MFHandle hPos = (Lib3MFHandle)nullptr; CheckError(lib3mf_unsignedmeshnode_getinputpos(m_pHandle, &hPos)); if (!hPos) { @@ -8680,7 +8695,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CUnsignedMeshNode::GetOutputDistance() { - Lib3MFHandle hDistance = nullptr; + Lib3MFHandle hDistance = (Lib3MFHandle)nullptr; CheckError(lib3mf_unsignedmeshnode_getoutputdistance(m_pHandle, &hDistance)); if (!hDistance) { @@ -8699,7 +8714,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CFunctionCallNode::GetInputFunctionID() { - Lib3MFHandle hFunction = nullptr; + Lib3MFHandle hFunction = (Lib3MFHandle)nullptr; CheckError(lib3mf_functioncallnode_getinputfunctionid(m_pHandle, &hFunction)); if (!hFunction) { @@ -8718,7 +8733,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitNode CNodeIterator::GetCurrent() { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_nodeiterator_getcurrent(m_pHandle, &hNode)); if (!hNode) { @@ -8764,7 +8779,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CFunction::AddInput(const std::string & sIdentifier, const std::string & sDisplayName, const eImplicitPortType eType) { - Lib3MFHandle hPort = nullptr; + Lib3MFHandle hPort = (Lib3MFHandle)nullptr; CheckError(lib3mf_function_addinput(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), eType, &hPort)); if (!hPort) { @@ -8779,7 +8794,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPortIterator CFunction::GetInputs() { - Lib3MFHandle hIterator = nullptr; + Lib3MFHandle hIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_function_getinputs(m_pHandle, &hIterator)); if (!hIterator) { @@ -8807,7 +8822,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CFunction::AddOutput(const std::string & sIdentifier, const std::string & sDisplayName, const eImplicitPortType eType) { - Lib3MFHandle hPort = nullptr; + Lib3MFHandle hPort = (Lib3MFHandle)nullptr; CheckError(lib3mf_function_addoutput(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), eType, &hPort)); if (!hPort) { @@ -8822,7 +8837,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPortIterator CFunction::GetOutputs() { - Lib3MFHandle hIterator = nullptr; + Lib3MFHandle hIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_function_getoutputs(m_pHandle, &hIterator)); if (!hIterator) { @@ -8848,7 +8863,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CFunction::FindInput(const std::string & sIdentifier) { - Lib3MFHandle hInput = nullptr; + Lib3MFHandle hInput = (Lib3MFHandle)nullptr; CheckError(lib3mf_function_findinput(m_pHandle, sIdentifier.c_str(), &hInput)); if (!hInput) { @@ -8864,7 +8879,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CFunction::FindOutput(const std::string & sIdentifier) { - Lib3MFHandle hOutput = nullptr; + Lib3MFHandle hOutput = (Lib3MFHandle)nullptr; CheckError(lib3mf_function_findoutput(m_pHandle, sIdentifier.c_str(), &hOutput)); if (!hOutput) { @@ -8912,7 +8927,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitNode CImplicitFunction::AddNode(const eImplicitNodeType eNodeType, const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addnode(m_pHandle, eNodeType, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -8931,7 +8946,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSinNode CImplicitFunction::AddSinNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addsinnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -8950,7 +8965,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PCosNode CImplicitFunction::AddCosNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addcosnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -8969,7 +8984,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTanNode CImplicitFunction::AddTanNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addtannode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -8988,7 +9003,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PArcSinNode CImplicitFunction::AddArcSinNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addarcsinnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9007,7 +9022,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PArcCosNode CImplicitFunction::AddArcCosNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addarccosnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9026,7 +9041,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PArcTan2Node CImplicitFunction::AddArcTan2Node(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addarctan2node(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9045,7 +9060,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSinhNode CImplicitFunction::AddSinhNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addsinhnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9064,7 +9079,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PCoshNode CImplicitFunction::AddCoshNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addcoshnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9083,7 +9098,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTanhNode CImplicitFunction::AddTanhNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addtanhnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9102,7 +9117,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PRoundNode CImplicitFunction::AddRoundNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addroundnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9121,7 +9136,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PCeilNode CImplicitFunction::AddCeilNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addceilnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9140,7 +9155,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PFloorNode CImplicitFunction::AddFloorNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addfloornode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9159,7 +9174,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSignNode CImplicitFunction::AddSignNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addsignnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9178,7 +9193,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PFractNode CImplicitFunction::AddFractNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addfractnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9197,7 +9212,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAbsNode CImplicitFunction::AddAbsNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addabsnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9216,7 +9231,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PExpNode CImplicitFunction::AddExpNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addexpnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9235,7 +9250,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PLogNode CImplicitFunction::AddLogNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addlognode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9254,7 +9269,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PLog2Node CImplicitFunction::AddLog2Node(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addlog2node(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9273,7 +9288,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PLog10Node CImplicitFunction::AddLog10Node(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addlog10node(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9291,7 +9306,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PLengthNode CImplicitFunction::AddLengthNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addlengthnode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9310,7 +9325,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTransposeNode CImplicitFunction::AddTransposeNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addtransposenode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9328,7 +9343,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PInverseNode CImplicitFunction::AddInverseNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addinversenode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9347,7 +9362,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSqrtNode CImplicitFunction::AddSqrtNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addsqrtnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9365,7 +9380,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResourceIdNode CImplicitFunction::AddResourceIdNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addresourceidnode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9384,7 +9399,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAdditionNode CImplicitFunction::AddAdditionNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addadditionnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9403,7 +9418,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSubtractionNode CImplicitFunction::AddSubtractionNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addsubtractionnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9422,7 +9437,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMultiplicationNode CImplicitFunction::AddMultiplicationNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addmultiplicationnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9441,7 +9456,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PDivisionNode CImplicitFunction::AddDivisionNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_adddivisionnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9459,7 +9474,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PDotNode CImplicitFunction::AddDotNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_adddotnode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9477,7 +9492,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PCrossNode CImplicitFunction::AddCrossNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addcrossnode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9495,7 +9510,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMatVecMultiplicationNode CImplicitFunction::AddMatVecMultiplicationNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addmatvecmultiplicationnode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9514,7 +9529,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMinNode CImplicitFunction::AddMinNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addminnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9533,7 +9548,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMaxNode CImplicitFunction::AddMaxNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addmaxnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9552,7 +9567,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PFmodNode CImplicitFunction::AddFmodNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addfmodnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9571,7 +9586,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PPowNode CImplicitFunction::AddPowNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addpownode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9590,7 +9605,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSelectNode CImplicitFunction::AddSelectNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addselectnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9609,7 +9624,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PClampNode CImplicitFunction::AddClampNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addclampnode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9627,7 +9642,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PComposeVectorNode CImplicitFunction::AddComposeVectorNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addcomposevectornode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9645,7 +9660,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PVectorFromScalarNode CImplicitFunction::AddVectorFromScalarNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addvectorfromscalarnode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9663,7 +9678,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PDecomposeVectorNode CImplicitFunction::AddDecomposeVectorNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_adddecomposevectornode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9681,7 +9696,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PComposeMatrixNode CImplicitFunction::AddComposeMatrixNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addcomposematrixnode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9699,7 +9714,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMatrixFromRowsNode CImplicitFunction::AddMatrixFromRowsNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addmatrixfromrowsnode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9717,7 +9732,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMatrixFromColumnsNode CImplicitFunction::AddMatrixFromColumnsNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addmatrixfromcolumnsnode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9735,7 +9750,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PConstantNode CImplicitFunction::AddConstantNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addconstantnode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9753,7 +9768,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PConstVecNode CImplicitFunction::AddConstVecNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addconstvecnode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9771,7 +9786,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PConstMatNode CImplicitFunction::AddConstMatNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addconstmatnode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9789,7 +9804,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMeshNode CImplicitFunction::AddMeshNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addmeshnode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9807,7 +9822,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PUnsignedMeshNode CImplicitFunction::AddUnsignedMeshNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addunsignedmeshnode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9825,7 +9840,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PFunctionCallNode CImplicitFunction::AddFunctionCallNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_addfunctioncallnode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -9840,7 +9855,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PNodeIterator CImplicitFunction::GetNodes() { - Lib3MFHandle hIterator = nullptr; + Lib3MFHandle hIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_implicitfunction_getnodes(m_pHandle, &hIterator)); if (!hIterator) { @@ -9907,7 +9922,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImage3D CFunctionFromImage3D::GetImage3D() { - Lib3MFHandle hImage3D = nullptr; + Lib3MFHandle hImage3D = (Lib3MFHandle)nullptr; CheckError(lib3mf_functionfromimage3d_getimage3d(m_pHandle, &hImage3D)); if (!hImage3D) { @@ -10021,7 +10036,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PObject CBuildItem::GetObjectResource() { - Lib3MFHandle hObjectResource = nullptr; + Lib3MFHandle hObjectResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_builditem_getobjectresource(m_pHandle, &hObjectResource)); if (!hObjectResource) { @@ -10130,7 +10145,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMetaDataGroup CBuildItem::GetMetaDataGroup() { - Lib3MFHandle hMetaDataGroup = nullptr; + Lib3MFHandle hMetaDataGroup = (Lib3MFHandle)nullptr; CheckError(lib3mf_builditem_getmetadatagroup(m_pHandle, &hMetaDataGroup)); if (!hMetaDataGroup) { @@ -10185,7 +10200,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBuildItem CBuildItemIterator::GetCurrent() { - Lib3MFHandle hBuildItem = nullptr; + Lib3MFHandle hBuildItem = (Lib3MFHandle)nullptr; CheckError(lib3mf_builditemiterator_getcurrent(m_pHandle, &hBuildItem)); if (!hBuildItem) { @@ -10200,7 +10215,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBuildItemIterator CBuildItemIterator::Clone() { - Lib3MFHandle hOutBuildItemIterator = nullptr; + Lib3MFHandle hOutBuildItemIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_builditemiterator_clone(m_pHandle, &hOutBuildItemIterator)); if (!hOutBuildItemIterator) { @@ -10231,7 +10246,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CSlice::SetVertices(const CInputVector & VerticesBuffer) { - CheckError(lib3mf_slice_setvertices(m_pHandle, (Lib3MF_uint64)VerticesBuffer.size(), VerticesBuffer.data())); + Lib3MF_uint64 nVerticesSize = VerticesBuffer.size(); + CheckError(lib3mf_slice_setvertices(m_pHandle, nVerticesSize, VerticesBuffer.data())); } /** @@ -10266,8 +10282,9 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ Lib3MF_uint64 CSlice::AddPolygon(const CInputVector & IndicesBuffer) { + Lib3MF_uint64 nIndicesSize = IndicesBuffer.size(); Lib3MF_uint64 resultIndex = 0; - CheckError(lib3mf_slice_addpolygon(m_pHandle, (Lib3MF_uint64)IndicesBuffer.size(), IndicesBuffer.data(), &resultIndex)); + CheckError(lib3mf_slice_addpolygon(m_pHandle, nIndicesSize, IndicesBuffer.data(), &resultIndex)); return resultIndex; } @@ -10291,7 +10308,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CSlice::SetPolygonIndices(const Lib3MF_uint64 nIndex, const CInputVector & IndicesBuffer) { - CheckError(lib3mf_slice_setpolygonindices(m_pHandle, nIndex, (Lib3MF_uint64)IndicesBuffer.size(), IndicesBuffer.data())); + Lib3MF_uint64 nIndicesSize = IndicesBuffer.size(); + CheckError(lib3mf_slice_setpolygonindices(m_pHandle, nIndex, nIndicesSize, IndicesBuffer.data())); } /** @@ -10368,7 +10386,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSlice CSliceStack::GetSlice(const Lib3MF_uint64 nSliceIndex) { - Lib3MFHandle hTheSlice = nullptr; + Lib3MFHandle hTheSlice = (Lib3MFHandle)nullptr; CheckError(lib3mf_slicestack_getslice(m_pHandle, nSliceIndex, &hTheSlice)); if (!hTheSlice) { @@ -10384,7 +10402,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSlice CSliceStack::AddSlice(const Lib3MF_double dZTop) { - Lib3MFHandle hTheSlice = nullptr; + Lib3MFHandle hTheSlice = (Lib3MFHandle)nullptr; CheckError(lib3mf_slicestack_addslice(m_pHandle, dZTop, &hTheSlice)); if (!hTheSlice) { @@ -10422,7 +10440,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSliceStack CSliceStack::GetSliceStackReference(const Lib3MF_uint64 nSliceRefIndex) { - Lib3MFHandle hTheSliceStack = nullptr; + Lib3MFHandle hTheSliceStack = (Lib3MFHandle)nullptr; CheckError(lib3mf_slicestack_getslicestackreference(m_pHandle, nSliceRefIndex, &hTheSliceStack)); if (!hTheSliceStack) { @@ -10522,7 +10540,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PConsumer CAccessRight::GetConsumer() { - Lib3MFHandle hConsumer = nullptr; + Lib3MFHandle hConsumer = (Lib3MFHandle)nullptr; CheckError(lib3mf_accessright_getconsumer(m_pHandle, &hConsumer)); if (!hConsumer) { @@ -10628,7 +10646,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CContentEncryptionParams::SetAuthenticationTag(const CInputVector & ByteDataBuffer) { - CheckError(lib3mf_contentencryptionparams_setauthenticationtag(m_pHandle, (Lib3MF_uint64)ByteDataBuffer.size(), ByteDataBuffer.data())); + Lib3MF_uint64 nByteDataSize = ByteDataBuffer.size(); + CheckError(lib3mf_contentencryptionparams_setauthenticationtag(m_pHandle, nByteDataSize, ByteDataBuffer.data())); } /** @@ -10681,7 +10700,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PPackagePart CResourceData::GetPath() { - Lib3MFHandle hPath = nullptr; + Lib3MFHandle hPath = (Lib3MFHandle)nullptr; CheckError(lib3mf_resourcedata_getpath(m_pHandle, &hPath)); if (!hPath) { @@ -10757,7 +10776,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PAccessRight CResourceDataGroup::AddAccessRight(classParam pConsumer, const eWrappingAlgorithm eWrappingAlgorithm, const eMgfAlgorithm eMgfAlgorithm, const eDigestMethod eDigestMethod) { Lib3MFHandle hConsumer = pConsumer.GetHandle(); - Lib3MFHandle hTheAccessRight = nullptr; + Lib3MFHandle hTheAccessRight = (Lib3MFHandle)nullptr; CheckError(lib3mf_resourcedatagroup_addaccessright(m_pHandle, hConsumer, eWrappingAlgorithm, eMgfAlgorithm, eDigestMethod, &hTheAccessRight)); if (!hTheAccessRight) { @@ -10774,7 +10793,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PAccessRight CResourceDataGroup::FindAccessRightByConsumer(classParam pConsumer) { Lib3MFHandle hConsumer = pConsumer.GetHandle(); - Lib3MFHandle hTheAccessRight = nullptr; + Lib3MFHandle hTheAccessRight = (Lib3MFHandle)nullptr; CheckError(lib3mf_resourcedatagroup_findaccessrightbyconsumer(m_pHandle, hConsumer, &hTheAccessRight)); if (hTheAccessRight) { @@ -10807,7 +10826,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PConsumer CKeyStore::AddConsumer(const std::string & sConsumerID, const std::string & sKeyID, const std::string & sKeyValue) { - Lib3MFHandle hConsumer = nullptr; + Lib3MFHandle hConsumer = (Lib3MFHandle)nullptr; CheckError(lib3mf_keystore_addconsumer(m_pHandle, sConsumerID.c_str(), sKeyID.c_str(), sKeyValue.c_str(), &hConsumer)); if (!hConsumer) { @@ -10835,7 +10854,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PConsumer CKeyStore::GetConsumer(const Lib3MF_uint64 nConsumerIndex) { - Lib3MFHandle hConsumer = nullptr; + Lib3MFHandle hConsumer = (Lib3MFHandle)nullptr; CheckError(lib3mf_keystore_getconsumer(m_pHandle, nConsumerIndex, &hConsumer)); if (!hConsumer) { @@ -10861,7 +10880,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PConsumer CKeyStore::FindConsumer(const std::string & sConsumerID) { - Lib3MFHandle hConsumer = nullptr; + Lib3MFHandle hConsumer = (Lib3MFHandle)nullptr; CheckError(lib3mf_keystore_findconsumer(m_pHandle, sConsumerID.c_str(), &hConsumer)); if (hConsumer) { @@ -10889,7 +10908,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResourceDataGroup CKeyStore::AddResourceDataGroup() { - Lib3MFHandle hResourceDataGroup = nullptr; + Lib3MFHandle hResourceDataGroup = (Lib3MFHandle)nullptr; CheckError(lib3mf_keystore_addresourcedatagroup(m_pHandle, &hResourceDataGroup)); if (!hResourceDataGroup) { @@ -10905,7 +10924,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResourceDataGroup CKeyStore::GetResourceDataGroup(const Lib3MF_uint64 nResourceDataIndex) { - Lib3MFHandle hResourceDataGroup = nullptr; + Lib3MFHandle hResourceDataGroup = (Lib3MFHandle)nullptr; CheckError(lib3mf_keystore_getresourcedatagroup(m_pHandle, nResourceDataIndex, &hResourceDataGroup)); if (!hResourceDataGroup) { @@ -10932,7 +10951,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PResourceDataGroup CKeyStore::FindResourceDataGroup(classParam pPartPath) { Lib3MFHandle hPartPath = pPartPath.GetHandle(); - Lib3MFHandle hResourceDataGroup = nullptr; + Lib3MFHandle hResourceDataGroup = (Lib3MFHandle)nullptr; CheckError(lib3mf_keystore_findresourcedatagroup(m_pHandle, hPartPath, &hResourceDataGroup)); if (hResourceDataGroup) { @@ -10955,8 +10974,9 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) { Lib3MFHandle hResourceDataGroup = pResourceDataGroup.GetHandle(); Lib3MFHandle hPartPath = pPartPath.GetHandle(); - Lib3MFHandle hResourceData = nullptr; - CheckError(lib3mf_keystore_addresourcedata(m_pHandle, hResourceDataGroup, hPartPath, eAlgorithm, eCompression, (Lib3MF_uint64)AdditionalAuthenticationDataBuffer.size(), AdditionalAuthenticationDataBuffer.data(), &hResourceData)); + Lib3MF_uint64 nAdditionalAuthenticationDataSize = AdditionalAuthenticationDataBuffer.size(); + Lib3MFHandle hResourceData = (Lib3MFHandle)nullptr; + CheckError(lib3mf_keystore_addresourcedata(m_pHandle, hResourceDataGroup, hPartPath, eAlgorithm, eCompression, nAdditionalAuthenticationDataSize, AdditionalAuthenticationDataBuffer.data(), &hResourceData)); if (!hResourceData) { CheckError(LIB3MF_ERROR_INVALIDPARAM); @@ -10982,7 +11002,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PResourceData CKeyStore::FindResourceData(classParam pResourcePath) { Lib3MFHandle hResourcePath = pResourcePath.GetHandle(); - Lib3MFHandle hResourceData = nullptr; + Lib3MFHandle hResourceData = (Lib3MFHandle)nullptr; CheckError(lib3mf_keystore_findresourcedata(m_pHandle, hResourcePath, &hResourceData)); if (hResourceData) { @@ -11011,7 +11031,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResourceData CKeyStore::GetResourceData(const Lib3MF_uint64 nResourceDataIndex) { - Lib3MFHandle hResourceData = nullptr; + Lib3MFHandle hResourceData = (Lib3MFHandle)nullptr; CheckError(lib3mf_keystore_getresourcedata(m_pHandle, nResourceDataIndex, &hResourceData)); if (!hResourceData) { @@ -11055,7 +11075,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PPackagePart CModel::RootModelPart() { - Lib3MFHandle hRootModelPart = nullptr; + Lib3MFHandle hRootModelPart = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_rootmodelpart(m_pHandle, &hRootModelPart)); if (!hRootModelPart) { @@ -11071,7 +11091,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PPackagePart CModel::FindOrCreatePackagePart(const std::string & sAbsolutePath) { - Lib3MFHandle hModelPart = nullptr; + Lib3MFHandle hModelPart = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_findorcreatepackagepart(m_pHandle, sAbsolutePath.c_str(), &hModelPart)); if (!hModelPart) { @@ -11132,7 +11152,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PWriter CModel::QueryWriter(const std::string & sWriterClass) { - Lib3MFHandle hWriterInstance = nullptr; + Lib3MFHandle hWriterInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_querywriter(m_pHandle, sWriterClass.c_str(), &hWriterInstance)); if (!hWriterInstance) { @@ -11148,7 +11168,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PReader CModel::QueryReader(const std::string & sReaderClass) { - Lib3MFHandle hReaderInstance = nullptr; + Lib3MFHandle hReaderInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_queryreader(m_pHandle, sReaderClass.c_str(), &hReaderInstance)); if (!hReaderInstance) { @@ -11164,7 +11184,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResource CModel::GetResourceByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getresourcebyid(m_pHandle, nUniqueResourceID, &hResource)); if (!hResource) { @@ -11180,7 +11200,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTexture2D CModel::GetTexture2DByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hTextureInstance = nullptr; + Lib3MFHandle hTextureInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_gettexture2dbyid(m_pHandle, nUniqueResourceID, &hTextureInstance)); if (!hTextureInstance) { @@ -11209,7 +11229,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBaseMaterialGroup CModel::GetBaseMaterialGroupByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hBaseMaterialGroupInstance = nullptr; + Lib3MFHandle hBaseMaterialGroupInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getbasematerialgroupbyid(m_pHandle, nUniqueResourceID, &hBaseMaterialGroupInstance)); if (!hBaseMaterialGroupInstance) { @@ -11225,7 +11245,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTexture2DGroup CModel::GetTexture2DGroupByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hTexture2DGroupInstance = nullptr; + Lib3MFHandle hTexture2DGroupInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_gettexture2dgroupbyid(m_pHandle, nUniqueResourceID, &hTexture2DGroupInstance)); if (!hTexture2DGroupInstance) { @@ -11241,7 +11261,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PCompositeMaterials CModel::GetCompositeMaterialsByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hCompositeMaterialsInstance = nullptr; + Lib3MFHandle hCompositeMaterialsInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getcompositematerialsbyid(m_pHandle, nUniqueResourceID, &hCompositeMaterialsInstance)); if (!hCompositeMaterialsInstance) { @@ -11257,7 +11277,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMultiPropertyGroup CModel::GetMultiPropertyGroupByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hMultiPropertyGroupInstance = nullptr; + Lib3MFHandle hMultiPropertyGroupInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getmultipropertygroupbyid(m_pHandle, nUniqueResourceID, &hMultiPropertyGroupInstance)); if (!hMultiPropertyGroupInstance) { @@ -11273,7 +11293,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMeshObject CModel::GetMeshObjectByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hMeshObjectInstance = nullptr; + Lib3MFHandle hMeshObjectInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getmeshobjectbyid(m_pHandle, nUniqueResourceID, &hMeshObjectInstance)); if (!hMeshObjectInstance) { @@ -11289,7 +11309,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PComponentsObject CModel::GetComponentsObjectByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hComponentsObjectInstance = nullptr; + Lib3MFHandle hComponentsObjectInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getcomponentsobjectbyid(m_pHandle, nUniqueResourceID, &hComponentsObjectInstance)); if (!hComponentsObjectInstance) { @@ -11305,7 +11325,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PColorGroup CModel::GetColorGroupByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hColorGroupInstance = nullptr; + Lib3MFHandle hColorGroupInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getcolorgroupbyid(m_pHandle, nUniqueResourceID, &hColorGroupInstance)); if (!hColorGroupInstance) { @@ -11321,7 +11341,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSliceStack CModel::GetSliceStackByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hSliceStacInstance = nullptr; + Lib3MFHandle hSliceStacInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getslicestackbyid(m_pHandle, nUniqueResourceID, &hSliceStacInstance)); if (!hSliceStacInstance) { @@ -11337,7 +11357,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PLevelSet CModel::GetLevelSetByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hLevelSetObjectInstance = nullptr; + Lib3MFHandle hLevelSetObjectInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getlevelsetbyid(m_pHandle, nUniqueResourceID, &hLevelSetObjectInstance)); if (!hLevelSetObjectInstance) { @@ -11377,7 +11397,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBuildItemIterator CModel::GetBuildItems() { - Lib3MFHandle hBuildItemIterator = nullptr; + Lib3MFHandle hBuildItemIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getbuilditems(m_pHandle, &hBuildItemIterator)); if (!hBuildItemIterator) { @@ -11404,7 +11424,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResourceIterator CModel::GetResources() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getresources(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -11419,7 +11439,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PObjectIterator CModel::GetObjects() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getobjects(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -11434,7 +11454,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMeshObjectIterator CModel::GetMeshObjects() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getmeshobjects(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -11449,7 +11469,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PComponentsObjectIterator CModel::GetComponentsObjects() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getcomponentsobjects(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -11464,7 +11484,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTexture2DIterator CModel::GetTexture2Ds() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_gettexture2ds(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -11479,7 +11499,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBaseMaterialGroupIterator CModel::GetBaseMaterialGroups() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getbasematerialgroups(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -11494,7 +11514,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PColorGroupIterator CModel::GetColorGroups() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getcolorgroups(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -11509,7 +11529,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTexture2DGroupIterator CModel::GetTexture2DGroups() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_gettexture2dgroups(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -11524,7 +11544,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PCompositeMaterialsIterator CModel::GetCompositeMaterials() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getcompositematerials(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -11539,7 +11559,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMultiPropertyGroupIterator CModel::GetMultiPropertyGroups() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getmultipropertygroups(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -11554,7 +11574,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSliceStackIterator CModel::GetSliceStacks() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getslicestacks(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -11569,7 +11589,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImage3DIterator CModel::GetImage3Ds() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getimage3ds(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -11584,7 +11604,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PModel CModel::MergeToModel() { - Lib3MFHandle hMergedModelInstance = nullptr; + Lib3MFHandle hMergedModelInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_mergetomodel(m_pHandle, &hMergedModelInstance)); if (!hMergedModelInstance) { @@ -11609,7 +11629,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMeshObject CModel::AddMeshObject() { - Lib3MFHandle hMeshObjectInstance = nullptr; + Lib3MFHandle hMeshObjectInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_addmeshobject(m_pHandle, &hMeshObjectInstance)); if (!hMeshObjectInstance) { @@ -11624,7 +11644,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PComponentsObject CModel::AddComponentsObject() { - Lib3MFHandle hComponentsObjectInstance = nullptr; + Lib3MFHandle hComponentsObjectInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_addcomponentsobject(m_pHandle, &hComponentsObjectInstance)); if (!hComponentsObjectInstance) { @@ -11640,7 +11660,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSliceStack CModel::AddSliceStack(const Lib3MF_double dZBottom) { - Lib3MFHandle hSliceStackInstance = nullptr; + Lib3MFHandle hSliceStackInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_addslicestack(m_pHandle, dZBottom, &hSliceStackInstance)); if (!hSliceStackInstance) { @@ -11657,7 +11677,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PTexture2D CModel::AddTexture2DFromAttachment(classParam pTextureAttachment) { Lib3MFHandle hTextureAttachment = pTextureAttachment.GetHandle(); - Lib3MFHandle hTexture2DInstance = nullptr; + Lib3MFHandle hTexture2DInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_addtexture2dfromattachment(m_pHandle, hTextureAttachment, &hTexture2DInstance)); if (!hTexture2DInstance) { @@ -11672,7 +11692,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBaseMaterialGroup CModel::AddBaseMaterialGroup() { - Lib3MFHandle hBaseMaterialGroupInstance = nullptr; + Lib3MFHandle hBaseMaterialGroupInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_addbasematerialgroup(m_pHandle, &hBaseMaterialGroupInstance)); if (!hBaseMaterialGroupInstance) { @@ -11687,7 +11707,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PColorGroup CModel::AddColorGroup() { - Lib3MFHandle hColorGroupInstance = nullptr; + Lib3MFHandle hColorGroupInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_addcolorgroup(m_pHandle, &hColorGroupInstance)); if (!hColorGroupInstance) { @@ -11704,7 +11724,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PTexture2DGroup CModel::AddTexture2DGroup(classParam pTexture2DInstance) { Lib3MFHandle hTexture2DInstance = pTexture2DInstance.GetHandle(); - Lib3MFHandle hTexture2DGroupInstance = nullptr; + Lib3MFHandle hTexture2DGroupInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_addtexture2dgroup(m_pHandle, hTexture2DInstance, &hTexture2DGroupInstance)); if (!hTexture2DGroupInstance) { @@ -11721,7 +11741,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PCompositeMaterials CModel::AddCompositeMaterials(classParam pBaseMaterialGroupInstance) { Lib3MFHandle hBaseMaterialGroupInstance = pBaseMaterialGroupInstance.GetHandle(); - Lib3MFHandle hCompositeMaterialsInstance = nullptr; + Lib3MFHandle hCompositeMaterialsInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_addcompositematerials(m_pHandle, hBaseMaterialGroupInstance, &hCompositeMaterialsInstance)); if (!hCompositeMaterialsInstance) { @@ -11736,7 +11756,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMultiPropertyGroup CModel::AddMultiPropertyGroup() { - Lib3MFHandle hMultiPropertyGroupInstance = nullptr; + Lib3MFHandle hMultiPropertyGroupInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_addmultipropertygroup(m_pHandle, &hMultiPropertyGroupInstance)); if (!hMultiPropertyGroupInstance) { @@ -11754,7 +11774,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImageStack CModel::AddImageStack(const Lib3MF_uint32 nColumnCount, const Lib3MF_uint32 nRowCount, const Lib3MF_uint32 nSheetCount) { - Lib3MFHandle hInstance = nullptr; + Lib3MFHandle hInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_addimagestack(m_pHandle, nColumnCount, nRowCount, nSheetCount, &hInstance)); if (!hInstance) { @@ -11770,7 +11790,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImageStack CModel::GetImageStackByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hImageStackInstance = nullptr; + Lib3MFHandle hImageStackInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getimagestackbyid(m_pHandle, nUniqueResourceID, &hImageStackInstance)); if (!hImageStackInstance) { @@ -11788,7 +11808,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PBuildItem CModel::AddBuildItem(classParam pObject, const sTransform & Transform) { Lib3MFHandle hObject = pObject.GetHandle(); - Lib3MFHandle hBuildItemInstance = nullptr; + Lib3MFHandle hBuildItemInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_addbuilditem(m_pHandle, hObject, &Transform, &hBuildItemInstance)); if (!hBuildItemInstance) { @@ -11813,7 +11833,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMetaDataGroup CModel::GetMetaDataGroup() { - Lib3MFHandle hTheMetaDataGroup = nullptr; + Lib3MFHandle hTheMetaDataGroup = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getmetadatagroup(m_pHandle, &hTheMetaDataGroup)); if (!hTheMetaDataGroup) { @@ -11830,7 +11850,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CModel::AddAttachment(const std::string & sURI, const std::string & sRelationShipType) { - Lib3MFHandle hAttachmentInstance = nullptr; + Lib3MFHandle hAttachmentInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_addattachment(m_pHandle, sURI.c_str(), sRelationShipType.c_str(), &hAttachmentInstance)); if (!hAttachmentInstance) { @@ -11856,7 +11876,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CModel::GetAttachment(const Lib3MF_uint32 nIndex) { - Lib3MFHandle hAttachmentInstance = nullptr; + Lib3MFHandle hAttachmentInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getattachment(m_pHandle, nIndex, &hAttachmentInstance)); if (!hAttachmentInstance) { @@ -11872,7 +11892,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CModel::FindAttachment(const std::string & sURI) { - Lib3MFHandle hAttachmentInstance = nullptr; + Lib3MFHandle hAttachmentInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_findattachment(m_pHandle, sURI.c_str(), &hAttachmentInstance)); if (!hAttachmentInstance) { @@ -11911,7 +11931,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CModel::CreatePackageThumbnailAttachment() { - Lib3MFHandle hAttachment = nullptr; + Lib3MFHandle hAttachment = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_createpackagethumbnailattachment(m_pHandle, &hAttachment)); if (!hAttachment) { @@ -11926,7 +11946,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CModel::GetPackageThumbnailAttachment() { - Lib3MFHandle hAttachment = nullptr; + Lib3MFHandle hAttachment = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getpackagethumbnailattachment(m_pHandle, &hAttachment)); if (hAttachment) { @@ -11979,7 +11999,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PKeyStore CModel::GetKeyStore() { - Lib3MFHandle hKeyStore = nullptr; + Lib3MFHandle hKeyStore = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getkeystore(m_pHandle, &hKeyStore)); if (!hKeyStore) { @@ -11994,7 +12014,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PFunctionIterator CModel::GetFunctions() { - Lib3MFHandle hTheResourceIterator = nullptr; + Lib3MFHandle hTheResourceIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getfunctions(m_pHandle, &hTheResourceIterator)); if (!hTheResourceIterator) { @@ -12009,7 +12029,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitFunction CModel::AddImplicitFunction() { - Lib3MFHandle hFunctionInstance = nullptr; + Lib3MFHandle hFunctionInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_addimplicitfunction(m_pHandle, &hFunctionInstance)); if (!hFunctionInstance) { @@ -12026,7 +12046,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PFunctionFromImage3D CModel::AddFunctionFromImage3D(classParam pImage3DInstance) { Lib3MFHandle hImage3DInstance = pImage3DInstance.GetHandle(); - Lib3MFHandle hFunctionInstance = nullptr; + Lib3MFHandle hFunctionInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_addfunctionfromimage3d(m_pHandle, hImage3DInstance, &hFunctionInstance)); if (!hFunctionInstance) { @@ -12041,7 +12061,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PVolumeData CModel::AddVolumeData() { - Lib3MFHandle hVolumeDataInstance = nullptr; + Lib3MFHandle hVolumeDataInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_addvolumedata(m_pHandle, &hVolumeDataInstance)); if (!hVolumeDataInstance) { @@ -12056,7 +12076,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PLevelSet CModel::AddLevelSet() { - Lib3MFHandle hLevelSetInstance = nullptr; + Lib3MFHandle hLevelSetInstance = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_addlevelset(m_pHandle, &hLevelSetInstance)); if (!hLevelSetInstance) { @@ -12071,7 +12091,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PLevelSetIterator CModel::GetLevelSets() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(lib3mf_model_getlevelsets(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { diff --git a/Autogenerated/Bindings/CppDynamic/lib3mf_dynamic.hpp b/Autogenerated/Bindings/CppDynamic/lib3mf_dynamic.hpp index 9beb11a1..ce245d95 100644 --- a/Autogenerated/Bindings/CppDynamic/lib3mf_dynamic.hpp +++ b/Autogenerated/Bindings/CppDynamic/lib3mf_dynamic.hpp @@ -540,16 +540,17 @@ typedef PModel PLib3MFModel; template class classParam { private: + std::shared_ptr m_sharedPtr; const T* m_ptr; public: classParam(const T* ptr) - : m_ptr (ptr) + : m_ptr(ptr) { } classParam(std::shared_ptr sharedPtr) - : m_ptr (sharedPtr.get()) + : m_sharedPtr(sharedPtr), m_ptr(sharedPtr.get()) { } @@ -557,10 +558,11 @@ template class classParam { { if (m_ptr != nullptr) return m_ptr->handle(); - return nullptr; + return (Lib3MFHandle)nullptr; } }; + /************************************************************************************************************************* Class ELib3MFException **************************************************************************************************************************/ @@ -3630,7 +3632,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ inline PModel CWrapper::CreateModel() { - Lib3MFHandle hModel = nullptr; + Lib3MFHandle hModel = (Lib3MFHandle)nullptr; CheckError(nullptr,m_WrapperTable.m_CreateModel(&hModel)); if (!hModel) { @@ -3827,7 +3829,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) return resultTransform; } - + inline void CWrapper::CheckError(CBase * pBaseClass, Lib3MFResult nResult) { if (nResult != 0) { @@ -4451,7 +4453,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) return LIB3MF_SUCCESS; } - + inline Lib3MFResult CWrapper::releaseWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable) { if (pWrapperTable == nullptr) @@ -4469,7 +4471,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) return LIB3MF_SUCCESS; } - + inline Lib3MFResult CWrapper::loadWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable, const char * pLibraryFileName) { if (pWrapperTable == nullptr) @@ -9919,9 +9921,9 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) pWrapperTable->m_LibraryHandle = hLibrary; return LIB3MF_SUCCESS; } - + inline Lib3MFResult CWrapper::loadWrapperTableFromSymbolLookupMethod(sLib3MFDynamicWrapperTable * pWrapperTable, void* pSymbolLookupMethod) -{ + { if (pWrapperTable == nullptr) return LIB3MF_ERROR_INVALIDPARAM; if (pSymbolLookupMethod == nullptr) @@ -12341,8 +12343,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; return LIB3MF_SUCCESS; -} - + } /** @@ -12531,7 +12532,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CReader::ReadFromBuffer(const CInputVector & BufferBuffer) { - CheckError(m_pWrapper->m_WrapperTable.m_Reader_ReadFromBuffer(m_pHandle, (Lib3MF_uint64)BufferBuffer.size(), BufferBuffer.data())); + Lib3MF_uint64 nBufferSize = BufferBuffer.size(); + CheckError(m_pWrapper->m_WrapperTable.m_Reader_ReadFromBuffer(m_pHandle, nBufferSize, BufferBuffer.data())); } /** @@ -12707,7 +12709,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PPackagePart CResource::PackagePart() { - Lib3MFHandle hPackagePart = nullptr; + Lib3MFHandle hPackagePart = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Resource_PackagePart(m_pHandle, &hPackagePart)); if (!hPackagePart) { @@ -12772,7 +12774,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResource CResourceIterator::GetCurrent() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ResourceIterator_GetCurrent(m_pHandle, &hResource)); if (!hResource) { @@ -12787,7 +12789,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResourceIterator CResourceIterator::Clone() { - Lib3MFHandle hOutResourceIterator = nullptr; + Lib3MFHandle hOutResourceIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ResourceIterator_Clone(m_pHandle, &hOutResourceIterator)); if (!hOutResourceIterator) { @@ -12818,7 +12820,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSliceStack CSliceStackIterator::GetCurrentSliceStack() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_SliceStackIterator_GetCurrentSliceStack(m_pHandle, &hResource)); if (!hResource) { @@ -12837,7 +12839,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PObject CObjectIterator::GetCurrentObject() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ObjectIterator_GetCurrentObject(m_pHandle, &hResource)); if (!hResource) { @@ -12856,7 +12858,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMeshObject CMeshObjectIterator::GetCurrentMeshObject() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MeshObjectIterator_GetCurrentMeshObject(m_pHandle, &hResource)); if (!hResource) { @@ -12875,7 +12877,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PComponentsObject CComponentsObjectIterator::GetCurrentComponentsObject() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComponentsObjectIterator_GetCurrentComponentsObject(m_pHandle, &hResource)); if (!hResource) { @@ -12894,7 +12896,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTexture2D CTexture2DIterator::GetCurrentTexture2D() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Texture2DIterator_GetCurrentTexture2D(m_pHandle, &hResource)); if (!hResource) { @@ -12913,7 +12915,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBaseMaterialGroup CBaseMaterialGroupIterator::GetCurrentBaseMaterialGroup() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_BaseMaterialGroupIterator_GetCurrentBaseMaterialGroup(m_pHandle, &hResource)); if (!hResource) { @@ -12932,7 +12934,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PColorGroup CColorGroupIterator::GetCurrentColorGroup() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ColorGroupIterator_GetCurrentColorGroup(m_pHandle, &hResource)); if (!hResource) { @@ -12951,7 +12953,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTexture2DGroup CTexture2DGroupIterator::GetCurrentTexture2DGroup() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Texture2DGroupIterator_GetCurrentTexture2DGroup(m_pHandle, &hResource)); if (!hResource) { @@ -12970,7 +12972,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PCompositeMaterials CCompositeMaterialsIterator::GetCurrentCompositeMaterials() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_CompositeMaterialsIterator_GetCurrentCompositeMaterials(m_pHandle, &hResource)); if (!hResource) { @@ -12989,7 +12991,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMultiPropertyGroup CMultiPropertyGroupIterator::GetCurrentMultiPropertyGroup() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MultiPropertyGroupIterator_GetCurrentMultiPropertyGroup(m_pHandle, &hResource)); if (!hResource) { @@ -13008,7 +13010,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImage3D CImage3DIterator::GetCurrentImage3D() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Image3DIterator_GetCurrentImage3D(m_pHandle, &hResource)); if (!hResource) { @@ -13027,7 +13029,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PFunction CFunctionIterator::GetCurrentFunction() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_FunctionIterator_GetCurrentFunction(m_pHandle, &hResource)); if (!hResource) { @@ -13046,7 +13048,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PLevelSet CLevelSetIterator::GetCurrentLevelSet() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_LevelSetIterator_GetCurrentLevelSet(m_pHandle, &hResource)); if (!hResource) { @@ -13214,7 +13216,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMetaData CMetaDataGroup::GetMetaData(const Lib3MF_uint32 nIndex) { - Lib3MFHandle hMetaData = nullptr; + Lib3MFHandle hMetaData = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MetaDataGroup_GetMetaData(m_pHandle, nIndex, &hMetaData)); if (!hMetaData) { @@ -13231,7 +13233,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMetaData CMetaDataGroup::GetMetaDataByKey(const std::string & sNameSpace, const std::string & sName) { - Lib3MFHandle hMetaData = nullptr; + Lib3MFHandle hMetaData = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MetaDataGroup_GetMetaDataByKey(m_pHandle, sNameSpace.c_str(), sName.c_str(), &hMetaData)); if (!hMetaData) { @@ -13270,7 +13272,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMetaData CMetaDataGroup::AddMetaData(const std::string & sNameSpace, const std::string & sName, const std::string & sValue, const std::string & sType, const bool bMustPreserve) { - Lib3MFHandle hMetaData = nullptr; + Lib3MFHandle hMetaData = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MetaDataGroup_AddMetaData(m_pHandle, sNameSpace.c_str(), sName.c_str(), sValue.c_str(), sType.c_str(), bMustPreserve, &hMetaData)); if (!hMetaData) { @@ -13416,7 +13418,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CObject::GetThumbnailAttachment() { - Lib3MFHandle hAttachment = nullptr; + Lib3MFHandle hAttachment = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Object_GetThumbnailAttachment(m_pHandle, &hAttachment)); if (hAttachment) { @@ -13477,7 +13479,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMetaDataGroup CObject::GetMetaDataGroup() { - Lib3MFHandle hMetaDataGroup = nullptr; + Lib3MFHandle hMetaDataGroup = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Object_GetMetaDataGroup(m_pHandle, &hMetaDataGroup)); if (!hMetaDataGroup) { @@ -13534,7 +13536,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSliceStack CObject::GetSliceStack() { - Lib3MFHandle hSliceStackInstance = nullptr; + Lib3MFHandle hSliceStackInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Object_GetSliceStack(m_pHandle, &hSliceStackInstance)); if (!hSliceStackInstance) { @@ -13729,7 +13731,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CMeshObject::SetAllTriangleProperties(const CInputVector & PropertiesArrayBuffer) { - CheckError(m_pWrapper->m_WrapperTable.m_MeshObject_SetAllTriangleProperties(m_pHandle, (Lib3MF_uint64)PropertiesArrayBuffer.size(), PropertiesArrayBuffer.data())); + Lib3MF_uint64 nPropertiesArraySize = PropertiesArrayBuffer.size(); + CheckError(m_pWrapper->m_WrapperTable.m_MeshObject_SetAllTriangleProperties(m_pHandle, nPropertiesArraySize, PropertiesArrayBuffer.data())); } /** @@ -13760,7 +13763,9 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CMeshObject::SetGeometry(const CInputVector & VerticesBuffer, const CInputVector & IndicesBuffer) { - CheckError(m_pWrapper->m_WrapperTable.m_MeshObject_SetGeometry(m_pHandle, (Lib3MF_uint64)VerticesBuffer.size(), VerticesBuffer.data(), (Lib3MF_uint64)IndicesBuffer.size(), IndicesBuffer.data())); + Lib3MF_uint64 nVerticesSize = VerticesBuffer.size(); + Lib3MF_uint64 nIndicesSize = IndicesBuffer.size(); + CheckError(m_pWrapper->m_WrapperTable.m_MeshObject_SetGeometry(m_pHandle, nVerticesSize, VerticesBuffer.data(), nIndicesSize, IndicesBuffer.data())); } /** @@ -13781,7 +13786,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBeamLattice CMeshObject::BeamLattice() { - Lib3MFHandle hTheBeamLattice = nullptr; + Lib3MFHandle hTheBeamLattice = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MeshObject_BeamLattice(m_pHandle, &hTheBeamLattice)); if (!hTheBeamLattice) { @@ -13796,7 +13801,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PVolumeData CMeshObject::GetVolumeData() { - Lib3MFHandle hTheVolumeData = nullptr; + Lib3MFHandle hTheVolumeData = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MeshObject_GetVolumeData(m_pHandle, &hTheVolumeData)); if (hTheVolumeData) { @@ -13826,7 +13831,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PFunction CLevelSet::GetFunction() { - Lib3MFHandle hTheFunction = nullptr; + Lib3MFHandle hTheFunction = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_GetFunction(m_pHandle, &hTheFunction)); if (hTheFunction) { @@ -13970,7 +13975,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMeshObject CLevelSet::GetMesh() { - Lib3MFHandle hTheMesh = nullptr; + Lib3MFHandle hTheMesh = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_GetMesh(m_pHandle, &hTheMesh)); if (hTheMesh) { @@ -13986,7 +13991,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PVolumeData CLevelSet::GetVolumeData() { - Lib3MFHandle hTheVolumeData = nullptr; + Lib3MFHandle hTheVolumeData = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_GetVolumeData(m_pHandle, &hTheVolumeData)); if (hTheVolumeData) { @@ -14147,7 +14152,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CBeamLattice::SetBeams(const CInputVector & BeamInfoBuffer) { - CheckError(m_pWrapper->m_WrapperTable.m_BeamLattice_SetBeams(m_pHandle, (Lib3MF_uint64)BeamInfoBuffer.size(), BeamInfoBuffer.data())); + Lib3MF_uint64 nBeamInfoSize = BeamInfoBuffer.size(); + CheckError(m_pWrapper->m_WrapperTable.m_BeamLattice_SetBeams(m_pHandle, nBeamInfoSize, BeamInfoBuffer.data())); } /** @@ -14217,7 +14223,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CBeamLattice::SetBalls(const CInputVector & BallInfoBuffer) { - CheckError(m_pWrapper->m_WrapperTable.m_BeamLattice_SetBalls(m_pHandle, (Lib3MF_uint64)BallInfoBuffer.size(), BallInfoBuffer.data())); + Lib3MF_uint64 nBallInfoSize = BallInfoBuffer.size(); + CheckError(m_pWrapper->m_WrapperTable.m_BeamLattice_SetBalls(m_pHandle, nBallInfoSize, BallInfoBuffer.data())); } /** @@ -14251,7 +14258,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBeamSet CBeamLattice::AddBeamSet() { - Lib3MFHandle hBeamSet = nullptr; + Lib3MFHandle hBeamSet = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_BeamLattice_AddBeamSet(m_pHandle, &hBeamSet)); if (!hBeamSet) { @@ -14267,7 +14274,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBeamSet CBeamLattice::GetBeamSet(const Lib3MF_uint32 nIndex) { - Lib3MFHandle hBeamSet = nullptr; + Lib3MFHandle hBeamSet = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_BeamLattice_GetBeamSet(m_pHandle, nIndex, &hBeamSet)); if (!hBeamSet) { @@ -14406,7 +14413,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBaseMaterialGroup CVolumeDataComposite::GetBaseMaterialGroup() { - Lib3MFHandle hBaseMaterialGroupInstance = nullptr; + Lib3MFHandle hBaseMaterialGroupInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_VolumeDataComposite_GetBaseMaterialGroup(m_pHandle, &hBaseMaterialGroupInstance)); if (!hBaseMaterialGroupInstance) { @@ -14444,7 +14451,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMaterialMapping CVolumeDataComposite::GetMaterialMapping(const Lib3MF_uint32 nIndex) { - Lib3MFHandle hTheMaterialMapping = nullptr; + Lib3MFHandle hTheMaterialMapping = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_VolumeDataComposite_GetMaterialMapping(m_pHandle, nIndex, &hTheMaterialMapping)); if (!hTheMaterialMapping) { @@ -14460,7 +14467,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMaterialMapping CVolumeDataComposite::AddMaterialMapping(const sTransform & Transform) { - Lib3MFHandle hTheMaterialMapping = nullptr; + Lib3MFHandle hTheMaterialMapping = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_VolumeDataComposite_AddMaterialMapping(m_pHandle, &Transform, &hTheMaterialMapping)); if (!hTheMaterialMapping) { @@ -14528,7 +14535,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PVolumeDataComposite CVolumeData::GetComposite() { - Lib3MFHandle hTheCompositeData = nullptr; + Lib3MFHandle hTheCompositeData = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_VolumeData_GetComposite(m_pHandle, &hTheCompositeData)); if (hTheCompositeData) { @@ -14544,7 +14551,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PVolumeDataComposite CVolumeData::CreateNewComposite() { - Lib3MFHandle hTheCompositeData = nullptr; + Lib3MFHandle hTheCompositeData = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_VolumeData_CreateNewComposite(m_pHandle, &hTheCompositeData)); if (!hTheCompositeData) { @@ -14567,7 +14574,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PVolumeDataColor CVolumeData::GetColor() { - Lib3MFHandle hTheColorData = nullptr; + Lib3MFHandle hTheColorData = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_VolumeData_GetColor(m_pHandle, &hTheColorData)); if (hTheColorData) { @@ -14585,7 +14592,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PVolumeDataColor CVolumeData::CreateNewColor(classParam pTheFunction) { Lib3MFHandle hTheFunction = pTheFunction.GetHandle(); - Lib3MFHandle hTheColorData = nullptr; + Lib3MFHandle hTheColorData = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_VolumeData_CreateNewColor(m_pHandle, hTheFunction, &hTheColorData)); if (!hTheColorData) { @@ -14621,7 +14628,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PVolumeDataProperty CVolumeData::GetProperty(const Lib3MF_uint32 nIndex) { - Lib3MFHandle hTheVolumeDataProperty = nullptr; + Lib3MFHandle hTheVolumeDataProperty = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_VolumeData_GetProperty(m_pHandle, nIndex, &hTheVolumeDataProperty)); if (!hTheVolumeDataProperty) { @@ -14639,7 +14646,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PVolumeDataProperty CVolumeData::AddPropertyFromFunction(const std::string & sName, classParam pTheFunction) { Lib3MFHandle hTheFunction = pTheFunction.GetHandle(); - Lib3MFHandle hTheVolumeDataProperty = nullptr; + Lib3MFHandle hTheVolumeDataProperty = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_VolumeData_AddPropertyFromFunction(m_pHandle, sName.c_str(), hTheFunction, &hTheVolumeDataProperty)); if (!hTheVolumeDataProperty) { @@ -14667,7 +14674,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PObject CComponent::GetObjectResource() { - Lib3MFHandle hObjectResource = nullptr; + Lib3MFHandle hObjectResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Component_GetObjectResource(m_pHandle, &hObjectResource)); if (!hObjectResource) { @@ -14759,7 +14766,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PComponent CComponentsObject::AddComponent(classParam pObjectResource, const sTransform & Transform) { Lib3MFHandle hObjectResource = pObjectResource.GetHandle(); - Lib3MFHandle hComponentInstance = nullptr; + Lib3MFHandle hComponentInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComponentsObject_AddComponent(m_pHandle, hObjectResource, &Transform, &hComponentInstance)); if (!hComponentInstance) { @@ -14775,7 +14782,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PComponent CComponentsObject::GetComponent(const Lib3MF_uint32 nIndex) { - Lib3MFHandle hComponentInstance = nullptr; + Lib3MFHandle hComponentInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComponentsObject_GetComponent(m_pHandle, nIndex, &hComponentInstance)); if (!hComponentInstance) { @@ -14866,7 +14873,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CBeamSet::SetReferences(const CInputVector & ReferencesBuffer) { - CheckError(m_pWrapper->m_WrapperTable.m_BeamSet_SetReferences(m_pHandle, (Lib3MF_uint64)ReferencesBuffer.size(), ReferencesBuffer.data())); + Lib3MF_uint64 nReferencesSize = ReferencesBuffer.size(); + CheckError(m_pWrapper->m_WrapperTable.m_BeamSet_SetReferences(m_pHandle, nReferencesSize, ReferencesBuffer.data())); } /** @@ -14900,7 +14908,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CBeamSet::SetBallReferences(const CInputVector & BallReferencesBuffer) { - CheckError(m_pWrapper->m_WrapperTable.m_BeamSet_SetBallReferences(m_pHandle, (Lib3MF_uint64)BallReferencesBuffer.size(), BallReferencesBuffer.data())); + Lib3MF_uint64 nBallReferencesSize = BallReferencesBuffer.size(); + CheckError(m_pWrapper->m_WrapperTable.m_BeamSet_SetBallReferences(m_pHandle, nBallReferencesSize, BallReferencesBuffer.data())); } /** @@ -15161,7 +15170,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTexture2D CTexture2DGroup::GetTexture2D() { - Lib3MFHandle hTexture2DInstance = nullptr; + Lib3MFHandle hTexture2DInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Texture2DGroup_GetTexture2D(m_pHandle, &hTexture2DInstance)); if (!hTexture2DInstance) { @@ -15205,7 +15214,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBaseMaterialGroup CCompositeMaterials::GetBaseMaterialGroup() { - Lib3MFHandle hBaseMaterialGroupInstance = nullptr; + Lib3MFHandle hBaseMaterialGroupInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_CompositeMaterials_GetBaseMaterialGroup(m_pHandle, &hBaseMaterialGroupInstance)); if (!hBaseMaterialGroupInstance) { @@ -15221,8 +15230,9 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ Lib3MF_uint32 CCompositeMaterials::AddComposite(const CInputVector & CompositeBuffer) { + Lib3MF_uint64 nCompositeSize = CompositeBuffer.size(); Lib3MF_uint32 resultPropertyID = 0; - CheckError(m_pWrapper->m_WrapperTable.m_CompositeMaterials_AddComposite(m_pHandle, (Lib3MF_uint64)CompositeBuffer.size(), CompositeBuffer.data(), &resultPropertyID)); + CheckError(m_pWrapper->m_WrapperTable.m_CompositeMaterials_AddComposite(m_pHandle, nCompositeSize, CompositeBuffer.data(), &resultPropertyID)); return resultPropertyID; } @@ -15286,8 +15296,9 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ Lib3MF_uint32 CMultiPropertyGroup::AddMultiProperty(const CInputVector & PropertyIDsBuffer) { + Lib3MF_uint64 nPropertyIDsSize = PropertyIDsBuffer.size(); Lib3MF_uint32 resultPropertyID = 0; - CheckError(m_pWrapper->m_WrapperTable.m_MultiPropertyGroup_AddMultiProperty(m_pHandle, (Lib3MF_uint64)PropertyIDsBuffer.size(), PropertyIDsBuffer.data(), &resultPropertyID)); + CheckError(m_pWrapper->m_WrapperTable.m_MultiPropertyGroup_AddMultiProperty(m_pHandle, nPropertyIDsSize, PropertyIDsBuffer.data(), &resultPropertyID)); return resultPropertyID; } @@ -15299,7 +15310,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CMultiPropertyGroup::SetMultiProperty(const Lib3MF_uint32 nPropertyID, const CInputVector & PropertyIDsBuffer) { - CheckError(m_pWrapper->m_WrapperTable.m_MultiPropertyGroup_SetMultiProperty(m_pHandle, nPropertyID, (Lib3MF_uint64)PropertyIDsBuffer.size(), PropertyIDsBuffer.data())); + Lib3MF_uint64 nPropertyIDsSize = PropertyIDsBuffer.size(); + CheckError(m_pWrapper->m_WrapperTable.m_MultiPropertyGroup_SetMultiProperty(m_pHandle, nPropertyID, nPropertyIDsSize, PropertyIDsBuffer.data())); } /** @@ -15477,7 +15489,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CImageStack::GetSheet(const Lib3MF_uint32 nIndex) { - Lib3MFHandle hSheet = nullptr; + Lib3MFHandle hSheet = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImageStack_GetSheet(m_pHandle, nIndex, &hSheet)); if (!hSheet) { @@ -15505,7 +15517,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CImageStack::CreateEmptySheet(const Lib3MF_uint32 nIndex, const std::string & sPath) { - Lib3MFHandle hSheet = nullptr; + Lib3MFHandle hSheet = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImageStack_CreateEmptySheet(m_pHandle, nIndex, sPath.c_str(), &hSheet)); if (!hSheet) { @@ -15523,8 +15535,9 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CImageStack::CreateSheetFromBuffer(const Lib3MF_uint32 nIndex, const std::string & sPath, const CInputVector & DataBuffer) { - Lib3MFHandle hSheet = nullptr; - CheckError(m_pWrapper->m_WrapperTable.m_ImageStack_CreateSheetFromBuffer(m_pHandle, nIndex, sPath.c_str(), (Lib3MF_uint64)DataBuffer.size(), DataBuffer.data(), &hSheet)); + Lib3MF_uint64 nDataSize = DataBuffer.size(); + Lib3MFHandle hSheet = (Lib3MFHandle)nullptr; + CheckError(m_pWrapper->m_WrapperTable.m_ImageStack_CreateSheetFromBuffer(m_pHandle, nIndex, sPath.c_str(), nDataSize, DataBuffer.data(), &hSheet)); if (!hSheet) { CheckError(LIB3MF_ERROR_INVALIDPARAM); @@ -15541,7 +15554,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CImageStack::CreateSheetFromFile(const Lib3MF_uint32 nIndex, const std::string & sPath, const std::string & sFileName) { - Lib3MFHandle hSheet = nullptr; + Lib3MFHandle hSheet = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImageStack_CreateSheetFromFile(m_pHandle, nIndex, sPath.c_str(), sFileName.c_str(), &hSheet)); if (!hSheet) { @@ -15584,7 +15597,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PPackagePart CAttachment::PackagePart() { - Lib3MFHandle hPackagePart = nullptr; + Lib3MFHandle hPackagePart = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Attachment_PackagePart(m_pHandle, &hPackagePart)); if (!hPackagePart) { @@ -15678,7 +15691,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CAttachment::ReadFromBuffer(const CInputVector & BufferBuffer) { - CheckError(m_pWrapper->m_WrapperTable.m_Attachment_ReadFromBuffer(m_pHandle, (Lib3MF_uint64)BufferBuffer.size(), BufferBuffer.data())); + Lib3MF_uint64 nBufferSize = BufferBuffer.size(); + CheckError(m_pWrapper->m_WrapperTable.m_Attachment_ReadFromBuffer(m_pHandle, nBufferSize, BufferBuffer.data())); } /** @@ -15691,7 +15705,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CTexture2D::GetAttachment() { - Lib3MFHandle hAttachment = nullptr; + Lib3MFHandle hAttachment = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Texture2D_GetAttachment(m_pHandle, &hAttachment)); if (!hAttachment) { @@ -15919,7 +15933,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CImplicitPortIterator::GetCurrent() { - Lib3MFHandle hPort = nullptr; + Lib3MFHandle hPort = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitPortIterator_GetCurrent(m_pHandle, &hPort)); if (!hPort) { @@ -16024,7 +16038,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CImplicitNode::AddInput(const std::string & sIdentifier, const std::string & sDisplayName) { - Lib3MFHandle hPort = nullptr; + Lib3MFHandle hPort = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitNode_AddInput(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), &hPort)); if (!hPort) { @@ -16039,7 +16053,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPortIterator CImplicitNode::GetInputs() { - Lib3MFHandle hIterator = nullptr; + Lib3MFHandle hIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitNode_GetInputs(m_pHandle, &hIterator)); if (!hIterator) { @@ -16056,7 +16070,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CImplicitNode::AddOutput(const std::string & sIdentifier, const std::string & sDisplayName) { - Lib3MFHandle hPort = nullptr; + Lib3MFHandle hPort = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitNode_AddOutput(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), &hPort)); if (!hPort) { @@ -16071,7 +16085,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPortIterator CImplicitNode::GetOutputs() { - Lib3MFHandle hIterator = nullptr; + Lib3MFHandle hIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitNode_GetOutputs(m_pHandle, &hIterator)); if (!hIterator) { @@ -16087,7 +16101,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CImplicitNode::FindInput(const std::string & sIdentifier) { - Lib3MFHandle hInput = nullptr; + Lib3MFHandle hInput = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitNode_FindInput(m_pHandle, sIdentifier.c_str(), &hInput)); if (hInput) { @@ -16104,7 +16118,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CImplicitNode::FindOutput(const std::string & sIdentifier) { - Lib3MFHandle hOutput = nullptr; + Lib3MFHandle hOutput = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitNode_FindOutput(m_pHandle, sIdentifier.c_str(), &hOutput)); if (hOutput) { @@ -16136,7 +16150,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort COneInputNode::GetInputA() { - Lib3MFHandle hInput = nullptr; + Lib3MFHandle hInput = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_OneInputNode_GetInputA(m_pHandle, &hInput)); if (!hInput) { @@ -16151,7 +16165,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort COneInputNode::GetOutputResult() { - Lib3MFHandle hResult = nullptr; + Lib3MFHandle hResult = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_OneInputNode_GetOutputResult(m_pHandle, &hResult)); if (!hResult) { @@ -16272,7 +16286,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResource CResourceIdNode::GetResource() { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ResourceIdNode_GetResource(m_pHandle, &hResource)); if (!hResource) { @@ -16287,7 +16301,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CResourceIdNode::GetOutputValue() { - Lib3MFHandle hValue = nullptr; + Lib3MFHandle hValue = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ResourceIdNode_GetOutputValue(m_pHandle, &hValue)); if (!hValue) { @@ -16306,7 +16320,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CTwoInputNode::GetInputB() { - Lib3MFHandle hB = nullptr; + Lib3MFHandle hB = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_TwoInputNode_GetInputB(m_pHandle, &hB)); if (!hB) { @@ -16377,7 +16391,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CSelectNode::GetInputB() { - Lib3MFHandle hB = nullptr; + Lib3MFHandle hB = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_SelectNode_GetInputB(m_pHandle, &hB)); if (!hB) { @@ -16392,7 +16406,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CSelectNode::GetInputC() { - Lib3MFHandle hC = nullptr; + Lib3MFHandle hC = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_SelectNode_GetInputC(m_pHandle, &hC)); if (!hC) { @@ -16407,7 +16421,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CSelectNode::GetInputD() { - Lib3MFHandle hD = nullptr; + Lib3MFHandle hD = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_SelectNode_GetInputD(m_pHandle, &hD)); if (!hD) { @@ -16426,7 +16440,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CClampNode::GetInputMin() { - Lib3MFHandle hMin = nullptr; + Lib3MFHandle hMin = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ClampNode_GetInputMin(m_pHandle, &hMin)); if (!hMin) { @@ -16441,7 +16455,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CClampNode::GetInputMax() { - Lib3MFHandle hMax = nullptr; + Lib3MFHandle hMax = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ClampNode_GetInputMax(m_pHandle, &hMax)); if (!hMax) { @@ -16460,7 +16474,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeVectorNode::GetInputX() { - Lib3MFHandle hX = nullptr; + Lib3MFHandle hX = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeVectorNode_GetInputX(m_pHandle, &hX)); if (!hX) { @@ -16475,7 +16489,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeVectorNode::GetInputY() { - Lib3MFHandle hY = nullptr; + Lib3MFHandle hY = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeVectorNode_GetInputY(m_pHandle, &hY)); if (!hY) { @@ -16490,7 +16504,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeVectorNode::GetInputZ() { - Lib3MFHandle hZ = nullptr; + Lib3MFHandle hZ = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeVectorNode_GetInputZ(m_pHandle, &hZ)); if (!hZ) { @@ -16505,7 +16519,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeVectorNode::GetOutputResult() { - Lib3MFHandle hResult = nullptr; + Lib3MFHandle hResult = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeVectorNode_GetOutputResult(m_pHandle, &hResult)); if (!hResult) { @@ -16528,7 +16542,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CDecomposeVectorNode::GetInputA() { - Lib3MFHandle hA = nullptr; + Lib3MFHandle hA = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_DecomposeVectorNode_GetInputA(m_pHandle, &hA)); if (!hA) { @@ -16543,7 +16557,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CDecomposeVectorNode::GetOutputX() { - Lib3MFHandle hX = nullptr; + Lib3MFHandle hX = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_DecomposeVectorNode_GetOutputX(m_pHandle, &hX)); if (!hX) { @@ -16558,7 +16572,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CDecomposeVectorNode::GetOutputY() { - Lib3MFHandle hY = nullptr; + Lib3MFHandle hY = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_DecomposeVectorNode_GetOutputY(m_pHandle, &hY)); if (!hY) { @@ -16573,7 +16587,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CDecomposeVectorNode::GetOutputZ() { - Lib3MFHandle hZ = nullptr; + Lib3MFHandle hZ = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_DecomposeVectorNode_GetOutputZ(m_pHandle, &hZ)); if (!hZ) { @@ -16592,7 +16606,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM00() { - Lib3MFHandle hM00 = nullptr; + Lib3MFHandle hM00 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetInputM00(m_pHandle, &hM00)); if (!hM00) { @@ -16607,7 +16621,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM01() { - Lib3MFHandle hM01 = nullptr; + Lib3MFHandle hM01 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetInputM01(m_pHandle, &hM01)); if (!hM01) { @@ -16622,7 +16636,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM02() { - Lib3MFHandle hM02 = nullptr; + Lib3MFHandle hM02 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetInputM02(m_pHandle, &hM02)); if (!hM02) { @@ -16637,7 +16651,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM03() { - Lib3MFHandle hM03 = nullptr; + Lib3MFHandle hM03 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetInputM03(m_pHandle, &hM03)); if (!hM03) { @@ -16652,7 +16666,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM10() { - Lib3MFHandle hM10 = nullptr; + Lib3MFHandle hM10 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetInputM10(m_pHandle, &hM10)); if (!hM10) { @@ -16667,7 +16681,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM11() { - Lib3MFHandle hM11 = nullptr; + Lib3MFHandle hM11 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetInputM11(m_pHandle, &hM11)); if (!hM11) { @@ -16682,7 +16696,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM12() { - Lib3MFHandle hM12 = nullptr; + Lib3MFHandle hM12 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetInputM12(m_pHandle, &hM12)); if (!hM12) { @@ -16697,7 +16711,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM13() { - Lib3MFHandle hM13 = nullptr; + Lib3MFHandle hM13 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetInputM13(m_pHandle, &hM13)); if (!hM13) { @@ -16712,7 +16726,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM20() { - Lib3MFHandle hM20 = nullptr; + Lib3MFHandle hM20 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetInputM20(m_pHandle, &hM20)); if (!hM20) { @@ -16727,7 +16741,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM21() { - Lib3MFHandle hM21 = nullptr; + Lib3MFHandle hM21 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetInputM21(m_pHandle, &hM21)); if (!hM21) { @@ -16742,7 +16756,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM22() { - Lib3MFHandle hM22 = nullptr; + Lib3MFHandle hM22 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetInputM22(m_pHandle, &hM22)); if (!hM22) { @@ -16757,7 +16771,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM23() { - Lib3MFHandle hM23 = nullptr; + Lib3MFHandle hM23 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetInputM23(m_pHandle, &hM23)); if (!hM23) { @@ -16772,7 +16786,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM30() { - Lib3MFHandle hM30 = nullptr; + Lib3MFHandle hM30 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetInputM30(m_pHandle, &hM30)); if (!hM30) { @@ -16787,7 +16801,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM31() { - Lib3MFHandle hM31 = nullptr; + Lib3MFHandle hM31 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetInputM31(m_pHandle, &hM31)); if (!hM31) { @@ -16802,7 +16816,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM32() { - Lib3MFHandle hM32 = nullptr; + Lib3MFHandle hM32 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetInputM32(m_pHandle, &hM32)); if (!hM32) { @@ -16817,7 +16831,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetInputM33() { - Lib3MFHandle hM33 = nullptr; + Lib3MFHandle hM33 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetInputM33(m_pHandle, &hM33)); if (!hM33) { @@ -16832,7 +16846,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CComposeMatrixNode::GetOutputResult() { - Lib3MFHandle hResult = nullptr; + Lib3MFHandle hResult = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ComposeMatrixNode_GetOutputResult(m_pHandle, &hResult)); if (!hResult) { @@ -16851,7 +16865,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromRowsNode::GetInputA() { - Lib3MFHandle hRow0 = nullptr; + Lib3MFHandle hRow0 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MatrixFromRowsNode_GetInputA(m_pHandle, &hRow0)); if (!hRow0) { @@ -16866,7 +16880,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromRowsNode::GetInputB() { - Lib3MFHandle hRow1 = nullptr; + Lib3MFHandle hRow1 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MatrixFromRowsNode_GetInputB(m_pHandle, &hRow1)); if (!hRow1) { @@ -16881,7 +16895,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromRowsNode::GetInputC() { - Lib3MFHandle hRow2 = nullptr; + Lib3MFHandle hRow2 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MatrixFromRowsNode_GetInputC(m_pHandle, &hRow2)); if (!hRow2) { @@ -16896,7 +16910,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromRowsNode::GetInputD() { - Lib3MFHandle hRow3 = nullptr; + Lib3MFHandle hRow3 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MatrixFromRowsNode_GetInputD(m_pHandle, &hRow3)); if (!hRow3) { @@ -16911,7 +16925,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromRowsNode::GetOutputResult() { - Lib3MFHandle hResult = nullptr; + Lib3MFHandle hResult = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MatrixFromRowsNode_GetOutputResult(m_pHandle, &hResult)); if (!hResult) { @@ -16930,7 +16944,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromColumnsNode::GetInputA() { - Lib3MFHandle hColumn0 = nullptr; + Lib3MFHandle hColumn0 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MatrixFromColumnsNode_GetInputA(m_pHandle, &hColumn0)); if (!hColumn0) { @@ -16945,7 +16959,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromColumnsNode::GetInputB() { - Lib3MFHandle hColumn1 = nullptr; + Lib3MFHandle hColumn1 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MatrixFromColumnsNode_GetInputB(m_pHandle, &hColumn1)); if (!hColumn1) { @@ -16960,7 +16974,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromColumnsNode::GetInputC() { - Lib3MFHandle hColumn2 = nullptr; + Lib3MFHandle hColumn2 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MatrixFromColumnsNode_GetInputC(m_pHandle, &hColumn2)); if (!hColumn2) { @@ -16975,7 +16989,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromColumnsNode::GetInputD() { - Lib3MFHandle hColumn3 = nullptr; + Lib3MFHandle hColumn3 = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MatrixFromColumnsNode_GetInputD(m_pHandle, &hColumn3)); if (!hColumn3) { @@ -16990,7 +17004,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMatrixFromColumnsNode::GetOutputResult() { - Lib3MFHandle hResult = nullptr; + Lib3MFHandle hResult = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MatrixFromColumnsNode_GetOutputResult(m_pHandle, &hResult)); if (!hResult) { @@ -17030,7 +17044,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CConstantNode::GetOutputValue() { - Lib3MFHandle hValue = nullptr; + Lib3MFHandle hValue = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ConstantNode_GetOutputValue(m_pHandle, &hValue)); if (!hValue) { @@ -17070,7 +17084,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CConstVecNode::GetOutputVector() { - Lib3MFHandle hVector = nullptr; + Lib3MFHandle hVector = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ConstVecNode_GetOutputVector(m_pHandle, &hVector)); if (!hVector) { @@ -17110,7 +17124,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CConstMatNode::GetOutputMatrix() { - Lib3MFHandle hMatrix = nullptr; + Lib3MFHandle hMatrix = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ConstMatNode_GetOutputMatrix(m_pHandle, &hMatrix)); if (!hMatrix) { @@ -17129,7 +17143,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMeshNode::GetInputMesh() { - Lib3MFHandle hMesh = nullptr; + Lib3MFHandle hMesh = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MeshNode_GetInputMesh(m_pHandle, &hMesh)); if (!hMesh) { @@ -17144,7 +17158,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMeshNode::GetInputPos() { - Lib3MFHandle hPos = nullptr; + Lib3MFHandle hPos = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MeshNode_GetInputPos(m_pHandle, &hPos)); if (!hPos) { @@ -17159,7 +17173,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CMeshNode::GetOutputDistance() { - Lib3MFHandle hDistance = nullptr; + Lib3MFHandle hDistance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_MeshNode_GetOutputDistance(m_pHandle, &hDistance)); if (!hDistance) { @@ -17178,7 +17192,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CUnsignedMeshNode::GetInputMesh() { - Lib3MFHandle hMesh = nullptr; + Lib3MFHandle hMesh = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_UnsignedMeshNode_GetInputMesh(m_pHandle, &hMesh)); if (!hMesh) { @@ -17193,7 +17207,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CUnsignedMeshNode::GetInputPos() { - Lib3MFHandle hPos = nullptr; + Lib3MFHandle hPos = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_UnsignedMeshNode_GetInputPos(m_pHandle, &hPos)); if (!hPos) { @@ -17208,7 +17222,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CUnsignedMeshNode::GetOutputDistance() { - Lib3MFHandle hDistance = nullptr; + Lib3MFHandle hDistance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_UnsignedMeshNode_GetOutputDistance(m_pHandle, &hDistance)); if (!hDistance) { @@ -17227,7 +17241,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CFunctionCallNode::GetInputFunctionID() { - Lib3MFHandle hFunction = nullptr; + Lib3MFHandle hFunction = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_FunctionCallNode_GetInputFunctionID(m_pHandle, &hFunction)); if (!hFunction) { @@ -17246,7 +17260,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitNode CNodeIterator::GetCurrent() { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_NodeIterator_GetCurrent(m_pHandle, &hNode)); if (!hNode) { @@ -17292,7 +17306,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CFunction::AddInput(const std::string & sIdentifier, const std::string & sDisplayName, const eImplicitPortType eType) { - Lib3MFHandle hPort = nullptr; + Lib3MFHandle hPort = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Function_AddInput(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), eType, &hPort)); if (!hPort) { @@ -17307,7 +17321,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPortIterator CFunction::GetInputs() { - Lib3MFHandle hIterator = nullptr; + Lib3MFHandle hIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Function_GetInputs(m_pHandle, &hIterator)); if (!hIterator) { @@ -17335,7 +17349,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CFunction::AddOutput(const std::string & sIdentifier, const std::string & sDisplayName, const eImplicitPortType eType) { - Lib3MFHandle hPort = nullptr; + Lib3MFHandle hPort = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Function_AddOutput(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), eType, &hPort)); if (!hPort) { @@ -17350,7 +17364,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPortIterator CFunction::GetOutputs() { - Lib3MFHandle hIterator = nullptr; + Lib3MFHandle hIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Function_GetOutputs(m_pHandle, &hIterator)); if (!hIterator) { @@ -17376,7 +17390,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CFunction::FindInput(const std::string & sIdentifier) { - Lib3MFHandle hInput = nullptr; + Lib3MFHandle hInput = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Function_FindInput(m_pHandle, sIdentifier.c_str(), &hInput)); if (!hInput) { @@ -17392,7 +17406,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitPort CFunction::FindOutput(const std::string & sIdentifier) { - Lib3MFHandle hOutput = nullptr; + Lib3MFHandle hOutput = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Function_FindOutput(m_pHandle, sIdentifier.c_str(), &hOutput)); if (!hOutput) { @@ -17440,7 +17454,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitNode CImplicitFunction::AddNode(const eImplicitNodeType eNodeType, const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddNode(m_pHandle, eNodeType, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17459,7 +17473,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSinNode CImplicitFunction::AddSinNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddSinNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17478,7 +17492,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PCosNode CImplicitFunction::AddCosNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddCosNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17497,7 +17511,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTanNode CImplicitFunction::AddTanNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddTanNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17516,7 +17530,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PArcSinNode CImplicitFunction::AddArcSinNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddArcSinNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17535,7 +17549,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PArcCosNode CImplicitFunction::AddArcCosNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddArcCosNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17554,7 +17568,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PArcTan2Node CImplicitFunction::AddArcTan2Node(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddArcTan2Node(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17573,7 +17587,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSinhNode CImplicitFunction::AddSinhNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddSinhNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17592,7 +17606,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PCoshNode CImplicitFunction::AddCoshNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddCoshNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17611,7 +17625,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTanhNode CImplicitFunction::AddTanhNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddTanhNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17630,7 +17644,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PRoundNode CImplicitFunction::AddRoundNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddRoundNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17649,7 +17663,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PCeilNode CImplicitFunction::AddCeilNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddCeilNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17668,7 +17682,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PFloorNode CImplicitFunction::AddFloorNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddFloorNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17687,7 +17701,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSignNode CImplicitFunction::AddSignNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddSignNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17706,7 +17720,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PFractNode CImplicitFunction::AddFractNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddFractNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17725,7 +17739,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAbsNode CImplicitFunction::AddAbsNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddAbsNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17744,7 +17758,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PExpNode CImplicitFunction::AddExpNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddExpNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17763,7 +17777,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PLogNode CImplicitFunction::AddLogNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddLogNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17782,7 +17796,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PLog2Node CImplicitFunction::AddLog2Node(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddLog2Node(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17801,7 +17815,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PLog10Node CImplicitFunction::AddLog10Node(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddLog10Node(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17819,7 +17833,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PLengthNode CImplicitFunction::AddLengthNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddLengthNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17838,7 +17852,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTransposeNode CImplicitFunction::AddTransposeNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddTransposeNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17856,7 +17870,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PInverseNode CImplicitFunction::AddInverseNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddInverseNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17875,7 +17889,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSqrtNode CImplicitFunction::AddSqrtNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddSqrtNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17893,7 +17907,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResourceIdNode CImplicitFunction::AddResourceIdNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddResourceIdNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17912,7 +17926,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAdditionNode CImplicitFunction::AddAdditionNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddAdditionNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17931,7 +17945,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSubtractionNode CImplicitFunction::AddSubtractionNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddSubtractionNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17950,7 +17964,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMultiplicationNode CImplicitFunction::AddMultiplicationNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddMultiplicationNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17969,7 +17983,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PDivisionNode CImplicitFunction::AddDivisionNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddDivisionNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -17987,7 +18001,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PDotNode CImplicitFunction::AddDotNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddDotNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18005,7 +18019,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PCrossNode CImplicitFunction::AddCrossNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddCrossNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18023,7 +18037,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMatVecMultiplicationNode CImplicitFunction::AddMatVecMultiplicationNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddMatVecMultiplicationNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18042,7 +18056,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMinNode CImplicitFunction::AddMinNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddMinNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18061,7 +18075,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMaxNode CImplicitFunction::AddMaxNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddMaxNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18080,7 +18094,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PFmodNode CImplicitFunction::AddFmodNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddFmodNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18099,7 +18113,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PPowNode CImplicitFunction::AddPowNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddPowNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18118,7 +18132,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSelectNode CImplicitFunction::AddSelectNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddSelectNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18137,7 +18151,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PClampNode CImplicitFunction::AddClampNode(const std::string & sIdentifier, const eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddClampNode(m_pHandle, sIdentifier.c_str(), eConfiguration, sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18155,7 +18169,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PComposeVectorNode CImplicitFunction::AddComposeVectorNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddComposeVectorNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18173,7 +18187,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PVectorFromScalarNode CImplicitFunction::AddVectorFromScalarNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddVectorFromScalarNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18191,7 +18205,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PDecomposeVectorNode CImplicitFunction::AddDecomposeVectorNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddDecomposeVectorNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18209,7 +18223,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PComposeMatrixNode CImplicitFunction::AddComposeMatrixNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddComposeMatrixNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18227,7 +18241,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMatrixFromRowsNode CImplicitFunction::AddMatrixFromRowsNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddMatrixFromRowsNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18245,7 +18259,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMatrixFromColumnsNode CImplicitFunction::AddMatrixFromColumnsNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddMatrixFromColumnsNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18263,7 +18277,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PConstantNode CImplicitFunction::AddConstantNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddConstantNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18281,7 +18295,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PConstVecNode CImplicitFunction::AddConstVecNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddConstVecNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18299,7 +18313,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PConstMatNode CImplicitFunction::AddConstMatNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddConstMatNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18317,7 +18331,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMeshNode CImplicitFunction::AddMeshNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddMeshNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18335,7 +18349,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PUnsignedMeshNode CImplicitFunction::AddUnsignedMeshNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddUnsignedMeshNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18353,7 +18367,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PFunctionCallNode CImplicitFunction::AddFunctionCallNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - Lib3MFHandle hNode = nullptr; + Lib3MFHandle hNode = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_AddFunctionCallNode(m_pHandle, sIdentifier.c_str(), sDisplayName.c_str(), sTag.c_str(), &hNode)); if (!hNode) { @@ -18368,7 +18382,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PNodeIterator CImplicitFunction::GetNodes() { - Lib3MFHandle hIterator = nullptr; + Lib3MFHandle hIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ImplicitFunction_GetNodes(m_pHandle, &hIterator)); if (!hIterator) { @@ -18435,7 +18449,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImage3D CFunctionFromImage3D::GetImage3D() { - Lib3MFHandle hImage3D = nullptr; + Lib3MFHandle hImage3D = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_FunctionFromImage3D_GetImage3D(m_pHandle, &hImage3D)); if (!hImage3D) { @@ -18549,7 +18563,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PObject CBuildItem::GetObjectResource() { - Lib3MFHandle hObjectResource = nullptr; + Lib3MFHandle hObjectResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_BuildItem_GetObjectResource(m_pHandle, &hObjectResource)); if (!hObjectResource) { @@ -18658,7 +18672,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMetaDataGroup CBuildItem::GetMetaDataGroup() { - Lib3MFHandle hMetaDataGroup = nullptr; + Lib3MFHandle hMetaDataGroup = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_BuildItem_GetMetaDataGroup(m_pHandle, &hMetaDataGroup)); if (!hMetaDataGroup) { @@ -18713,7 +18727,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBuildItem CBuildItemIterator::GetCurrent() { - Lib3MFHandle hBuildItem = nullptr; + Lib3MFHandle hBuildItem = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_BuildItemIterator_GetCurrent(m_pHandle, &hBuildItem)); if (!hBuildItem) { @@ -18728,7 +18742,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBuildItemIterator CBuildItemIterator::Clone() { - Lib3MFHandle hOutBuildItemIterator = nullptr; + Lib3MFHandle hOutBuildItemIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_BuildItemIterator_Clone(m_pHandle, &hOutBuildItemIterator)); if (!hOutBuildItemIterator) { @@ -18759,7 +18773,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CSlice::SetVertices(const CInputVector & VerticesBuffer) { - CheckError(m_pWrapper->m_WrapperTable.m_Slice_SetVertices(m_pHandle, (Lib3MF_uint64)VerticesBuffer.size(), VerticesBuffer.data())); + Lib3MF_uint64 nVerticesSize = VerticesBuffer.size(); + CheckError(m_pWrapper->m_WrapperTable.m_Slice_SetVertices(m_pHandle, nVerticesSize, VerticesBuffer.data())); } /** @@ -18794,8 +18809,9 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ Lib3MF_uint64 CSlice::AddPolygon(const CInputVector & IndicesBuffer) { + Lib3MF_uint64 nIndicesSize = IndicesBuffer.size(); Lib3MF_uint64 resultIndex = 0; - CheckError(m_pWrapper->m_WrapperTable.m_Slice_AddPolygon(m_pHandle, (Lib3MF_uint64)IndicesBuffer.size(), IndicesBuffer.data(), &resultIndex)); + CheckError(m_pWrapper->m_WrapperTable.m_Slice_AddPolygon(m_pHandle, nIndicesSize, IndicesBuffer.data(), &resultIndex)); return resultIndex; } @@ -18819,7 +18835,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CSlice::SetPolygonIndices(const Lib3MF_uint64 nIndex, const CInputVector & IndicesBuffer) { - CheckError(m_pWrapper->m_WrapperTable.m_Slice_SetPolygonIndices(m_pHandle, nIndex, (Lib3MF_uint64)IndicesBuffer.size(), IndicesBuffer.data())); + Lib3MF_uint64 nIndicesSize = IndicesBuffer.size(); + CheckError(m_pWrapper->m_WrapperTable.m_Slice_SetPolygonIndices(m_pHandle, nIndex, nIndicesSize, IndicesBuffer.data())); } /** @@ -18896,7 +18913,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSlice CSliceStack::GetSlice(const Lib3MF_uint64 nSliceIndex) { - Lib3MFHandle hTheSlice = nullptr; + Lib3MFHandle hTheSlice = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_SliceStack_GetSlice(m_pHandle, nSliceIndex, &hTheSlice)); if (!hTheSlice) { @@ -18912,7 +18929,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSlice CSliceStack::AddSlice(const Lib3MF_double dZTop) { - Lib3MFHandle hTheSlice = nullptr; + Lib3MFHandle hTheSlice = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_SliceStack_AddSlice(m_pHandle, dZTop, &hTheSlice)); if (!hTheSlice) { @@ -18950,7 +18967,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSliceStack CSliceStack::GetSliceStackReference(const Lib3MF_uint64 nSliceRefIndex) { - Lib3MFHandle hTheSliceStack = nullptr; + Lib3MFHandle hTheSliceStack = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_SliceStack_GetSliceStackReference(m_pHandle, nSliceRefIndex, &hTheSliceStack)); if (!hTheSliceStack) { @@ -19050,7 +19067,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PConsumer CAccessRight::GetConsumer() { - Lib3MFHandle hConsumer = nullptr; + Lib3MFHandle hConsumer = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_AccessRight_GetConsumer(m_pHandle, &hConsumer)); if (!hConsumer) { @@ -19156,7 +19173,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ void CContentEncryptionParams::SetAuthenticationTag(const CInputVector & ByteDataBuffer) { - CheckError(m_pWrapper->m_WrapperTable.m_ContentEncryptionParams_SetAuthenticationTag(m_pHandle, (Lib3MF_uint64)ByteDataBuffer.size(), ByteDataBuffer.data())); + Lib3MF_uint64 nByteDataSize = ByteDataBuffer.size(); + CheckError(m_pWrapper->m_WrapperTable.m_ContentEncryptionParams_SetAuthenticationTag(m_pHandle, nByteDataSize, ByteDataBuffer.data())); } /** @@ -19209,7 +19227,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PPackagePart CResourceData::GetPath() { - Lib3MFHandle hPath = nullptr; + Lib3MFHandle hPath = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ResourceData_GetPath(m_pHandle, &hPath)); if (!hPath) { @@ -19285,7 +19303,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PAccessRight CResourceDataGroup::AddAccessRight(classParam pConsumer, const eWrappingAlgorithm eWrappingAlgorithm, const eMgfAlgorithm eMgfAlgorithm, const eDigestMethod eDigestMethod) { Lib3MFHandle hConsumer = pConsumer.GetHandle(); - Lib3MFHandle hTheAccessRight = nullptr; + Lib3MFHandle hTheAccessRight = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ResourceDataGroup_AddAccessRight(m_pHandle, hConsumer, eWrappingAlgorithm, eMgfAlgorithm, eDigestMethod, &hTheAccessRight)); if (!hTheAccessRight) { @@ -19302,7 +19320,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PAccessRight CResourceDataGroup::FindAccessRightByConsumer(classParam pConsumer) { Lib3MFHandle hConsumer = pConsumer.GetHandle(); - Lib3MFHandle hTheAccessRight = nullptr; + Lib3MFHandle hTheAccessRight = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_ResourceDataGroup_FindAccessRightByConsumer(m_pHandle, hConsumer, &hTheAccessRight)); if (hTheAccessRight) { @@ -19335,7 +19353,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PConsumer CKeyStore::AddConsumer(const std::string & sConsumerID, const std::string & sKeyID, const std::string & sKeyValue) { - Lib3MFHandle hConsumer = nullptr; + Lib3MFHandle hConsumer = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_KeyStore_AddConsumer(m_pHandle, sConsumerID.c_str(), sKeyID.c_str(), sKeyValue.c_str(), &hConsumer)); if (!hConsumer) { @@ -19363,7 +19381,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PConsumer CKeyStore::GetConsumer(const Lib3MF_uint64 nConsumerIndex) { - Lib3MFHandle hConsumer = nullptr; + Lib3MFHandle hConsumer = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_KeyStore_GetConsumer(m_pHandle, nConsumerIndex, &hConsumer)); if (!hConsumer) { @@ -19389,7 +19407,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PConsumer CKeyStore::FindConsumer(const std::string & sConsumerID) { - Lib3MFHandle hConsumer = nullptr; + Lib3MFHandle hConsumer = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_KeyStore_FindConsumer(m_pHandle, sConsumerID.c_str(), &hConsumer)); if (hConsumer) { @@ -19417,7 +19435,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResourceDataGroup CKeyStore::AddResourceDataGroup() { - Lib3MFHandle hResourceDataGroup = nullptr; + Lib3MFHandle hResourceDataGroup = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_KeyStore_AddResourceDataGroup(m_pHandle, &hResourceDataGroup)); if (!hResourceDataGroup) { @@ -19433,7 +19451,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResourceDataGroup CKeyStore::GetResourceDataGroup(const Lib3MF_uint64 nResourceDataIndex) { - Lib3MFHandle hResourceDataGroup = nullptr; + Lib3MFHandle hResourceDataGroup = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_KeyStore_GetResourceDataGroup(m_pHandle, nResourceDataIndex, &hResourceDataGroup)); if (!hResourceDataGroup) { @@ -19460,7 +19478,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PResourceDataGroup CKeyStore::FindResourceDataGroup(classParam pPartPath) { Lib3MFHandle hPartPath = pPartPath.GetHandle(); - Lib3MFHandle hResourceDataGroup = nullptr; + Lib3MFHandle hResourceDataGroup = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_KeyStore_FindResourceDataGroup(m_pHandle, hPartPath, &hResourceDataGroup)); if (hResourceDataGroup) { @@ -19483,8 +19501,9 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) { Lib3MFHandle hResourceDataGroup = pResourceDataGroup.GetHandle(); Lib3MFHandle hPartPath = pPartPath.GetHandle(); - Lib3MFHandle hResourceData = nullptr; - CheckError(m_pWrapper->m_WrapperTable.m_KeyStore_AddResourceData(m_pHandle, hResourceDataGroup, hPartPath, eAlgorithm, eCompression, (Lib3MF_uint64)AdditionalAuthenticationDataBuffer.size(), AdditionalAuthenticationDataBuffer.data(), &hResourceData)); + Lib3MF_uint64 nAdditionalAuthenticationDataSize = AdditionalAuthenticationDataBuffer.size(); + Lib3MFHandle hResourceData = (Lib3MFHandle)nullptr; + CheckError(m_pWrapper->m_WrapperTable.m_KeyStore_AddResourceData(m_pHandle, hResourceDataGroup, hPartPath, eAlgorithm, eCompression, nAdditionalAuthenticationDataSize, AdditionalAuthenticationDataBuffer.data(), &hResourceData)); if (!hResourceData) { CheckError(LIB3MF_ERROR_INVALIDPARAM); @@ -19510,7 +19529,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PResourceData CKeyStore::FindResourceData(classParam pResourcePath) { Lib3MFHandle hResourcePath = pResourcePath.GetHandle(); - Lib3MFHandle hResourceData = nullptr; + Lib3MFHandle hResourceData = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_KeyStore_FindResourceData(m_pHandle, hResourcePath, &hResourceData)); if (hResourceData) { @@ -19539,7 +19558,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResourceData CKeyStore::GetResourceData(const Lib3MF_uint64 nResourceDataIndex) { - Lib3MFHandle hResourceData = nullptr; + Lib3MFHandle hResourceData = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_KeyStore_GetResourceData(m_pHandle, nResourceDataIndex, &hResourceData)); if (!hResourceData) { @@ -19583,7 +19602,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PPackagePart CModel::RootModelPart() { - Lib3MFHandle hRootModelPart = nullptr; + Lib3MFHandle hRootModelPart = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_RootModelPart(m_pHandle, &hRootModelPart)); if (!hRootModelPart) { @@ -19599,7 +19618,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PPackagePart CModel::FindOrCreatePackagePart(const std::string & sAbsolutePath) { - Lib3MFHandle hModelPart = nullptr; + Lib3MFHandle hModelPart = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_FindOrCreatePackagePart(m_pHandle, sAbsolutePath.c_str(), &hModelPart)); if (!hModelPart) { @@ -19660,7 +19679,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PWriter CModel::QueryWriter(const std::string & sWriterClass) { - Lib3MFHandle hWriterInstance = nullptr; + Lib3MFHandle hWriterInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_QueryWriter(m_pHandle, sWriterClass.c_str(), &hWriterInstance)); if (!hWriterInstance) { @@ -19676,7 +19695,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PReader CModel::QueryReader(const std::string & sReaderClass) { - Lib3MFHandle hReaderInstance = nullptr; + Lib3MFHandle hReaderInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_QueryReader(m_pHandle, sReaderClass.c_str(), &hReaderInstance)); if (!hReaderInstance) { @@ -19692,7 +19711,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResource CModel::GetResourceByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hResource = nullptr; + Lib3MFHandle hResource = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetResourceByID(m_pHandle, nUniqueResourceID, &hResource)); if (!hResource) { @@ -19708,7 +19727,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTexture2D CModel::GetTexture2DByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hTextureInstance = nullptr; + Lib3MFHandle hTextureInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetTexture2DByID(m_pHandle, nUniqueResourceID, &hTextureInstance)); if (!hTextureInstance) { @@ -19737,7 +19756,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBaseMaterialGroup CModel::GetBaseMaterialGroupByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hBaseMaterialGroupInstance = nullptr; + Lib3MFHandle hBaseMaterialGroupInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetBaseMaterialGroupByID(m_pHandle, nUniqueResourceID, &hBaseMaterialGroupInstance)); if (!hBaseMaterialGroupInstance) { @@ -19753,7 +19772,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTexture2DGroup CModel::GetTexture2DGroupByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hTexture2DGroupInstance = nullptr; + Lib3MFHandle hTexture2DGroupInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetTexture2DGroupByID(m_pHandle, nUniqueResourceID, &hTexture2DGroupInstance)); if (!hTexture2DGroupInstance) { @@ -19769,7 +19788,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PCompositeMaterials CModel::GetCompositeMaterialsByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hCompositeMaterialsInstance = nullptr; + Lib3MFHandle hCompositeMaterialsInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetCompositeMaterialsByID(m_pHandle, nUniqueResourceID, &hCompositeMaterialsInstance)); if (!hCompositeMaterialsInstance) { @@ -19785,7 +19804,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMultiPropertyGroup CModel::GetMultiPropertyGroupByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hMultiPropertyGroupInstance = nullptr; + Lib3MFHandle hMultiPropertyGroupInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetMultiPropertyGroupByID(m_pHandle, nUniqueResourceID, &hMultiPropertyGroupInstance)); if (!hMultiPropertyGroupInstance) { @@ -19801,7 +19820,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMeshObject CModel::GetMeshObjectByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hMeshObjectInstance = nullptr; + Lib3MFHandle hMeshObjectInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetMeshObjectByID(m_pHandle, nUniqueResourceID, &hMeshObjectInstance)); if (!hMeshObjectInstance) { @@ -19817,7 +19836,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PComponentsObject CModel::GetComponentsObjectByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hComponentsObjectInstance = nullptr; + Lib3MFHandle hComponentsObjectInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetComponentsObjectByID(m_pHandle, nUniqueResourceID, &hComponentsObjectInstance)); if (!hComponentsObjectInstance) { @@ -19833,7 +19852,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PColorGroup CModel::GetColorGroupByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hColorGroupInstance = nullptr; + Lib3MFHandle hColorGroupInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetColorGroupByID(m_pHandle, nUniqueResourceID, &hColorGroupInstance)); if (!hColorGroupInstance) { @@ -19849,7 +19868,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSliceStack CModel::GetSliceStackByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hSliceStacInstance = nullptr; + Lib3MFHandle hSliceStacInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetSliceStackByID(m_pHandle, nUniqueResourceID, &hSliceStacInstance)); if (!hSliceStacInstance) { @@ -19865,7 +19884,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PLevelSet CModel::GetLevelSetByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hLevelSetObjectInstance = nullptr; + Lib3MFHandle hLevelSetObjectInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetLevelSetByID(m_pHandle, nUniqueResourceID, &hLevelSetObjectInstance)); if (!hLevelSetObjectInstance) { @@ -19905,7 +19924,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBuildItemIterator CModel::GetBuildItems() { - Lib3MFHandle hBuildItemIterator = nullptr; + Lib3MFHandle hBuildItemIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetBuildItems(m_pHandle, &hBuildItemIterator)); if (!hBuildItemIterator) { @@ -19932,7 +19951,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PResourceIterator CModel::GetResources() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetResources(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -19947,7 +19966,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PObjectIterator CModel::GetObjects() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetObjects(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -19962,7 +19981,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMeshObjectIterator CModel::GetMeshObjects() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetMeshObjects(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -19977,7 +19996,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PComponentsObjectIterator CModel::GetComponentsObjects() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetComponentsObjects(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -19992,7 +20011,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTexture2DIterator CModel::GetTexture2Ds() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetTexture2Ds(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -20007,7 +20026,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBaseMaterialGroupIterator CModel::GetBaseMaterialGroups() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetBaseMaterialGroups(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -20022,7 +20041,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PColorGroupIterator CModel::GetColorGroups() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetColorGroups(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -20037,7 +20056,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PTexture2DGroupIterator CModel::GetTexture2DGroups() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetTexture2DGroups(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -20052,7 +20071,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PCompositeMaterialsIterator CModel::GetCompositeMaterials() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetCompositeMaterials(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -20067,7 +20086,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMultiPropertyGroupIterator CModel::GetMultiPropertyGroups() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetMultiPropertyGroups(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -20082,7 +20101,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSliceStackIterator CModel::GetSliceStacks() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetSliceStacks(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -20097,7 +20116,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImage3DIterator CModel::GetImage3Ds() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetImage3Ds(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { @@ -20112,7 +20131,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PModel CModel::MergeToModel() { - Lib3MFHandle hMergedModelInstance = nullptr; + Lib3MFHandle hMergedModelInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_MergeToModel(m_pHandle, &hMergedModelInstance)); if (!hMergedModelInstance) { @@ -20137,7 +20156,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMeshObject CModel::AddMeshObject() { - Lib3MFHandle hMeshObjectInstance = nullptr; + Lib3MFHandle hMeshObjectInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_AddMeshObject(m_pHandle, &hMeshObjectInstance)); if (!hMeshObjectInstance) { @@ -20152,7 +20171,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PComponentsObject CModel::AddComponentsObject() { - Lib3MFHandle hComponentsObjectInstance = nullptr; + Lib3MFHandle hComponentsObjectInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_AddComponentsObject(m_pHandle, &hComponentsObjectInstance)); if (!hComponentsObjectInstance) { @@ -20168,7 +20187,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PSliceStack CModel::AddSliceStack(const Lib3MF_double dZBottom) { - Lib3MFHandle hSliceStackInstance = nullptr; + Lib3MFHandle hSliceStackInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_AddSliceStack(m_pHandle, dZBottom, &hSliceStackInstance)); if (!hSliceStackInstance) { @@ -20185,7 +20204,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PTexture2D CModel::AddTexture2DFromAttachment(classParam pTextureAttachment) { Lib3MFHandle hTextureAttachment = pTextureAttachment.GetHandle(); - Lib3MFHandle hTexture2DInstance = nullptr; + Lib3MFHandle hTexture2DInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_AddTexture2DFromAttachment(m_pHandle, hTextureAttachment, &hTexture2DInstance)); if (!hTexture2DInstance) { @@ -20200,7 +20219,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PBaseMaterialGroup CModel::AddBaseMaterialGroup() { - Lib3MFHandle hBaseMaterialGroupInstance = nullptr; + Lib3MFHandle hBaseMaterialGroupInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_AddBaseMaterialGroup(m_pHandle, &hBaseMaterialGroupInstance)); if (!hBaseMaterialGroupInstance) { @@ -20215,7 +20234,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PColorGroup CModel::AddColorGroup() { - Lib3MFHandle hColorGroupInstance = nullptr; + Lib3MFHandle hColorGroupInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_AddColorGroup(m_pHandle, &hColorGroupInstance)); if (!hColorGroupInstance) { @@ -20232,7 +20251,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PTexture2DGroup CModel::AddTexture2DGroup(classParam pTexture2DInstance) { Lib3MFHandle hTexture2DInstance = pTexture2DInstance.GetHandle(); - Lib3MFHandle hTexture2DGroupInstance = nullptr; + Lib3MFHandle hTexture2DGroupInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_AddTexture2DGroup(m_pHandle, hTexture2DInstance, &hTexture2DGroupInstance)); if (!hTexture2DGroupInstance) { @@ -20249,7 +20268,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PCompositeMaterials CModel::AddCompositeMaterials(classParam pBaseMaterialGroupInstance) { Lib3MFHandle hBaseMaterialGroupInstance = pBaseMaterialGroupInstance.GetHandle(); - Lib3MFHandle hCompositeMaterialsInstance = nullptr; + Lib3MFHandle hCompositeMaterialsInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_AddCompositeMaterials(m_pHandle, hBaseMaterialGroupInstance, &hCompositeMaterialsInstance)); if (!hCompositeMaterialsInstance) { @@ -20264,7 +20283,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMultiPropertyGroup CModel::AddMultiPropertyGroup() { - Lib3MFHandle hMultiPropertyGroupInstance = nullptr; + Lib3MFHandle hMultiPropertyGroupInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_AddMultiPropertyGroup(m_pHandle, &hMultiPropertyGroupInstance)); if (!hMultiPropertyGroupInstance) { @@ -20282,7 +20301,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImageStack CModel::AddImageStack(const Lib3MF_uint32 nColumnCount, const Lib3MF_uint32 nRowCount, const Lib3MF_uint32 nSheetCount) { - Lib3MFHandle hInstance = nullptr; + Lib3MFHandle hInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_AddImageStack(m_pHandle, nColumnCount, nRowCount, nSheetCount, &hInstance)); if (!hInstance) { @@ -20298,7 +20317,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImageStack CModel::GetImageStackByID(const Lib3MF_uint32 nUniqueResourceID) { - Lib3MFHandle hImageStackInstance = nullptr; + Lib3MFHandle hImageStackInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetImageStackByID(m_pHandle, nUniqueResourceID, &hImageStackInstance)); if (!hImageStackInstance) { @@ -20316,7 +20335,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PBuildItem CModel::AddBuildItem(classParam pObject, const sTransform & Transform) { Lib3MFHandle hObject = pObject.GetHandle(); - Lib3MFHandle hBuildItemInstance = nullptr; + Lib3MFHandle hBuildItemInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_AddBuildItem(m_pHandle, hObject, &Transform, &hBuildItemInstance)); if (!hBuildItemInstance) { @@ -20341,7 +20360,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PMetaDataGroup CModel::GetMetaDataGroup() { - Lib3MFHandle hTheMetaDataGroup = nullptr; + Lib3MFHandle hTheMetaDataGroup = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetMetaDataGroup(m_pHandle, &hTheMetaDataGroup)); if (!hTheMetaDataGroup) { @@ -20358,7 +20377,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CModel::AddAttachment(const std::string & sURI, const std::string & sRelationShipType) { - Lib3MFHandle hAttachmentInstance = nullptr; + Lib3MFHandle hAttachmentInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_AddAttachment(m_pHandle, sURI.c_str(), sRelationShipType.c_str(), &hAttachmentInstance)); if (!hAttachmentInstance) { @@ -20384,7 +20403,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CModel::GetAttachment(const Lib3MF_uint32 nIndex) { - Lib3MFHandle hAttachmentInstance = nullptr; + Lib3MFHandle hAttachmentInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetAttachment(m_pHandle, nIndex, &hAttachmentInstance)); if (!hAttachmentInstance) { @@ -20400,7 +20419,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CModel::FindAttachment(const std::string & sURI) { - Lib3MFHandle hAttachmentInstance = nullptr; + Lib3MFHandle hAttachmentInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_FindAttachment(m_pHandle, sURI.c_str(), &hAttachmentInstance)); if (!hAttachmentInstance) { @@ -20439,7 +20458,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CModel::CreatePackageThumbnailAttachment() { - Lib3MFHandle hAttachment = nullptr; + Lib3MFHandle hAttachment = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_CreatePackageThumbnailAttachment(m_pHandle, &hAttachment)); if (!hAttachment) { @@ -20454,7 +20473,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PAttachment CModel::GetPackageThumbnailAttachment() { - Lib3MFHandle hAttachment = nullptr; + Lib3MFHandle hAttachment = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetPackageThumbnailAttachment(m_pHandle, &hAttachment)); if (hAttachment) { @@ -20507,7 +20526,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PKeyStore CModel::GetKeyStore() { - Lib3MFHandle hKeyStore = nullptr; + Lib3MFHandle hKeyStore = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetKeyStore(m_pHandle, &hKeyStore)); if (!hKeyStore) { @@ -20522,7 +20541,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PFunctionIterator CModel::GetFunctions() { - Lib3MFHandle hTheResourceIterator = nullptr; + Lib3MFHandle hTheResourceIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetFunctions(m_pHandle, &hTheResourceIterator)); if (!hTheResourceIterator) { @@ -20537,7 +20556,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PImplicitFunction CModel::AddImplicitFunction() { - Lib3MFHandle hFunctionInstance = nullptr; + Lib3MFHandle hFunctionInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_AddImplicitFunction(m_pHandle, &hFunctionInstance)); if (!hFunctionInstance) { @@ -20554,7 +20573,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) PFunctionFromImage3D CModel::AddFunctionFromImage3D(classParam pImage3DInstance) { Lib3MFHandle hImage3DInstance = pImage3DInstance.GetHandle(); - Lib3MFHandle hFunctionInstance = nullptr; + Lib3MFHandle hFunctionInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_AddFunctionFromImage3D(m_pHandle, hImage3DInstance, &hFunctionInstance)); if (!hFunctionInstance) { @@ -20569,7 +20588,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PVolumeData CModel::AddVolumeData() { - Lib3MFHandle hVolumeDataInstance = nullptr; + Lib3MFHandle hVolumeDataInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_AddVolumeData(m_pHandle, &hVolumeDataInstance)); if (!hVolumeDataInstance) { @@ -20584,7 +20603,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PLevelSet CModel::AddLevelSet() { - Lib3MFHandle hLevelSetInstance = nullptr; + Lib3MFHandle hLevelSetInstance = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_AddLevelSet(m_pHandle, &hLevelSetInstance)); if (!hLevelSetInstance) { @@ -20599,7 +20618,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) */ PLevelSetIterator CModel::GetLevelSets() { - Lib3MFHandle hResourceIterator = nullptr; + Lib3MFHandle hResourceIterator = (Lib3MFHandle)nullptr; CheckError(m_pWrapper->m_WrapperTable.m_Model_GetLevelSets(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { diff --git a/Autogenerated/Bindings/Go/lib3mf.go b/Autogenerated/Bindings/Go/lib3mf.go index f1955083..5adcaee1 100644 --- a/Autogenerated/Bindings/Go/lib3mf.go +++ b/Autogenerated/Bindings/Go/lib3mf.go @@ -39,5455 +39,7 @@ package lib3mf /* #cgo linux LDFLAGS: -ldl -#include "lib3mf_dynamic.cc" - -Lib3MFHandle loadLib3MFLibrary (const char * pFileName) -{ - Lib3MFResult nResult; - sLib3MFDynamicWrapperTable * pWrapperTable = (sLib3MFDynamicWrapperTable *) malloc (sizeof (sLib3MFDynamicWrapperTable)); - if (pWrapperTable != NULL) { - nResult = InitLib3MFWrapperTable (pWrapperTable); - if (nResult != LIB3MF_SUCCESS) { - free (pWrapperTable); - return 0; - } - - nResult = LoadLib3MFWrapperTable (pWrapperTable, pFileName); - if (nResult != LIB3MF_SUCCESS) { - free (pWrapperTable); - return 0; - } - - return (Lib3MFHandle) pWrapperTable; - } -} - -void unloadLib3MFLibrary (Lib3MFHandle nLibraryHandle) -{ - sLib3MFDynamicWrapperTable * pWrapperTable = (sLib3MFDynamicWrapperTable *) malloc (sizeof (sLib3MFDynamicWrapperTable)); - if (pWrapperTable != NULL) { - ReleaseLib3MFWrapperTable (pWrapperTable); - free (pWrapperTable); - } -} - - -Lib3MFResult CCall_lib3mf_base_classtypeid(Lib3MFHandle libraryHandle, Lib3MF_Base pBase, Lib3MF_uint64 * pClassTypeId) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Base_ClassTypeId (pBase, pClassTypeId); -} - - -Lib3MFResult CCall_lib3mf_writer_writetofile(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, const char * pFilename) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Writer_WriteToFile (pWriter, pFilename); -} - - -Lib3MFResult CCall_lib3mf_writer_getstreamsize(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MF_uint64 * pStreamSize) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Writer_GetStreamSize (pWriter, pStreamSize); -} - - -Lib3MFResult CCall_lib3mf_writer_writetobuffer(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, const Lib3MF_uint64 nBufferBufferSize, Lib3MF_uint64* pBufferNeededCount, Lib3MF_uint8 * pBufferBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Writer_WriteToBuffer (pWriter, nBufferBufferSize, pBufferNeededCount, pBufferBuffer); -} - - -Lib3MFResult CCall_lib3mf_writer_writetocallback(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MFWriteCallback pTheWriteCallback, Lib3MFSeekCallback pTheSeekCallback, Lib3MF_pvoid pUserData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Writer_WriteToCallback (pWriter, pTheWriteCallback, pTheSeekCallback, pUserData); -} - - -Lib3MFResult CCall_lib3mf_writer_setprogresscallback(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MFProgressCallback pProgressCallback, Lib3MF_pvoid pUserData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Writer_SetProgressCallback (pWriter, pProgressCallback, pUserData); -} - - -Lib3MFResult CCall_lib3mf_writer_getdecimalprecision(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MF_uint32 * pDecimalPrecision) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Writer_GetDecimalPrecision (pWriter, pDecimalPrecision); -} - - -Lib3MFResult CCall_lib3mf_writer_setdecimalprecision(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MF_uint32 nDecimalPrecision) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Writer_SetDecimalPrecision (pWriter, nDecimalPrecision); -} - - -Lib3MFResult CCall_lib3mf_writer_setstrictmodeactive(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, bool bStrictModeActive) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Writer_SetStrictModeActive (pWriter, bStrictModeActive); -} - - -Lib3MFResult CCall_lib3mf_writer_getstrictmodeactive(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, bool * pStrictModeActive) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Writer_GetStrictModeActive (pWriter, pStrictModeActive); -} - - -Lib3MFResult CCall_lib3mf_writer_getwarning(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MF_uint32 nIndex, Lib3MF_uint32 * pErrorCode, const Lib3MF_uint32 nWarningBufferSize, Lib3MF_uint32* pWarningNeededChars, char * pWarningBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Writer_GetWarning (pWriter, nIndex, pErrorCode, nWarningBufferSize, pWarningNeededChars, pWarningBuffer); -} - - -Lib3MFResult CCall_lib3mf_writer_getwarningcount(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Writer_GetWarningCount (pWriter, pCount); -} - - -Lib3MFResult CCall_lib3mf_writer_addkeywrappingcallback(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, const char * pConsumerID, Lib3MFKeyWrappingCallback pTheCallback, Lib3MF_pvoid pUserData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Writer_AddKeyWrappingCallback (pWriter, pConsumerID, pTheCallback, pUserData); -} - - -Lib3MFResult CCall_lib3mf_writer_setcontentencryptioncallback(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MFContentEncryptionCallback pTheCallback, Lib3MF_pvoid pUserData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Writer_SetContentEncryptionCallback (pWriter, pTheCallback, pUserData); -} - - -Lib3MFResult CCall_lib3mf_reader_readfromfile(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, const char * pFilename) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Reader_ReadFromFile (pReader, pFilename); -} - - -Lib3MFResult CCall_lib3mf_reader_readfrombuffer(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MF_uint64 nBufferBufferSize, const Lib3MF_uint8 * pBufferBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Reader_ReadFromBuffer (pReader, nBufferBufferSize, pBufferBuffer); -} - - -Lib3MFResult CCall_lib3mf_reader_readfromcallback(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MFReadCallback pTheReadCallback, Lib3MF_uint64 nStreamSize, Lib3MFSeekCallback pTheSeekCallback, Lib3MF_pvoid pUserData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Reader_ReadFromCallback (pReader, pTheReadCallback, nStreamSize, pTheSeekCallback, pUserData); -} - - -Lib3MFResult CCall_lib3mf_reader_setprogresscallback(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MFProgressCallback pProgressCallback, Lib3MF_pvoid pUserData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Reader_SetProgressCallback (pReader, pProgressCallback, pUserData); -} - - -Lib3MFResult CCall_lib3mf_reader_addrelationtoread(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, const char * pRelationShipType) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Reader_AddRelationToRead (pReader, pRelationShipType); -} - - -Lib3MFResult CCall_lib3mf_reader_removerelationtoread(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, const char * pRelationShipType) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Reader_RemoveRelationToRead (pReader, pRelationShipType); -} - - -Lib3MFResult CCall_lib3mf_reader_setstrictmodeactive(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, bool bStrictModeActive) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Reader_SetStrictModeActive (pReader, bStrictModeActive); -} - - -Lib3MFResult CCall_lib3mf_reader_getstrictmodeactive(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, bool * pStrictModeActive) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Reader_GetStrictModeActive (pReader, pStrictModeActive); -} - - -Lib3MFResult CCall_lib3mf_reader_getwarning(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MF_uint32 nIndex, Lib3MF_uint32 * pErrorCode, const Lib3MF_uint32 nWarningBufferSize, Lib3MF_uint32* pWarningNeededChars, char * pWarningBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Reader_GetWarning (pReader, nIndex, pErrorCode, nWarningBufferSize, pWarningNeededChars, pWarningBuffer); -} - - -Lib3MFResult CCall_lib3mf_reader_getwarningcount(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Reader_GetWarningCount (pReader, pCount); -} - - -Lib3MFResult CCall_lib3mf_reader_addkeywrappingcallback(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, const char * pConsumerID, Lib3MFKeyWrappingCallback pTheCallback, Lib3MF_pvoid pUserData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Reader_AddKeyWrappingCallback (pReader, pConsumerID, pTheCallback, pUserData); -} - - -Lib3MFResult CCall_lib3mf_reader_setcontentencryptioncallback(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MFContentEncryptionCallback pTheCallback, Lib3MF_pvoid pUserData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Reader_SetContentEncryptionCallback (pReader, pTheCallback, pUserData); -} - - -Lib3MFResult CCall_lib3mf_packagepart_getpath(Lib3MFHandle libraryHandle, Lib3MF_PackagePart pPackagePart, const Lib3MF_uint32 nPathBufferSize, Lib3MF_uint32* pPathNeededChars, char * pPathBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_PackagePart_GetPath (pPackagePart, nPathBufferSize, pPathNeededChars, pPathBuffer); -} - - -Lib3MFResult CCall_lib3mf_packagepart_setpath(Lib3MFHandle libraryHandle, Lib3MF_PackagePart pPackagePart, const char * pPath) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_PackagePart_SetPath (pPackagePart, pPath); -} - - -Lib3MFResult CCall_lib3mf_resource_getresourceid(Lib3MFHandle libraryHandle, Lib3MF_Resource pResource, Lib3MF_uint32 * pUniqueResourceID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Resource_GetResourceID (pResource, pUniqueResourceID); -} - - -Lib3MFResult CCall_lib3mf_resource_getuniqueresourceid(Lib3MFHandle libraryHandle, Lib3MF_Resource pResource, Lib3MF_uint32 * pUniqueResourceID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Resource_GetUniqueResourceID (pResource, pUniqueResourceID); -} - - -Lib3MFResult CCall_lib3mf_resource_packagepart(Lib3MFHandle libraryHandle, Lib3MF_Resource pResource, Lib3MF_PackagePart * pPackagePart) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Resource_PackagePart (pResource, pPackagePart); -} - - -Lib3MFResult CCall_lib3mf_resource_setpackagepart(Lib3MFHandle libraryHandle, Lib3MF_Resource pResource, Lib3MF_PackagePart pPackagePart) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Resource_SetPackagePart (pResource, pPackagePart); -} - - -Lib3MFResult CCall_lib3mf_resource_getmodelresourceid(Lib3MFHandle libraryHandle, Lib3MF_Resource pResource, Lib3MF_uint32 * pModelResourceId) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Resource_GetModelResourceID (pResource, pModelResourceId); -} - - -Lib3MFResult CCall_lib3mf_resourceiterator_movenext(Lib3MFHandle libraryHandle, Lib3MF_ResourceIterator pResourceIterator, bool * pHasNext) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ResourceIterator_MoveNext (pResourceIterator, pHasNext); -} - - -Lib3MFResult CCall_lib3mf_resourceiterator_moveprevious(Lib3MFHandle libraryHandle, Lib3MF_ResourceIterator pResourceIterator, bool * pHasPrevious) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ResourceIterator_MovePrevious (pResourceIterator, pHasPrevious); -} - - -Lib3MFResult CCall_lib3mf_resourceiterator_getcurrent(Lib3MFHandle libraryHandle, Lib3MF_ResourceIterator pResourceIterator, Lib3MF_Resource * pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ResourceIterator_GetCurrent (pResourceIterator, pResource); -} - - -Lib3MFResult CCall_lib3mf_resourceiterator_clone(Lib3MFHandle libraryHandle, Lib3MF_ResourceIterator pResourceIterator, Lib3MF_ResourceIterator * pOutResourceIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ResourceIterator_Clone (pResourceIterator, pOutResourceIterator); -} - - -Lib3MFResult CCall_lib3mf_resourceiterator_count(Lib3MFHandle libraryHandle, Lib3MF_ResourceIterator pResourceIterator, Lib3MF_uint64 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ResourceIterator_Count (pResourceIterator, pCount); -} - - -Lib3MFResult CCall_lib3mf_slicestackiterator_getcurrentslicestack(Lib3MFHandle libraryHandle, Lib3MF_SliceStackIterator pSliceStackIterator, Lib3MF_SliceStack * pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_SliceStackIterator_GetCurrentSliceStack (pSliceStackIterator, pResource); -} - - -Lib3MFResult CCall_lib3mf_objectiterator_getcurrentobject(Lib3MFHandle libraryHandle, Lib3MF_ObjectIterator pObjectIterator, Lib3MF_Object * pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ObjectIterator_GetCurrentObject (pObjectIterator, pResource); -} - - -Lib3MFResult CCall_lib3mf_meshobjectiterator_getcurrentmeshobject(Lib3MFHandle libraryHandle, Lib3MF_MeshObjectIterator pMeshObjectIterator, Lib3MF_MeshObject * pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObjectIterator_GetCurrentMeshObject (pMeshObjectIterator, pResource); -} - - -Lib3MFResult CCall_lib3mf_componentsobjectiterator_getcurrentcomponentsobject(Lib3MFHandle libraryHandle, Lib3MF_ComponentsObjectIterator pComponentsObjectIterator, Lib3MF_ComponentsObject * pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComponentsObjectIterator_GetCurrentComponentsObject (pComponentsObjectIterator, pResource); -} - - -Lib3MFResult CCall_lib3mf_texture2diterator_getcurrenttexture2d(Lib3MFHandle libraryHandle, Lib3MF_Texture2DIterator pTexture2DIterator, Lib3MF_Texture2D * pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Texture2DIterator_GetCurrentTexture2D (pTexture2DIterator, pResource); -} - - -Lib3MFResult CCall_lib3mf_basematerialgroupiterator_getcurrentbasematerialgroup(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroupIterator pBaseMaterialGroupIterator, Lib3MF_BaseMaterialGroup * pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BaseMaterialGroupIterator_GetCurrentBaseMaterialGroup (pBaseMaterialGroupIterator, pResource); -} - - -Lib3MFResult CCall_lib3mf_colorgroupiterator_getcurrentcolorgroup(Lib3MFHandle libraryHandle, Lib3MF_ColorGroupIterator pColorGroupIterator, Lib3MF_ColorGroup * pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ColorGroupIterator_GetCurrentColorGroup (pColorGroupIterator, pResource); -} - - -Lib3MFResult CCall_lib3mf_texture2dgroupiterator_getcurrenttexture2dgroup(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroupIterator pTexture2DGroupIterator, Lib3MF_Texture2DGroup * pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Texture2DGroupIterator_GetCurrentTexture2DGroup (pTexture2DGroupIterator, pResource); -} - - -Lib3MFResult CCall_lib3mf_compositematerialsiterator_getcurrentcompositematerials(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterialsIterator pCompositeMaterialsIterator, Lib3MF_CompositeMaterials * pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_CompositeMaterialsIterator_GetCurrentCompositeMaterials (pCompositeMaterialsIterator, pResource); -} - - -Lib3MFResult CCall_lib3mf_multipropertygroupiterator_getcurrentmultipropertygroup(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroupIterator pMultiPropertyGroupIterator, Lib3MF_MultiPropertyGroup * pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MultiPropertyGroupIterator_GetCurrentMultiPropertyGroup (pMultiPropertyGroupIterator, pResource); -} - - -Lib3MFResult CCall_lib3mf_image3diterator_getcurrentimage3d(Lib3MFHandle libraryHandle, Lib3MF_Image3DIterator pImage3DIterator, Lib3MF_Image3D * pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Image3DIterator_GetCurrentImage3D (pImage3DIterator, pResource); -} - - -Lib3MFResult CCall_lib3mf_functioniterator_getcurrentfunction(Lib3MFHandle libraryHandle, Lib3MF_FunctionIterator pFunctionIterator, Lib3MF_Function * pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionIterator_GetCurrentFunction (pFunctionIterator, pResource); -} - - -Lib3MFResult CCall_lib3mf_levelsetiterator_getcurrentlevelset(Lib3MFHandle libraryHandle, Lib3MF_LevelSetIterator pLevelSetIterator, Lib3MF_LevelSet * pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSetIterator_GetCurrentLevelSet (pLevelSetIterator, pResource); -} - - -Lib3MFResult CCall_lib3mf_metadata_getnamespace(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const Lib3MF_uint32 nNameSpaceBufferSize, Lib3MF_uint32* pNameSpaceNeededChars, char * pNameSpaceBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaData_GetNameSpace (pMetaData, nNameSpaceBufferSize, pNameSpaceNeededChars, pNameSpaceBuffer); -} - - -Lib3MFResult CCall_lib3mf_metadata_setnamespace(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const char * pNameSpace) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaData_SetNameSpace (pMetaData, pNameSpace); -} - - -Lib3MFResult CCall_lib3mf_metadata_getname(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const Lib3MF_uint32 nNameBufferSize, Lib3MF_uint32* pNameNeededChars, char * pNameBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaData_GetName (pMetaData, nNameBufferSize, pNameNeededChars, pNameBuffer); -} - - -Lib3MFResult CCall_lib3mf_metadata_setname(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const char * pName) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaData_SetName (pMetaData, pName); -} - - -Lib3MFResult CCall_lib3mf_metadata_getkey(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const Lib3MF_uint32 nKeyBufferSize, Lib3MF_uint32* pKeyNeededChars, char * pKeyBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaData_GetKey (pMetaData, nKeyBufferSize, pKeyNeededChars, pKeyBuffer); -} - - -Lib3MFResult CCall_lib3mf_metadata_getmustpreserve(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, bool * pMustPreserve) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaData_GetMustPreserve (pMetaData, pMustPreserve); -} - - -Lib3MFResult CCall_lib3mf_metadata_setmustpreserve(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, bool bMustPreserve) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaData_SetMustPreserve (pMetaData, bMustPreserve); -} - - -Lib3MFResult CCall_lib3mf_metadata_gettype(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const Lib3MF_uint32 nTypeBufferSize, Lib3MF_uint32* pTypeNeededChars, char * pTypeBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaData_GetType (pMetaData, nTypeBufferSize, pTypeNeededChars, pTypeBuffer); -} - - -Lib3MFResult CCall_lib3mf_metadata_settype(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const char * pType) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaData_SetType (pMetaData, pType); -} - - -Lib3MFResult CCall_lib3mf_metadata_getvalue(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const Lib3MF_uint32 nValueBufferSize, Lib3MF_uint32* pValueNeededChars, char * pValueBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaData_GetValue (pMetaData, nValueBufferSize, pValueNeededChars, pValueBuffer); -} - - -Lib3MFResult CCall_lib3mf_metadata_setvalue(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const char * pValue) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaData_SetValue (pMetaData, pValue); -} - - -Lib3MFResult CCall_lib3mf_metadatagroup_getmetadatacount(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaDataGroup_GetMetaDataCount (pMetaDataGroup, pCount); -} - - -Lib3MFResult CCall_lib3mf_metadatagroup_getmetadata(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, Lib3MF_uint32 nIndex, Lib3MF_MetaData * pMetaData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaDataGroup_GetMetaData (pMetaDataGroup, nIndex, pMetaData); -} - - -Lib3MFResult CCall_lib3mf_metadatagroup_getmetadatabykey(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, const char * pNameSpace, const char * pName, Lib3MF_MetaData * pMetaData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaDataGroup_GetMetaDataByKey (pMetaDataGroup, pNameSpace, pName, pMetaData); -} - - -Lib3MFResult CCall_lib3mf_metadatagroup_removemetadatabyindex(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, Lib3MF_uint32 nIndex) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaDataGroup_RemoveMetaDataByIndex (pMetaDataGroup, nIndex); -} - - -Lib3MFResult CCall_lib3mf_metadatagroup_removemetadata(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, Lib3MF_MetaData pTheMetaData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaDataGroup_RemoveMetaData (pMetaDataGroup, pTheMetaData); -} - - -Lib3MFResult CCall_lib3mf_metadatagroup_addmetadata(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, const char * pNameSpace, const char * pName, const char * pValue, const char * pType, bool bMustPreserve, Lib3MF_MetaData * pMetaData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MetaDataGroup_AddMetaData (pMetaDataGroup, pNameSpace, pName, pValue, pType, bMustPreserve, pMetaData); -} - - -Lib3MFResult CCall_lib3mf_object_gettype(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, eLib3MFObjectType * pObjectType) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_GetType (pObject, pObjectType); -} - - -Lib3MFResult CCall_lib3mf_object_settype(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, eLib3MFObjectType eObjectType) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_SetType (pObject, eObjectType); -} - - -Lib3MFResult CCall_lib3mf_object_getname(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, const Lib3MF_uint32 nNameBufferSize, Lib3MF_uint32* pNameNeededChars, char * pNameBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_GetName (pObject, nNameBufferSize, pNameNeededChars, pNameBuffer); -} - - -Lib3MFResult CCall_lib3mf_object_setname(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, const char * pName) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_SetName (pObject, pName); -} - - -Lib3MFResult CCall_lib3mf_object_getpartnumber(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, const Lib3MF_uint32 nPartNumberBufferSize, Lib3MF_uint32* pPartNumberNeededChars, char * pPartNumberBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_GetPartNumber (pObject, nPartNumberBufferSize, pPartNumberNeededChars, pPartNumberBuffer); -} - - -Lib3MFResult CCall_lib3mf_object_setpartnumber(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, const char * pPartNumber) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_SetPartNumber (pObject, pPartNumber); -} - - -Lib3MFResult CCall_lib3mf_object_ismeshobject(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool * pIsMeshObject) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_IsMeshObject (pObject, pIsMeshObject); -} - - -Lib3MFResult CCall_lib3mf_object_iscomponentsobject(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool * pIsComponentsObject) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_IsComponentsObject (pObject, pIsComponentsObject); -} - - -Lib3MFResult CCall_lib3mf_object_islevelsetobject(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool * pIsLevelSetObject) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_IsLevelSetObject (pObject, pIsLevelSetObject); -} - - -Lib3MFResult CCall_lib3mf_object_isvalid(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool * pIsValid) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_IsValid (pObject, pIsValid); -} - - -Lib3MFResult CCall_lib3mf_object_setattachmentasthumbnail(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, Lib3MF_Attachment pAttachment) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_SetAttachmentAsThumbnail (pObject, pAttachment); -} - - -Lib3MFResult CCall_lib3mf_object_getthumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, Lib3MF_Attachment * pAttachment) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_GetThumbnailAttachment (pObject, pAttachment); -} - - -Lib3MFResult CCall_lib3mf_object_clearthumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Object pObject) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_ClearThumbnailAttachment (pObject); -} - - -Lib3MFResult CCall_lib3mf_object_getoutbox(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, sLib3MFBox * pOutbox) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_GetOutbox (pObject, pOutbox); -} - - -Lib3MFResult CCall_lib3mf_object_getuuid(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool * pHasUUID, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_GetUUID (pObject, pHasUUID, nUUIDBufferSize, pUUIDNeededChars, pUUIDBuffer); -} - - -Lib3MFResult CCall_lib3mf_object_setuuid(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, const char * pUUID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_SetUUID (pObject, pUUID); -} - - -Lib3MFResult CCall_lib3mf_object_getmetadatagroup(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, Lib3MF_MetaDataGroup * pMetaDataGroup) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_GetMetaDataGroup (pObject, pMetaDataGroup); -} - - -Lib3MFResult CCall_lib3mf_object_setslicesmeshresolution(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, eLib3MFSlicesMeshResolution eMeshResolution) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_SetSlicesMeshResolution (pObject, eMeshResolution); -} - - -Lib3MFResult CCall_lib3mf_object_getslicesmeshresolution(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, eLib3MFSlicesMeshResolution * pMeshResolution) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_GetSlicesMeshResolution (pObject, pMeshResolution); -} - - -Lib3MFResult CCall_lib3mf_object_hasslices(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool bRecursive, bool * pHasSlices) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_HasSlices (pObject, bRecursive, pHasSlices); -} - - -Lib3MFResult CCall_lib3mf_object_clearslicestack(Lib3MFHandle libraryHandle, Lib3MF_Object pObject) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_ClearSliceStack (pObject); -} - - -Lib3MFResult CCall_lib3mf_object_getslicestack(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, Lib3MF_SliceStack * pSliceStackInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_GetSliceStack (pObject, pSliceStackInstance); -} - - -Lib3MFResult CCall_lib3mf_object_assignslicestack(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, Lib3MF_SliceStack pSliceStackInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Object_AssignSliceStack (pObject, pSliceStackInstance); -} - - -Lib3MFResult CCall_lib3mf_meshobject_getvertexcount(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 * pVertexCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_GetVertexCount (pMeshObject, pVertexCount); -} - - -Lib3MFResult CCall_lib3mf_meshobject_gettrianglecount(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 * pVertexCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_GetTriangleCount (pMeshObject, pVertexCount); -} - - -Lib3MFResult CCall_lib3mf_meshobject_getvertex(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, sLib3MFPosition * pCoordinates) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_GetVertex (pMeshObject, nIndex, pCoordinates); -} - - -Lib3MFResult CCall_lib3mf_meshobject_setvertex(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, const sLib3MFPosition * pCoordinates) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_SetVertex (pMeshObject, nIndex, pCoordinates); -} - - -Lib3MFResult CCall_lib3mf_meshobject_addvertex(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, const sLib3MFPosition * pCoordinates, Lib3MF_uint32 * pNewIndex) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_AddVertex (pMeshObject, pCoordinates, pNewIndex); -} - - -Lib3MFResult CCall_lib3mf_meshobject_getvertices(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, const Lib3MF_uint64 nVerticesBufferSize, Lib3MF_uint64* pVerticesNeededCount, sLib3MFPosition * pVerticesBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_GetVertices (pMeshObject, nVerticesBufferSize, pVerticesNeededCount, pVerticesBuffer); -} - - -Lib3MFResult CCall_lib3mf_meshobject_gettriangle(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, sLib3MFTriangle * pIndices) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_GetTriangle (pMeshObject, nIndex, pIndices); -} - - -Lib3MFResult CCall_lib3mf_meshobject_settriangle(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, const sLib3MFTriangle * pIndices) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_SetTriangle (pMeshObject, nIndex, pIndices); -} - - -Lib3MFResult CCall_lib3mf_meshobject_addtriangle(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, const sLib3MFTriangle * pIndices, Lib3MF_uint32 * pNewIndex) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_AddTriangle (pMeshObject, pIndices, pNewIndex); -} - - -Lib3MFResult CCall_lib3mf_meshobject_gettriangleindices(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, const Lib3MF_uint64 nIndicesBufferSize, Lib3MF_uint64* pIndicesNeededCount, sLib3MFTriangle * pIndicesBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_GetTriangleIndices (pMeshObject, nIndicesBufferSize, pIndicesNeededCount, pIndicesBuffer); -} - - -Lib3MFResult CCall_lib3mf_meshobject_setobjectlevelproperty(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nUniqueResourceID, Lib3MF_uint32 nPropertyID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_SetObjectLevelProperty (pMeshObject, nUniqueResourceID, nPropertyID); -} - - -Lib3MFResult CCall_lib3mf_meshobject_getobjectlevelproperty(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 * pUniqueResourceID, Lib3MF_uint32 * pPropertyID, bool * pHasObjectLevelProperty) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_GetObjectLevelProperty (pMeshObject, pUniqueResourceID, pPropertyID, pHasObjectLevelProperty); -} - - -Lib3MFResult CCall_lib3mf_meshobject_settriangleproperties(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, const sLib3MFTriangleProperties * pProperties) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_SetTriangleProperties (pMeshObject, nIndex, pProperties); -} - - -Lib3MFResult CCall_lib3mf_meshobject_gettriangleproperties(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, sLib3MFTriangleProperties * pProperty) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_GetTriangleProperties (pMeshObject, nIndex, pProperty); -} - - -Lib3MFResult CCall_lib3mf_meshobject_setalltriangleproperties(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint64 nPropertiesArrayBufferSize, const sLib3MFTriangleProperties * pPropertiesArrayBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_SetAllTriangleProperties (pMeshObject, nPropertiesArrayBufferSize, pPropertiesArrayBuffer); -} - - -Lib3MFResult CCall_lib3mf_meshobject_getalltriangleproperties(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, const Lib3MF_uint64 nPropertiesArrayBufferSize, Lib3MF_uint64* pPropertiesArrayNeededCount, sLib3MFTriangleProperties * pPropertiesArrayBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_GetAllTriangleProperties (pMeshObject, nPropertiesArrayBufferSize, pPropertiesArrayNeededCount, pPropertiesArrayBuffer); -} - - -Lib3MFResult CCall_lib3mf_meshobject_clearallproperties(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_ClearAllProperties (pMeshObject); -} - - -Lib3MFResult CCall_lib3mf_meshobject_setgeometry(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint64 nVerticesBufferSize, const sLib3MFPosition * pVerticesBuffer, Lib3MF_uint64 nIndicesBufferSize, const sLib3MFTriangle * pIndicesBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_SetGeometry (pMeshObject, nVerticesBufferSize, pVerticesBuffer, nIndicesBufferSize, pIndicesBuffer); -} - - -Lib3MFResult CCall_lib3mf_meshobject_ismanifoldandoriented(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, bool * pIsManifoldAndOriented) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_IsManifoldAndOriented (pMeshObject, pIsManifoldAndOriented); -} - - -Lib3MFResult CCall_lib3mf_meshobject_beamlattice(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_BeamLattice * pTheBeamLattice) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_BeamLattice (pMeshObject, pTheBeamLattice); -} - - -Lib3MFResult CCall_lib3mf_meshobject_getvolumedata(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_VolumeData * pTheVolumeData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_GetVolumeData (pMeshObject, pTheVolumeData); -} - - -Lib3MFResult CCall_lib3mf_meshobject_setvolumedata(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_VolumeData pTheVolumeData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshObject_SetVolumeData (pMeshObject, pTheVolumeData); -} - - -Lib3MFResult CCall_lib3mf_levelset_getfunction(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_Function * pTheFunction) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSet_GetFunction (pLevelSet, pTheFunction); -} - - -Lib3MFResult CCall_lib3mf_levelset_setfunction(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_Function pTheFunction) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSet_SetFunction (pLevelSet, pTheFunction); -} - - -Lib3MFResult CCall_lib3mf_levelset_gettransform(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, sLib3MFTransform * pTransform) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSet_GetTransform (pLevelSet, pTransform); -} - - -Lib3MFResult CCall_lib3mf_levelset_settransform(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, const sLib3MFTransform * pTransform) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSet_SetTransform (pLevelSet, pTransform); -} - - -Lib3MFResult CCall_lib3mf_levelset_getchannelname(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSet_GetChannelName (pLevelSet, nChannelNameBufferSize, pChannelNameNeededChars, pChannelNameBuffer); -} - - -Lib3MFResult CCall_lib3mf_levelset_setchannelname(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, const char * pChannelName) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSet_SetChannelName (pLevelSet, pChannelName); -} - - -Lib3MFResult CCall_lib3mf_levelset_setminfeaturesize(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_double dMinFeatureSize) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSet_SetMinFeatureSize (pLevelSet, dMinFeatureSize); -} - - -Lib3MFResult CCall_lib3mf_levelset_getminfeaturesize(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_double * pMinFeatureSize) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSet_GetMinFeatureSize (pLevelSet, pMinFeatureSize); -} - - -Lib3MFResult CCall_lib3mf_levelset_setfallbackvalue(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_double dFallBackValue) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSet_SetFallBackValue (pLevelSet, dFallBackValue); -} - - -Lib3MFResult CCall_lib3mf_levelset_getfallbackvalue(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_double * pFallBackValue) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSet_GetFallBackValue (pLevelSet, pFallBackValue); -} - - -Lib3MFResult CCall_lib3mf_levelset_setmeshbboxonly(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, bool bMeshBBoxOnly) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSet_SetMeshBBoxOnly (pLevelSet, bMeshBBoxOnly); -} - - -Lib3MFResult CCall_lib3mf_levelset_getmeshbboxonly(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, bool * pMeshBBoxOnly) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSet_GetMeshBBoxOnly (pLevelSet, pMeshBBoxOnly); -} - - -Lib3MFResult CCall_lib3mf_levelset_setmesh(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject pTheMesh) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSet_SetMesh (pLevelSet, pTheMesh); -} - - -Lib3MFResult CCall_lib3mf_levelset_getmesh(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject * pTheMesh) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSet_GetMesh (pLevelSet, pTheMesh); -} - - -Lib3MFResult CCall_lib3mf_levelset_getvolumedata(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData * pTheVolumeData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSet_GetVolumeData (pLevelSet, pTheVolumeData); -} - - -Lib3MFResult CCall_lib3mf_levelset_setvolumedata(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData pTheVolumeData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_LevelSet_SetVolumeData (pLevelSet, pTheVolumeData); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_getminlength(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_double * pMinLength) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_GetMinLength (pBeamLattice, pMinLength); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_setminlength(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_double dMinLength) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_SetMinLength (pBeamLattice, dMinLength); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_getclipping(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, eLib3MFBeamLatticeClipMode * pClipMode, Lib3MF_uint32 * pUniqueResourceID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_GetClipping (pBeamLattice, pClipMode, pUniqueResourceID); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_setclipping(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, eLib3MFBeamLatticeClipMode eClipMode, Lib3MF_uint32 nUniqueResourceID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_SetClipping (pBeamLattice, eClipMode, nUniqueResourceID); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_getrepresentation(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, bool * pHasRepresentation, Lib3MF_uint32 * pUniqueResourceID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_GetRepresentation (pBeamLattice, pHasRepresentation, pUniqueResourceID); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_setrepresentation(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nUniqueResourceID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_SetRepresentation (pBeamLattice, nUniqueResourceID); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_getballoptions(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, eLib3MFBeamLatticeBallMode * pBallMode, Lib3MF_double * pBallRadius) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_GetBallOptions (pBeamLattice, pBallMode, pBallRadius); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_setballoptions(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, eLib3MFBeamLatticeBallMode eBallMode, Lib3MF_double dBallRadius) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_SetBallOptions (pBeamLattice, eBallMode, dBallRadius); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_getbeamcount(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_GetBeamCount (pBeamLattice, pCount); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_getbeam(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nIndex, sLib3MFBeam * pBeamInfo) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_GetBeam (pBeamLattice, nIndex, pBeamInfo); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_addbeam(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, const sLib3MFBeam * pBeamInfo, Lib3MF_uint32 * pIndex) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_AddBeam (pBeamLattice, pBeamInfo, pIndex); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_setbeam(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nIndex, const sLib3MFBeam * pBeamInfo) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_SetBeam (pBeamLattice, nIndex, pBeamInfo); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_setbeams(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint64 nBeamInfoBufferSize, const sLib3MFBeam * pBeamInfoBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_SetBeams (pBeamLattice, nBeamInfoBufferSize, pBeamInfoBuffer); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_getbeams(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, const Lib3MF_uint64 nBeamInfoBufferSize, Lib3MF_uint64* pBeamInfoNeededCount, sLib3MFBeam * pBeamInfoBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_GetBeams (pBeamLattice, nBeamInfoBufferSize, pBeamInfoNeededCount, pBeamInfoBuffer); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_getballcount(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_GetBallCount (pBeamLattice, pCount); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_getball(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nIndex, sLib3MFBall * pBallInfo) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_GetBall (pBeamLattice, nIndex, pBallInfo); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_addball(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, const sLib3MFBall * pBallInfo, Lib3MF_uint32 * pIndex) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_AddBall (pBeamLattice, pBallInfo, pIndex); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_setball(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nIndex, const sLib3MFBall * pBallInfo) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_SetBall (pBeamLattice, nIndex, pBallInfo); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_setballs(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint64 nBallInfoBufferSize, const sLib3MFBall * pBallInfoBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_SetBalls (pBeamLattice, nBallInfoBufferSize, pBallInfoBuffer); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_getballs(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, const Lib3MF_uint64 nBallInfoBufferSize, Lib3MF_uint64* pBallInfoNeededCount, sLib3MFBall * pBallInfoBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_GetBalls (pBeamLattice, nBallInfoBufferSize, pBallInfoNeededCount, pBallInfoBuffer); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_getbeamsetcount(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_GetBeamSetCount (pBeamLattice, pCount); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_addbeamset(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_BeamSet * pBeamSet) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_AddBeamSet (pBeamLattice, pBeamSet); -} - - -Lib3MFResult CCall_lib3mf_beamlattice_getbeamset(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nIndex, Lib3MF_BeamSet * pBeamSet) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamLattice_GetBeamSet (pBeamLattice, nIndex, pBeamSet); -} - - -Lib3MFResult CCall_lib3mf_functionreference_getfunctionresourceid(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_uint32 * pUniqueResourceID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionReference_GetFunctionResourceID (pFunctionReference, pUniqueResourceID); -} - - -Lib3MFResult CCall_lib3mf_functionreference_setfunctionresourceid(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_uint32 nUniqueResourceID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionReference_SetFunctionResourceID (pFunctionReference, nUniqueResourceID); -} - - -Lib3MFResult CCall_lib3mf_functionreference_gettransform(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, sLib3MFTransform * pTransform) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionReference_GetTransform (pFunctionReference, pTransform); -} - - -Lib3MFResult CCall_lib3mf_functionreference_settransform(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, const sLib3MFTransform * pTransform) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionReference_SetTransform (pFunctionReference, pTransform); -} - - -Lib3MFResult CCall_lib3mf_functionreference_getchannelname(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionReference_GetChannelName (pFunctionReference, nChannelNameBufferSize, pChannelNameNeededChars, pChannelNameBuffer); -} - - -Lib3MFResult CCall_lib3mf_functionreference_setchannelname(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, const char * pChannelName) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionReference_SetChannelName (pFunctionReference, pChannelName); -} - - -Lib3MFResult CCall_lib3mf_functionreference_setminfeaturesize(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_double dMinFeatureSize) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionReference_SetMinFeatureSize (pFunctionReference, dMinFeatureSize); -} - - -Lib3MFResult CCall_lib3mf_functionreference_getminfeaturesize(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_double * pMinFeatureSize) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionReference_GetMinFeatureSize (pFunctionReference, pMinFeatureSize); -} - - -Lib3MFResult CCall_lib3mf_functionreference_setfallbackvalue(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_double dFallBackValue) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionReference_SetFallBackValue (pFunctionReference, dFallBackValue); -} - - -Lib3MFResult CCall_lib3mf_functionreference_getfallbackvalue(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_double * pFallBackValue) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionReference_GetFallBackValue (pFunctionReference, pFallBackValue); -} - - -Lib3MFResult CCall_lib3mf_volumedatacomposite_getbasematerialgroup(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, Lib3MF_BaseMaterialGroup * pBaseMaterialGroupInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeDataComposite_GetBaseMaterialGroup (pVolumeDataComposite, pBaseMaterialGroupInstance); -} - - -Lib3MFResult CCall_lib3mf_volumedatacomposite_setbasematerialgroup(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, Lib3MF_BaseMaterialGroup pBaseMaterialGroupInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeDataComposite_SetBaseMaterialGroup (pVolumeDataComposite, pBaseMaterialGroupInstance); -} - - -Lib3MFResult CCall_lib3mf_volumedatacomposite_getmaterialmappingcount(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeDataComposite_GetMaterialMappingCount (pVolumeDataComposite, pCount); -} - - -Lib3MFResult CCall_lib3mf_volumedatacomposite_getmaterialmapping(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, Lib3MF_uint32 nIndex, Lib3MF_MaterialMapping * pTheMaterialMapping) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeDataComposite_GetMaterialMapping (pVolumeDataComposite, nIndex, pTheMaterialMapping); -} - - -Lib3MFResult CCall_lib3mf_volumedatacomposite_addmaterialmapping(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, const sLib3MFTransform * pTransform, Lib3MF_MaterialMapping * pTheMaterialMapping) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeDataComposite_AddMaterialMapping (pVolumeDataComposite, pTransform, pTheMaterialMapping); -} - - -Lib3MFResult CCall_lib3mf_volumedatacomposite_removematerialmapping(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, Lib3MF_uint32 nIndex) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeDataComposite_RemoveMaterialMapping (pVolumeDataComposite, nIndex); -} - - -Lib3MFResult CCall_lib3mf_volumedataproperty_getname(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataProperty pVolumeDataProperty, const Lib3MF_uint32 nPropertyNameBufferSize, Lib3MF_uint32* pPropertyNameNeededChars, char * pPropertyNameBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeDataProperty_GetName (pVolumeDataProperty, nPropertyNameBufferSize, pPropertyNameNeededChars, pPropertyNameBuffer); -} - - -Lib3MFResult CCall_lib3mf_volumedataproperty_setisrequired(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataProperty pVolumeDataProperty, bool bIsRequired) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeDataProperty_SetIsRequired (pVolumeDataProperty, bIsRequired); -} - - -Lib3MFResult CCall_lib3mf_volumedataproperty_isrequired(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataProperty pVolumeDataProperty, bool * pIsRequired) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeDataProperty_IsRequired (pVolumeDataProperty, pIsRequired); -} - - -Lib3MFResult CCall_lib3mf_volumedata_getcomposite(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_VolumeDataComposite * pTheCompositeData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeData_GetComposite (pVolumeData, pTheCompositeData); -} - - -Lib3MFResult CCall_lib3mf_volumedata_createnewcomposite(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_VolumeDataComposite * pTheCompositeData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeData_CreateNewComposite (pVolumeData, pTheCompositeData); -} - - -Lib3MFResult CCall_lib3mf_volumedata_removecomposite(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeData_RemoveComposite (pVolumeData); -} - - -Lib3MFResult CCall_lib3mf_volumedata_getcolor(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_VolumeDataColor * pTheColorData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeData_GetColor (pVolumeData, pTheColorData); -} - - -Lib3MFResult CCall_lib3mf_volumedata_createnewcolor(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_Function pTheFunction, Lib3MF_VolumeDataColor * pTheColorData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeData_CreateNewColor (pVolumeData, pTheFunction, pTheColorData); -} - - -Lib3MFResult CCall_lib3mf_volumedata_removecolor(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeData_RemoveColor (pVolumeData); -} - - -Lib3MFResult CCall_lib3mf_volumedata_getpropertycount(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeData_GetPropertyCount (pVolumeData, pCount); -} - - -Lib3MFResult CCall_lib3mf_volumedata_getproperty(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_uint32 nIndex, Lib3MF_VolumeDataProperty * pTheVolumeDataProperty) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeData_GetProperty (pVolumeData, nIndex, pTheVolumeDataProperty); -} - - -Lib3MFResult CCall_lib3mf_volumedata_addpropertyfromfunction(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, const char * pName, Lib3MF_Function pTheFunction, Lib3MF_VolumeDataProperty * pTheVolumeDataProperty) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeData_AddPropertyFromFunction (pVolumeData, pName, pTheFunction, pTheVolumeDataProperty); -} - - -Lib3MFResult CCall_lib3mf_volumedata_removeproperty(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_uint32 nIndex) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_VolumeData_RemoveProperty (pVolumeData, nIndex); -} - - -Lib3MFResult CCall_lib3mf_component_getobjectresource(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, Lib3MF_Object * pObjectResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Component_GetObjectResource (pComponent, pObjectResource); -} - - -Lib3MFResult CCall_lib3mf_component_getobjectresourceid(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, Lib3MF_uint32 * pUniqueResourceID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Component_GetObjectResourceID (pComponent, pUniqueResourceID); -} - - -Lib3MFResult CCall_lib3mf_component_getuuid(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, bool * pHasUUID, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Component_GetUUID (pComponent, pHasUUID, nUUIDBufferSize, pUUIDNeededChars, pUUIDBuffer); -} - - -Lib3MFResult CCall_lib3mf_component_setuuid(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, const char * pUUID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Component_SetUUID (pComponent, pUUID); -} - - -Lib3MFResult CCall_lib3mf_component_hastransform(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, bool * pHasTransform) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Component_HasTransform (pComponent, pHasTransform); -} - - -Lib3MFResult CCall_lib3mf_component_gettransform(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, sLib3MFTransform * pTransform) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Component_GetTransform (pComponent, pTransform); -} - - -Lib3MFResult CCall_lib3mf_component_settransform(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, const sLib3MFTransform * pTransform) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Component_SetTransform (pComponent, pTransform); -} - - -Lib3MFResult CCall_lib3mf_componentsobject_addcomponent(Lib3MFHandle libraryHandle, Lib3MF_ComponentsObject pComponentsObject, Lib3MF_Object pObjectResource, const sLib3MFTransform * pTransform, Lib3MF_Component * pComponentInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComponentsObject_AddComponent (pComponentsObject, pObjectResource, pTransform, pComponentInstance); -} - - -Lib3MFResult CCall_lib3mf_componentsobject_getcomponent(Lib3MFHandle libraryHandle, Lib3MF_ComponentsObject pComponentsObject, Lib3MF_uint32 nIndex, Lib3MF_Component * pComponentInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComponentsObject_GetComponent (pComponentsObject, nIndex, pComponentInstance); -} - - -Lib3MFResult CCall_lib3mf_componentsobject_getcomponentcount(Lib3MFHandle libraryHandle, Lib3MF_ComponentsObject pComponentsObject, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComponentsObject_GetComponentCount (pComponentsObject, pCount); -} - - -Lib3MFResult CCall_lib3mf_beamset_setname(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const char * pName) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamSet_SetName (pBeamSet, pName); -} - - -Lib3MFResult CCall_lib3mf_beamset_getname(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const Lib3MF_uint32 nNameBufferSize, Lib3MF_uint32* pNameNeededChars, char * pNameBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamSet_GetName (pBeamSet, nNameBufferSize, pNameNeededChars, pNameBuffer); -} - - -Lib3MFResult CCall_lib3mf_beamset_setidentifier(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const char * pIdentifier) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamSet_SetIdentifier (pBeamSet, pIdentifier); -} - - -Lib3MFResult CCall_lib3mf_beamset_getidentifier(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const Lib3MF_uint32 nIdentifierBufferSize, Lib3MF_uint32* pIdentifierNeededChars, char * pIdentifierBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamSet_GetIdentifier (pBeamSet, nIdentifierBufferSize, pIdentifierNeededChars, pIdentifierBuffer); -} - - -Lib3MFResult CCall_lib3mf_beamset_getreferencecount(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamSet_GetReferenceCount (pBeamSet, pCount); -} - - -Lib3MFResult CCall_lib3mf_beamset_setreferences(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, Lib3MF_uint64 nReferencesBufferSize, const Lib3MF_uint32 * pReferencesBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamSet_SetReferences (pBeamSet, nReferencesBufferSize, pReferencesBuffer); -} - - -Lib3MFResult CCall_lib3mf_beamset_getreferences(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const Lib3MF_uint64 nReferencesBufferSize, Lib3MF_uint64* pReferencesNeededCount, Lib3MF_uint32 * pReferencesBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamSet_GetReferences (pBeamSet, nReferencesBufferSize, pReferencesNeededCount, pReferencesBuffer); -} - - -Lib3MFResult CCall_lib3mf_beamset_getballreferencecount(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamSet_GetBallReferenceCount (pBeamSet, pCount); -} - - -Lib3MFResult CCall_lib3mf_beamset_setballreferences(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, Lib3MF_uint64 nBallReferencesBufferSize, const Lib3MF_uint32 * pBallReferencesBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamSet_SetBallReferences (pBeamSet, nBallReferencesBufferSize, pBallReferencesBuffer); -} - - -Lib3MFResult CCall_lib3mf_beamset_getballreferences(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const Lib3MF_uint64 nBallReferencesBufferSize, Lib3MF_uint64* pBallReferencesNeededCount, Lib3MF_uint32 * pBallReferencesBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BeamSet_GetBallReferences (pBeamSet, nBallReferencesBufferSize, pBallReferencesNeededCount, pBallReferencesBuffer); -} - - -Lib3MFResult CCall_lib3mf_basematerialgroup_getcount(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BaseMaterialGroup_GetCount (pBaseMaterialGroup, pCount); -} - - -Lib3MFResult CCall_lib3mf_basematerialgroup_getallpropertyids(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BaseMaterialGroup_GetAllPropertyIDs (pBaseMaterialGroup, nPropertyIDsBufferSize, pPropertyIDsNeededCount, pPropertyIDsBuffer); -} - - -Lib3MFResult CCall_lib3mf_basematerialgroup_addmaterial(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, const char * pName, const sLib3MFColor * pDisplayColor, Lib3MF_uint32 * pPropertyID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BaseMaterialGroup_AddMaterial (pBaseMaterialGroup, pName, pDisplayColor, pPropertyID); -} - - -Lib3MFResult CCall_lib3mf_basematerialgroup_removematerial(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 nPropertyID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BaseMaterialGroup_RemoveMaterial (pBaseMaterialGroup, nPropertyID); -} - - -Lib3MFResult CCall_lib3mf_basematerialgroup_getname(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 nPropertyID, const Lib3MF_uint32 nNameBufferSize, Lib3MF_uint32* pNameNeededChars, char * pNameBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BaseMaterialGroup_GetName (pBaseMaterialGroup, nPropertyID, nNameBufferSize, pNameNeededChars, pNameBuffer); -} - - -Lib3MFResult CCall_lib3mf_basematerialgroup_setname(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 nPropertyID, const char * pName) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BaseMaterialGroup_SetName (pBaseMaterialGroup, nPropertyID, pName); -} - - -Lib3MFResult CCall_lib3mf_basematerialgroup_setdisplaycolor(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 nPropertyID, const sLib3MFColor * pTheColor) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BaseMaterialGroup_SetDisplayColor (pBaseMaterialGroup, nPropertyID, pTheColor); -} - - -Lib3MFResult CCall_lib3mf_basematerialgroup_getdisplaycolor(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 nPropertyID, sLib3MFColor * pTheColor) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BaseMaterialGroup_GetDisplayColor (pBaseMaterialGroup, nPropertyID, pTheColor); -} - - -Lib3MFResult CCall_lib3mf_colorgroup_getcount(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ColorGroup_GetCount (pColorGroup, pCount); -} - - -Lib3MFResult CCall_lib3mf_colorgroup_getallpropertyids(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ColorGroup_GetAllPropertyIDs (pColorGroup, nPropertyIDsBufferSize, pPropertyIDsNeededCount, pPropertyIDsBuffer); -} - - -Lib3MFResult CCall_lib3mf_colorgroup_addcolor(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, const sLib3MFColor * pTheColor, Lib3MF_uint32 * pPropertyID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ColorGroup_AddColor (pColorGroup, pTheColor, pPropertyID); -} - - -Lib3MFResult CCall_lib3mf_colorgroup_removecolor(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, Lib3MF_uint32 nPropertyID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ColorGroup_RemoveColor (pColorGroup, nPropertyID); -} - - -Lib3MFResult CCall_lib3mf_colorgroup_setcolor(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, Lib3MF_uint32 nPropertyID, const sLib3MFColor * pTheColor) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ColorGroup_SetColor (pColorGroup, nPropertyID, pTheColor); -} - - -Lib3MFResult CCall_lib3mf_colorgroup_getcolor(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, Lib3MF_uint32 nPropertyID, sLib3MFColor * pTheColor) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ColorGroup_GetColor (pColorGroup, nPropertyID, pTheColor); -} - - -Lib3MFResult CCall_lib3mf_texture2dgroup_getcount(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Texture2DGroup_GetCount (pTexture2DGroup, pCount); -} - - -Lib3MFResult CCall_lib3mf_texture2dgroup_getallpropertyids(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Texture2DGroup_GetAllPropertyIDs (pTexture2DGroup, nPropertyIDsBufferSize, pPropertyIDsNeededCount, pPropertyIDsBuffer); -} - - -Lib3MFResult CCall_lib3mf_texture2dgroup_addtex2coord(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, const sLib3MFTex2Coord * pUVCoordinate, Lib3MF_uint32 * pPropertyID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Texture2DGroup_AddTex2Coord (pTexture2DGroup, pUVCoordinate, pPropertyID); -} - - -Lib3MFResult CCall_lib3mf_texture2dgroup_gettex2coord(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, Lib3MF_uint32 nPropertyID, sLib3MFTex2Coord * pUVCoordinate) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Texture2DGroup_GetTex2Coord (pTexture2DGroup, nPropertyID, pUVCoordinate); -} - - -Lib3MFResult CCall_lib3mf_texture2dgroup_removetex2coord(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, Lib3MF_uint32 nPropertyID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Texture2DGroup_RemoveTex2Coord (pTexture2DGroup, nPropertyID); -} - - -Lib3MFResult CCall_lib3mf_texture2dgroup_gettexture2d(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, Lib3MF_Texture2D * pTexture2DInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Texture2DGroup_GetTexture2D (pTexture2DGroup, pTexture2DInstance); -} - - -Lib3MFResult CCall_lib3mf_compositematerials_getcount(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_CompositeMaterials_GetCount (pCompositeMaterials, pCount); -} - - -Lib3MFResult CCall_lib3mf_compositematerials_getallpropertyids(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_CompositeMaterials_GetAllPropertyIDs (pCompositeMaterials, nPropertyIDsBufferSize, pPropertyIDsNeededCount, pPropertyIDsBuffer); -} - - -Lib3MFResult CCall_lib3mf_compositematerials_getbasematerialgroup(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, Lib3MF_BaseMaterialGroup * pBaseMaterialGroupInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_CompositeMaterials_GetBaseMaterialGroup (pCompositeMaterials, pBaseMaterialGroupInstance); -} - - -Lib3MFResult CCall_lib3mf_compositematerials_addcomposite(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, Lib3MF_uint64 nCompositeBufferSize, const sLib3MFCompositeConstituent * pCompositeBuffer, Lib3MF_uint32 * pPropertyID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_CompositeMaterials_AddComposite (pCompositeMaterials, nCompositeBufferSize, pCompositeBuffer, pPropertyID); -} - - -Lib3MFResult CCall_lib3mf_compositematerials_removecomposite(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, Lib3MF_uint32 nPropertyID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_CompositeMaterials_RemoveComposite (pCompositeMaterials, nPropertyID); -} - - -Lib3MFResult CCall_lib3mf_compositematerials_getcomposite(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, Lib3MF_uint32 nPropertyID, const Lib3MF_uint64 nCompositeBufferSize, Lib3MF_uint64* pCompositeNeededCount, sLib3MFCompositeConstituent * pCompositeBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_CompositeMaterials_GetComposite (pCompositeMaterials, nPropertyID, nCompositeBufferSize, pCompositeNeededCount, pCompositeBuffer); -} - - -Lib3MFResult CCall_lib3mf_multipropertygroup_getcount(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MultiPropertyGroup_GetCount (pMultiPropertyGroup, pCount); -} - - -Lib3MFResult CCall_lib3mf_multipropertygroup_getallpropertyids(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MultiPropertyGroup_GetAllPropertyIDs (pMultiPropertyGroup, nPropertyIDsBufferSize, pPropertyIDsNeededCount, pPropertyIDsBuffer); -} - - -Lib3MFResult CCall_lib3mf_multipropertygroup_addmultiproperty(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint64 nPropertyIDsBufferSize, const Lib3MF_uint32 * pPropertyIDsBuffer, Lib3MF_uint32 * pPropertyID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MultiPropertyGroup_AddMultiProperty (pMultiPropertyGroup, nPropertyIDsBufferSize, pPropertyIDsBuffer, pPropertyID); -} - - -Lib3MFResult CCall_lib3mf_multipropertygroup_setmultiproperty(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 nPropertyID, Lib3MF_uint64 nPropertyIDsBufferSize, const Lib3MF_uint32 * pPropertyIDsBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MultiPropertyGroup_SetMultiProperty (pMultiPropertyGroup, nPropertyID, nPropertyIDsBufferSize, pPropertyIDsBuffer); -} - - -Lib3MFResult CCall_lib3mf_multipropertygroup_getmultiproperty(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 nPropertyID, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MultiPropertyGroup_GetMultiProperty (pMultiPropertyGroup, nPropertyID, nPropertyIDsBufferSize, pPropertyIDsNeededCount, pPropertyIDsBuffer); -} - - -Lib3MFResult CCall_lib3mf_multipropertygroup_removemultiproperty(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 nPropertyID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MultiPropertyGroup_RemoveMultiProperty (pMultiPropertyGroup, nPropertyID); -} - - -Lib3MFResult CCall_lib3mf_multipropertygroup_getlayercount(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MultiPropertyGroup_GetLayerCount (pMultiPropertyGroup, pCount); -} - - -Lib3MFResult CCall_lib3mf_multipropertygroup_addlayer(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, const sLib3MFMultiPropertyLayer * pTheLayer, Lib3MF_uint32 * pLayerIndex) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MultiPropertyGroup_AddLayer (pMultiPropertyGroup, pTheLayer, pLayerIndex); -} - - -Lib3MFResult CCall_lib3mf_multipropertygroup_getlayer(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 nLayerIndex, sLib3MFMultiPropertyLayer * pTheLayer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MultiPropertyGroup_GetLayer (pMultiPropertyGroup, nLayerIndex, pTheLayer); -} - - -Lib3MFResult CCall_lib3mf_multipropertygroup_removelayer(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 nLayerIndex) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MultiPropertyGroup_RemoveLayer (pMultiPropertyGroup, nLayerIndex); -} - - -Lib3MFResult CCall_lib3mf_image3d_getname(Lib3MFHandle libraryHandle, Lib3MF_Image3D pImage3D, const Lib3MF_uint32 nNameBufferSize, Lib3MF_uint32* pNameNeededChars, char * pNameBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Image3D_GetName (pImage3D, nNameBufferSize, pNameNeededChars, pNameBuffer); -} - - -Lib3MFResult CCall_lib3mf_image3d_setname(Lib3MFHandle libraryHandle, Lib3MF_Image3D pImage3D, const char * pName) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Image3D_SetName (pImage3D, pName); -} - - -Lib3MFResult CCall_lib3mf_image3d_isimagestack(Lib3MFHandle libraryHandle, Lib3MF_Image3D pImage3D, bool * pIsImageStack) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Image3D_IsImageStack (pImage3D, pIsImageStack); -} - - -Lib3MFResult CCall_lib3mf_imagestack_getrowcount(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 * pRowCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImageStack_GetRowCount (pImageStack, pRowCount); -} - - -Lib3MFResult CCall_lib3mf_imagestack_setrowcount(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nRowCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImageStack_SetRowCount (pImageStack, nRowCount); -} - - -Lib3MFResult CCall_lib3mf_imagestack_getcolumncount(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 * pColumnCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImageStack_GetColumnCount (pImageStack, pColumnCount); -} - - -Lib3MFResult CCall_lib3mf_imagestack_setcolumncount(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nColumnCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImageStack_SetColumnCount (pImageStack, nColumnCount); -} - - -Lib3MFResult CCall_lib3mf_imagestack_getsheetcount(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 * pSheetCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImageStack_GetSheetCount (pImageStack, pSheetCount); -} - - -Lib3MFResult CCall_lib3mf_imagestack_getsheet(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nIndex, Lib3MF_Attachment * pSheet) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImageStack_GetSheet (pImageStack, nIndex, pSheet); -} - - -Lib3MFResult CCall_lib3mf_imagestack_setsheet(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nIndex, Lib3MF_Attachment pSheet) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImageStack_SetSheet (pImageStack, nIndex, pSheet); -} - - -Lib3MFResult CCall_lib3mf_imagestack_createemptysheet(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nIndex, const char * pPath, Lib3MF_Attachment * pSheet) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImageStack_CreateEmptySheet (pImageStack, nIndex, pPath, pSheet); -} - - -Lib3MFResult CCall_lib3mf_imagestack_createsheetfrombuffer(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nIndex, const char * pPath, Lib3MF_uint64 nDataBufferSize, const Lib3MF_uint8 * pDataBuffer, Lib3MF_Attachment * pSheet) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImageStack_CreateSheetFromBuffer (pImageStack, nIndex, pPath, nDataBufferSize, pDataBuffer, pSheet); -} - - -Lib3MFResult CCall_lib3mf_imagestack_createsheetfromfile(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nIndex, const char * pPath, const char * pFileName, Lib3MF_Attachment * pSheet) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImageStack_CreateSheetFromFile (pImageStack, nIndex, pPath, pFileName, pSheet); -} - - -Lib3MFResult CCall_lib3mf_attachment_getpath(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const Lib3MF_uint32 nPathBufferSize, Lib3MF_uint32* pPathNeededChars, char * pPathBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Attachment_GetPath (pAttachment, nPathBufferSize, pPathNeededChars, pPathBuffer); -} - - -Lib3MFResult CCall_lib3mf_attachment_setpath(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const char * pPath) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Attachment_SetPath (pAttachment, pPath); -} - - -Lib3MFResult CCall_lib3mf_attachment_packagepart(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, Lib3MF_PackagePart * pPackagePart) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Attachment_PackagePart (pAttachment, pPackagePart); -} - - -Lib3MFResult CCall_lib3mf_attachment_getrelationshiptype(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const Lib3MF_uint32 nPathBufferSize, Lib3MF_uint32* pPathNeededChars, char * pPathBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Attachment_GetRelationShipType (pAttachment, nPathBufferSize, pPathNeededChars, pPathBuffer); -} - - -Lib3MFResult CCall_lib3mf_attachment_setrelationshiptype(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const char * pPath) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Attachment_SetRelationShipType (pAttachment, pPath); -} - - -Lib3MFResult CCall_lib3mf_attachment_writetofile(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const char * pFileName) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Attachment_WriteToFile (pAttachment, pFileName); -} - - -Lib3MFResult CCall_lib3mf_attachment_readfromfile(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const char * pFileName) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Attachment_ReadFromFile (pAttachment, pFileName); -} - - -Lib3MFResult CCall_lib3mf_attachment_readfromcallback(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, Lib3MFReadCallback pTheReadCallback, Lib3MF_uint64 nStreamSize, Lib3MFSeekCallback pTheSeekCallback, Lib3MF_pvoid pUserData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Attachment_ReadFromCallback (pAttachment, pTheReadCallback, nStreamSize, pTheSeekCallback, pUserData); -} - - -Lib3MFResult CCall_lib3mf_attachment_getstreamsize(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, Lib3MF_uint64 * pStreamSize) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Attachment_GetStreamSize (pAttachment, pStreamSize); -} - - -Lib3MFResult CCall_lib3mf_attachment_writetobuffer(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const Lib3MF_uint64 nBufferBufferSize, Lib3MF_uint64* pBufferNeededCount, Lib3MF_uint8 * pBufferBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Attachment_WriteToBuffer (pAttachment, nBufferBufferSize, pBufferNeededCount, pBufferBuffer); -} - - -Lib3MFResult CCall_lib3mf_attachment_readfrombuffer(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, Lib3MF_uint64 nBufferBufferSize, const Lib3MF_uint8 * pBufferBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Attachment_ReadFromBuffer (pAttachment, nBufferBufferSize, pBufferBuffer); -} - - -Lib3MFResult CCall_lib3mf_texture2d_getattachment(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, Lib3MF_Attachment * pAttachment) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Texture2D_GetAttachment (pTexture2D, pAttachment); -} - - -Lib3MFResult CCall_lib3mf_texture2d_setattachment(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, Lib3MF_Attachment pAttachment) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Texture2D_SetAttachment (pTexture2D, pAttachment); -} - - -Lib3MFResult CCall_lib3mf_texture2d_getcontenttype(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureType * pContentType) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Texture2D_GetContentType (pTexture2D, pContentType); -} - - -Lib3MFResult CCall_lib3mf_texture2d_setcontenttype(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureType eContentType) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Texture2D_SetContentType (pTexture2D, eContentType); -} - - -Lib3MFResult CCall_lib3mf_texture2d_gettilestyleuv(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureTileStyle * pTileStyleU, eLib3MFTextureTileStyle * pTileStyleV) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Texture2D_GetTileStyleUV (pTexture2D, pTileStyleU, pTileStyleV); -} - - -Lib3MFResult CCall_lib3mf_texture2d_settilestyleuv(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureTileStyle eTileStyleU, eLib3MFTextureTileStyle eTileStyleV) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Texture2D_SetTileStyleUV (pTexture2D, eTileStyleU, eTileStyleV); -} - - -Lib3MFResult CCall_lib3mf_texture2d_getfilter(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureFilter * pFilter) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Texture2D_GetFilter (pTexture2D, pFilter); -} - - -Lib3MFResult CCall_lib3mf_texture2d_setfilter(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureFilter eFilter) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Texture2D_SetFilter (pTexture2D, eFilter); -} - - -Lib3MFResult CCall_lib3mf_implicitport_getidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const Lib3MF_uint32 nIdentifierBufferSize, Lib3MF_uint32* pIdentifierNeededChars, char * pIdentifierBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitPort_GetIdentifier (pImplicitPort, nIdentifierBufferSize, pIdentifierNeededChars, pIdentifierBuffer); -} - - -Lib3MFResult CCall_lib3mf_implicitport_setidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const char * pIdentifier) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitPort_SetIdentifier (pImplicitPort, pIdentifier); -} - - -Lib3MFResult CCall_lib3mf_implicitport_getdisplayname(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const Lib3MF_uint32 nDisplayNameBufferSize, Lib3MF_uint32* pDisplayNameNeededChars, char * pDisplayNameBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitPort_GetDisplayName (pImplicitPort, nDisplayNameBufferSize, pDisplayNameNeededChars, pDisplayNameBuffer); -} - - -Lib3MFResult CCall_lib3mf_implicitport_setdisplayname(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const char * pDisplayName) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitPort_SetDisplayName (pImplicitPort, pDisplayName); -} - - -Lib3MFResult CCall_lib3mf_implicitport_settype(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, eLib3MFImplicitPortType eImplicitPortType) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitPort_SetType (pImplicitPort, eImplicitPortType); -} - - -Lib3MFResult CCall_lib3mf_implicitport_gettype(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, eLib3MFImplicitPortType * pImplicitPortType) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitPort_GetType (pImplicitPort, pImplicitPortType); -} - - -Lib3MFResult CCall_lib3mf_implicitport_getreference(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const Lib3MF_uint32 nReferenceBufferSize, Lib3MF_uint32* pReferenceNeededChars, char * pReferenceBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitPort_GetReference (pImplicitPort, nReferenceBufferSize, pReferenceNeededChars, pReferenceBuffer); -} - - -Lib3MFResult CCall_lib3mf_implicitport_setreference(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const char * pReference) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitPort_SetReference (pImplicitPort, pReference); -} - - -Lib3MFResult CCall_lib3mf_iterator_movenext(Lib3MFHandle libraryHandle, Lib3MF_Iterator pIterator, bool * pHasNext) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Iterator_MoveNext (pIterator, pHasNext); -} - - -Lib3MFResult CCall_lib3mf_iterator_moveprevious(Lib3MFHandle libraryHandle, Lib3MF_Iterator pIterator, bool * pHasPrevious) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Iterator_MovePrevious (pIterator, pHasPrevious); -} - - -Lib3MFResult CCall_lib3mf_iterator_count(Lib3MFHandle libraryHandle, Lib3MF_Iterator pIterator, Lib3MF_uint64 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Iterator_Count (pIterator, pCount); -} - - -Lib3MFResult CCall_lib3mf_implicitportiterator_getcurrent(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPortIterator pImplicitPortIterator, Lib3MF_ImplicitPort * pPort) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitPortIterator_GetCurrent (pImplicitPortIterator, pPort); -} - - -Lib3MFResult CCall_lib3mf_implicitnode_getidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const Lib3MF_uint32 nIdentifierBufferSize, Lib3MF_uint32* pIdentifierNeededChars, char * pIdentifierBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitNode_GetIdentifier (pImplicitNode, nIdentifierBufferSize, pIdentifierNeededChars, pIdentifierBuffer); -} - - -Lib3MFResult CCall_lib3mf_implicitnode_setidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pIdentifier) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitNode_SetIdentifier (pImplicitNode, pIdentifier); -} - - -Lib3MFResult CCall_lib3mf_implicitnode_getdisplayname(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const Lib3MF_uint32 nDisplayNameBufferSize, Lib3MF_uint32* pDisplayNameNeededChars, char * pDisplayNameBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitNode_GetDisplayName (pImplicitNode, nDisplayNameBufferSize, pDisplayNameNeededChars, pDisplayNameBuffer); -} - - -Lib3MFResult CCall_lib3mf_implicitnode_setdisplayname(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pDisplayName) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitNode_SetDisplayName (pImplicitNode, pDisplayName); -} - - -Lib3MFResult CCall_lib3mf_implicitnode_gettag(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const Lib3MF_uint32 nTagBufferSize, Lib3MF_uint32* pTagNeededChars, char * pTagBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitNode_GetTag (pImplicitNode, nTagBufferSize, pTagNeededChars, pTagBuffer); -} - - -Lib3MFResult CCall_lib3mf_implicitnode_settag(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pTag) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitNode_SetTag (pImplicitNode, pTag); -} - - -Lib3MFResult CCall_lib3mf_implicitnode_getnodetype(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, eLib3MFImplicitNodeType * pType) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitNode_GetNodeType (pImplicitNode, pType); -} - - -Lib3MFResult CCall_lib3mf_implicitnode_addinput(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pIdentifier, const char * pDisplayName, Lib3MF_ImplicitPort * pPort) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitNode_AddInput (pImplicitNode, pIdentifier, pDisplayName, pPort); -} - - -Lib3MFResult CCall_lib3mf_implicitnode_getinputs(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, Lib3MF_ImplicitPortIterator * pIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitNode_GetInputs (pImplicitNode, pIterator); -} - - -Lib3MFResult CCall_lib3mf_implicitnode_addoutput(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pIdentifier, const char * pDisplayName, Lib3MF_ImplicitPort * pPort) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitNode_AddOutput (pImplicitNode, pIdentifier, pDisplayName, pPort); -} - - -Lib3MFResult CCall_lib3mf_implicitnode_getoutputs(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, Lib3MF_ImplicitPortIterator * pIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitNode_GetOutputs (pImplicitNode, pIterator); -} - - -Lib3MFResult CCall_lib3mf_implicitnode_findinput(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pIdentifier, Lib3MF_ImplicitPort * pInput) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitNode_FindInput (pImplicitNode, pIdentifier, pInput); -} - - -Lib3MFResult CCall_lib3mf_implicitnode_findoutput(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pIdentifier, Lib3MF_ImplicitPort * pOutput) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitNode_FindOutput (pImplicitNode, pIdentifier, pOutput); -} - - -Lib3MFResult CCall_lib3mf_implicitnode_aretypesvalid(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, bool * pValid) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitNode_AreTypesValid (pImplicitNode, pValid); -} - - -Lib3MFResult CCall_lib3mf_oneinputnode_getinputa(Lib3MFHandle libraryHandle, Lib3MF_OneInputNode pOneInputNode, Lib3MF_ImplicitPort * pInput) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_OneInputNode_GetInputA (pOneInputNode, pInput); -} - - -Lib3MFResult CCall_lib3mf_oneinputnode_getoutputresult(Lib3MFHandle libraryHandle, Lib3MF_OneInputNode pOneInputNode, Lib3MF_ImplicitPort * pResult) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_OneInputNode_GetOutputResult (pOneInputNode, pResult); -} - - -Lib3MFResult CCall_lib3mf_resourceidnode_setresource(Lib3MFHandle libraryHandle, Lib3MF_ResourceIdNode pResourceIdNode, Lib3MF_Resource pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ResourceIdNode_SetResource (pResourceIdNode, pResource); -} - - -Lib3MFResult CCall_lib3mf_resourceidnode_getresource(Lib3MFHandle libraryHandle, Lib3MF_ResourceIdNode pResourceIdNode, Lib3MF_Resource * pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ResourceIdNode_GetResource (pResourceIdNode, pResource); -} - - -Lib3MFResult CCall_lib3mf_resourceidnode_getoutputvalue(Lib3MFHandle libraryHandle, Lib3MF_ResourceIdNode pResourceIdNode, Lib3MF_ImplicitPort * pValue) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ResourceIdNode_GetOutputValue (pResourceIdNode, pValue); -} - - -Lib3MFResult CCall_lib3mf_twoinputnode_getinputb(Lib3MFHandle libraryHandle, Lib3MF_TwoInputNode pTwoInputNode, Lib3MF_ImplicitPort * pB) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_TwoInputNode_GetInputB (pTwoInputNode, pB); -} - - -Lib3MFResult CCall_lib3mf_selectnode_getinputb(Lib3MFHandle libraryHandle, Lib3MF_SelectNode pSelectNode, Lib3MF_ImplicitPort * pB) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_SelectNode_GetInputB (pSelectNode, pB); -} - - -Lib3MFResult CCall_lib3mf_selectnode_getinputc(Lib3MFHandle libraryHandle, Lib3MF_SelectNode pSelectNode, Lib3MF_ImplicitPort * pC) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_SelectNode_GetInputC (pSelectNode, pC); -} - - -Lib3MFResult CCall_lib3mf_selectnode_getinputd(Lib3MFHandle libraryHandle, Lib3MF_SelectNode pSelectNode, Lib3MF_ImplicitPort * pD) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_SelectNode_GetInputD (pSelectNode, pD); -} - - -Lib3MFResult CCall_lib3mf_clampnode_getinputmin(Lib3MFHandle libraryHandle, Lib3MF_ClampNode pClampNode, Lib3MF_ImplicitPort * pMin) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ClampNode_GetInputMin (pClampNode, pMin); -} - - -Lib3MFResult CCall_lib3mf_clampnode_getinputmax(Lib3MFHandle libraryHandle, Lib3MF_ClampNode pClampNode, Lib3MF_ImplicitPort * pMax) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ClampNode_GetInputMax (pClampNode, pMax); -} - - -Lib3MFResult CCall_lib3mf_composevectornode_getinputx(Lib3MFHandle libraryHandle, Lib3MF_ComposeVectorNode pComposeVectorNode, Lib3MF_ImplicitPort * pX) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeVectorNode_GetInputX (pComposeVectorNode, pX); -} - - -Lib3MFResult CCall_lib3mf_composevectornode_getinputy(Lib3MFHandle libraryHandle, Lib3MF_ComposeVectorNode pComposeVectorNode, Lib3MF_ImplicitPort * pY) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeVectorNode_GetInputY (pComposeVectorNode, pY); -} - - -Lib3MFResult CCall_lib3mf_composevectornode_getinputz(Lib3MFHandle libraryHandle, Lib3MF_ComposeVectorNode pComposeVectorNode, Lib3MF_ImplicitPort * pZ) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeVectorNode_GetInputZ (pComposeVectorNode, pZ); -} - - -Lib3MFResult CCall_lib3mf_composevectornode_getoutputresult(Lib3MFHandle libraryHandle, Lib3MF_ComposeVectorNode pComposeVectorNode, Lib3MF_ImplicitPort * pResult) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeVectorNode_GetOutputResult (pComposeVectorNode, pResult); -} - - -Lib3MFResult CCall_lib3mf_decomposevectornode_getinputa(Lib3MFHandle libraryHandle, Lib3MF_DecomposeVectorNode pDecomposeVectorNode, Lib3MF_ImplicitPort * pA) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_DecomposeVectorNode_GetInputA (pDecomposeVectorNode, pA); -} - - -Lib3MFResult CCall_lib3mf_decomposevectornode_getoutputx(Lib3MFHandle libraryHandle, Lib3MF_DecomposeVectorNode pDecomposeVectorNode, Lib3MF_ImplicitPort * pX) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_DecomposeVectorNode_GetOutputX (pDecomposeVectorNode, pX); -} - - -Lib3MFResult CCall_lib3mf_decomposevectornode_getoutputy(Lib3MFHandle libraryHandle, Lib3MF_DecomposeVectorNode pDecomposeVectorNode, Lib3MF_ImplicitPort * pY) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_DecomposeVectorNode_GetOutputY (pDecomposeVectorNode, pY); -} - - -Lib3MFResult CCall_lib3mf_decomposevectornode_getoutputz(Lib3MFHandle libraryHandle, Lib3MF_DecomposeVectorNode pDecomposeVectorNode, Lib3MF_ImplicitPort * pZ) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_DecomposeVectorNode_GetOutputZ (pDecomposeVectorNode, pZ); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getinputm00(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM00) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetInputM00 (pComposeMatrixNode, pM00); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getinputm01(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM01) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetInputM01 (pComposeMatrixNode, pM01); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getinputm02(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM02) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetInputM02 (pComposeMatrixNode, pM02); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getinputm03(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM03) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetInputM03 (pComposeMatrixNode, pM03); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getinputm10(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM10) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetInputM10 (pComposeMatrixNode, pM10); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getinputm11(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM11) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetInputM11 (pComposeMatrixNode, pM11); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getinputm12(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM12) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetInputM12 (pComposeMatrixNode, pM12); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getinputm13(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM13) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetInputM13 (pComposeMatrixNode, pM13); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getinputm20(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM20) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetInputM20 (pComposeMatrixNode, pM20); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getinputm21(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM21) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetInputM21 (pComposeMatrixNode, pM21); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getinputm22(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM22) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetInputM22 (pComposeMatrixNode, pM22); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getinputm23(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM23) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetInputM23 (pComposeMatrixNode, pM23); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getinputm30(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM30) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetInputM30 (pComposeMatrixNode, pM30); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getinputm31(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM31) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetInputM31 (pComposeMatrixNode, pM31); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getinputm32(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM32) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetInputM32 (pComposeMatrixNode, pM32); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getinputm33(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM33) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetInputM33 (pComposeMatrixNode, pM33); -} - - -Lib3MFResult CCall_lib3mf_composematrixnode_getoutputresult(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pResult) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ComposeMatrixNode_GetOutputResult (pComposeMatrixNode, pResult); -} - - -Lib3MFResult CCall_lib3mf_matrixfromrowsnode_getinputa(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromRowsNode pMatrixFromRowsNode, Lib3MF_ImplicitPort * pRow0) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MatrixFromRowsNode_GetInputA (pMatrixFromRowsNode, pRow0); -} - - -Lib3MFResult CCall_lib3mf_matrixfromrowsnode_getinputb(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromRowsNode pMatrixFromRowsNode, Lib3MF_ImplicitPort * pRow1) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MatrixFromRowsNode_GetInputB (pMatrixFromRowsNode, pRow1); -} - - -Lib3MFResult CCall_lib3mf_matrixfromrowsnode_getinputc(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromRowsNode pMatrixFromRowsNode, Lib3MF_ImplicitPort * pRow2) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MatrixFromRowsNode_GetInputC (pMatrixFromRowsNode, pRow2); -} - - -Lib3MFResult CCall_lib3mf_matrixfromrowsnode_getinputd(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromRowsNode pMatrixFromRowsNode, Lib3MF_ImplicitPort * pRow3) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MatrixFromRowsNode_GetInputD (pMatrixFromRowsNode, pRow3); -} - - -Lib3MFResult CCall_lib3mf_matrixfromrowsnode_getoutputresult(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromRowsNode pMatrixFromRowsNode, Lib3MF_ImplicitPort * pResult) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MatrixFromRowsNode_GetOutputResult (pMatrixFromRowsNode, pResult); -} - - -Lib3MFResult CCall_lib3mf_matrixfromcolumnsnode_getinputa(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromColumnsNode pMatrixFromColumnsNode, Lib3MF_ImplicitPort * pColumn0) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MatrixFromColumnsNode_GetInputA (pMatrixFromColumnsNode, pColumn0); -} - - -Lib3MFResult CCall_lib3mf_matrixfromcolumnsnode_getinputb(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromColumnsNode pMatrixFromColumnsNode, Lib3MF_ImplicitPort * pColumn1) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MatrixFromColumnsNode_GetInputB (pMatrixFromColumnsNode, pColumn1); -} - - -Lib3MFResult CCall_lib3mf_matrixfromcolumnsnode_getinputc(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromColumnsNode pMatrixFromColumnsNode, Lib3MF_ImplicitPort * pColumn2) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MatrixFromColumnsNode_GetInputC (pMatrixFromColumnsNode, pColumn2); -} - - -Lib3MFResult CCall_lib3mf_matrixfromcolumnsnode_getinputd(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromColumnsNode pMatrixFromColumnsNode, Lib3MF_ImplicitPort * pColumn3) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MatrixFromColumnsNode_GetInputD (pMatrixFromColumnsNode, pColumn3); -} - - -Lib3MFResult CCall_lib3mf_matrixfromcolumnsnode_getoutputresult(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromColumnsNode pMatrixFromColumnsNode, Lib3MF_ImplicitPort * pResult) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MatrixFromColumnsNode_GetOutputResult (pMatrixFromColumnsNode, pResult); -} - - -Lib3MFResult CCall_lib3mf_constantnode_setconstant(Lib3MFHandle libraryHandle, Lib3MF_ConstantNode pConstantNode, Lib3MF_double dValue) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ConstantNode_SetConstant (pConstantNode, dValue); -} - - -Lib3MFResult CCall_lib3mf_constantnode_getconstant(Lib3MFHandle libraryHandle, Lib3MF_ConstantNode pConstantNode, Lib3MF_double * pValue) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ConstantNode_GetConstant (pConstantNode, pValue); -} - - -Lib3MFResult CCall_lib3mf_constantnode_getoutputvalue(Lib3MFHandle libraryHandle, Lib3MF_ConstantNode pConstantNode, Lib3MF_ImplicitPort * pValue) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ConstantNode_GetOutputValue (pConstantNode, pValue); -} - - -Lib3MFResult CCall_lib3mf_constvecnode_setvector(Lib3MFHandle libraryHandle, Lib3MF_ConstVecNode pConstVecNode, const sLib3MFVector * pValue) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ConstVecNode_SetVector (pConstVecNode, pValue); -} - - -Lib3MFResult CCall_lib3mf_constvecnode_getvector(Lib3MFHandle libraryHandle, Lib3MF_ConstVecNode pConstVecNode, sLib3MFVector * pValue) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ConstVecNode_GetVector (pConstVecNode, pValue); -} - - -Lib3MFResult CCall_lib3mf_constvecnode_getoutputvector(Lib3MFHandle libraryHandle, Lib3MF_ConstVecNode pConstVecNode, Lib3MF_ImplicitPort * pVector) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ConstVecNode_GetOutputVector (pConstVecNode, pVector); -} - - -Lib3MFResult CCall_lib3mf_constmatnode_setmatrix(Lib3MFHandle libraryHandle, Lib3MF_ConstMatNode pConstMatNode, const sLib3MFMatrix4x4 * pValue) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ConstMatNode_SetMatrix (pConstMatNode, pValue); -} - - -Lib3MFResult CCall_lib3mf_constmatnode_getmatrix(Lib3MFHandle libraryHandle, Lib3MF_ConstMatNode pConstMatNode, sLib3MFMatrix4x4 * pValue) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ConstMatNode_GetMatrix (pConstMatNode, pValue); -} - - -Lib3MFResult CCall_lib3mf_constmatnode_getoutputmatrix(Lib3MFHandle libraryHandle, Lib3MF_ConstMatNode pConstMatNode, Lib3MF_ImplicitPort * pMatrix) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ConstMatNode_GetOutputMatrix (pConstMatNode, pMatrix); -} - - -Lib3MFResult CCall_lib3mf_meshnode_getinputmesh(Lib3MFHandle libraryHandle, Lib3MF_MeshNode pMeshNode, Lib3MF_ImplicitPort * pMesh) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshNode_GetInputMesh (pMeshNode, pMesh); -} - - -Lib3MFResult CCall_lib3mf_meshnode_getinputpos(Lib3MFHandle libraryHandle, Lib3MF_MeshNode pMeshNode, Lib3MF_ImplicitPort * pPos) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshNode_GetInputPos (pMeshNode, pPos); -} - - -Lib3MFResult CCall_lib3mf_meshnode_getoutputdistance(Lib3MFHandle libraryHandle, Lib3MF_MeshNode pMeshNode, Lib3MF_ImplicitPort * pDistance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_MeshNode_GetOutputDistance (pMeshNode, pDistance); -} - - -Lib3MFResult CCall_lib3mf_unsignedmeshnode_getinputmesh(Lib3MFHandle libraryHandle, Lib3MF_UnsignedMeshNode pUnsignedMeshNode, Lib3MF_ImplicitPort * pMesh) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_UnsignedMeshNode_GetInputMesh (pUnsignedMeshNode, pMesh); -} - - -Lib3MFResult CCall_lib3mf_unsignedmeshnode_getinputpos(Lib3MFHandle libraryHandle, Lib3MF_UnsignedMeshNode pUnsignedMeshNode, Lib3MF_ImplicitPort * pPos) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_UnsignedMeshNode_GetInputPos (pUnsignedMeshNode, pPos); -} - - -Lib3MFResult CCall_lib3mf_unsignedmeshnode_getoutputdistance(Lib3MFHandle libraryHandle, Lib3MF_UnsignedMeshNode pUnsignedMeshNode, Lib3MF_ImplicitPort * pDistance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_UnsignedMeshNode_GetOutputDistance (pUnsignedMeshNode, pDistance); -} - - -Lib3MFResult CCall_lib3mf_functioncallnode_getinputfunctionid(Lib3MFHandle libraryHandle, Lib3MF_FunctionCallNode pFunctionCallNode, Lib3MF_ImplicitPort * pFunction) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionCallNode_GetInputFunctionID (pFunctionCallNode, pFunction); -} - - -Lib3MFResult CCall_lib3mf_nodeiterator_getcurrent(Lib3MFHandle libraryHandle, Lib3MF_NodeIterator pNodeIterator, Lib3MF_ImplicitNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_NodeIterator_GetCurrent (pNodeIterator, pNode); -} - - -Lib3MFResult CCall_lib3mf_function_getdisplayname(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const Lib3MF_uint32 nDisplayNameBufferSize, Lib3MF_uint32* pDisplayNameNeededChars, char * pDisplayNameBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Function_GetDisplayName (pFunction, nDisplayNameBufferSize, pDisplayNameNeededChars, pDisplayNameBuffer); -} - - -Lib3MFResult CCall_lib3mf_function_setdisplayname(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const char * pDisplayName) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Function_SetDisplayName (pFunction, pDisplayName); -} - - -Lib3MFResult CCall_lib3mf_function_addinput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const char * pIdentifier, const char * pDisplayName, eLib3MFImplicitPortType eType, Lib3MF_ImplicitPort * pPort) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Function_AddInput (pFunction, pIdentifier, pDisplayName, eType, pPort); -} - - -Lib3MFResult CCall_lib3mf_function_getinputs(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, Lib3MF_ImplicitPortIterator * pIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Function_GetInputs (pFunction, pIterator); -} - - -Lib3MFResult CCall_lib3mf_function_removeinput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, Lib3MF_ImplicitPort pInput) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Function_RemoveInput (pFunction, pInput); -} - - -Lib3MFResult CCall_lib3mf_function_addoutput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const char * pIdentifier, const char * pDisplayName, eLib3MFImplicitPortType eType, Lib3MF_ImplicitPort * pPort) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Function_AddOutput (pFunction, pIdentifier, pDisplayName, eType, pPort); -} - - -Lib3MFResult CCall_lib3mf_function_getoutputs(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, Lib3MF_ImplicitPortIterator * pIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Function_GetOutputs (pFunction, pIterator); -} - - -Lib3MFResult CCall_lib3mf_function_removeoutput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, Lib3MF_ImplicitPort pOutput) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Function_RemoveOutput (pFunction, pOutput); -} - - -Lib3MFResult CCall_lib3mf_function_findinput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const char * pIdentifier, Lib3MF_ImplicitPort * pInput) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Function_FindInput (pFunction, pIdentifier, pInput); -} - - -Lib3MFResult CCall_lib3mf_function_findoutput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const char * pIdentifier, Lib3MF_ImplicitPort * pOutput) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Function_FindOutput (pFunction, pIdentifier, pOutput); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_getidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const Lib3MF_uint32 nIdentifierBufferSize, Lib3MF_uint32* pIdentifierNeededChars, char * pIdentifierBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_GetIdentifier (pImplicitFunction, nIdentifierBufferSize, pIdentifierNeededChars, pIdentifierBuffer); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_setidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_SetIdentifier (pImplicitFunction, pIdentifier); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, eLib3MFImplicitNodeType eNodeType, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ImplicitNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddNode (pImplicitFunction, eNodeType, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addsinnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SinNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddSinNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addcosnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_CosNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddCosNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addtannode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_TanNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddTanNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addarcsinnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ArcSinNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddArcSinNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addarccosnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ArcCosNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddArcCosNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addarctan2node(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ArcTan2Node * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddArcTan2Node (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addsinhnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SinhNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddSinhNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addcoshnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_CoshNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddCoshNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addtanhnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_TanhNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddTanhNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addroundnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_RoundNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddRoundNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addceilnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_CeilNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddCeilNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addfloornode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_FloorNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddFloorNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addsignnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SignNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddSignNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addfractnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_FractNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddFractNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addabsnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_AbsNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddAbsNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addexpnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ExpNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddExpNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addlognode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_LogNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddLogNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addlog2node(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_Log2Node * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddLog2Node (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addlog10node(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_Log10Node * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddLog10Node (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addlengthnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_LengthNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddLengthNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addtransposenode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_TransposeNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddTransposeNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addinversenode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_InverseNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddInverseNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addsqrtnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SqrtNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddSqrtNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addresourceidnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ResourceIdNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddResourceIdNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addadditionnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_AdditionNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddAdditionNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addsubtractionnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SubtractionNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddSubtractionNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addmultiplicationnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_MultiplicationNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddMultiplicationNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_adddivisionnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_DivisionNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddDivisionNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_adddotnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_DotNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddDotNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addcrossnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_CrossNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddCrossNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addmatvecmultiplicationnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_MatVecMultiplicationNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddMatVecMultiplicationNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addminnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_MinNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddMinNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addmaxnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_MaxNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddMaxNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addfmodnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_FmodNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddFmodNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addpownode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_PowNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddPowNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addselectnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SelectNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddSelectNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addclampnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ClampNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddClampNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addcomposevectornode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ComposeVectorNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddComposeVectorNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addvectorfromscalarnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_VectorFromScalarNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddVectorFromScalarNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_adddecomposevectornode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_DecomposeVectorNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddDecomposeVectorNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addcomposematrixnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ComposeMatrixNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddComposeMatrixNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addmatrixfromrowsnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_MatrixFromRowsNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddMatrixFromRowsNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addmatrixfromcolumnsnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_MatrixFromColumnsNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddMatrixFromColumnsNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addconstantnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ConstantNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddConstantNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addconstvecnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ConstVecNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddConstVecNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addconstmatnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ConstMatNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddConstMatNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addmeshnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_MeshNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddMeshNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addunsignedmeshnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_UnsignedMeshNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddUnsignedMeshNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addfunctioncallnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_FunctionCallNode * pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddFunctionCallNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_getnodes(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, Lib3MF_NodeIterator * pIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_GetNodes (pImplicitFunction, pIterator); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_removenode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, Lib3MF_ImplicitNode pNode) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_RemoveNode (pImplicitFunction, pNode); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addlink(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, Lib3MF_ImplicitPort pSource, Lib3MF_ImplicitPort pTarget) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddLink (pImplicitFunction, pSource, pTarget); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_addlinkbynames(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pSource, const char * pTarget) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_AddLinkByNames (pImplicitFunction, pSource, pTarget); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_clear(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_Clear (pImplicitFunction); -} - - -Lib3MFResult CCall_lib3mf_implicitfunction_sortnodestopologically(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ImplicitFunction_SortNodesTopologically (pImplicitFunction); -} - - -Lib3MFResult CCall_lib3mf_functionfromimage3d_getimage3d(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_Image3D * pImage3D) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionFromImage3D_GetImage3D (pFunctionFromImage3D, pImage3D); -} - - -Lib3MFResult CCall_lib3mf_functionfromimage3d_setimage3d(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_Image3D pImage3D) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionFromImage3D_SetImage3D (pFunctionFromImage3D, pImage3D); -} - - -Lib3MFResult CCall_lib3mf_functionfromimage3d_setfilter(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, eLib3MFTextureFilter eFilter) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionFromImage3D_SetFilter (pFunctionFromImage3D, eFilter); -} - - -Lib3MFResult CCall_lib3mf_functionfromimage3d_getfilter(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, eLib3MFTextureFilter * pFilter) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionFromImage3D_GetFilter (pFunctionFromImage3D, pFilter); -} - - -Lib3MFResult CCall_lib3mf_functionfromimage3d_settilestyles(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, eLib3MFTextureTileStyle eTileStyleU, eLib3MFTextureTileStyle eTileStyleV, eLib3MFTextureTileStyle eTileStyleW) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionFromImage3D_SetTileStyles (pFunctionFromImage3D, eTileStyleU, eTileStyleV, eTileStyleW); -} - - -Lib3MFResult CCall_lib3mf_functionfromimage3d_gettilestyles(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, eLib3MFTextureTileStyle * pTileStyleU, eLib3MFTextureTileStyle * pTileStyleV, eLib3MFTextureTileStyle * pTileStyleW) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionFromImage3D_GetTileStyles (pFunctionFromImage3D, pTileStyleU, pTileStyleV, pTileStyleW); -} - - -Lib3MFResult CCall_lib3mf_functionfromimage3d_getoffset(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_double * pOffset) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionFromImage3D_GetOffset (pFunctionFromImage3D, pOffset); -} - - -Lib3MFResult CCall_lib3mf_functionfromimage3d_setoffset(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_double dOffset) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionFromImage3D_SetOffset (pFunctionFromImage3D, dOffset); -} - - -Lib3MFResult CCall_lib3mf_functionfromimage3d_getscale(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_double * pScale) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionFromImage3D_GetScale (pFunctionFromImage3D, pScale); -} - - -Lib3MFResult CCall_lib3mf_functionfromimage3d_setscale(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_double dScale) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FunctionFromImage3D_SetScale (pFunctionFromImage3D, dScale); -} - - -Lib3MFResult CCall_lib3mf_builditem_getobjectresource(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, Lib3MF_Object * pObjectResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BuildItem_GetObjectResource (pBuildItem, pObjectResource); -} - - -Lib3MFResult CCall_lib3mf_builditem_getuuid(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, bool * pHasUUID, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BuildItem_GetUUID (pBuildItem, pHasUUID, nUUIDBufferSize, pUUIDNeededChars, pUUIDBuffer); -} - - -Lib3MFResult CCall_lib3mf_builditem_setuuid(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, const char * pUUID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BuildItem_SetUUID (pBuildItem, pUUID); -} - - -Lib3MFResult CCall_lib3mf_builditem_getobjectresourceid(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, Lib3MF_uint32 * pUniqueResourceID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BuildItem_GetObjectResourceID (pBuildItem, pUniqueResourceID); -} - - -Lib3MFResult CCall_lib3mf_builditem_hasobjecttransform(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, bool * pHasTransform) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BuildItem_HasObjectTransform (pBuildItem, pHasTransform); -} - - -Lib3MFResult CCall_lib3mf_builditem_getobjecttransform(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, sLib3MFTransform * pTransform) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BuildItem_GetObjectTransform (pBuildItem, pTransform); -} - - -Lib3MFResult CCall_lib3mf_builditem_setobjecttransform(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, const sLib3MFTransform * pTransform) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BuildItem_SetObjectTransform (pBuildItem, pTransform); -} - - -Lib3MFResult CCall_lib3mf_builditem_getpartnumber(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, const Lib3MF_uint32 nPartNumberBufferSize, Lib3MF_uint32* pPartNumberNeededChars, char * pPartNumberBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BuildItem_GetPartNumber (pBuildItem, nPartNumberBufferSize, pPartNumberNeededChars, pPartNumberBuffer); -} - - -Lib3MFResult CCall_lib3mf_builditem_setpartnumber(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, const char * pSetPartnumber) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BuildItem_SetPartNumber (pBuildItem, pSetPartnumber); -} - - -Lib3MFResult CCall_lib3mf_builditem_getmetadatagroup(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, Lib3MF_MetaDataGroup * pMetaDataGroup) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BuildItem_GetMetaDataGroup (pBuildItem, pMetaDataGroup); -} - - -Lib3MFResult CCall_lib3mf_builditem_getoutbox(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, sLib3MFBox * pOutbox) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BuildItem_GetOutbox (pBuildItem, pOutbox); -} - - -Lib3MFResult CCall_lib3mf_builditemiterator_movenext(Lib3MFHandle libraryHandle, Lib3MF_BuildItemIterator pBuildItemIterator, bool * pHasNext) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BuildItemIterator_MoveNext (pBuildItemIterator, pHasNext); -} - - -Lib3MFResult CCall_lib3mf_builditemiterator_moveprevious(Lib3MFHandle libraryHandle, Lib3MF_BuildItemIterator pBuildItemIterator, bool * pHasPrevious) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BuildItemIterator_MovePrevious (pBuildItemIterator, pHasPrevious); -} - - -Lib3MFResult CCall_lib3mf_builditemiterator_getcurrent(Lib3MFHandle libraryHandle, Lib3MF_BuildItemIterator pBuildItemIterator, Lib3MF_BuildItem * pBuildItem) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BuildItemIterator_GetCurrent (pBuildItemIterator, pBuildItem); -} - - -Lib3MFResult CCall_lib3mf_builditemiterator_clone(Lib3MFHandle libraryHandle, Lib3MF_BuildItemIterator pBuildItemIterator, Lib3MF_BuildItemIterator * pOutBuildItemIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BuildItemIterator_Clone (pBuildItemIterator, pOutBuildItemIterator); -} - - -Lib3MFResult CCall_lib3mf_builditemiterator_count(Lib3MFHandle libraryHandle, Lib3MF_BuildItemIterator pBuildItemIterator, Lib3MF_uint64 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BuildItemIterator_Count (pBuildItemIterator, pCount); -} - - -Lib3MFResult CCall_lib3mf_slice_setvertices(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 nVerticesBufferSize, const sLib3MFPosition2D * pVerticesBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Slice_SetVertices (pSlice, nVerticesBufferSize, pVerticesBuffer); -} - - -Lib3MFResult CCall_lib3mf_slice_getvertices(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, const Lib3MF_uint64 nVerticesBufferSize, Lib3MF_uint64* pVerticesNeededCount, sLib3MFPosition2D * pVerticesBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Slice_GetVertices (pSlice, nVerticesBufferSize, pVerticesNeededCount, pVerticesBuffer); -} - - -Lib3MFResult CCall_lib3mf_slice_getvertexcount(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Slice_GetVertexCount (pSlice, pCount); -} - - -Lib3MFResult CCall_lib3mf_slice_addpolygon(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 nIndicesBufferSize, const Lib3MF_uint32 * pIndicesBuffer, Lib3MF_uint64 * pIndex) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Slice_AddPolygon (pSlice, nIndicesBufferSize, pIndicesBuffer, pIndex); -} - - -Lib3MFResult CCall_lib3mf_slice_getpolygoncount(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Slice_GetPolygonCount (pSlice, pCount); -} - - -Lib3MFResult CCall_lib3mf_slice_setpolygonindices(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 nIndex, Lib3MF_uint64 nIndicesBufferSize, const Lib3MF_uint32 * pIndicesBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Slice_SetPolygonIndices (pSlice, nIndex, nIndicesBufferSize, pIndicesBuffer); -} - - -Lib3MFResult CCall_lib3mf_slice_getpolygonindices(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 nIndex, const Lib3MF_uint64 nIndicesBufferSize, Lib3MF_uint64* pIndicesNeededCount, Lib3MF_uint32 * pIndicesBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Slice_GetPolygonIndices (pSlice, nIndex, nIndicesBufferSize, pIndicesNeededCount, pIndicesBuffer); -} - - -Lib3MFResult CCall_lib3mf_slice_getpolygonindexcount(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 nIndex, Lib3MF_uint64 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Slice_GetPolygonIndexCount (pSlice, nIndex, pCount); -} - - -Lib3MFResult CCall_lib3mf_slice_getztop(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_double * pZTop) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Slice_GetZTop (pSlice, pZTop); -} - - -Lib3MFResult CCall_lib3mf_slicestack_getbottomz(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_double * pZBottom) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_SliceStack_GetBottomZ (pSliceStack, pZBottom); -} - - -Lib3MFResult CCall_lib3mf_slicestack_getslicecount(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_uint64 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_SliceStack_GetSliceCount (pSliceStack, pCount); -} - - -Lib3MFResult CCall_lib3mf_slicestack_getslice(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_uint64 nSliceIndex, Lib3MF_Slice * pTheSlice) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_SliceStack_GetSlice (pSliceStack, nSliceIndex, pTheSlice); -} - - -Lib3MFResult CCall_lib3mf_slicestack_addslice(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_double dZTop, Lib3MF_Slice * pTheSlice) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_SliceStack_AddSlice (pSliceStack, dZTop, pTheSlice); -} - - -Lib3MFResult CCall_lib3mf_slicestack_getslicerefcount(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_uint64 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_SliceStack_GetSliceRefCount (pSliceStack, pCount); -} - - -Lib3MFResult CCall_lib3mf_slicestack_addslicestackreference(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_SliceStack pTheSliceStack) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_SliceStack_AddSliceStackReference (pSliceStack, pTheSliceStack); -} - - -Lib3MFResult CCall_lib3mf_slicestack_getslicestackreference(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_uint64 nSliceRefIndex, Lib3MF_SliceStack * pTheSliceStack) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_SliceStack_GetSliceStackReference (pSliceStack, nSliceRefIndex, pTheSliceStack); -} - - -Lib3MFResult CCall_lib3mf_slicestack_collapseslicereferences(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_SliceStack_CollapseSliceReferences (pSliceStack); -} - - -Lib3MFResult CCall_lib3mf_slicestack_setownpath(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, const char * pPath) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_SliceStack_SetOwnPath (pSliceStack, pPath); -} - - -Lib3MFResult CCall_lib3mf_slicestack_getownpath(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, const Lib3MF_uint32 nPathBufferSize, Lib3MF_uint32* pPathNeededChars, char * pPathBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_SliceStack_GetOwnPath (pSliceStack, nPathBufferSize, pPathNeededChars, pPathBuffer); -} - - -Lib3MFResult CCall_lib3mf_consumer_getconsumerid(Lib3MFHandle libraryHandle, Lib3MF_Consumer pConsumer, const Lib3MF_uint32 nConsumerIDBufferSize, Lib3MF_uint32* pConsumerIDNeededChars, char * pConsumerIDBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Consumer_GetConsumerID (pConsumer, nConsumerIDBufferSize, pConsumerIDNeededChars, pConsumerIDBuffer); -} - - -Lib3MFResult CCall_lib3mf_consumer_getkeyid(Lib3MFHandle libraryHandle, Lib3MF_Consumer pConsumer, const Lib3MF_uint32 nKeyIDBufferSize, Lib3MF_uint32* pKeyIDNeededChars, char * pKeyIDBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Consumer_GetKeyID (pConsumer, nKeyIDBufferSize, pKeyIDNeededChars, pKeyIDBuffer); -} - - -Lib3MFResult CCall_lib3mf_consumer_getkeyvalue(Lib3MFHandle libraryHandle, Lib3MF_Consumer pConsumer, const Lib3MF_uint32 nKeyValueBufferSize, Lib3MF_uint32* pKeyValueNeededChars, char * pKeyValueBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Consumer_GetKeyValue (pConsumer, nKeyValueBufferSize, pKeyValueNeededChars, pKeyValueBuffer); -} - - -Lib3MFResult CCall_lib3mf_accessright_getconsumer(Lib3MFHandle libraryHandle, Lib3MF_AccessRight pAccessRight, Lib3MF_Consumer * pConsumer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_AccessRight_GetConsumer (pAccessRight, pConsumer); -} - - -Lib3MFResult CCall_lib3mf_accessright_getwrappingalgorithm(Lib3MFHandle libraryHandle, Lib3MF_AccessRight pAccessRight, eLib3MFWrappingAlgorithm * pAlgorithm) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_AccessRight_GetWrappingAlgorithm (pAccessRight, pAlgorithm); -} - - -Lib3MFResult CCall_lib3mf_accessright_getmgfalgorithm(Lib3MFHandle libraryHandle, Lib3MF_AccessRight pAccessRight, eLib3MFMgfAlgorithm * pAlgorithm) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_AccessRight_GetMgfAlgorithm (pAccessRight, pAlgorithm); -} - - -Lib3MFResult CCall_lib3mf_accessright_getdigestmethod(Lib3MFHandle libraryHandle, Lib3MF_AccessRight pAccessRight, eLib3MFDigestMethod * pAlgorithm) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_AccessRight_GetDigestMethod (pAccessRight, pAlgorithm); -} - - -Lib3MFResult CCall_lib3mf_contentencryptionparams_getencryptionalgorithm(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, eLib3MFEncryptionAlgorithm * pAlgorithm) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ContentEncryptionParams_GetEncryptionAlgorithm (pContentEncryptionParams, pAlgorithm); -} - - -Lib3MFResult CCall_lib3mf_contentencryptionparams_getkey(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, const Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ContentEncryptionParams_GetKey (pContentEncryptionParams, nByteDataBufferSize, pByteDataNeededCount, pByteDataBuffer); -} - - -Lib3MFResult CCall_lib3mf_contentencryptionparams_getinitializationvector(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, const Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ContentEncryptionParams_GetInitializationVector (pContentEncryptionParams, nByteDataBufferSize, pByteDataNeededCount, pByteDataBuffer); -} - - -Lib3MFResult CCall_lib3mf_contentencryptionparams_getauthenticationtag(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, const Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ContentEncryptionParams_GetAuthenticationTag (pContentEncryptionParams, nByteDataBufferSize, pByteDataNeededCount, pByteDataBuffer); -} - - -Lib3MFResult CCall_lib3mf_contentencryptionparams_setauthenticationtag(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, Lib3MF_uint64 nByteDataBufferSize, const Lib3MF_uint8 * pByteDataBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ContentEncryptionParams_SetAuthenticationTag (pContentEncryptionParams, nByteDataBufferSize, pByteDataBuffer); -} - - -Lib3MFResult CCall_lib3mf_contentencryptionparams_getadditionalauthenticationdata(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, const Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ContentEncryptionParams_GetAdditionalAuthenticationData (pContentEncryptionParams, nByteDataBufferSize, pByteDataNeededCount, pByteDataBuffer); -} - - -Lib3MFResult CCall_lib3mf_contentencryptionparams_getdescriptor(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, Lib3MF_uint64 * pDescriptor) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ContentEncryptionParams_GetDescriptor (pContentEncryptionParams, pDescriptor); -} - - -Lib3MFResult CCall_lib3mf_contentencryptionparams_getkeyuuid(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ContentEncryptionParams_GetKeyUUID (pContentEncryptionParams, nUUIDBufferSize, pUUIDNeededChars, pUUIDBuffer); -} - - -Lib3MFResult CCall_lib3mf_resourcedata_getpath(Lib3MFHandle libraryHandle, Lib3MF_ResourceData pResourceData, Lib3MF_PackagePart * pPath) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ResourceData_GetPath (pResourceData, pPath); -} - - -Lib3MFResult CCall_lib3mf_resourcedata_getencryptionalgorithm(Lib3MFHandle libraryHandle, Lib3MF_ResourceData pResourceData, eLib3MFEncryptionAlgorithm * pEncryptionAlgorithm) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ResourceData_GetEncryptionAlgorithm (pResourceData, pEncryptionAlgorithm); -} - - -Lib3MFResult CCall_lib3mf_resourcedata_getcompression(Lib3MFHandle libraryHandle, Lib3MF_ResourceData pResourceData, eLib3MFCompression * pCompression) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ResourceData_GetCompression (pResourceData, pCompression); -} - - -Lib3MFResult CCall_lib3mf_resourcedata_getadditionalauthenticationdata(Lib3MFHandle libraryHandle, Lib3MF_ResourceData pResourceData, const Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ResourceData_GetAdditionalAuthenticationData (pResourceData, nByteDataBufferSize, pByteDataNeededCount, pByteDataBuffer); -} - - -Lib3MFResult CCall_lib3mf_resourcedatagroup_getkeyuuid(Lib3MFHandle libraryHandle, Lib3MF_ResourceDataGroup pResourceDataGroup, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ResourceDataGroup_GetKeyUUID (pResourceDataGroup, nUUIDBufferSize, pUUIDNeededChars, pUUIDBuffer); -} - - -Lib3MFResult CCall_lib3mf_resourcedatagroup_addaccessright(Lib3MFHandle libraryHandle, Lib3MF_ResourceDataGroup pResourceDataGroup, Lib3MF_Consumer pConsumer, eLib3MFWrappingAlgorithm eWrappingAlgorithm, eLib3MFMgfAlgorithm eMgfAlgorithm, eLib3MFDigestMethod eDigestMethod, Lib3MF_AccessRight * pTheAccessRight) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ResourceDataGroup_AddAccessRight (pResourceDataGroup, pConsumer, eWrappingAlgorithm, eMgfAlgorithm, eDigestMethod, pTheAccessRight); -} - - -Lib3MFResult CCall_lib3mf_resourcedatagroup_findaccessrightbyconsumer(Lib3MFHandle libraryHandle, Lib3MF_ResourceDataGroup pResourceDataGroup, Lib3MF_Consumer pConsumer, Lib3MF_AccessRight * pTheAccessRight) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ResourceDataGroup_FindAccessRightByConsumer (pResourceDataGroup, pConsumer, pTheAccessRight); -} - - -Lib3MFResult CCall_lib3mf_resourcedatagroup_removeaccessright(Lib3MFHandle libraryHandle, Lib3MF_ResourceDataGroup pResourceDataGroup, Lib3MF_Consumer pConsumer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ResourceDataGroup_RemoveAccessRight (pResourceDataGroup, pConsumer); -} - - -Lib3MFResult CCall_lib3mf_keystore_addconsumer(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, const char * pConsumerID, const char * pKeyID, const char * pKeyValue, Lib3MF_Consumer * pConsumer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_AddConsumer (pKeyStore, pConsumerID, pKeyID, pKeyValue, pConsumer); -} - - -Lib3MFResult CCall_lib3mf_keystore_getconsumercount(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_GetConsumerCount (pKeyStore, pCount); -} - - -Lib3MFResult CCall_lib3mf_keystore_getconsumer(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 nConsumerIndex, Lib3MF_Consumer * pConsumer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_GetConsumer (pKeyStore, nConsumerIndex, pConsumer); -} - - -Lib3MFResult CCall_lib3mf_keystore_removeconsumer(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_Consumer pConsumer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_RemoveConsumer (pKeyStore, pConsumer); -} - - -Lib3MFResult CCall_lib3mf_keystore_findconsumer(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, const char * pConsumerID, Lib3MF_Consumer * pConsumer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_FindConsumer (pKeyStore, pConsumerID, pConsumer); -} - - -Lib3MFResult CCall_lib3mf_keystore_getresourcedatagroupcount(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_GetResourceDataGroupCount (pKeyStore, pCount); -} - - -Lib3MFResult CCall_lib3mf_keystore_addresourcedatagroup(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_ResourceDataGroup * pResourceDataGroup) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_AddResourceDataGroup (pKeyStore, pResourceDataGroup); -} - - -Lib3MFResult CCall_lib3mf_keystore_getresourcedatagroup(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 nResourceDataIndex, Lib3MF_ResourceDataGroup * pResourceDataGroup) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_GetResourceDataGroup (pKeyStore, nResourceDataIndex, pResourceDataGroup); -} - - -Lib3MFResult CCall_lib3mf_keystore_removeresourcedatagroup(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_ResourceDataGroup pResourceDataGroup) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_RemoveResourceDataGroup (pKeyStore, pResourceDataGroup); -} - - -Lib3MFResult CCall_lib3mf_keystore_findresourcedatagroup(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_PackagePart pPartPath, Lib3MF_ResourceDataGroup * pResourceDataGroup) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_FindResourceDataGroup (pKeyStore, pPartPath, pResourceDataGroup); -} - - -Lib3MFResult CCall_lib3mf_keystore_addresourcedata(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_ResourceDataGroup pResourceDataGroup, Lib3MF_PackagePart pPartPath, eLib3MFEncryptionAlgorithm eAlgorithm, eLib3MFCompression eCompression, Lib3MF_uint64 nAdditionalAuthenticationDataBufferSize, const Lib3MF_uint8 * pAdditionalAuthenticationDataBuffer, Lib3MF_ResourceData * pResourceData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_AddResourceData (pKeyStore, pResourceDataGroup, pPartPath, eAlgorithm, eCompression, nAdditionalAuthenticationDataBufferSize, pAdditionalAuthenticationDataBuffer, pResourceData); -} - - -Lib3MFResult CCall_lib3mf_keystore_removeresourcedata(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_ResourceData pResourceData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_RemoveResourceData (pKeyStore, pResourceData); -} - - -Lib3MFResult CCall_lib3mf_keystore_findresourcedata(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_PackagePart pResourcePath, Lib3MF_ResourceData * pResourceData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_FindResourceData (pKeyStore, pResourcePath, pResourceData); -} - - -Lib3MFResult CCall_lib3mf_keystore_getresourcedatacount(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 * pCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_GetResourceDataCount (pKeyStore, pCount); -} - - -Lib3MFResult CCall_lib3mf_keystore_getresourcedata(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 nResourceDataIndex, Lib3MF_ResourceData * pResourceData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_GetResourceData (pKeyStore, nResourceDataIndex, pResourceData); -} - - -Lib3MFResult CCall_lib3mf_keystore_getuuid(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, bool * pHasUUID, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_GetUUID (pKeyStore, pHasUUID, nUUIDBufferSize, pUUIDNeededChars, pUUIDBuffer); -} - - -Lib3MFResult CCall_lib3mf_keystore_setuuid(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, const char * pUUID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_KeyStore_SetUUID (pKeyStore, pUUID); -} - - -Lib3MFResult CCall_lib3mf_model_rootmodelpart(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_PackagePart * pRootModelPart) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_RootModelPart (pModel, pRootModelPart); -} - - -Lib3MFResult CCall_lib3mf_model_findorcreatepackagepart(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pAbsolutePath, Lib3MF_PackagePart * pModelPart) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_FindOrCreatePackagePart (pModel, pAbsolutePath, pModelPart); -} - - -Lib3MFResult CCall_lib3mf_model_setunit(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, eLib3MFModelUnit eUnit) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_SetUnit (pModel, eUnit); -} - - -Lib3MFResult CCall_lib3mf_model_getunit(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, eLib3MFModelUnit * pUnit) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetUnit (pModel, pUnit); -} - - -Lib3MFResult CCall_lib3mf_model_getlanguage(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const Lib3MF_uint32 nLanguageBufferSize, Lib3MF_uint32* pLanguageNeededChars, char * pLanguageBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetLanguage (pModel, nLanguageBufferSize, pLanguageNeededChars, pLanguageBuffer); -} - - -Lib3MFResult CCall_lib3mf_model_setlanguage(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pLanguage) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_SetLanguage (pModel, pLanguage); -} - - -Lib3MFResult CCall_lib3mf_model_querywriter(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pWriterClass, Lib3MF_Writer * pWriterInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_QueryWriter (pModel, pWriterClass, pWriterInstance); -} - - -Lib3MFResult CCall_lib3mf_model_queryreader(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pReaderClass, Lib3MF_Reader * pReaderInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_QueryReader (pModel, pReaderClass, pReaderInstance); -} - - -Lib3MFResult CCall_lib3mf_model_getresourcebyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_Resource * pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetResourceByID (pModel, nUniqueResourceID, pResource); -} - - -Lib3MFResult CCall_lib3mf_model_gettexture2dbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_Texture2D * pTextureInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetTexture2DByID (pModel, nUniqueResourceID, pTextureInstance); -} - - -Lib3MFResult CCall_lib3mf_model_getpropertytypebyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, eLib3MFPropertyType * pThePropertyType) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetPropertyTypeByID (pModel, nUniqueResourceID, pThePropertyType); -} - - -Lib3MFResult CCall_lib3mf_model_getbasematerialgroupbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_BaseMaterialGroup * pBaseMaterialGroupInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetBaseMaterialGroupByID (pModel, nUniqueResourceID, pBaseMaterialGroupInstance); -} - - -Lib3MFResult CCall_lib3mf_model_gettexture2dgroupbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_Texture2DGroup * pTexture2DGroupInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetTexture2DGroupByID (pModel, nUniqueResourceID, pTexture2DGroupInstance); -} - - -Lib3MFResult CCall_lib3mf_model_getcompositematerialsbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_CompositeMaterials * pCompositeMaterialsInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetCompositeMaterialsByID (pModel, nUniqueResourceID, pCompositeMaterialsInstance); -} - - -Lib3MFResult CCall_lib3mf_model_getmultipropertygroupbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_MultiPropertyGroup * pMultiPropertyGroupInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetMultiPropertyGroupByID (pModel, nUniqueResourceID, pMultiPropertyGroupInstance); -} - - -Lib3MFResult CCall_lib3mf_model_getmeshobjectbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_MeshObject * pMeshObjectInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetMeshObjectByID (pModel, nUniqueResourceID, pMeshObjectInstance); -} - - -Lib3MFResult CCall_lib3mf_model_getcomponentsobjectbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_ComponentsObject * pComponentsObjectInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetComponentsObjectByID (pModel, nUniqueResourceID, pComponentsObjectInstance); -} - - -Lib3MFResult CCall_lib3mf_model_getcolorgroupbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_ColorGroup * pColorGroupInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetColorGroupByID (pModel, nUniqueResourceID, pColorGroupInstance); -} - - -Lib3MFResult CCall_lib3mf_model_getslicestackbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_SliceStack * pSliceStacInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetSliceStackByID (pModel, nUniqueResourceID, pSliceStacInstance); -} - - -Lib3MFResult CCall_lib3mf_model_getlevelsetbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_LevelSet * pLevelSetObjectInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetLevelSetByID (pModel, nUniqueResourceID, pLevelSetObjectInstance); -} - - -Lib3MFResult CCall_lib3mf_model_getbuilduuid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, bool * pHasUUID, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetBuildUUID (pModel, pHasUUID, nUUIDBufferSize, pUUIDNeededChars, pUUIDBuffer); -} - - -Lib3MFResult CCall_lib3mf_model_setbuilduuid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pUUID) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_SetBuildUUID (pModel, pUUID); -} - - -Lib3MFResult CCall_lib3mf_model_getbuilditems(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BuildItemIterator * pBuildItemIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetBuildItems (pModel, pBuildItemIterator); -} - - -Lib3MFResult CCall_lib3mf_model_getoutbox(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, sLib3MFBox * pOutbox) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetOutbox (pModel, pOutbox); -} - - -Lib3MFResult CCall_lib3mf_model_getresources(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ResourceIterator * pResourceIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetResources (pModel, pResourceIterator); -} - - -Lib3MFResult CCall_lib3mf_model_getobjects(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ObjectIterator * pResourceIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetObjects (pModel, pResourceIterator); -} - - -Lib3MFResult CCall_lib3mf_model_getmeshobjects(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_MeshObjectIterator * pResourceIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetMeshObjects (pModel, pResourceIterator); -} - - -Lib3MFResult CCall_lib3mf_model_getcomponentsobjects(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ComponentsObjectIterator * pResourceIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetComponentsObjects (pModel, pResourceIterator); -} - - -Lib3MFResult CCall_lib3mf_model_gettexture2ds(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Texture2DIterator * pResourceIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetTexture2Ds (pModel, pResourceIterator); -} - - -Lib3MFResult CCall_lib3mf_model_getbasematerialgroups(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BaseMaterialGroupIterator * pResourceIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetBaseMaterialGroups (pModel, pResourceIterator); -} - - -Lib3MFResult CCall_lib3mf_model_getcolorgroups(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ColorGroupIterator * pResourceIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetColorGroups (pModel, pResourceIterator); -} - - -Lib3MFResult CCall_lib3mf_model_gettexture2dgroups(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Texture2DGroupIterator * pResourceIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetTexture2DGroups (pModel, pResourceIterator); -} - - -Lib3MFResult CCall_lib3mf_model_getcompositematerials(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_CompositeMaterialsIterator * pResourceIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetCompositeMaterials (pModel, pResourceIterator); -} - - -Lib3MFResult CCall_lib3mf_model_getmultipropertygroups(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_MultiPropertyGroupIterator * pResourceIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetMultiPropertyGroups (pModel, pResourceIterator); -} - - -Lib3MFResult CCall_lib3mf_model_getslicestacks(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_SliceStackIterator * pResourceIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetSliceStacks (pModel, pResourceIterator); -} - - -Lib3MFResult CCall_lib3mf_model_getimage3ds(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Image3DIterator * pResourceIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetImage3Ds (pModel, pResourceIterator); -} - - -Lib3MFResult CCall_lib3mf_model_mergetomodel(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Model * pMergedModelInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_MergeToModel (pModel, pMergedModelInstance); -} - - -Lib3MFResult CCall_lib3mf_model_mergefrommodel(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Model pModelInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_MergeFromModel (pModel, pModelInstance); -} - - -Lib3MFResult CCall_lib3mf_model_addmeshobject(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_MeshObject * pMeshObjectInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddMeshObject (pModel, pMeshObjectInstance); -} - - -Lib3MFResult CCall_lib3mf_model_addcomponentsobject(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ComponentsObject * pComponentsObjectInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddComponentsObject (pModel, pComponentsObjectInstance); -} - - -Lib3MFResult CCall_lib3mf_model_addslicestack(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_double dZBottom, Lib3MF_SliceStack * pSliceStackInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddSliceStack (pModel, dZBottom, pSliceStackInstance); -} - - -Lib3MFResult CCall_lib3mf_model_addtexture2dfromattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Attachment pTextureAttachment, Lib3MF_Texture2D * pTexture2DInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddTexture2DFromAttachment (pModel, pTextureAttachment, pTexture2DInstance); -} - - -Lib3MFResult CCall_lib3mf_model_addbasematerialgroup(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BaseMaterialGroup * pBaseMaterialGroupInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddBaseMaterialGroup (pModel, pBaseMaterialGroupInstance); -} - - -Lib3MFResult CCall_lib3mf_model_addcolorgroup(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ColorGroup * pColorGroupInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddColorGroup (pModel, pColorGroupInstance); -} - - -Lib3MFResult CCall_lib3mf_model_addtexture2dgroup(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Texture2D pTexture2DInstance, Lib3MF_Texture2DGroup * pTexture2DGroupInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddTexture2DGroup (pModel, pTexture2DInstance, pTexture2DGroupInstance); -} - - -Lib3MFResult CCall_lib3mf_model_addcompositematerials(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BaseMaterialGroup pBaseMaterialGroupInstance, Lib3MF_CompositeMaterials * pCompositeMaterialsInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddCompositeMaterials (pModel, pBaseMaterialGroupInstance, pCompositeMaterialsInstance); -} - - -Lib3MFResult CCall_lib3mf_model_addmultipropertygroup(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_MultiPropertyGroup * pMultiPropertyGroupInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddMultiPropertyGroup (pModel, pMultiPropertyGroupInstance); -} - - -Lib3MFResult CCall_lib3mf_model_addimagestack(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nColumnCount, Lib3MF_uint32 nRowCount, Lib3MF_uint32 nSheetCount, Lib3MF_ImageStack * pInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddImageStack (pModel, nColumnCount, nRowCount, nSheetCount, pInstance); -} - - -Lib3MFResult CCall_lib3mf_model_getimagestackbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_ImageStack * pImageStackInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetImageStackByID (pModel, nUniqueResourceID, pImageStackInstance); -} - - -Lib3MFResult CCall_lib3mf_model_addbuilditem(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Object pObject, const sLib3MFTransform * pTransform, Lib3MF_BuildItem * pBuildItemInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddBuildItem (pModel, pObject, pTransform, pBuildItemInstance); -} - - -Lib3MFResult CCall_lib3mf_model_removebuilditem(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BuildItem pBuildItemInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_RemoveBuildItem (pModel, pBuildItemInstance); -} - - -Lib3MFResult CCall_lib3mf_model_getmetadatagroup(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_MetaDataGroup * pTheMetaDataGroup) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetMetaDataGroup (pModel, pTheMetaDataGroup); -} - - -Lib3MFResult CCall_lib3mf_model_addattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pURI, const char * pRelationShipType, Lib3MF_Attachment * pAttachmentInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddAttachment (pModel, pURI, pRelationShipType, pAttachmentInstance); -} - - -Lib3MFResult CCall_lib3mf_model_removeattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Attachment pAttachmentInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_RemoveAttachment (pModel, pAttachmentInstance); -} - - -Lib3MFResult CCall_lib3mf_model_getattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nIndex, Lib3MF_Attachment * pAttachmentInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetAttachment (pModel, nIndex, pAttachmentInstance); -} - - -Lib3MFResult CCall_lib3mf_model_findattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pURI, Lib3MF_Attachment * pAttachmentInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_FindAttachment (pModel, pURI, pAttachmentInstance); -} - - -Lib3MFResult CCall_lib3mf_model_getattachmentcount(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 * pAttachmentCount) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetAttachmentCount (pModel, pAttachmentCount); -} - - -Lib3MFResult CCall_lib3mf_model_haspackagethumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, bool * pHasThumbnail) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_HasPackageThumbnailAttachment (pModel, pHasThumbnail); -} - - -Lib3MFResult CCall_lib3mf_model_createpackagethumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Attachment * pAttachment) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_CreatePackageThumbnailAttachment (pModel, pAttachment); -} - - -Lib3MFResult CCall_lib3mf_model_getpackagethumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Attachment * pAttachment) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetPackageThumbnailAttachment (pModel, pAttachment); -} - - -Lib3MFResult CCall_lib3mf_model_removepackagethumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_RemovePackageThumbnailAttachment (pModel); -} - - -Lib3MFResult CCall_lib3mf_model_addcustomcontenttype(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pExtension, const char * pContentType) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddCustomContentType (pModel, pExtension, pContentType); -} - - -Lib3MFResult CCall_lib3mf_model_removecustomcontenttype(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pExtension) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_RemoveCustomContentType (pModel, pExtension); -} - - -Lib3MFResult CCall_lib3mf_model_setrandomnumbercallback(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MFRandomNumberCallback pTheCallback, Lib3MF_pvoid pUserData) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_SetRandomNumberCallback (pModel, pTheCallback, pUserData); -} - - -Lib3MFResult CCall_lib3mf_model_getkeystore(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_KeyStore * pKeyStore) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetKeyStore (pModel, pKeyStore); -} - - -Lib3MFResult CCall_lib3mf_model_getfunctions(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_FunctionIterator * pTheResourceIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetFunctions (pModel, pTheResourceIterator); -} - - -Lib3MFResult CCall_lib3mf_model_addimplicitfunction(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ImplicitFunction * pFunctionInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddImplicitFunction (pModel, pFunctionInstance); -} - - -Lib3MFResult CCall_lib3mf_model_addfunctionfromimage3d(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Image3D pImage3DInstance, Lib3MF_FunctionFromImage3D * pFunctionInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddFunctionFromImage3D (pModel, pImage3DInstance, pFunctionInstance); -} - - -Lib3MFResult CCall_lib3mf_model_addvolumedata(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_VolumeData * pVolumeDataInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddVolumeData (pModel, pVolumeDataInstance); -} - - -Lib3MFResult CCall_lib3mf_model_addlevelset(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_LevelSet * pLevelSetInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddLevelSet (pModel, pLevelSetInstance); -} - - -Lib3MFResult CCall_lib3mf_model_getlevelsets(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_LevelSetIterator * pResourceIterator) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetLevelSets (pModel, pResourceIterator); -} - - -Lib3MFResult CCall_lib3mf_model_removeresource(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Resource pResource) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_RemoveResource (pModel, pResource); -} - - -Lib3MFResult CCall_lib3mf_getlibraryversion(Lib3MFHandle libraryHandle, Lib3MF_uint32 * pMajor, Lib3MF_uint32 * pMinor, Lib3MF_uint32 * pMicro) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_GetLibraryVersion (pMajor, pMinor, pMicro); -} - - -Lib3MFResult CCall_lib3mf_getprereleaseinformation(Lib3MFHandle libraryHandle, bool * pHasPrereleaseInfo, const Lib3MF_uint32 nPrereleaseInfoBufferSize, Lib3MF_uint32* pPrereleaseInfoNeededChars, char * pPrereleaseInfoBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_GetPrereleaseInformation (pHasPrereleaseInfo, nPrereleaseInfoBufferSize, pPrereleaseInfoNeededChars, pPrereleaseInfoBuffer); -} - - -Lib3MFResult CCall_lib3mf_getbuildinformation(Lib3MFHandle libraryHandle, bool * pHasBuildInfo, const Lib3MF_uint32 nBuildInformationBufferSize, Lib3MF_uint32* pBuildInformationNeededChars, char * pBuildInformationBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_GetBuildInformation (pHasBuildInfo, nBuildInformationBufferSize, pBuildInformationNeededChars, pBuildInformationBuffer); -} - - -Lib3MFResult CCall_lib3mf_getspecificationversion(Lib3MFHandle libraryHandle, const char * pSpecificationURL, bool * pIsSupported, Lib3MF_uint32 * pMajor, Lib3MF_uint32 * pMinor, Lib3MF_uint32 * pMicro) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_GetSpecificationVersion (pSpecificationURL, pIsSupported, pMajor, pMinor, pMicro); -} - - -Lib3MFResult CCall_lib3mf_createmodel(Lib3MFHandle libraryHandle, Lib3MF_Model * pModel) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_CreateModel (pModel); -} - - -Lib3MFResult CCall_lib3mf_release(Lib3MFHandle libraryHandle, Lib3MF_Base pInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Release (pInstance); -} - - -Lib3MFResult CCall_lib3mf_acquire(Lib3MFHandle libraryHandle, Lib3MF_Base pInstance) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Acquire (pInstance); -} - - -Lib3MFResult CCall_lib3mf_setjournal(Lib3MFHandle libraryHandle, const char * pJournalPath) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_SetJournal (pJournalPath); -} - - -Lib3MFResult CCall_lib3mf_getlasterror(Lib3MFHandle libraryHandle, Lib3MF_Base pInstance, const Lib3MF_uint32 nLastErrorStringBufferSize, Lib3MF_uint32* pLastErrorStringNeededChars, char * pLastErrorStringBuffer, bool * pHasLastError) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_GetLastError (pInstance, nLastErrorStringBufferSize, pLastErrorStringNeededChars, pLastErrorStringBuffer, pHasLastError); -} - - -Lib3MFResult CCall_lib3mf_getsymbollookupmethod(Lib3MFHandle libraryHandle, Lib3MF_pvoid * pSymbolLookupMethod) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_GetSymbolLookupMethod (pSymbolLookupMethod); -} - - -Lib3MFResult CCall_lib3mf_retrieveprogressmessage(Lib3MFHandle libraryHandle, eLib3MFProgressIdentifier eTheProgressIdentifier, const Lib3MF_uint32 nProgressMessageBufferSize, Lib3MF_uint32* pProgressMessageNeededChars, char * pProgressMessageBuffer) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_RetrieveProgressMessage (eTheProgressIdentifier, nProgressMessageBufferSize, pProgressMessageNeededChars, pProgressMessageBuffer); -} - - -Lib3MFResult CCall_lib3mf_rgbatocolor(Lib3MFHandle libraryHandle, Lib3MF_uint8 nRed, Lib3MF_uint8 nGreen, Lib3MF_uint8 nBlue, Lib3MF_uint8 nAlpha, sLib3MFColor * pTheColor) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_RGBAToColor (nRed, nGreen, nBlue, nAlpha, pTheColor); -} - - -Lib3MFResult CCall_lib3mf_floatrgbatocolor(Lib3MFHandle libraryHandle, Lib3MF_single fRed, Lib3MF_single fGreen, Lib3MF_single fBlue, Lib3MF_single fAlpha, sLib3MFColor * pTheColor) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_FloatRGBAToColor (fRed, fGreen, fBlue, fAlpha, pTheColor); -} - - -Lib3MFResult CCall_lib3mf_colortorgba(Lib3MFHandle libraryHandle, const sLib3MFColor * pTheColor, Lib3MF_uint8 * pRed, Lib3MF_uint8 * pGreen, Lib3MF_uint8 * pBlue, Lib3MF_uint8 * pAlpha) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ColorToRGBA (pTheColor, pRed, pGreen, pBlue, pAlpha); -} - - -Lib3MFResult CCall_lib3mf_colortofloatrgba(Lib3MFHandle libraryHandle, const sLib3MFColor * pTheColor, Lib3MF_single * pRed, Lib3MF_single * pGreen, Lib3MF_single * pBlue, Lib3MF_single * pAlpha) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_ColorToFloatRGBA (pTheColor, pRed, pGreen, pBlue, pAlpha); -} - - -Lib3MFResult CCall_lib3mf_getidentitytransform(Lib3MFHandle libraryHandle, sLib3MFTransform * pTransform) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_GetIdentityTransform (pTransform); -} - - -Lib3MFResult CCall_lib3mf_getuniformscaletransform(Lib3MFHandle libraryHandle, Lib3MF_single fFactor, sLib3MFTransform * pTransform) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_GetUniformScaleTransform (fFactor, pTransform); -} - - -Lib3MFResult CCall_lib3mf_getscaletransform(Lib3MFHandle libraryHandle, Lib3MF_single fFactorX, Lib3MF_single fFactorY, Lib3MF_single fFactorZ, sLib3MFTransform * pTransform) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_GetScaleTransform (fFactorX, fFactorY, fFactorZ, pTransform); -} - - -Lib3MFResult CCall_lib3mf_gettranslationtransform(Lib3MFHandle libraryHandle, Lib3MF_single fVectorX, Lib3MF_single fVectorY, Lib3MF_single fVectorZ, sLib3MFTransform * pTransform) -{ - if (libraryHandle == 0) - return LIB3MF_ERROR_INVALIDCAST; - sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_GetTranslationTransform (fVectorX, fVectorY, fVectorZ, pTransform); -} +#include "lib3mf_dynamic.h" */ import "C" @@ -6107,7 +659,7 @@ func keyWrappingCallback(kEKParams C.Lib3MF_AccessRight, inBuffer *C.uint8_t, ou if keyWrappingCallbackFunc == nil { return } - keyWrappingCallbackFunc(, ([][]uint8)(unsafe.Pointer(&inBuffer[0])), ([][]uint8)(unsafe.Pointer(&outBuffer[0])), uintptr(userData), (*uint64)(status)) + keyWrappingCallbackFunc(*(*AccessRight)(unsafe.Pointer(&kEKParams)), *(*[]uint8)(unsafe.Pointer(inBuffer)), *(*[]uint8)(unsafe.Pointer(outBuffer)), uintptr(userData), (*uint64)(status)) } // ContentEncryptionCallbackFunc a callback to encrypt/decrypt content called on each resource encrypted. This might be called several times depending on content size. If Input is not available(either null or size is 0), clients must return the result of authenticated tag generation/validation. @@ -6120,7 +672,7 @@ func contentEncryptionCallback(cEKParams C.Lib3MF_ContentEncryptionParams, input if contentEncryptionCallbackFunc == nil { return } - contentEncryptionCallbackFunc(, ([][]uint8)(unsafe.Pointer(&input[0])), ([][]uint8)(unsafe.Pointer(&output[0])), uintptr(userData), (*uint64)(status)) + contentEncryptionCallbackFunc(*(*ContentEncryptionParams)(unsafe.Pointer(&cEKParams)), *(*[]uint8)(unsafe.Pointer(input)), *(*[]uint8)(unsafe.Pointer(output)), uintptr(userData), (*uint64)(status)) } // Wrapper represents the number wrapper @@ -6216,7 +768,7 @@ func (inst Writer) WriteToBuffer(buffer []uint8) ([]uint8, error) { // WriteToCallback writes out the model and passes the data to a provided callback function. The file type is specified by the Model Writer class. func (inst Writer) WriteToCallback(theWriteCallback WriteCallbackFunc, theSeekCallback SeekCallbackFunc, userData uintptr) error { - ret := C.CCall_lib3mf_writer_writetocallback(inst.wrapperRef.LibraryHandle, inst.Ref, (C.Lib3MFWriteCallback)(unsafe.Pointer(C.Lib3MFWriteCallback_cgo)), (C.Lib3MFSeekCallback)(unsafe.Pointer(C.Lib3MFSeekCallback_cgo)), (C.Lib3MF_pvoid)(userData)) + ret := C.CCall_lib3mf_writer_writetocallback(inst.wrapperRef.LibraryHandle, inst.Ref, (C.Lib3MFWriteCallback)(unsafe.Pointer(&theWriteCallback)), (C.Lib3MFSeekCallback)(unsafe.Pointer(&theSeekCallback)), (C.Lib3MF_pvoid)(userData)) if ret != 0 { return makeError(uint32(ret)) } @@ -6227,7 +779,7 @@ func (inst Writer) WriteToCallback(theWriteCallback WriteCallbackFunc, theSeekCa // SetProgressCallback set the progress callback for calls to this writer. func (inst Writer) SetProgressCallback(progressCallback ProgressCallbackFunc, userData uintptr) error { - ret := C.CCall_lib3mf_writer_setprogresscallback(inst.wrapperRef.LibraryHandle, inst.Ref, (C.Lib3MFProgressCallback)(unsafe.Pointer(C.Lib3MFProgressCallback_cgo)), (C.Lib3MF_pvoid)(userData)) + ret := C.CCall_lib3mf_writer_setprogresscallback(inst.wrapperRef.LibraryHandle, inst.Ref, (C.Lib3MFProgressCallback)(unsafe.Pointer(&progressCallback)), (C.Lib3MF_pvoid)(userData)) if ret != 0 { return makeError(uint32(ret)) } @@ -6303,7 +855,7 @@ func (inst Writer) GetWarningCount() (uint32, error) { // AddKeyWrappingCallback registers a callback to deal with data key encryption/decryption from keystore. func (inst Writer) AddKeyWrappingCallback(consumerID string, theCallback KeyWrappingCallbackFunc, userData uintptr) error { - ret := C.CCall_lib3mf_writer_addkeywrappingcallback(inst.wrapperRef.LibraryHandle, inst.Ref, (*C.char)(unsafe.Pointer(&[]byte(consumerID)[0])), (C.Lib3MFKeyWrappingCallback)(unsafe.Pointer(C.Lib3MFKeyWrappingCallback_cgo)), (C.Lib3MF_pvoid)(userData)) + ret := C.CCall_lib3mf_writer_addkeywrappingcallback(inst.wrapperRef.LibraryHandle, inst.Ref, (*C.char)(unsafe.Pointer(&[]byte(consumerID)[0])), (C.Lib3MFKeyWrappingCallback)(unsafe.Pointer(&theCallback)), (C.Lib3MF_pvoid)(userData)) if ret != 0 { return makeError(uint32(ret)) } @@ -6313,7 +865,7 @@ func (inst Writer) AddKeyWrappingCallback(consumerID string, theCallback KeyWrap // SetContentEncryptionCallback registers a callback to deal with encryption of content. func (inst Writer) SetContentEncryptionCallback(theCallback ContentEncryptionCallbackFunc, userData uintptr) error { - ret := C.CCall_lib3mf_writer_setcontentencryptioncallback(inst.wrapperRef.LibraryHandle, inst.Ref, (C.Lib3MFContentEncryptionCallback)(unsafe.Pointer(C.Lib3MFContentEncryptionCallback_cgo)), (C.Lib3MF_pvoid)(userData)) + ret := C.CCall_lib3mf_writer_setcontentencryptioncallback(inst.wrapperRef.LibraryHandle, inst.Ref, (C.Lib3MFContentEncryptionCallback)(unsafe.Pointer(&theCallback)), (C.Lib3MF_pvoid)(userData)) if ret != 0 { return makeError(uint32(ret)) } @@ -6351,7 +903,7 @@ func (inst Reader) ReadFromBuffer(buffer []uint8) error { // ReadFromCallback reads a model and from the data provided by a callback function. func (inst Reader) ReadFromCallback(theReadCallback ReadCallbackFunc, streamSize uint64, theSeekCallback SeekCallbackFunc, userData uintptr) error { - ret := C.CCall_lib3mf_reader_readfromcallback(inst.wrapperRef.LibraryHandle, inst.Ref, (C.Lib3MFReadCallback)(unsafe.Pointer(C.Lib3MFReadCallback_cgo)), C.uint64_t(streamSize), (C.Lib3MFSeekCallback)(unsafe.Pointer(C.Lib3MFSeekCallback_cgo)), (C.Lib3MF_pvoid)(userData)) + ret := C.CCall_lib3mf_reader_readfromcallback(inst.wrapperRef.LibraryHandle, inst.Ref, (C.Lib3MFReadCallback)(unsafe.Pointer(&theReadCallback)), C.uint64_t(streamSize), (C.Lib3MFSeekCallback)(unsafe.Pointer(&theSeekCallback)), (C.Lib3MF_pvoid)(userData)) if ret != 0 { return makeError(uint32(ret)) } @@ -6362,7 +914,7 @@ func (inst Reader) ReadFromCallback(theReadCallback ReadCallbackFunc, streamSize // SetProgressCallback set the progress callback for calls to this writer. func (inst Reader) SetProgressCallback(progressCallback ProgressCallbackFunc, userData uintptr) error { - ret := C.CCall_lib3mf_reader_setprogresscallback(inst.wrapperRef.LibraryHandle, inst.Ref, (C.Lib3MFProgressCallback)(unsafe.Pointer(C.Lib3MFProgressCallback_cgo)), (C.Lib3MF_pvoid)(userData)) + ret := C.CCall_lib3mf_reader_setprogresscallback(inst.wrapperRef.LibraryHandle, inst.Ref, (C.Lib3MFProgressCallback)(unsafe.Pointer(&progressCallback)), (C.Lib3MF_pvoid)(userData)) if ret != 0 { return makeError(uint32(ret)) } @@ -6437,7 +989,7 @@ func (inst Reader) GetWarningCount() (uint32, error) { // AddKeyWrappingCallback registers a callback to deal with key wrapping mechanism from keystore. func (inst Reader) AddKeyWrappingCallback(consumerID string, theCallback KeyWrappingCallbackFunc, userData uintptr) error { - ret := C.CCall_lib3mf_reader_addkeywrappingcallback(inst.wrapperRef.LibraryHandle, inst.Ref, (*C.char)(unsafe.Pointer(&[]byte(consumerID)[0])), (C.Lib3MFKeyWrappingCallback)(unsafe.Pointer(C.Lib3MFKeyWrappingCallback_cgo)), (C.Lib3MF_pvoid)(userData)) + ret := C.CCall_lib3mf_reader_addkeywrappingcallback(inst.wrapperRef.LibraryHandle, inst.Ref, (*C.char)(unsafe.Pointer(&[]byte(consumerID)[0])), (C.Lib3MFKeyWrappingCallback)(unsafe.Pointer(&theCallback)), (C.Lib3MF_pvoid)(userData)) if ret != 0 { return makeError(uint32(ret)) } @@ -6447,7 +999,7 @@ func (inst Reader) AddKeyWrappingCallback(consumerID string, theCallback KeyWrap // SetContentEncryptionCallback registers a callback to deal with encryption of content. func (inst Reader) SetContentEncryptionCallback(theCallback ContentEncryptionCallbackFunc, userData uintptr) error { - ret := C.CCall_lib3mf_reader_setcontentencryptioncallback(inst.wrapperRef.LibraryHandle, inst.Ref, (C.Lib3MFContentEncryptionCallback)(unsafe.Pointer(C.Lib3MFContentEncryptionCallback_cgo)), (C.Lib3MF_pvoid)(userData)) + ret := C.CCall_lib3mf_reader_setcontentencryptioncallback(inst.wrapperRef.LibraryHandle, inst.Ref, (C.Lib3MFContentEncryptionCallback)(unsafe.Pointer(&theCallback)), (C.Lib3MF_pvoid)(userData)) if ret != 0 { return makeError(uint32(ret)) } @@ -9353,7 +3905,7 @@ func (inst Attachment) ReadFromFile(fileName string) error { // ReadFromCallback reads an attachment from the data provided by a callback function. This callback function is only invoked when this attachment is being written as part of the 3MF package, or via the WriteToFile or WriteToBuffer-methods. func (inst Attachment) ReadFromCallback(theReadCallback ReadCallbackFunc, streamSize uint64, theSeekCallback SeekCallbackFunc, userData uintptr) error { - ret := C.CCall_lib3mf_attachment_readfromcallback(inst.wrapperRef.LibraryHandle, inst.Ref, (C.Lib3MFReadCallback)(unsafe.Pointer(C.Lib3MFReadCallback_cgo)), C.uint64_t(streamSize), (C.Lib3MFSeekCallback)(unsafe.Pointer(C.Lib3MFSeekCallback_cgo)), (C.Lib3MF_pvoid)(userData)) + ret := C.CCall_lib3mf_attachment_readfromcallback(inst.wrapperRef.LibraryHandle, inst.Ref, (C.Lib3MFReadCallback)(unsafe.Pointer(&theReadCallback)), C.uint64_t(streamSize), (C.Lib3MFSeekCallback)(unsafe.Pointer(&theSeekCallback)), (C.Lib3MF_pvoid)(userData)) if ret != 0 { return makeError(uint32(ret)) } @@ -13431,7 +7983,7 @@ func (inst Model) RemoveCustomContentType(extension string) error { // SetRandomNumberCallback sets the random number generator callback for use in the library. func (inst Model) SetRandomNumberCallback(theCallback RandomNumberCallbackFunc, userData uintptr) error { - ret := C.CCall_lib3mf_model_setrandomnumbercallback(inst.wrapperRef.LibraryHandle, inst.Ref, (C.Lib3MFRandomNumberCallback)(unsafe.Pointer(C.Lib3MFRandomNumberCallback_cgo)), (C.Lib3MF_pvoid)(userData)) + ret := C.CCall_lib3mf_model_setrandomnumbercallback(inst.wrapperRef.LibraryHandle, inst.Ref, (C.Lib3MFRandomNumberCallback)(unsafe.Pointer(&theCallback)), (C.Lib3MF_pvoid)(userData)) if ret != 0 { return makeError(uint32(ret)) } diff --git a/Autogenerated/Bindings/Go/lib3mf_dynamic.c b/Autogenerated/Bindings/Go/lib3mf_dynamic.c new file mode 100644 index 00000000..2e0735ec --- /dev/null +++ b/Autogenerated/Bindings/Go/lib3mf_dynamic.c @@ -0,0 +1,11576 @@ +/*++ + +Copyright (C) 2024 3MF Consortium (Original Author) + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.0-develop. + +Abstract: This is an autogenerated plain C Header file in order to allow an easy + use of the 3MF Library + +Interface version: 2.4.0 + +*/ + +#include "lib3mf_types.h" +#include "lib3mf_dynamic.h" +#ifdef _WIN32 +#include +#else // _WIN32 +#include +#include +#endif // _WIN32 + +Lib3MFResult InitLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable) +{ + if (pWrapperTable == NULL) + return LIB3MF_ERROR_INVALIDPARAM; + + pWrapperTable->m_LibraryHandle = NULL; + pWrapperTable->m_Base_ClassTypeId = NULL; + pWrapperTable->m_Writer_WriteToFile = NULL; + pWrapperTable->m_Writer_GetStreamSize = NULL; + pWrapperTable->m_Writer_WriteToBuffer = NULL; + pWrapperTable->m_Writer_WriteToCallback = NULL; + pWrapperTable->m_Writer_SetProgressCallback = NULL; + pWrapperTable->m_Writer_GetDecimalPrecision = NULL; + pWrapperTable->m_Writer_SetDecimalPrecision = NULL; + pWrapperTable->m_Writer_SetStrictModeActive = NULL; + pWrapperTable->m_Writer_GetStrictModeActive = NULL; + pWrapperTable->m_Writer_GetWarning = NULL; + pWrapperTable->m_Writer_GetWarningCount = NULL; + pWrapperTable->m_Writer_AddKeyWrappingCallback = NULL; + pWrapperTable->m_Writer_SetContentEncryptionCallback = NULL; + pWrapperTable->m_Reader_ReadFromFile = NULL; + pWrapperTable->m_Reader_ReadFromBuffer = NULL; + pWrapperTable->m_Reader_ReadFromCallback = NULL; + pWrapperTable->m_Reader_SetProgressCallback = NULL; + pWrapperTable->m_Reader_AddRelationToRead = NULL; + pWrapperTable->m_Reader_RemoveRelationToRead = NULL; + pWrapperTable->m_Reader_SetStrictModeActive = NULL; + pWrapperTable->m_Reader_GetStrictModeActive = NULL; + pWrapperTable->m_Reader_GetWarning = NULL; + pWrapperTable->m_Reader_GetWarningCount = NULL; + pWrapperTable->m_Reader_AddKeyWrappingCallback = NULL; + pWrapperTable->m_Reader_SetContentEncryptionCallback = NULL; + pWrapperTable->m_PackagePart_GetPath = NULL; + pWrapperTable->m_PackagePart_SetPath = NULL; + pWrapperTable->m_Resource_GetResourceID = NULL; + pWrapperTable->m_Resource_GetUniqueResourceID = NULL; + pWrapperTable->m_Resource_PackagePart = NULL; + pWrapperTable->m_Resource_SetPackagePart = NULL; + pWrapperTable->m_Resource_GetModelResourceID = NULL; + pWrapperTable->m_ResourceIterator_MoveNext = NULL; + pWrapperTable->m_ResourceIterator_MovePrevious = NULL; + pWrapperTable->m_ResourceIterator_GetCurrent = NULL; + pWrapperTable->m_ResourceIterator_Clone = NULL; + pWrapperTable->m_ResourceIterator_Count = NULL; + pWrapperTable->m_SliceStackIterator_GetCurrentSliceStack = NULL; + pWrapperTable->m_ObjectIterator_GetCurrentObject = NULL; + pWrapperTable->m_MeshObjectIterator_GetCurrentMeshObject = NULL; + pWrapperTable->m_ComponentsObjectIterator_GetCurrentComponentsObject = NULL; + pWrapperTable->m_Texture2DIterator_GetCurrentTexture2D = NULL; + pWrapperTable->m_BaseMaterialGroupIterator_GetCurrentBaseMaterialGroup = NULL; + pWrapperTable->m_ColorGroupIterator_GetCurrentColorGroup = NULL; + pWrapperTable->m_Texture2DGroupIterator_GetCurrentTexture2DGroup = NULL; + pWrapperTable->m_CompositeMaterialsIterator_GetCurrentCompositeMaterials = NULL; + pWrapperTable->m_MultiPropertyGroupIterator_GetCurrentMultiPropertyGroup = NULL; + pWrapperTable->m_Image3DIterator_GetCurrentImage3D = NULL; + pWrapperTable->m_FunctionIterator_GetCurrentFunction = NULL; + pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet = NULL; + pWrapperTable->m_MetaData_GetNameSpace = NULL; + pWrapperTable->m_MetaData_SetNameSpace = NULL; + pWrapperTable->m_MetaData_GetName = NULL; + pWrapperTable->m_MetaData_SetName = NULL; + pWrapperTable->m_MetaData_GetKey = NULL; + pWrapperTable->m_MetaData_GetMustPreserve = NULL; + pWrapperTable->m_MetaData_SetMustPreserve = NULL; + pWrapperTable->m_MetaData_GetType = NULL; + pWrapperTable->m_MetaData_SetType = NULL; + pWrapperTable->m_MetaData_GetValue = NULL; + pWrapperTable->m_MetaData_SetValue = NULL; + pWrapperTable->m_MetaDataGroup_GetMetaDataCount = NULL; + pWrapperTable->m_MetaDataGroup_GetMetaData = NULL; + pWrapperTable->m_MetaDataGroup_GetMetaDataByKey = NULL; + pWrapperTable->m_MetaDataGroup_RemoveMetaDataByIndex = NULL; + pWrapperTable->m_MetaDataGroup_RemoveMetaData = NULL; + pWrapperTable->m_MetaDataGroup_AddMetaData = NULL; + pWrapperTable->m_Object_GetType = NULL; + pWrapperTable->m_Object_SetType = NULL; + pWrapperTable->m_Object_GetName = NULL; + pWrapperTable->m_Object_SetName = NULL; + pWrapperTable->m_Object_GetPartNumber = NULL; + pWrapperTable->m_Object_SetPartNumber = NULL; + pWrapperTable->m_Object_IsMeshObject = NULL; + pWrapperTable->m_Object_IsComponentsObject = NULL; + pWrapperTable->m_Object_IsLevelSetObject = NULL; + pWrapperTable->m_Object_IsValid = NULL; + pWrapperTable->m_Object_SetAttachmentAsThumbnail = NULL; + pWrapperTable->m_Object_GetThumbnailAttachment = NULL; + pWrapperTable->m_Object_ClearThumbnailAttachment = NULL; + pWrapperTable->m_Object_GetOutbox = NULL; + pWrapperTable->m_Object_GetUUID = NULL; + pWrapperTable->m_Object_SetUUID = NULL; + pWrapperTable->m_Object_GetMetaDataGroup = NULL; + pWrapperTable->m_Object_SetSlicesMeshResolution = NULL; + pWrapperTable->m_Object_GetSlicesMeshResolution = NULL; + pWrapperTable->m_Object_HasSlices = NULL; + pWrapperTable->m_Object_ClearSliceStack = NULL; + pWrapperTable->m_Object_GetSliceStack = NULL; + pWrapperTable->m_Object_AssignSliceStack = NULL; + pWrapperTable->m_MeshObject_GetVertexCount = NULL; + pWrapperTable->m_MeshObject_GetTriangleCount = NULL; + pWrapperTable->m_MeshObject_GetVertex = NULL; + pWrapperTable->m_MeshObject_SetVertex = NULL; + pWrapperTable->m_MeshObject_AddVertex = NULL; + pWrapperTable->m_MeshObject_GetVertices = NULL; + pWrapperTable->m_MeshObject_GetTriangle = NULL; + pWrapperTable->m_MeshObject_SetTriangle = NULL; + pWrapperTable->m_MeshObject_AddTriangle = NULL; + pWrapperTable->m_MeshObject_GetTriangleIndices = NULL; + pWrapperTable->m_MeshObject_SetObjectLevelProperty = NULL; + pWrapperTable->m_MeshObject_GetObjectLevelProperty = NULL; + pWrapperTable->m_MeshObject_SetTriangleProperties = NULL; + pWrapperTable->m_MeshObject_GetTriangleProperties = NULL; + pWrapperTable->m_MeshObject_SetAllTriangleProperties = NULL; + pWrapperTable->m_MeshObject_GetAllTriangleProperties = NULL; + pWrapperTable->m_MeshObject_ClearAllProperties = NULL; + pWrapperTable->m_MeshObject_SetGeometry = NULL; + pWrapperTable->m_MeshObject_IsManifoldAndOriented = NULL; + pWrapperTable->m_MeshObject_BeamLattice = NULL; + pWrapperTable->m_MeshObject_GetVolumeData = NULL; + pWrapperTable->m_MeshObject_SetVolumeData = NULL; + pWrapperTable->m_LevelSet_GetFunction = NULL; + pWrapperTable->m_LevelSet_SetFunction = NULL; + pWrapperTable->m_LevelSet_GetTransform = NULL; + pWrapperTable->m_LevelSet_SetTransform = NULL; + pWrapperTable->m_LevelSet_GetChannelName = NULL; + pWrapperTable->m_LevelSet_SetChannelName = NULL; + pWrapperTable->m_LevelSet_SetMinFeatureSize = NULL; + pWrapperTable->m_LevelSet_GetMinFeatureSize = NULL; + pWrapperTable->m_LevelSet_SetFallBackValue = NULL; + pWrapperTable->m_LevelSet_GetFallBackValue = NULL; + pWrapperTable->m_LevelSet_SetMeshBBoxOnly = NULL; + pWrapperTable->m_LevelSet_GetMeshBBoxOnly = NULL; + pWrapperTable->m_LevelSet_SetMesh = NULL; + pWrapperTable->m_LevelSet_GetMesh = NULL; + pWrapperTable->m_LevelSet_GetVolumeData = NULL; + pWrapperTable->m_LevelSet_SetVolumeData = NULL; + pWrapperTable->m_BeamLattice_GetMinLength = NULL; + pWrapperTable->m_BeamLattice_SetMinLength = NULL; + pWrapperTable->m_BeamLattice_GetClipping = NULL; + pWrapperTable->m_BeamLattice_SetClipping = NULL; + pWrapperTable->m_BeamLattice_GetRepresentation = NULL; + pWrapperTable->m_BeamLattice_SetRepresentation = NULL; + pWrapperTable->m_BeamLattice_GetBallOptions = NULL; + pWrapperTable->m_BeamLattice_SetBallOptions = NULL; + pWrapperTable->m_BeamLattice_GetBeamCount = NULL; + pWrapperTable->m_BeamLattice_GetBeam = NULL; + pWrapperTable->m_BeamLattice_AddBeam = NULL; + pWrapperTable->m_BeamLattice_SetBeam = NULL; + pWrapperTable->m_BeamLattice_SetBeams = NULL; + pWrapperTable->m_BeamLattice_GetBeams = NULL; + pWrapperTable->m_BeamLattice_GetBallCount = NULL; + pWrapperTable->m_BeamLattice_GetBall = NULL; + pWrapperTable->m_BeamLattice_AddBall = NULL; + pWrapperTable->m_BeamLattice_SetBall = NULL; + pWrapperTable->m_BeamLattice_SetBalls = NULL; + pWrapperTable->m_BeamLattice_GetBalls = NULL; + pWrapperTable->m_BeamLattice_GetBeamSetCount = NULL; + pWrapperTable->m_BeamLattice_AddBeamSet = NULL; + pWrapperTable->m_BeamLattice_GetBeamSet = NULL; + pWrapperTable->m_FunctionReference_GetFunctionResourceID = NULL; + pWrapperTable->m_FunctionReference_SetFunctionResourceID = NULL; + pWrapperTable->m_FunctionReference_GetTransform = NULL; + pWrapperTable->m_FunctionReference_SetTransform = NULL; + pWrapperTable->m_FunctionReference_GetChannelName = NULL; + pWrapperTable->m_FunctionReference_SetChannelName = NULL; + pWrapperTable->m_FunctionReference_SetMinFeatureSize = NULL; + pWrapperTable->m_FunctionReference_GetMinFeatureSize = NULL; + pWrapperTable->m_FunctionReference_SetFallBackValue = NULL; + pWrapperTable->m_FunctionReference_GetFallBackValue = NULL; + pWrapperTable->m_VolumeDataComposite_GetBaseMaterialGroup = NULL; + pWrapperTable->m_VolumeDataComposite_SetBaseMaterialGroup = NULL; + pWrapperTable->m_VolumeDataComposite_GetMaterialMappingCount = NULL; + pWrapperTable->m_VolumeDataComposite_GetMaterialMapping = NULL; + pWrapperTable->m_VolumeDataComposite_AddMaterialMapping = NULL; + pWrapperTable->m_VolumeDataComposite_RemoveMaterialMapping = NULL; + pWrapperTable->m_VolumeDataProperty_GetName = NULL; + pWrapperTable->m_VolumeDataProperty_SetIsRequired = NULL; + pWrapperTable->m_VolumeDataProperty_IsRequired = NULL; + pWrapperTable->m_VolumeData_GetComposite = NULL; + pWrapperTable->m_VolumeData_CreateNewComposite = NULL; + pWrapperTable->m_VolumeData_RemoveComposite = NULL; + pWrapperTable->m_VolumeData_GetColor = NULL; + pWrapperTable->m_VolumeData_CreateNewColor = NULL; + pWrapperTable->m_VolumeData_RemoveColor = NULL; + pWrapperTable->m_VolumeData_GetPropertyCount = NULL; + pWrapperTable->m_VolumeData_GetProperty = NULL; + pWrapperTable->m_VolumeData_AddPropertyFromFunction = NULL; + pWrapperTable->m_VolumeData_RemoveProperty = NULL; + pWrapperTable->m_Component_GetObjectResource = NULL; + pWrapperTable->m_Component_GetObjectResourceID = NULL; + pWrapperTable->m_Component_GetUUID = NULL; + pWrapperTable->m_Component_SetUUID = NULL; + pWrapperTable->m_Component_HasTransform = NULL; + pWrapperTable->m_Component_GetTransform = NULL; + pWrapperTable->m_Component_SetTransform = NULL; + pWrapperTable->m_ComponentsObject_AddComponent = NULL; + pWrapperTable->m_ComponentsObject_GetComponent = NULL; + pWrapperTable->m_ComponentsObject_GetComponentCount = NULL; + pWrapperTable->m_BeamSet_SetName = NULL; + pWrapperTable->m_BeamSet_GetName = NULL; + pWrapperTable->m_BeamSet_SetIdentifier = NULL; + pWrapperTable->m_BeamSet_GetIdentifier = NULL; + pWrapperTable->m_BeamSet_GetReferenceCount = NULL; + pWrapperTable->m_BeamSet_SetReferences = NULL; + pWrapperTable->m_BeamSet_GetReferences = NULL; + pWrapperTable->m_BeamSet_GetBallReferenceCount = NULL; + pWrapperTable->m_BeamSet_SetBallReferences = NULL; + pWrapperTable->m_BeamSet_GetBallReferences = NULL; + pWrapperTable->m_BaseMaterialGroup_GetCount = NULL; + pWrapperTable->m_BaseMaterialGroup_GetAllPropertyIDs = NULL; + pWrapperTable->m_BaseMaterialGroup_AddMaterial = NULL; + pWrapperTable->m_BaseMaterialGroup_RemoveMaterial = NULL; + pWrapperTable->m_BaseMaterialGroup_GetName = NULL; + pWrapperTable->m_BaseMaterialGroup_SetName = NULL; + pWrapperTable->m_BaseMaterialGroup_SetDisplayColor = NULL; + pWrapperTable->m_BaseMaterialGroup_GetDisplayColor = NULL; + pWrapperTable->m_ColorGroup_GetCount = NULL; + pWrapperTable->m_ColorGroup_GetAllPropertyIDs = NULL; + pWrapperTable->m_ColorGroup_AddColor = NULL; + pWrapperTable->m_ColorGroup_RemoveColor = NULL; + pWrapperTable->m_ColorGroup_SetColor = NULL; + pWrapperTable->m_ColorGroup_GetColor = NULL; + pWrapperTable->m_Texture2DGroup_GetCount = NULL; + pWrapperTable->m_Texture2DGroup_GetAllPropertyIDs = NULL; + pWrapperTable->m_Texture2DGroup_AddTex2Coord = NULL; + pWrapperTable->m_Texture2DGroup_GetTex2Coord = NULL; + pWrapperTable->m_Texture2DGroup_RemoveTex2Coord = NULL; + pWrapperTable->m_Texture2DGroup_GetTexture2D = NULL; + pWrapperTable->m_CompositeMaterials_GetCount = NULL; + pWrapperTable->m_CompositeMaterials_GetAllPropertyIDs = NULL; + pWrapperTable->m_CompositeMaterials_GetBaseMaterialGroup = NULL; + pWrapperTable->m_CompositeMaterials_AddComposite = NULL; + pWrapperTable->m_CompositeMaterials_RemoveComposite = NULL; + pWrapperTable->m_CompositeMaterials_GetComposite = NULL; + pWrapperTable->m_MultiPropertyGroup_GetCount = NULL; + pWrapperTable->m_MultiPropertyGroup_GetAllPropertyIDs = NULL; + pWrapperTable->m_MultiPropertyGroup_AddMultiProperty = NULL; + pWrapperTable->m_MultiPropertyGroup_SetMultiProperty = NULL; + pWrapperTable->m_MultiPropertyGroup_GetMultiProperty = NULL; + pWrapperTable->m_MultiPropertyGroup_RemoveMultiProperty = NULL; + pWrapperTable->m_MultiPropertyGroup_GetLayerCount = NULL; + pWrapperTable->m_MultiPropertyGroup_AddLayer = NULL; + pWrapperTable->m_MultiPropertyGroup_GetLayer = NULL; + pWrapperTable->m_MultiPropertyGroup_RemoveLayer = NULL; + pWrapperTable->m_Image3D_GetName = NULL; + pWrapperTable->m_Image3D_SetName = NULL; + pWrapperTable->m_Image3D_IsImageStack = NULL; + pWrapperTable->m_ImageStack_GetRowCount = NULL; + pWrapperTable->m_ImageStack_SetRowCount = NULL; + pWrapperTable->m_ImageStack_GetColumnCount = NULL; + pWrapperTable->m_ImageStack_SetColumnCount = NULL; + pWrapperTable->m_ImageStack_GetSheetCount = NULL; + pWrapperTable->m_ImageStack_GetSheet = NULL; + pWrapperTable->m_ImageStack_SetSheet = NULL; + pWrapperTable->m_ImageStack_CreateEmptySheet = NULL; + pWrapperTable->m_ImageStack_CreateSheetFromBuffer = NULL; + pWrapperTable->m_ImageStack_CreateSheetFromFile = NULL; + pWrapperTable->m_Attachment_GetPath = NULL; + pWrapperTable->m_Attachment_SetPath = NULL; + pWrapperTable->m_Attachment_PackagePart = NULL; + pWrapperTable->m_Attachment_GetRelationShipType = NULL; + pWrapperTable->m_Attachment_SetRelationShipType = NULL; + pWrapperTable->m_Attachment_WriteToFile = NULL; + pWrapperTable->m_Attachment_ReadFromFile = NULL; + pWrapperTable->m_Attachment_ReadFromCallback = NULL; + pWrapperTable->m_Attachment_GetStreamSize = NULL; + pWrapperTable->m_Attachment_WriteToBuffer = NULL; + pWrapperTable->m_Attachment_ReadFromBuffer = NULL; + pWrapperTable->m_Texture2D_GetAttachment = NULL; + pWrapperTable->m_Texture2D_SetAttachment = NULL; + pWrapperTable->m_Texture2D_GetContentType = NULL; + pWrapperTable->m_Texture2D_SetContentType = NULL; + pWrapperTable->m_Texture2D_GetTileStyleUV = NULL; + pWrapperTable->m_Texture2D_SetTileStyleUV = NULL; + pWrapperTable->m_Texture2D_GetFilter = NULL; + pWrapperTable->m_Texture2D_SetFilter = NULL; + pWrapperTable->m_ImplicitPort_GetIdentifier = NULL; + pWrapperTable->m_ImplicitPort_SetIdentifier = NULL; + pWrapperTable->m_ImplicitPort_GetDisplayName = NULL; + pWrapperTable->m_ImplicitPort_SetDisplayName = NULL; + pWrapperTable->m_ImplicitPort_SetType = NULL; + pWrapperTable->m_ImplicitPort_GetType = NULL; + pWrapperTable->m_ImplicitPort_GetReference = NULL; + pWrapperTable->m_ImplicitPort_SetReference = NULL; + pWrapperTable->m_Iterator_MoveNext = NULL; + pWrapperTable->m_Iterator_MovePrevious = NULL; + pWrapperTable->m_Iterator_Count = NULL; + pWrapperTable->m_ImplicitPortIterator_GetCurrent = NULL; + pWrapperTable->m_ImplicitNode_GetIdentifier = NULL; + pWrapperTable->m_ImplicitNode_SetIdentifier = NULL; + pWrapperTable->m_ImplicitNode_GetDisplayName = NULL; + pWrapperTable->m_ImplicitNode_SetDisplayName = NULL; + pWrapperTable->m_ImplicitNode_GetTag = NULL; + pWrapperTable->m_ImplicitNode_SetTag = NULL; + pWrapperTable->m_ImplicitNode_GetNodeType = NULL; + pWrapperTable->m_ImplicitNode_AddInput = NULL; + pWrapperTable->m_ImplicitNode_GetInputs = NULL; + pWrapperTable->m_ImplicitNode_AddOutput = NULL; + pWrapperTable->m_ImplicitNode_GetOutputs = NULL; + pWrapperTable->m_ImplicitNode_FindInput = NULL; + pWrapperTable->m_ImplicitNode_FindOutput = NULL; + pWrapperTable->m_ImplicitNode_AreTypesValid = NULL; + pWrapperTable->m_OneInputNode_GetInputA = NULL; + pWrapperTable->m_OneInputNode_GetOutputResult = NULL; + pWrapperTable->m_ResourceIdNode_SetResource = NULL; + pWrapperTable->m_ResourceIdNode_GetResource = NULL; + pWrapperTable->m_ResourceIdNode_GetOutputValue = NULL; + pWrapperTable->m_TwoInputNode_GetInputB = NULL; + pWrapperTable->m_SelectNode_GetInputB = NULL; + pWrapperTable->m_SelectNode_GetInputC = NULL; + pWrapperTable->m_SelectNode_GetInputD = NULL; + pWrapperTable->m_ClampNode_GetInputMin = NULL; + pWrapperTable->m_ClampNode_GetInputMax = NULL; + pWrapperTable->m_ComposeVectorNode_GetInputX = NULL; + pWrapperTable->m_ComposeVectorNode_GetInputY = NULL; + pWrapperTable->m_ComposeVectorNode_GetInputZ = NULL; + pWrapperTable->m_ComposeVectorNode_GetOutputResult = NULL; + pWrapperTable->m_DecomposeVectorNode_GetInputA = NULL; + pWrapperTable->m_DecomposeVectorNode_GetOutputX = NULL; + pWrapperTable->m_DecomposeVectorNode_GetOutputY = NULL; + pWrapperTable->m_DecomposeVectorNode_GetOutputZ = NULL; + pWrapperTable->m_ComposeMatrixNode_GetInputM00 = NULL; + pWrapperTable->m_ComposeMatrixNode_GetInputM01 = NULL; + pWrapperTable->m_ComposeMatrixNode_GetInputM02 = NULL; + pWrapperTable->m_ComposeMatrixNode_GetInputM03 = NULL; + pWrapperTable->m_ComposeMatrixNode_GetInputM10 = NULL; + pWrapperTable->m_ComposeMatrixNode_GetInputM11 = NULL; + pWrapperTable->m_ComposeMatrixNode_GetInputM12 = NULL; + pWrapperTable->m_ComposeMatrixNode_GetInputM13 = NULL; + pWrapperTable->m_ComposeMatrixNode_GetInputM20 = NULL; + pWrapperTable->m_ComposeMatrixNode_GetInputM21 = NULL; + pWrapperTable->m_ComposeMatrixNode_GetInputM22 = NULL; + pWrapperTable->m_ComposeMatrixNode_GetInputM23 = NULL; + pWrapperTable->m_ComposeMatrixNode_GetInputM30 = NULL; + pWrapperTable->m_ComposeMatrixNode_GetInputM31 = NULL; + pWrapperTable->m_ComposeMatrixNode_GetInputM32 = NULL; + pWrapperTable->m_ComposeMatrixNode_GetInputM33 = NULL; + pWrapperTable->m_ComposeMatrixNode_GetOutputResult = NULL; + pWrapperTable->m_MatrixFromRowsNode_GetInputA = NULL; + pWrapperTable->m_MatrixFromRowsNode_GetInputB = NULL; + pWrapperTable->m_MatrixFromRowsNode_GetInputC = NULL; + pWrapperTable->m_MatrixFromRowsNode_GetInputD = NULL; + pWrapperTable->m_MatrixFromRowsNode_GetOutputResult = NULL; + pWrapperTable->m_MatrixFromColumnsNode_GetInputA = NULL; + pWrapperTable->m_MatrixFromColumnsNode_GetInputB = NULL; + pWrapperTable->m_MatrixFromColumnsNode_GetInputC = NULL; + pWrapperTable->m_MatrixFromColumnsNode_GetInputD = NULL; + pWrapperTable->m_MatrixFromColumnsNode_GetOutputResult = NULL; + pWrapperTable->m_ConstantNode_SetConstant = NULL; + pWrapperTable->m_ConstantNode_GetConstant = NULL; + pWrapperTable->m_ConstantNode_GetOutputValue = NULL; + pWrapperTable->m_ConstVecNode_SetVector = NULL; + pWrapperTable->m_ConstVecNode_GetVector = NULL; + pWrapperTable->m_ConstVecNode_GetOutputVector = NULL; + pWrapperTable->m_ConstMatNode_SetMatrix = NULL; + pWrapperTable->m_ConstMatNode_GetMatrix = NULL; + pWrapperTable->m_ConstMatNode_GetOutputMatrix = NULL; + pWrapperTable->m_MeshNode_GetInputMesh = NULL; + pWrapperTable->m_MeshNode_GetInputPos = NULL; + pWrapperTable->m_MeshNode_GetOutputDistance = NULL; + pWrapperTable->m_UnsignedMeshNode_GetInputMesh = NULL; + pWrapperTable->m_UnsignedMeshNode_GetInputPos = NULL; + pWrapperTable->m_UnsignedMeshNode_GetOutputDistance = NULL; + pWrapperTable->m_FunctionCallNode_GetInputFunctionID = NULL; + pWrapperTable->m_NodeIterator_GetCurrent = NULL; + pWrapperTable->m_Function_GetDisplayName = NULL; + pWrapperTable->m_Function_SetDisplayName = NULL; + pWrapperTable->m_Function_AddInput = NULL; + pWrapperTable->m_Function_GetInputs = NULL; + pWrapperTable->m_Function_RemoveInput = NULL; + pWrapperTable->m_Function_AddOutput = NULL; + pWrapperTable->m_Function_GetOutputs = NULL; + pWrapperTable->m_Function_RemoveOutput = NULL; + pWrapperTable->m_Function_FindInput = NULL; + pWrapperTable->m_Function_FindOutput = NULL; + pWrapperTable->m_ImplicitFunction_GetIdentifier = NULL; + pWrapperTable->m_ImplicitFunction_SetIdentifier = NULL; + pWrapperTable->m_ImplicitFunction_AddNode = NULL; + pWrapperTable->m_ImplicitFunction_AddSinNode = NULL; + pWrapperTable->m_ImplicitFunction_AddCosNode = NULL; + pWrapperTable->m_ImplicitFunction_AddTanNode = NULL; + pWrapperTable->m_ImplicitFunction_AddArcSinNode = NULL; + pWrapperTable->m_ImplicitFunction_AddArcCosNode = NULL; + pWrapperTable->m_ImplicitFunction_AddArcTan2Node = NULL; + pWrapperTable->m_ImplicitFunction_AddSinhNode = NULL; + pWrapperTable->m_ImplicitFunction_AddCoshNode = NULL; + pWrapperTable->m_ImplicitFunction_AddTanhNode = NULL; + pWrapperTable->m_ImplicitFunction_AddRoundNode = NULL; + pWrapperTable->m_ImplicitFunction_AddCeilNode = NULL; + pWrapperTable->m_ImplicitFunction_AddFloorNode = NULL; + pWrapperTable->m_ImplicitFunction_AddSignNode = NULL; + pWrapperTable->m_ImplicitFunction_AddFractNode = NULL; + pWrapperTable->m_ImplicitFunction_AddAbsNode = NULL; + pWrapperTable->m_ImplicitFunction_AddExpNode = NULL; + pWrapperTable->m_ImplicitFunction_AddLogNode = NULL; + pWrapperTable->m_ImplicitFunction_AddLog2Node = NULL; + pWrapperTable->m_ImplicitFunction_AddLog10Node = NULL; + pWrapperTable->m_ImplicitFunction_AddLengthNode = NULL; + pWrapperTable->m_ImplicitFunction_AddTransposeNode = NULL; + pWrapperTable->m_ImplicitFunction_AddInverseNode = NULL; + pWrapperTable->m_ImplicitFunction_AddSqrtNode = NULL; + pWrapperTable->m_ImplicitFunction_AddResourceIdNode = NULL; + pWrapperTable->m_ImplicitFunction_AddAdditionNode = NULL; + pWrapperTable->m_ImplicitFunction_AddSubtractionNode = NULL; + pWrapperTable->m_ImplicitFunction_AddMultiplicationNode = NULL; + pWrapperTable->m_ImplicitFunction_AddDivisionNode = NULL; + pWrapperTable->m_ImplicitFunction_AddDotNode = NULL; + pWrapperTable->m_ImplicitFunction_AddCrossNode = NULL; + pWrapperTable->m_ImplicitFunction_AddMatVecMultiplicationNode = NULL; + pWrapperTable->m_ImplicitFunction_AddMinNode = NULL; + pWrapperTable->m_ImplicitFunction_AddMaxNode = NULL; + pWrapperTable->m_ImplicitFunction_AddFmodNode = NULL; + pWrapperTable->m_ImplicitFunction_AddPowNode = NULL; + pWrapperTable->m_ImplicitFunction_AddSelectNode = NULL; + pWrapperTable->m_ImplicitFunction_AddClampNode = NULL; + pWrapperTable->m_ImplicitFunction_AddComposeVectorNode = NULL; + pWrapperTable->m_ImplicitFunction_AddVectorFromScalarNode = NULL; + pWrapperTable->m_ImplicitFunction_AddDecomposeVectorNode = NULL; + pWrapperTable->m_ImplicitFunction_AddComposeMatrixNode = NULL; + pWrapperTable->m_ImplicitFunction_AddMatrixFromRowsNode = NULL; + pWrapperTable->m_ImplicitFunction_AddMatrixFromColumnsNode = NULL; + pWrapperTable->m_ImplicitFunction_AddConstantNode = NULL; + pWrapperTable->m_ImplicitFunction_AddConstVecNode = NULL; + pWrapperTable->m_ImplicitFunction_AddConstMatNode = NULL; + pWrapperTable->m_ImplicitFunction_AddMeshNode = NULL; + pWrapperTable->m_ImplicitFunction_AddUnsignedMeshNode = NULL; + pWrapperTable->m_ImplicitFunction_AddFunctionCallNode = NULL; + pWrapperTable->m_ImplicitFunction_GetNodes = NULL; + pWrapperTable->m_ImplicitFunction_RemoveNode = NULL; + pWrapperTable->m_ImplicitFunction_AddLink = NULL; + pWrapperTable->m_ImplicitFunction_AddLinkByNames = NULL; + pWrapperTable->m_ImplicitFunction_Clear = NULL; + pWrapperTable->m_ImplicitFunction_SortNodesTopologically = NULL; + pWrapperTable->m_FunctionFromImage3D_GetImage3D = NULL; + pWrapperTable->m_FunctionFromImage3D_SetImage3D = NULL; + pWrapperTable->m_FunctionFromImage3D_SetFilter = NULL; + pWrapperTable->m_FunctionFromImage3D_GetFilter = NULL; + pWrapperTable->m_FunctionFromImage3D_SetTileStyles = NULL; + pWrapperTable->m_FunctionFromImage3D_GetTileStyles = NULL; + pWrapperTable->m_FunctionFromImage3D_GetOffset = NULL; + pWrapperTable->m_FunctionFromImage3D_SetOffset = NULL; + pWrapperTable->m_FunctionFromImage3D_GetScale = NULL; + pWrapperTable->m_FunctionFromImage3D_SetScale = NULL; + pWrapperTable->m_BuildItem_GetObjectResource = NULL; + pWrapperTable->m_BuildItem_GetUUID = NULL; + pWrapperTable->m_BuildItem_SetUUID = NULL; + pWrapperTable->m_BuildItem_GetObjectResourceID = NULL; + pWrapperTable->m_BuildItem_HasObjectTransform = NULL; + pWrapperTable->m_BuildItem_GetObjectTransform = NULL; + pWrapperTable->m_BuildItem_SetObjectTransform = NULL; + pWrapperTable->m_BuildItem_GetPartNumber = NULL; + pWrapperTable->m_BuildItem_SetPartNumber = NULL; + pWrapperTable->m_BuildItem_GetMetaDataGroup = NULL; + pWrapperTable->m_BuildItem_GetOutbox = NULL; + pWrapperTable->m_BuildItemIterator_MoveNext = NULL; + pWrapperTable->m_BuildItemIterator_MovePrevious = NULL; + pWrapperTable->m_BuildItemIterator_GetCurrent = NULL; + pWrapperTable->m_BuildItemIterator_Clone = NULL; + pWrapperTable->m_BuildItemIterator_Count = NULL; + pWrapperTable->m_Slice_SetVertices = NULL; + pWrapperTable->m_Slice_GetVertices = NULL; + pWrapperTable->m_Slice_GetVertexCount = NULL; + pWrapperTable->m_Slice_AddPolygon = NULL; + pWrapperTable->m_Slice_GetPolygonCount = NULL; + pWrapperTable->m_Slice_SetPolygonIndices = NULL; + pWrapperTable->m_Slice_GetPolygonIndices = NULL; + pWrapperTable->m_Slice_GetPolygonIndexCount = NULL; + pWrapperTable->m_Slice_GetZTop = NULL; + pWrapperTable->m_SliceStack_GetBottomZ = NULL; + pWrapperTable->m_SliceStack_GetSliceCount = NULL; + pWrapperTable->m_SliceStack_GetSlice = NULL; + pWrapperTable->m_SliceStack_AddSlice = NULL; + pWrapperTable->m_SliceStack_GetSliceRefCount = NULL; + pWrapperTable->m_SliceStack_AddSliceStackReference = NULL; + pWrapperTable->m_SliceStack_GetSliceStackReference = NULL; + pWrapperTable->m_SliceStack_CollapseSliceReferences = NULL; + pWrapperTable->m_SliceStack_SetOwnPath = NULL; + pWrapperTable->m_SliceStack_GetOwnPath = NULL; + pWrapperTable->m_Consumer_GetConsumerID = NULL; + pWrapperTable->m_Consumer_GetKeyID = NULL; + pWrapperTable->m_Consumer_GetKeyValue = NULL; + pWrapperTable->m_AccessRight_GetConsumer = NULL; + pWrapperTable->m_AccessRight_GetWrappingAlgorithm = NULL; + pWrapperTable->m_AccessRight_GetMgfAlgorithm = NULL; + pWrapperTable->m_AccessRight_GetDigestMethod = NULL; + pWrapperTable->m_ContentEncryptionParams_GetEncryptionAlgorithm = NULL; + pWrapperTable->m_ContentEncryptionParams_GetKey = NULL; + pWrapperTable->m_ContentEncryptionParams_GetInitializationVector = NULL; + pWrapperTable->m_ContentEncryptionParams_GetAuthenticationTag = NULL; + pWrapperTable->m_ContentEncryptionParams_SetAuthenticationTag = NULL; + pWrapperTable->m_ContentEncryptionParams_GetAdditionalAuthenticationData = NULL; + pWrapperTable->m_ContentEncryptionParams_GetDescriptor = NULL; + pWrapperTable->m_ContentEncryptionParams_GetKeyUUID = NULL; + pWrapperTable->m_ResourceData_GetPath = NULL; + pWrapperTable->m_ResourceData_GetEncryptionAlgorithm = NULL; + pWrapperTable->m_ResourceData_GetCompression = NULL; + pWrapperTable->m_ResourceData_GetAdditionalAuthenticationData = NULL; + pWrapperTable->m_ResourceDataGroup_GetKeyUUID = NULL; + pWrapperTable->m_ResourceDataGroup_AddAccessRight = NULL; + pWrapperTable->m_ResourceDataGroup_FindAccessRightByConsumer = NULL; + pWrapperTable->m_ResourceDataGroup_RemoveAccessRight = NULL; + pWrapperTable->m_KeyStore_AddConsumer = NULL; + pWrapperTable->m_KeyStore_GetConsumerCount = NULL; + pWrapperTable->m_KeyStore_GetConsumer = NULL; + pWrapperTable->m_KeyStore_RemoveConsumer = NULL; + pWrapperTable->m_KeyStore_FindConsumer = NULL; + pWrapperTable->m_KeyStore_GetResourceDataGroupCount = NULL; + pWrapperTable->m_KeyStore_AddResourceDataGroup = NULL; + pWrapperTable->m_KeyStore_GetResourceDataGroup = NULL; + pWrapperTable->m_KeyStore_RemoveResourceDataGroup = NULL; + pWrapperTable->m_KeyStore_FindResourceDataGroup = NULL; + pWrapperTable->m_KeyStore_AddResourceData = NULL; + pWrapperTable->m_KeyStore_RemoveResourceData = NULL; + pWrapperTable->m_KeyStore_FindResourceData = NULL; + pWrapperTable->m_KeyStore_GetResourceDataCount = NULL; + pWrapperTable->m_KeyStore_GetResourceData = NULL; + pWrapperTable->m_KeyStore_GetUUID = NULL; + pWrapperTable->m_KeyStore_SetUUID = NULL; + pWrapperTable->m_Model_RootModelPart = NULL; + pWrapperTable->m_Model_FindOrCreatePackagePart = NULL; + pWrapperTable->m_Model_SetUnit = NULL; + pWrapperTable->m_Model_GetUnit = NULL; + pWrapperTable->m_Model_GetLanguage = NULL; + pWrapperTable->m_Model_SetLanguage = NULL; + pWrapperTable->m_Model_QueryWriter = NULL; + pWrapperTable->m_Model_QueryReader = NULL; + pWrapperTable->m_Model_GetResourceByID = NULL; + pWrapperTable->m_Model_GetTexture2DByID = NULL; + pWrapperTable->m_Model_GetPropertyTypeByID = NULL; + pWrapperTable->m_Model_GetBaseMaterialGroupByID = NULL; + pWrapperTable->m_Model_GetTexture2DGroupByID = NULL; + pWrapperTable->m_Model_GetCompositeMaterialsByID = NULL; + pWrapperTable->m_Model_GetMultiPropertyGroupByID = NULL; + pWrapperTable->m_Model_GetMeshObjectByID = NULL; + pWrapperTable->m_Model_GetComponentsObjectByID = NULL; + pWrapperTable->m_Model_GetColorGroupByID = NULL; + pWrapperTable->m_Model_GetSliceStackByID = NULL; + pWrapperTable->m_Model_GetLevelSetByID = NULL; + pWrapperTable->m_Model_GetBuildUUID = NULL; + pWrapperTable->m_Model_SetBuildUUID = NULL; + pWrapperTable->m_Model_GetBuildItems = NULL; + pWrapperTable->m_Model_GetOutbox = NULL; + pWrapperTable->m_Model_GetResources = NULL; + pWrapperTable->m_Model_GetObjects = NULL; + pWrapperTable->m_Model_GetMeshObjects = NULL; + pWrapperTable->m_Model_GetComponentsObjects = NULL; + pWrapperTable->m_Model_GetTexture2Ds = NULL; + pWrapperTable->m_Model_GetBaseMaterialGroups = NULL; + pWrapperTable->m_Model_GetColorGroups = NULL; + pWrapperTable->m_Model_GetTexture2DGroups = NULL; + pWrapperTable->m_Model_GetCompositeMaterials = NULL; + pWrapperTable->m_Model_GetMultiPropertyGroups = NULL; + pWrapperTable->m_Model_GetSliceStacks = NULL; + pWrapperTable->m_Model_GetImage3Ds = NULL; + pWrapperTable->m_Model_MergeToModel = NULL; + pWrapperTable->m_Model_MergeFromModel = NULL; + pWrapperTable->m_Model_AddMeshObject = NULL; + pWrapperTable->m_Model_AddComponentsObject = NULL; + pWrapperTable->m_Model_AddSliceStack = NULL; + pWrapperTable->m_Model_AddTexture2DFromAttachment = NULL; + pWrapperTable->m_Model_AddBaseMaterialGroup = NULL; + pWrapperTable->m_Model_AddColorGroup = NULL; + pWrapperTable->m_Model_AddTexture2DGroup = NULL; + pWrapperTable->m_Model_AddCompositeMaterials = NULL; + pWrapperTable->m_Model_AddMultiPropertyGroup = NULL; + pWrapperTable->m_Model_AddImageStack = NULL; + pWrapperTable->m_Model_GetImageStackByID = NULL; + pWrapperTable->m_Model_AddBuildItem = NULL; + pWrapperTable->m_Model_RemoveBuildItem = NULL; + pWrapperTable->m_Model_GetMetaDataGroup = NULL; + pWrapperTable->m_Model_AddAttachment = NULL; + pWrapperTable->m_Model_RemoveAttachment = NULL; + pWrapperTable->m_Model_GetAttachment = NULL; + pWrapperTable->m_Model_FindAttachment = NULL; + pWrapperTable->m_Model_GetAttachmentCount = NULL; + pWrapperTable->m_Model_HasPackageThumbnailAttachment = NULL; + pWrapperTable->m_Model_CreatePackageThumbnailAttachment = NULL; + pWrapperTable->m_Model_GetPackageThumbnailAttachment = NULL; + pWrapperTable->m_Model_RemovePackageThumbnailAttachment = NULL; + pWrapperTable->m_Model_AddCustomContentType = NULL; + pWrapperTable->m_Model_RemoveCustomContentType = NULL; + pWrapperTable->m_Model_SetRandomNumberCallback = NULL; + pWrapperTable->m_Model_GetKeyStore = NULL; + pWrapperTable->m_Model_GetFunctions = NULL; + pWrapperTable->m_Model_AddImplicitFunction = NULL; + pWrapperTable->m_Model_AddFunctionFromImage3D = NULL; + pWrapperTable->m_Model_AddVolumeData = NULL; + pWrapperTable->m_Model_AddLevelSet = NULL; + pWrapperTable->m_Model_GetLevelSets = NULL; + pWrapperTable->m_Model_RemoveResource = NULL; + pWrapperTable->m_GetLibraryVersion = NULL; + pWrapperTable->m_GetPrereleaseInformation = NULL; + pWrapperTable->m_GetBuildInformation = NULL; + pWrapperTable->m_GetSpecificationVersion = NULL; + pWrapperTable->m_CreateModel = NULL; + pWrapperTable->m_Release = NULL; + pWrapperTable->m_Acquire = NULL; + pWrapperTable->m_SetJournal = NULL; + pWrapperTable->m_GetLastError = NULL; + pWrapperTable->m_GetSymbolLookupMethod = NULL; + pWrapperTable->m_RetrieveProgressMessage = NULL; + pWrapperTable->m_RGBAToColor = NULL; + pWrapperTable->m_FloatRGBAToColor = NULL; + pWrapperTable->m_ColorToRGBA = NULL; + pWrapperTable->m_ColorToFloatRGBA = NULL; + pWrapperTable->m_GetIdentityTransform = NULL; + pWrapperTable->m_GetUniformScaleTransform = NULL; + pWrapperTable->m_GetScaleTransform = NULL; + pWrapperTable->m_GetTranslationTransform = NULL; + + return LIB3MF_SUCCESS; +} + +Lib3MFResult ReleaseLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable) +{ + if (pWrapperTable == NULL) + return LIB3MF_ERROR_INVALIDPARAM; + + if (pWrapperTable->m_LibraryHandle != NULL) { + #ifdef _WIN32 + HMODULE hModule = (HMODULE) pWrapperTable->m_LibraryHandle; + FreeLibrary(hModule); + #else // _WIN32 + dlclose(pWrapperTable->m_LibraryHandle); + #endif // _WIN32 + return InitLib3MFWrapperTable(pWrapperTable); + } + + return LIB3MF_SUCCESS; +} + +Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable, const char * pLibraryFileName) +{ + if (pWrapperTable == NULL) + return LIB3MF_ERROR_INVALIDPARAM; + if (pLibraryFileName == NULL) + return LIB3MF_ERROR_INVALIDPARAM; + + #ifdef _WIN32 + // Convert filename to UTF16-string + int nLength = 0; + while ((pLibraryFileName[nLength] != 0) && (nLength < MAX_PATH)) + nLength++; + int nBufferSize = nLength * 2 + 2; + wchar_t* wsLibraryFileName = (wchar_t*)malloc(nBufferSize*sizeof(wchar_t)); + memset(wsLibraryFileName, 0, nBufferSize*sizeof(wchar_t)); + int nResult = MultiByteToWideChar(CP_UTF8, 0, pLibraryFileName, nLength, wsLibraryFileName, nBufferSize); + if (nResult == 0) { + free(wsLibraryFileName); + return LIB3MF_ERROR_COULDNOTLOADLIBRARY; + } + + HMODULE hLibrary = LoadLibraryW(wsLibraryFileName); + free(wsLibraryFileName); + if (hLibrary == 0) + return LIB3MF_ERROR_COULDNOTLOADLIBRARY; + #else // _WIN32 + void* hLibrary = dlopen(pLibraryFileName, RTLD_LAZY); + if (hLibrary == 0) + return LIB3MF_ERROR_COULDNOTLOADLIBRARY; + dlerror(); + #endif // _WIN32 + + #ifdef _WIN32 + pWrapperTable->m_Base_ClassTypeId = (PLib3MFBase_ClassTypeIdPtr) GetProcAddress(hLibrary, "lib3mf_base_classtypeid"); + #else // _WIN32 + pWrapperTable->m_Base_ClassTypeId = (PLib3MFBase_ClassTypeIdPtr) dlsym(hLibrary, "lib3mf_base_classtypeid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Base_ClassTypeId == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Writer_WriteToFile = (PLib3MFWriter_WriteToFilePtr) GetProcAddress(hLibrary, "lib3mf_writer_writetofile"); + #else // _WIN32 + pWrapperTable->m_Writer_WriteToFile = (PLib3MFWriter_WriteToFilePtr) dlsym(hLibrary, "lib3mf_writer_writetofile"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Writer_WriteToFile == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Writer_GetStreamSize = (PLib3MFWriter_GetStreamSizePtr) GetProcAddress(hLibrary, "lib3mf_writer_getstreamsize"); + #else // _WIN32 + pWrapperTable->m_Writer_GetStreamSize = (PLib3MFWriter_GetStreamSizePtr) dlsym(hLibrary, "lib3mf_writer_getstreamsize"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Writer_GetStreamSize == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Writer_WriteToBuffer = (PLib3MFWriter_WriteToBufferPtr) GetProcAddress(hLibrary, "lib3mf_writer_writetobuffer"); + #else // _WIN32 + pWrapperTable->m_Writer_WriteToBuffer = (PLib3MFWriter_WriteToBufferPtr) dlsym(hLibrary, "lib3mf_writer_writetobuffer"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Writer_WriteToBuffer == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Writer_WriteToCallback = (PLib3MFWriter_WriteToCallbackPtr) GetProcAddress(hLibrary, "lib3mf_writer_writetocallback"); + #else // _WIN32 + pWrapperTable->m_Writer_WriteToCallback = (PLib3MFWriter_WriteToCallbackPtr) dlsym(hLibrary, "lib3mf_writer_writetocallback"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Writer_WriteToCallback == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Writer_SetProgressCallback = (PLib3MFWriter_SetProgressCallbackPtr) GetProcAddress(hLibrary, "lib3mf_writer_setprogresscallback"); + #else // _WIN32 + pWrapperTable->m_Writer_SetProgressCallback = (PLib3MFWriter_SetProgressCallbackPtr) dlsym(hLibrary, "lib3mf_writer_setprogresscallback"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Writer_SetProgressCallback == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Writer_GetDecimalPrecision = (PLib3MFWriter_GetDecimalPrecisionPtr) GetProcAddress(hLibrary, "lib3mf_writer_getdecimalprecision"); + #else // _WIN32 + pWrapperTable->m_Writer_GetDecimalPrecision = (PLib3MFWriter_GetDecimalPrecisionPtr) dlsym(hLibrary, "lib3mf_writer_getdecimalprecision"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Writer_GetDecimalPrecision == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Writer_SetDecimalPrecision = (PLib3MFWriter_SetDecimalPrecisionPtr) GetProcAddress(hLibrary, "lib3mf_writer_setdecimalprecision"); + #else // _WIN32 + pWrapperTable->m_Writer_SetDecimalPrecision = (PLib3MFWriter_SetDecimalPrecisionPtr) dlsym(hLibrary, "lib3mf_writer_setdecimalprecision"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Writer_SetDecimalPrecision == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Writer_SetStrictModeActive = (PLib3MFWriter_SetStrictModeActivePtr) GetProcAddress(hLibrary, "lib3mf_writer_setstrictmodeactive"); + #else // _WIN32 + pWrapperTable->m_Writer_SetStrictModeActive = (PLib3MFWriter_SetStrictModeActivePtr) dlsym(hLibrary, "lib3mf_writer_setstrictmodeactive"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Writer_SetStrictModeActive == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Writer_GetStrictModeActive = (PLib3MFWriter_GetStrictModeActivePtr) GetProcAddress(hLibrary, "lib3mf_writer_getstrictmodeactive"); + #else // _WIN32 + pWrapperTable->m_Writer_GetStrictModeActive = (PLib3MFWriter_GetStrictModeActivePtr) dlsym(hLibrary, "lib3mf_writer_getstrictmodeactive"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Writer_GetStrictModeActive == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Writer_GetWarning = (PLib3MFWriter_GetWarningPtr) GetProcAddress(hLibrary, "lib3mf_writer_getwarning"); + #else // _WIN32 + pWrapperTable->m_Writer_GetWarning = (PLib3MFWriter_GetWarningPtr) dlsym(hLibrary, "lib3mf_writer_getwarning"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Writer_GetWarning == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Writer_GetWarningCount = (PLib3MFWriter_GetWarningCountPtr) GetProcAddress(hLibrary, "lib3mf_writer_getwarningcount"); + #else // _WIN32 + pWrapperTable->m_Writer_GetWarningCount = (PLib3MFWriter_GetWarningCountPtr) dlsym(hLibrary, "lib3mf_writer_getwarningcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Writer_GetWarningCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Writer_AddKeyWrappingCallback = (PLib3MFWriter_AddKeyWrappingCallbackPtr) GetProcAddress(hLibrary, "lib3mf_writer_addkeywrappingcallback"); + #else // _WIN32 + pWrapperTable->m_Writer_AddKeyWrappingCallback = (PLib3MFWriter_AddKeyWrappingCallbackPtr) dlsym(hLibrary, "lib3mf_writer_addkeywrappingcallback"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Writer_AddKeyWrappingCallback == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Writer_SetContentEncryptionCallback = (PLib3MFWriter_SetContentEncryptionCallbackPtr) GetProcAddress(hLibrary, "lib3mf_writer_setcontentencryptioncallback"); + #else // _WIN32 + pWrapperTable->m_Writer_SetContentEncryptionCallback = (PLib3MFWriter_SetContentEncryptionCallbackPtr) dlsym(hLibrary, "lib3mf_writer_setcontentencryptioncallback"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Writer_SetContentEncryptionCallback == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Reader_ReadFromFile = (PLib3MFReader_ReadFromFilePtr) GetProcAddress(hLibrary, "lib3mf_reader_readfromfile"); + #else // _WIN32 + pWrapperTable->m_Reader_ReadFromFile = (PLib3MFReader_ReadFromFilePtr) dlsym(hLibrary, "lib3mf_reader_readfromfile"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Reader_ReadFromFile == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Reader_ReadFromBuffer = (PLib3MFReader_ReadFromBufferPtr) GetProcAddress(hLibrary, "lib3mf_reader_readfrombuffer"); + #else // _WIN32 + pWrapperTable->m_Reader_ReadFromBuffer = (PLib3MFReader_ReadFromBufferPtr) dlsym(hLibrary, "lib3mf_reader_readfrombuffer"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Reader_ReadFromBuffer == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Reader_ReadFromCallback = (PLib3MFReader_ReadFromCallbackPtr) GetProcAddress(hLibrary, "lib3mf_reader_readfromcallback"); + #else // _WIN32 + pWrapperTable->m_Reader_ReadFromCallback = (PLib3MFReader_ReadFromCallbackPtr) dlsym(hLibrary, "lib3mf_reader_readfromcallback"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Reader_ReadFromCallback == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Reader_SetProgressCallback = (PLib3MFReader_SetProgressCallbackPtr) GetProcAddress(hLibrary, "lib3mf_reader_setprogresscallback"); + #else // _WIN32 + pWrapperTable->m_Reader_SetProgressCallback = (PLib3MFReader_SetProgressCallbackPtr) dlsym(hLibrary, "lib3mf_reader_setprogresscallback"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Reader_SetProgressCallback == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Reader_AddRelationToRead = (PLib3MFReader_AddRelationToReadPtr) GetProcAddress(hLibrary, "lib3mf_reader_addrelationtoread"); + #else // _WIN32 + pWrapperTable->m_Reader_AddRelationToRead = (PLib3MFReader_AddRelationToReadPtr) dlsym(hLibrary, "lib3mf_reader_addrelationtoread"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Reader_AddRelationToRead == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Reader_RemoveRelationToRead = (PLib3MFReader_RemoveRelationToReadPtr) GetProcAddress(hLibrary, "lib3mf_reader_removerelationtoread"); + #else // _WIN32 + pWrapperTable->m_Reader_RemoveRelationToRead = (PLib3MFReader_RemoveRelationToReadPtr) dlsym(hLibrary, "lib3mf_reader_removerelationtoread"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Reader_RemoveRelationToRead == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Reader_SetStrictModeActive = (PLib3MFReader_SetStrictModeActivePtr) GetProcAddress(hLibrary, "lib3mf_reader_setstrictmodeactive"); + #else // _WIN32 + pWrapperTable->m_Reader_SetStrictModeActive = (PLib3MFReader_SetStrictModeActivePtr) dlsym(hLibrary, "lib3mf_reader_setstrictmodeactive"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Reader_SetStrictModeActive == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Reader_GetStrictModeActive = (PLib3MFReader_GetStrictModeActivePtr) GetProcAddress(hLibrary, "lib3mf_reader_getstrictmodeactive"); + #else // _WIN32 + pWrapperTable->m_Reader_GetStrictModeActive = (PLib3MFReader_GetStrictModeActivePtr) dlsym(hLibrary, "lib3mf_reader_getstrictmodeactive"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Reader_GetStrictModeActive == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Reader_GetWarning = (PLib3MFReader_GetWarningPtr) GetProcAddress(hLibrary, "lib3mf_reader_getwarning"); + #else // _WIN32 + pWrapperTable->m_Reader_GetWarning = (PLib3MFReader_GetWarningPtr) dlsym(hLibrary, "lib3mf_reader_getwarning"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Reader_GetWarning == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Reader_GetWarningCount = (PLib3MFReader_GetWarningCountPtr) GetProcAddress(hLibrary, "lib3mf_reader_getwarningcount"); + #else // _WIN32 + pWrapperTable->m_Reader_GetWarningCount = (PLib3MFReader_GetWarningCountPtr) dlsym(hLibrary, "lib3mf_reader_getwarningcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Reader_GetWarningCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Reader_AddKeyWrappingCallback = (PLib3MFReader_AddKeyWrappingCallbackPtr) GetProcAddress(hLibrary, "lib3mf_reader_addkeywrappingcallback"); + #else // _WIN32 + pWrapperTable->m_Reader_AddKeyWrappingCallback = (PLib3MFReader_AddKeyWrappingCallbackPtr) dlsym(hLibrary, "lib3mf_reader_addkeywrappingcallback"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Reader_AddKeyWrappingCallback == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Reader_SetContentEncryptionCallback = (PLib3MFReader_SetContentEncryptionCallbackPtr) GetProcAddress(hLibrary, "lib3mf_reader_setcontentencryptioncallback"); + #else // _WIN32 + pWrapperTable->m_Reader_SetContentEncryptionCallback = (PLib3MFReader_SetContentEncryptionCallbackPtr) dlsym(hLibrary, "lib3mf_reader_setcontentencryptioncallback"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Reader_SetContentEncryptionCallback == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_PackagePart_GetPath = (PLib3MFPackagePart_GetPathPtr) GetProcAddress(hLibrary, "lib3mf_packagepart_getpath"); + #else // _WIN32 + pWrapperTable->m_PackagePart_GetPath = (PLib3MFPackagePart_GetPathPtr) dlsym(hLibrary, "lib3mf_packagepart_getpath"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_PackagePart_GetPath == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_PackagePart_SetPath = (PLib3MFPackagePart_SetPathPtr) GetProcAddress(hLibrary, "lib3mf_packagepart_setpath"); + #else // _WIN32 + pWrapperTable->m_PackagePart_SetPath = (PLib3MFPackagePart_SetPathPtr) dlsym(hLibrary, "lib3mf_packagepart_setpath"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_PackagePart_SetPath == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Resource_GetResourceID = (PLib3MFResource_GetResourceIDPtr) GetProcAddress(hLibrary, "lib3mf_resource_getresourceid"); + #else // _WIN32 + pWrapperTable->m_Resource_GetResourceID = (PLib3MFResource_GetResourceIDPtr) dlsym(hLibrary, "lib3mf_resource_getresourceid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Resource_GetResourceID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Resource_GetUniqueResourceID = (PLib3MFResource_GetUniqueResourceIDPtr) GetProcAddress(hLibrary, "lib3mf_resource_getuniqueresourceid"); + #else // _WIN32 + pWrapperTable->m_Resource_GetUniqueResourceID = (PLib3MFResource_GetUniqueResourceIDPtr) dlsym(hLibrary, "lib3mf_resource_getuniqueresourceid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Resource_GetUniqueResourceID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Resource_PackagePart = (PLib3MFResource_PackagePartPtr) GetProcAddress(hLibrary, "lib3mf_resource_packagepart"); + #else // _WIN32 + pWrapperTable->m_Resource_PackagePart = (PLib3MFResource_PackagePartPtr) dlsym(hLibrary, "lib3mf_resource_packagepart"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Resource_PackagePart == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Resource_SetPackagePart = (PLib3MFResource_SetPackagePartPtr) GetProcAddress(hLibrary, "lib3mf_resource_setpackagepart"); + #else // _WIN32 + pWrapperTable->m_Resource_SetPackagePart = (PLib3MFResource_SetPackagePartPtr) dlsym(hLibrary, "lib3mf_resource_setpackagepart"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Resource_SetPackagePart == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Resource_GetModelResourceID = (PLib3MFResource_GetModelResourceIDPtr) GetProcAddress(hLibrary, "lib3mf_resource_getmodelresourceid"); + #else // _WIN32 + pWrapperTable->m_Resource_GetModelResourceID = (PLib3MFResource_GetModelResourceIDPtr) dlsym(hLibrary, "lib3mf_resource_getmodelresourceid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Resource_GetModelResourceID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ResourceIterator_MoveNext = (PLib3MFResourceIterator_MoveNextPtr) GetProcAddress(hLibrary, "lib3mf_resourceiterator_movenext"); + #else // _WIN32 + pWrapperTable->m_ResourceIterator_MoveNext = (PLib3MFResourceIterator_MoveNextPtr) dlsym(hLibrary, "lib3mf_resourceiterator_movenext"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ResourceIterator_MoveNext == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ResourceIterator_MovePrevious = (PLib3MFResourceIterator_MovePreviousPtr) GetProcAddress(hLibrary, "lib3mf_resourceiterator_moveprevious"); + #else // _WIN32 + pWrapperTable->m_ResourceIterator_MovePrevious = (PLib3MFResourceIterator_MovePreviousPtr) dlsym(hLibrary, "lib3mf_resourceiterator_moveprevious"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ResourceIterator_MovePrevious == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ResourceIterator_GetCurrent = (PLib3MFResourceIterator_GetCurrentPtr) GetProcAddress(hLibrary, "lib3mf_resourceiterator_getcurrent"); + #else // _WIN32 + pWrapperTable->m_ResourceIterator_GetCurrent = (PLib3MFResourceIterator_GetCurrentPtr) dlsym(hLibrary, "lib3mf_resourceiterator_getcurrent"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ResourceIterator_GetCurrent == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ResourceIterator_Clone = (PLib3MFResourceIterator_ClonePtr) GetProcAddress(hLibrary, "lib3mf_resourceiterator_clone"); + #else // _WIN32 + pWrapperTable->m_ResourceIterator_Clone = (PLib3MFResourceIterator_ClonePtr) dlsym(hLibrary, "lib3mf_resourceiterator_clone"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ResourceIterator_Clone == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ResourceIterator_Count = (PLib3MFResourceIterator_CountPtr) GetProcAddress(hLibrary, "lib3mf_resourceiterator_count"); + #else // _WIN32 + pWrapperTable->m_ResourceIterator_Count = (PLib3MFResourceIterator_CountPtr) dlsym(hLibrary, "lib3mf_resourceiterator_count"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ResourceIterator_Count == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_SliceStackIterator_GetCurrentSliceStack = (PLib3MFSliceStackIterator_GetCurrentSliceStackPtr) GetProcAddress(hLibrary, "lib3mf_slicestackiterator_getcurrentslicestack"); + #else // _WIN32 + pWrapperTable->m_SliceStackIterator_GetCurrentSliceStack = (PLib3MFSliceStackIterator_GetCurrentSliceStackPtr) dlsym(hLibrary, "lib3mf_slicestackiterator_getcurrentslicestack"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_SliceStackIterator_GetCurrentSliceStack == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ObjectIterator_GetCurrentObject = (PLib3MFObjectIterator_GetCurrentObjectPtr) GetProcAddress(hLibrary, "lib3mf_objectiterator_getcurrentobject"); + #else // _WIN32 + pWrapperTable->m_ObjectIterator_GetCurrentObject = (PLib3MFObjectIterator_GetCurrentObjectPtr) dlsym(hLibrary, "lib3mf_objectiterator_getcurrentobject"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ObjectIterator_GetCurrentObject == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObjectIterator_GetCurrentMeshObject = (PLib3MFMeshObjectIterator_GetCurrentMeshObjectPtr) GetProcAddress(hLibrary, "lib3mf_meshobjectiterator_getcurrentmeshobject"); + #else // _WIN32 + pWrapperTable->m_MeshObjectIterator_GetCurrentMeshObject = (PLib3MFMeshObjectIterator_GetCurrentMeshObjectPtr) dlsym(hLibrary, "lib3mf_meshobjectiterator_getcurrentmeshobject"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObjectIterator_GetCurrentMeshObject == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComponentsObjectIterator_GetCurrentComponentsObject = (PLib3MFComponentsObjectIterator_GetCurrentComponentsObjectPtr) GetProcAddress(hLibrary, "lib3mf_componentsobjectiterator_getcurrentcomponentsobject"); + #else // _WIN32 + pWrapperTable->m_ComponentsObjectIterator_GetCurrentComponentsObject = (PLib3MFComponentsObjectIterator_GetCurrentComponentsObjectPtr) dlsym(hLibrary, "lib3mf_componentsobjectiterator_getcurrentcomponentsobject"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComponentsObjectIterator_GetCurrentComponentsObject == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Texture2DIterator_GetCurrentTexture2D = (PLib3MFTexture2DIterator_GetCurrentTexture2DPtr) GetProcAddress(hLibrary, "lib3mf_texture2diterator_getcurrenttexture2d"); + #else // _WIN32 + pWrapperTable->m_Texture2DIterator_GetCurrentTexture2D = (PLib3MFTexture2DIterator_GetCurrentTexture2DPtr) dlsym(hLibrary, "lib3mf_texture2diterator_getcurrenttexture2d"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Texture2DIterator_GetCurrentTexture2D == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BaseMaterialGroupIterator_GetCurrentBaseMaterialGroup = (PLib3MFBaseMaterialGroupIterator_GetCurrentBaseMaterialGroupPtr) GetProcAddress(hLibrary, "lib3mf_basematerialgroupiterator_getcurrentbasematerialgroup"); + #else // _WIN32 + pWrapperTable->m_BaseMaterialGroupIterator_GetCurrentBaseMaterialGroup = (PLib3MFBaseMaterialGroupIterator_GetCurrentBaseMaterialGroupPtr) dlsym(hLibrary, "lib3mf_basematerialgroupiterator_getcurrentbasematerialgroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BaseMaterialGroupIterator_GetCurrentBaseMaterialGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ColorGroupIterator_GetCurrentColorGroup = (PLib3MFColorGroupIterator_GetCurrentColorGroupPtr) GetProcAddress(hLibrary, "lib3mf_colorgroupiterator_getcurrentcolorgroup"); + #else // _WIN32 + pWrapperTable->m_ColorGroupIterator_GetCurrentColorGroup = (PLib3MFColorGroupIterator_GetCurrentColorGroupPtr) dlsym(hLibrary, "lib3mf_colorgroupiterator_getcurrentcolorgroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ColorGroupIterator_GetCurrentColorGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Texture2DGroupIterator_GetCurrentTexture2DGroup = (PLib3MFTexture2DGroupIterator_GetCurrentTexture2DGroupPtr) GetProcAddress(hLibrary, "lib3mf_texture2dgroupiterator_getcurrenttexture2dgroup"); + #else // _WIN32 + pWrapperTable->m_Texture2DGroupIterator_GetCurrentTexture2DGroup = (PLib3MFTexture2DGroupIterator_GetCurrentTexture2DGroupPtr) dlsym(hLibrary, "lib3mf_texture2dgroupiterator_getcurrenttexture2dgroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Texture2DGroupIterator_GetCurrentTexture2DGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_CompositeMaterialsIterator_GetCurrentCompositeMaterials = (PLib3MFCompositeMaterialsIterator_GetCurrentCompositeMaterialsPtr) GetProcAddress(hLibrary, "lib3mf_compositematerialsiterator_getcurrentcompositematerials"); + #else // _WIN32 + pWrapperTable->m_CompositeMaterialsIterator_GetCurrentCompositeMaterials = (PLib3MFCompositeMaterialsIterator_GetCurrentCompositeMaterialsPtr) dlsym(hLibrary, "lib3mf_compositematerialsiterator_getcurrentcompositematerials"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_CompositeMaterialsIterator_GetCurrentCompositeMaterials == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MultiPropertyGroupIterator_GetCurrentMultiPropertyGroup = (PLib3MFMultiPropertyGroupIterator_GetCurrentMultiPropertyGroupPtr) GetProcAddress(hLibrary, "lib3mf_multipropertygroupiterator_getcurrentmultipropertygroup"); + #else // _WIN32 + pWrapperTable->m_MultiPropertyGroupIterator_GetCurrentMultiPropertyGroup = (PLib3MFMultiPropertyGroupIterator_GetCurrentMultiPropertyGroupPtr) dlsym(hLibrary, "lib3mf_multipropertygroupiterator_getcurrentmultipropertygroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MultiPropertyGroupIterator_GetCurrentMultiPropertyGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Image3DIterator_GetCurrentImage3D = (PLib3MFImage3DIterator_GetCurrentImage3DPtr) GetProcAddress(hLibrary, "lib3mf_image3diterator_getcurrentimage3d"); + #else // _WIN32 + pWrapperTable->m_Image3DIterator_GetCurrentImage3D = (PLib3MFImage3DIterator_GetCurrentImage3DPtr) dlsym(hLibrary, "lib3mf_image3diterator_getcurrentimage3d"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Image3DIterator_GetCurrentImage3D == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionIterator_GetCurrentFunction = (PLib3MFFunctionIterator_GetCurrentFunctionPtr) GetProcAddress(hLibrary, "lib3mf_functioniterator_getcurrentfunction"); + #else // _WIN32 + pWrapperTable->m_FunctionIterator_GetCurrentFunction = (PLib3MFFunctionIterator_GetCurrentFunctionPtr) dlsym(hLibrary, "lib3mf_functioniterator_getcurrentfunction"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionIterator_GetCurrentFunction == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet = (PLib3MFLevelSetIterator_GetCurrentLevelSetPtr) GetProcAddress(hLibrary, "lib3mf_levelsetiterator_getcurrentlevelset"); + #else // _WIN32 + pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet = (PLib3MFLevelSetIterator_GetCurrentLevelSetPtr) dlsym(hLibrary, "lib3mf_levelsetiterator_getcurrentlevelset"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaData_GetNameSpace = (PLib3MFMetaData_GetNameSpacePtr) GetProcAddress(hLibrary, "lib3mf_metadata_getnamespace"); + #else // _WIN32 + pWrapperTable->m_MetaData_GetNameSpace = (PLib3MFMetaData_GetNameSpacePtr) dlsym(hLibrary, "lib3mf_metadata_getnamespace"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaData_GetNameSpace == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaData_SetNameSpace = (PLib3MFMetaData_SetNameSpacePtr) GetProcAddress(hLibrary, "lib3mf_metadata_setnamespace"); + #else // _WIN32 + pWrapperTable->m_MetaData_SetNameSpace = (PLib3MFMetaData_SetNameSpacePtr) dlsym(hLibrary, "lib3mf_metadata_setnamespace"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaData_SetNameSpace == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaData_GetName = (PLib3MFMetaData_GetNamePtr) GetProcAddress(hLibrary, "lib3mf_metadata_getname"); + #else // _WIN32 + pWrapperTable->m_MetaData_GetName = (PLib3MFMetaData_GetNamePtr) dlsym(hLibrary, "lib3mf_metadata_getname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaData_GetName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaData_SetName = (PLib3MFMetaData_SetNamePtr) GetProcAddress(hLibrary, "lib3mf_metadata_setname"); + #else // _WIN32 + pWrapperTable->m_MetaData_SetName = (PLib3MFMetaData_SetNamePtr) dlsym(hLibrary, "lib3mf_metadata_setname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaData_SetName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaData_GetKey = (PLib3MFMetaData_GetKeyPtr) GetProcAddress(hLibrary, "lib3mf_metadata_getkey"); + #else // _WIN32 + pWrapperTable->m_MetaData_GetKey = (PLib3MFMetaData_GetKeyPtr) dlsym(hLibrary, "lib3mf_metadata_getkey"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaData_GetKey == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaData_GetMustPreserve = (PLib3MFMetaData_GetMustPreservePtr) GetProcAddress(hLibrary, "lib3mf_metadata_getmustpreserve"); + #else // _WIN32 + pWrapperTable->m_MetaData_GetMustPreserve = (PLib3MFMetaData_GetMustPreservePtr) dlsym(hLibrary, "lib3mf_metadata_getmustpreserve"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaData_GetMustPreserve == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaData_SetMustPreserve = (PLib3MFMetaData_SetMustPreservePtr) GetProcAddress(hLibrary, "lib3mf_metadata_setmustpreserve"); + #else // _WIN32 + pWrapperTable->m_MetaData_SetMustPreserve = (PLib3MFMetaData_SetMustPreservePtr) dlsym(hLibrary, "lib3mf_metadata_setmustpreserve"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaData_SetMustPreserve == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaData_GetType = (PLib3MFMetaData_GetTypePtr) GetProcAddress(hLibrary, "lib3mf_metadata_gettype"); + #else // _WIN32 + pWrapperTable->m_MetaData_GetType = (PLib3MFMetaData_GetTypePtr) dlsym(hLibrary, "lib3mf_metadata_gettype"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaData_GetType == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaData_SetType = (PLib3MFMetaData_SetTypePtr) GetProcAddress(hLibrary, "lib3mf_metadata_settype"); + #else // _WIN32 + pWrapperTable->m_MetaData_SetType = (PLib3MFMetaData_SetTypePtr) dlsym(hLibrary, "lib3mf_metadata_settype"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaData_SetType == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaData_GetValue = (PLib3MFMetaData_GetValuePtr) GetProcAddress(hLibrary, "lib3mf_metadata_getvalue"); + #else // _WIN32 + pWrapperTable->m_MetaData_GetValue = (PLib3MFMetaData_GetValuePtr) dlsym(hLibrary, "lib3mf_metadata_getvalue"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaData_GetValue == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaData_SetValue = (PLib3MFMetaData_SetValuePtr) GetProcAddress(hLibrary, "lib3mf_metadata_setvalue"); + #else // _WIN32 + pWrapperTable->m_MetaData_SetValue = (PLib3MFMetaData_SetValuePtr) dlsym(hLibrary, "lib3mf_metadata_setvalue"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaData_SetValue == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaDataGroup_GetMetaDataCount = (PLib3MFMetaDataGroup_GetMetaDataCountPtr) GetProcAddress(hLibrary, "lib3mf_metadatagroup_getmetadatacount"); + #else // _WIN32 + pWrapperTable->m_MetaDataGroup_GetMetaDataCount = (PLib3MFMetaDataGroup_GetMetaDataCountPtr) dlsym(hLibrary, "lib3mf_metadatagroup_getmetadatacount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaDataGroup_GetMetaDataCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaDataGroup_GetMetaData = (PLib3MFMetaDataGroup_GetMetaDataPtr) GetProcAddress(hLibrary, "lib3mf_metadatagroup_getmetadata"); + #else // _WIN32 + pWrapperTable->m_MetaDataGroup_GetMetaData = (PLib3MFMetaDataGroup_GetMetaDataPtr) dlsym(hLibrary, "lib3mf_metadatagroup_getmetadata"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaDataGroup_GetMetaData == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaDataGroup_GetMetaDataByKey = (PLib3MFMetaDataGroup_GetMetaDataByKeyPtr) GetProcAddress(hLibrary, "lib3mf_metadatagroup_getmetadatabykey"); + #else // _WIN32 + pWrapperTable->m_MetaDataGroup_GetMetaDataByKey = (PLib3MFMetaDataGroup_GetMetaDataByKeyPtr) dlsym(hLibrary, "lib3mf_metadatagroup_getmetadatabykey"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaDataGroup_GetMetaDataByKey == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaDataGroup_RemoveMetaDataByIndex = (PLib3MFMetaDataGroup_RemoveMetaDataByIndexPtr) GetProcAddress(hLibrary, "lib3mf_metadatagroup_removemetadatabyindex"); + #else // _WIN32 + pWrapperTable->m_MetaDataGroup_RemoveMetaDataByIndex = (PLib3MFMetaDataGroup_RemoveMetaDataByIndexPtr) dlsym(hLibrary, "lib3mf_metadatagroup_removemetadatabyindex"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaDataGroup_RemoveMetaDataByIndex == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaDataGroup_RemoveMetaData = (PLib3MFMetaDataGroup_RemoveMetaDataPtr) GetProcAddress(hLibrary, "lib3mf_metadatagroup_removemetadata"); + #else // _WIN32 + pWrapperTable->m_MetaDataGroup_RemoveMetaData = (PLib3MFMetaDataGroup_RemoveMetaDataPtr) dlsym(hLibrary, "lib3mf_metadatagroup_removemetadata"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaDataGroup_RemoveMetaData == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MetaDataGroup_AddMetaData = (PLib3MFMetaDataGroup_AddMetaDataPtr) GetProcAddress(hLibrary, "lib3mf_metadatagroup_addmetadata"); + #else // _WIN32 + pWrapperTable->m_MetaDataGroup_AddMetaData = (PLib3MFMetaDataGroup_AddMetaDataPtr) dlsym(hLibrary, "lib3mf_metadatagroup_addmetadata"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MetaDataGroup_AddMetaData == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_GetType = (PLib3MFObject_GetTypePtr) GetProcAddress(hLibrary, "lib3mf_object_gettype"); + #else // _WIN32 + pWrapperTable->m_Object_GetType = (PLib3MFObject_GetTypePtr) dlsym(hLibrary, "lib3mf_object_gettype"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_GetType == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_SetType = (PLib3MFObject_SetTypePtr) GetProcAddress(hLibrary, "lib3mf_object_settype"); + #else // _WIN32 + pWrapperTable->m_Object_SetType = (PLib3MFObject_SetTypePtr) dlsym(hLibrary, "lib3mf_object_settype"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_SetType == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_GetName = (PLib3MFObject_GetNamePtr) GetProcAddress(hLibrary, "lib3mf_object_getname"); + #else // _WIN32 + pWrapperTable->m_Object_GetName = (PLib3MFObject_GetNamePtr) dlsym(hLibrary, "lib3mf_object_getname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_GetName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_SetName = (PLib3MFObject_SetNamePtr) GetProcAddress(hLibrary, "lib3mf_object_setname"); + #else // _WIN32 + pWrapperTable->m_Object_SetName = (PLib3MFObject_SetNamePtr) dlsym(hLibrary, "lib3mf_object_setname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_SetName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_GetPartNumber = (PLib3MFObject_GetPartNumberPtr) GetProcAddress(hLibrary, "lib3mf_object_getpartnumber"); + #else // _WIN32 + pWrapperTable->m_Object_GetPartNumber = (PLib3MFObject_GetPartNumberPtr) dlsym(hLibrary, "lib3mf_object_getpartnumber"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_GetPartNumber == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_SetPartNumber = (PLib3MFObject_SetPartNumberPtr) GetProcAddress(hLibrary, "lib3mf_object_setpartnumber"); + #else // _WIN32 + pWrapperTable->m_Object_SetPartNumber = (PLib3MFObject_SetPartNumberPtr) dlsym(hLibrary, "lib3mf_object_setpartnumber"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_SetPartNumber == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_IsMeshObject = (PLib3MFObject_IsMeshObjectPtr) GetProcAddress(hLibrary, "lib3mf_object_ismeshobject"); + #else // _WIN32 + pWrapperTable->m_Object_IsMeshObject = (PLib3MFObject_IsMeshObjectPtr) dlsym(hLibrary, "lib3mf_object_ismeshobject"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_IsMeshObject == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_IsComponentsObject = (PLib3MFObject_IsComponentsObjectPtr) GetProcAddress(hLibrary, "lib3mf_object_iscomponentsobject"); + #else // _WIN32 + pWrapperTable->m_Object_IsComponentsObject = (PLib3MFObject_IsComponentsObjectPtr) dlsym(hLibrary, "lib3mf_object_iscomponentsobject"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_IsComponentsObject == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_IsLevelSetObject = (PLib3MFObject_IsLevelSetObjectPtr) GetProcAddress(hLibrary, "lib3mf_object_islevelsetobject"); + #else // _WIN32 + pWrapperTable->m_Object_IsLevelSetObject = (PLib3MFObject_IsLevelSetObjectPtr) dlsym(hLibrary, "lib3mf_object_islevelsetobject"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_IsLevelSetObject == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_IsValid = (PLib3MFObject_IsValidPtr) GetProcAddress(hLibrary, "lib3mf_object_isvalid"); + #else // _WIN32 + pWrapperTable->m_Object_IsValid = (PLib3MFObject_IsValidPtr) dlsym(hLibrary, "lib3mf_object_isvalid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_IsValid == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_SetAttachmentAsThumbnail = (PLib3MFObject_SetAttachmentAsThumbnailPtr) GetProcAddress(hLibrary, "lib3mf_object_setattachmentasthumbnail"); + #else // _WIN32 + pWrapperTable->m_Object_SetAttachmentAsThumbnail = (PLib3MFObject_SetAttachmentAsThumbnailPtr) dlsym(hLibrary, "lib3mf_object_setattachmentasthumbnail"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_SetAttachmentAsThumbnail == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_GetThumbnailAttachment = (PLib3MFObject_GetThumbnailAttachmentPtr) GetProcAddress(hLibrary, "lib3mf_object_getthumbnailattachment"); + #else // _WIN32 + pWrapperTable->m_Object_GetThumbnailAttachment = (PLib3MFObject_GetThumbnailAttachmentPtr) dlsym(hLibrary, "lib3mf_object_getthumbnailattachment"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_GetThumbnailAttachment == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_ClearThumbnailAttachment = (PLib3MFObject_ClearThumbnailAttachmentPtr) GetProcAddress(hLibrary, "lib3mf_object_clearthumbnailattachment"); + #else // _WIN32 + pWrapperTable->m_Object_ClearThumbnailAttachment = (PLib3MFObject_ClearThumbnailAttachmentPtr) dlsym(hLibrary, "lib3mf_object_clearthumbnailattachment"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_ClearThumbnailAttachment == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_GetOutbox = (PLib3MFObject_GetOutboxPtr) GetProcAddress(hLibrary, "lib3mf_object_getoutbox"); + #else // _WIN32 + pWrapperTable->m_Object_GetOutbox = (PLib3MFObject_GetOutboxPtr) dlsym(hLibrary, "lib3mf_object_getoutbox"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_GetOutbox == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_GetUUID = (PLib3MFObject_GetUUIDPtr) GetProcAddress(hLibrary, "lib3mf_object_getuuid"); + #else // _WIN32 + pWrapperTable->m_Object_GetUUID = (PLib3MFObject_GetUUIDPtr) dlsym(hLibrary, "lib3mf_object_getuuid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_GetUUID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_SetUUID = (PLib3MFObject_SetUUIDPtr) GetProcAddress(hLibrary, "lib3mf_object_setuuid"); + #else // _WIN32 + pWrapperTable->m_Object_SetUUID = (PLib3MFObject_SetUUIDPtr) dlsym(hLibrary, "lib3mf_object_setuuid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_SetUUID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_GetMetaDataGroup = (PLib3MFObject_GetMetaDataGroupPtr) GetProcAddress(hLibrary, "lib3mf_object_getmetadatagroup"); + #else // _WIN32 + pWrapperTable->m_Object_GetMetaDataGroup = (PLib3MFObject_GetMetaDataGroupPtr) dlsym(hLibrary, "lib3mf_object_getmetadatagroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_GetMetaDataGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_SetSlicesMeshResolution = (PLib3MFObject_SetSlicesMeshResolutionPtr) GetProcAddress(hLibrary, "lib3mf_object_setslicesmeshresolution"); + #else // _WIN32 + pWrapperTable->m_Object_SetSlicesMeshResolution = (PLib3MFObject_SetSlicesMeshResolutionPtr) dlsym(hLibrary, "lib3mf_object_setslicesmeshresolution"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_SetSlicesMeshResolution == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_GetSlicesMeshResolution = (PLib3MFObject_GetSlicesMeshResolutionPtr) GetProcAddress(hLibrary, "lib3mf_object_getslicesmeshresolution"); + #else // _WIN32 + pWrapperTable->m_Object_GetSlicesMeshResolution = (PLib3MFObject_GetSlicesMeshResolutionPtr) dlsym(hLibrary, "lib3mf_object_getslicesmeshresolution"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_GetSlicesMeshResolution == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_HasSlices = (PLib3MFObject_HasSlicesPtr) GetProcAddress(hLibrary, "lib3mf_object_hasslices"); + #else // _WIN32 + pWrapperTable->m_Object_HasSlices = (PLib3MFObject_HasSlicesPtr) dlsym(hLibrary, "lib3mf_object_hasslices"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_HasSlices == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_ClearSliceStack = (PLib3MFObject_ClearSliceStackPtr) GetProcAddress(hLibrary, "lib3mf_object_clearslicestack"); + #else // _WIN32 + pWrapperTable->m_Object_ClearSliceStack = (PLib3MFObject_ClearSliceStackPtr) dlsym(hLibrary, "lib3mf_object_clearslicestack"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_ClearSliceStack == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_GetSliceStack = (PLib3MFObject_GetSliceStackPtr) GetProcAddress(hLibrary, "lib3mf_object_getslicestack"); + #else // _WIN32 + pWrapperTable->m_Object_GetSliceStack = (PLib3MFObject_GetSliceStackPtr) dlsym(hLibrary, "lib3mf_object_getslicestack"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_GetSliceStack == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Object_AssignSliceStack = (PLib3MFObject_AssignSliceStackPtr) GetProcAddress(hLibrary, "lib3mf_object_assignslicestack"); + #else // _WIN32 + pWrapperTable->m_Object_AssignSliceStack = (PLib3MFObject_AssignSliceStackPtr) dlsym(hLibrary, "lib3mf_object_assignslicestack"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Object_AssignSliceStack == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_GetVertexCount = (PLib3MFMeshObject_GetVertexCountPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_getvertexcount"); + #else // _WIN32 + pWrapperTable->m_MeshObject_GetVertexCount = (PLib3MFMeshObject_GetVertexCountPtr) dlsym(hLibrary, "lib3mf_meshobject_getvertexcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_GetVertexCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_GetTriangleCount = (PLib3MFMeshObject_GetTriangleCountPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_gettrianglecount"); + #else // _WIN32 + pWrapperTable->m_MeshObject_GetTriangleCount = (PLib3MFMeshObject_GetTriangleCountPtr) dlsym(hLibrary, "lib3mf_meshobject_gettrianglecount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_GetTriangleCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_GetVertex = (PLib3MFMeshObject_GetVertexPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_getvertex"); + #else // _WIN32 + pWrapperTable->m_MeshObject_GetVertex = (PLib3MFMeshObject_GetVertexPtr) dlsym(hLibrary, "lib3mf_meshobject_getvertex"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_GetVertex == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_SetVertex = (PLib3MFMeshObject_SetVertexPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_setvertex"); + #else // _WIN32 + pWrapperTable->m_MeshObject_SetVertex = (PLib3MFMeshObject_SetVertexPtr) dlsym(hLibrary, "lib3mf_meshobject_setvertex"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_SetVertex == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_AddVertex = (PLib3MFMeshObject_AddVertexPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_addvertex"); + #else // _WIN32 + pWrapperTable->m_MeshObject_AddVertex = (PLib3MFMeshObject_AddVertexPtr) dlsym(hLibrary, "lib3mf_meshobject_addvertex"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_AddVertex == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_GetVertices = (PLib3MFMeshObject_GetVerticesPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_getvertices"); + #else // _WIN32 + pWrapperTable->m_MeshObject_GetVertices = (PLib3MFMeshObject_GetVerticesPtr) dlsym(hLibrary, "lib3mf_meshobject_getvertices"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_GetVertices == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_GetTriangle = (PLib3MFMeshObject_GetTrianglePtr) GetProcAddress(hLibrary, "lib3mf_meshobject_gettriangle"); + #else // _WIN32 + pWrapperTable->m_MeshObject_GetTriangle = (PLib3MFMeshObject_GetTrianglePtr) dlsym(hLibrary, "lib3mf_meshobject_gettriangle"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_GetTriangle == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_SetTriangle = (PLib3MFMeshObject_SetTrianglePtr) GetProcAddress(hLibrary, "lib3mf_meshobject_settriangle"); + #else // _WIN32 + pWrapperTable->m_MeshObject_SetTriangle = (PLib3MFMeshObject_SetTrianglePtr) dlsym(hLibrary, "lib3mf_meshobject_settriangle"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_SetTriangle == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_AddTriangle = (PLib3MFMeshObject_AddTrianglePtr) GetProcAddress(hLibrary, "lib3mf_meshobject_addtriangle"); + #else // _WIN32 + pWrapperTable->m_MeshObject_AddTriangle = (PLib3MFMeshObject_AddTrianglePtr) dlsym(hLibrary, "lib3mf_meshobject_addtriangle"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_AddTriangle == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_GetTriangleIndices = (PLib3MFMeshObject_GetTriangleIndicesPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_gettriangleindices"); + #else // _WIN32 + pWrapperTable->m_MeshObject_GetTriangleIndices = (PLib3MFMeshObject_GetTriangleIndicesPtr) dlsym(hLibrary, "lib3mf_meshobject_gettriangleindices"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_GetTriangleIndices == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_SetObjectLevelProperty = (PLib3MFMeshObject_SetObjectLevelPropertyPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_setobjectlevelproperty"); + #else // _WIN32 + pWrapperTable->m_MeshObject_SetObjectLevelProperty = (PLib3MFMeshObject_SetObjectLevelPropertyPtr) dlsym(hLibrary, "lib3mf_meshobject_setobjectlevelproperty"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_SetObjectLevelProperty == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_GetObjectLevelProperty = (PLib3MFMeshObject_GetObjectLevelPropertyPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_getobjectlevelproperty"); + #else // _WIN32 + pWrapperTable->m_MeshObject_GetObjectLevelProperty = (PLib3MFMeshObject_GetObjectLevelPropertyPtr) dlsym(hLibrary, "lib3mf_meshobject_getobjectlevelproperty"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_GetObjectLevelProperty == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_SetTriangleProperties = (PLib3MFMeshObject_SetTrianglePropertiesPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_settriangleproperties"); + #else // _WIN32 + pWrapperTable->m_MeshObject_SetTriangleProperties = (PLib3MFMeshObject_SetTrianglePropertiesPtr) dlsym(hLibrary, "lib3mf_meshobject_settriangleproperties"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_SetTriangleProperties == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_GetTriangleProperties = (PLib3MFMeshObject_GetTrianglePropertiesPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_gettriangleproperties"); + #else // _WIN32 + pWrapperTable->m_MeshObject_GetTriangleProperties = (PLib3MFMeshObject_GetTrianglePropertiesPtr) dlsym(hLibrary, "lib3mf_meshobject_gettriangleproperties"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_GetTriangleProperties == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_SetAllTriangleProperties = (PLib3MFMeshObject_SetAllTrianglePropertiesPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_setalltriangleproperties"); + #else // _WIN32 + pWrapperTable->m_MeshObject_SetAllTriangleProperties = (PLib3MFMeshObject_SetAllTrianglePropertiesPtr) dlsym(hLibrary, "lib3mf_meshobject_setalltriangleproperties"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_SetAllTriangleProperties == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_GetAllTriangleProperties = (PLib3MFMeshObject_GetAllTrianglePropertiesPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_getalltriangleproperties"); + #else // _WIN32 + pWrapperTable->m_MeshObject_GetAllTriangleProperties = (PLib3MFMeshObject_GetAllTrianglePropertiesPtr) dlsym(hLibrary, "lib3mf_meshobject_getalltriangleproperties"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_GetAllTriangleProperties == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_ClearAllProperties = (PLib3MFMeshObject_ClearAllPropertiesPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_clearallproperties"); + #else // _WIN32 + pWrapperTable->m_MeshObject_ClearAllProperties = (PLib3MFMeshObject_ClearAllPropertiesPtr) dlsym(hLibrary, "lib3mf_meshobject_clearallproperties"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_ClearAllProperties == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_SetGeometry = (PLib3MFMeshObject_SetGeometryPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_setgeometry"); + #else // _WIN32 + pWrapperTable->m_MeshObject_SetGeometry = (PLib3MFMeshObject_SetGeometryPtr) dlsym(hLibrary, "lib3mf_meshobject_setgeometry"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_SetGeometry == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_IsManifoldAndOriented = (PLib3MFMeshObject_IsManifoldAndOrientedPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_ismanifoldandoriented"); + #else // _WIN32 + pWrapperTable->m_MeshObject_IsManifoldAndOriented = (PLib3MFMeshObject_IsManifoldAndOrientedPtr) dlsym(hLibrary, "lib3mf_meshobject_ismanifoldandoriented"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_IsManifoldAndOriented == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_BeamLattice = (PLib3MFMeshObject_BeamLatticePtr) GetProcAddress(hLibrary, "lib3mf_meshobject_beamlattice"); + #else // _WIN32 + pWrapperTable->m_MeshObject_BeamLattice = (PLib3MFMeshObject_BeamLatticePtr) dlsym(hLibrary, "lib3mf_meshobject_beamlattice"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_BeamLattice == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_GetVolumeData = (PLib3MFMeshObject_GetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_getvolumedata"); + #else // _WIN32 + pWrapperTable->m_MeshObject_GetVolumeData = (PLib3MFMeshObject_GetVolumeDataPtr) dlsym(hLibrary, "lib3mf_meshobject_getvolumedata"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_GetVolumeData == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshObject_SetVolumeData = (PLib3MFMeshObject_SetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_meshobject_setvolumedata"); + #else // _WIN32 + pWrapperTable->m_MeshObject_SetVolumeData = (PLib3MFMeshObject_SetVolumeDataPtr) dlsym(hLibrary, "lib3mf_meshobject_setvolumedata"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshObject_SetVolumeData == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSet_GetFunction = (PLib3MFLevelSet_GetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getfunction"); + #else // _WIN32 + pWrapperTable->m_LevelSet_GetFunction = (PLib3MFLevelSet_GetFunctionPtr) dlsym(hLibrary, "lib3mf_levelset_getfunction"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSet_GetFunction == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSet_SetFunction = (PLib3MFLevelSet_SetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setfunction"); + #else // _WIN32 + pWrapperTable->m_LevelSet_SetFunction = (PLib3MFLevelSet_SetFunctionPtr) dlsym(hLibrary, "lib3mf_levelset_setfunction"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSet_SetFunction == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSet_GetTransform = (PLib3MFLevelSet_GetTransformPtr) GetProcAddress(hLibrary, "lib3mf_levelset_gettransform"); + #else // _WIN32 + pWrapperTable->m_LevelSet_GetTransform = (PLib3MFLevelSet_GetTransformPtr) dlsym(hLibrary, "lib3mf_levelset_gettransform"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSet_GetTransform == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSet_SetTransform = (PLib3MFLevelSet_SetTransformPtr) GetProcAddress(hLibrary, "lib3mf_levelset_settransform"); + #else // _WIN32 + pWrapperTable->m_LevelSet_SetTransform = (PLib3MFLevelSet_SetTransformPtr) dlsym(hLibrary, "lib3mf_levelset_settransform"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSet_SetTransform == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSet_GetChannelName = (PLib3MFLevelSet_GetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_levelset_getchannelname"); + #else // _WIN32 + pWrapperTable->m_LevelSet_GetChannelName = (PLib3MFLevelSet_GetChannelNamePtr) dlsym(hLibrary, "lib3mf_levelset_getchannelname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSet_GetChannelName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSet_SetChannelName = (PLib3MFLevelSet_SetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_levelset_setchannelname"); + #else // _WIN32 + pWrapperTable->m_LevelSet_SetChannelName = (PLib3MFLevelSet_SetChannelNamePtr) dlsym(hLibrary, "lib3mf_levelset_setchannelname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSet_SetChannelName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSet_SetMinFeatureSize = (PLib3MFLevelSet_SetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_levelset_setminfeaturesize"); + #else // _WIN32 + pWrapperTable->m_LevelSet_SetMinFeatureSize = (PLib3MFLevelSet_SetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_levelset_setminfeaturesize"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSet_SetMinFeatureSize == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSet_GetMinFeatureSize = (PLib3MFLevelSet_GetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_levelset_getminfeaturesize"); + #else // _WIN32 + pWrapperTable->m_LevelSet_GetMinFeatureSize = (PLib3MFLevelSet_GetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_levelset_getminfeaturesize"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSet_GetMinFeatureSize == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSet_SetFallBackValue = (PLib3MFLevelSet_SetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_levelset_setfallbackvalue"); + #else // _WIN32 + pWrapperTable->m_LevelSet_SetFallBackValue = (PLib3MFLevelSet_SetFallBackValuePtr) dlsym(hLibrary, "lib3mf_levelset_setfallbackvalue"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSet_SetFallBackValue == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSet_GetFallBackValue = (PLib3MFLevelSet_GetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_levelset_getfallbackvalue"); + #else // _WIN32 + pWrapperTable->m_LevelSet_GetFallBackValue = (PLib3MFLevelSet_GetFallBackValuePtr) dlsym(hLibrary, "lib3mf_levelset_getfallbackvalue"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSet_GetFallBackValue == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSet_SetMeshBBoxOnly = (PLib3MFLevelSet_SetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setmeshbboxonly"); + #else // _WIN32 + pWrapperTable->m_LevelSet_SetMeshBBoxOnly = (PLib3MFLevelSet_SetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_levelset_setmeshbboxonly"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSet_SetMeshBBoxOnly == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSet_GetMeshBBoxOnly = (PLib3MFLevelSet_GetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getmeshbboxonly"); + #else // _WIN32 + pWrapperTable->m_LevelSet_GetMeshBBoxOnly = (PLib3MFLevelSet_GetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_levelset_getmeshbboxonly"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSet_GetMeshBBoxOnly == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSet_SetMesh = (PLib3MFLevelSet_SetMeshPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setmesh"); + #else // _WIN32 + pWrapperTable->m_LevelSet_SetMesh = (PLib3MFLevelSet_SetMeshPtr) dlsym(hLibrary, "lib3mf_levelset_setmesh"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSet_SetMesh == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSet_GetMesh = (PLib3MFLevelSet_GetMeshPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getmesh"); + #else // _WIN32 + pWrapperTable->m_LevelSet_GetMesh = (PLib3MFLevelSet_GetMeshPtr) dlsym(hLibrary, "lib3mf_levelset_getmesh"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSet_GetMesh == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSet_GetVolumeData = (PLib3MFLevelSet_GetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getvolumedata"); + #else // _WIN32 + pWrapperTable->m_LevelSet_GetVolumeData = (PLib3MFLevelSet_GetVolumeDataPtr) dlsym(hLibrary, "lib3mf_levelset_getvolumedata"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSet_GetVolumeData == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_LevelSet_SetVolumeData = (PLib3MFLevelSet_SetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setvolumedata"); + #else // _WIN32 + pWrapperTable->m_LevelSet_SetVolumeData = (PLib3MFLevelSet_SetVolumeDataPtr) dlsym(hLibrary, "lib3mf_levelset_setvolumedata"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_LevelSet_SetVolumeData == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_GetMinLength = (PLib3MFBeamLattice_GetMinLengthPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_getminlength"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_GetMinLength = (PLib3MFBeamLattice_GetMinLengthPtr) dlsym(hLibrary, "lib3mf_beamlattice_getminlength"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_GetMinLength == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_SetMinLength = (PLib3MFBeamLattice_SetMinLengthPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_setminlength"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_SetMinLength = (PLib3MFBeamLattice_SetMinLengthPtr) dlsym(hLibrary, "lib3mf_beamlattice_setminlength"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_SetMinLength == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_GetClipping = (PLib3MFBeamLattice_GetClippingPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_getclipping"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_GetClipping = (PLib3MFBeamLattice_GetClippingPtr) dlsym(hLibrary, "lib3mf_beamlattice_getclipping"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_GetClipping == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_SetClipping = (PLib3MFBeamLattice_SetClippingPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_setclipping"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_SetClipping = (PLib3MFBeamLattice_SetClippingPtr) dlsym(hLibrary, "lib3mf_beamlattice_setclipping"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_SetClipping == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_GetRepresentation = (PLib3MFBeamLattice_GetRepresentationPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_getrepresentation"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_GetRepresentation = (PLib3MFBeamLattice_GetRepresentationPtr) dlsym(hLibrary, "lib3mf_beamlattice_getrepresentation"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_GetRepresentation == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_SetRepresentation = (PLib3MFBeamLattice_SetRepresentationPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_setrepresentation"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_SetRepresentation = (PLib3MFBeamLattice_SetRepresentationPtr) dlsym(hLibrary, "lib3mf_beamlattice_setrepresentation"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_SetRepresentation == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_GetBallOptions = (PLib3MFBeamLattice_GetBallOptionsPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_getballoptions"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_GetBallOptions = (PLib3MFBeamLattice_GetBallOptionsPtr) dlsym(hLibrary, "lib3mf_beamlattice_getballoptions"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_GetBallOptions == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_SetBallOptions = (PLib3MFBeamLattice_SetBallOptionsPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_setballoptions"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_SetBallOptions = (PLib3MFBeamLattice_SetBallOptionsPtr) dlsym(hLibrary, "lib3mf_beamlattice_setballoptions"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_SetBallOptions == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_GetBeamCount = (PLib3MFBeamLattice_GetBeamCountPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_getbeamcount"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_GetBeamCount = (PLib3MFBeamLattice_GetBeamCountPtr) dlsym(hLibrary, "lib3mf_beamlattice_getbeamcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_GetBeamCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_GetBeam = (PLib3MFBeamLattice_GetBeamPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_getbeam"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_GetBeam = (PLib3MFBeamLattice_GetBeamPtr) dlsym(hLibrary, "lib3mf_beamlattice_getbeam"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_GetBeam == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_AddBeam = (PLib3MFBeamLattice_AddBeamPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_addbeam"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_AddBeam = (PLib3MFBeamLattice_AddBeamPtr) dlsym(hLibrary, "lib3mf_beamlattice_addbeam"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_AddBeam == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_SetBeam = (PLib3MFBeamLattice_SetBeamPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_setbeam"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_SetBeam = (PLib3MFBeamLattice_SetBeamPtr) dlsym(hLibrary, "lib3mf_beamlattice_setbeam"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_SetBeam == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_SetBeams = (PLib3MFBeamLattice_SetBeamsPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_setbeams"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_SetBeams = (PLib3MFBeamLattice_SetBeamsPtr) dlsym(hLibrary, "lib3mf_beamlattice_setbeams"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_SetBeams == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_GetBeams = (PLib3MFBeamLattice_GetBeamsPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_getbeams"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_GetBeams = (PLib3MFBeamLattice_GetBeamsPtr) dlsym(hLibrary, "lib3mf_beamlattice_getbeams"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_GetBeams == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_GetBallCount = (PLib3MFBeamLattice_GetBallCountPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_getballcount"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_GetBallCount = (PLib3MFBeamLattice_GetBallCountPtr) dlsym(hLibrary, "lib3mf_beamlattice_getballcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_GetBallCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_GetBall = (PLib3MFBeamLattice_GetBallPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_getball"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_GetBall = (PLib3MFBeamLattice_GetBallPtr) dlsym(hLibrary, "lib3mf_beamlattice_getball"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_GetBall == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_AddBall = (PLib3MFBeamLattice_AddBallPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_addball"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_AddBall = (PLib3MFBeamLattice_AddBallPtr) dlsym(hLibrary, "lib3mf_beamlattice_addball"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_AddBall == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_SetBall = (PLib3MFBeamLattice_SetBallPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_setball"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_SetBall = (PLib3MFBeamLattice_SetBallPtr) dlsym(hLibrary, "lib3mf_beamlattice_setball"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_SetBall == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_SetBalls = (PLib3MFBeamLattice_SetBallsPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_setballs"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_SetBalls = (PLib3MFBeamLattice_SetBallsPtr) dlsym(hLibrary, "lib3mf_beamlattice_setballs"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_SetBalls == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_GetBalls = (PLib3MFBeamLattice_GetBallsPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_getballs"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_GetBalls = (PLib3MFBeamLattice_GetBallsPtr) dlsym(hLibrary, "lib3mf_beamlattice_getballs"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_GetBalls == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_GetBeamSetCount = (PLib3MFBeamLattice_GetBeamSetCountPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_getbeamsetcount"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_GetBeamSetCount = (PLib3MFBeamLattice_GetBeamSetCountPtr) dlsym(hLibrary, "lib3mf_beamlattice_getbeamsetcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_GetBeamSetCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_AddBeamSet = (PLib3MFBeamLattice_AddBeamSetPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_addbeamset"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_AddBeamSet = (PLib3MFBeamLattice_AddBeamSetPtr) dlsym(hLibrary, "lib3mf_beamlattice_addbeamset"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_AddBeamSet == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamLattice_GetBeamSet = (PLib3MFBeamLattice_GetBeamSetPtr) GetProcAddress(hLibrary, "lib3mf_beamlattice_getbeamset"); + #else // _WIN32 + pWrapperTable->m_BeamLattice_GetBeamSet = (PLib3MFBeamLattice_GetBeamSetPtr) dlsym(hLibrary, "lib3mf_beamlattice_getbeamset"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamLattice_GetBeamSet == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionReference_GetFunctionResourceID = (PLib3MFFunctionReference_GetFunctionResourceIDPtr) GetProcAddress(hLibrary, "lib3mf_functionreference_getfunctionresourceid"); + #else // _WIN32 + pWrapperTable->m_FunctionReference_GetFunctionResourceID = (PLib3MFFunctionReference_GetFunctionResourceIDPtr) dlsym(hLibrary, "lib3mf_functionreference_getfunctionresourceid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionReference_GetFunctionResourceID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionReference_SetFunctionResourceID = (PLib3MFFunctionReference_SetFunctionResourceIDPtr) GetProcAddress(hLibrary, "lib3mf_functionreference_setfunctionresourceid"); + #else // _WIN32 + pWrapperTable->m_FunctionReference_SetFunctionResourceID = (PLib3MFFunctionReference_SetFunctionResourceIDPtr) dlsym(hLibrary, "lib3mf_functionreference_setfunctionresourceid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionReference_SetFunctionResourceID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionReference_GetTransform = (PLib3MFFunctionReference_GetTransformPtr) GetProcAddress(hLibrary, "lib3mf_functionreference_gettransform"); + #else // _WIN32 + pWrapperTable->m_FunctionReference_GetTransform = (PLib3MFFunctionReference_GetTransformPtr) dlsym(hLibrary, "lib3mf_functionreference_gettransform"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionReference_GetTransform == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionReference_SetTransform = (PLib3MFFunctionReference_SetTransformPtr) GetProcAddress(hLibrary, "lib3mf_functionreference_settransform"); + #else // _WIN32 + pWrapperTable->m_FunctionReference_SetTransform = (PLib3MFFunctionReference_SetTransformPtr) dlsym(hLibrary, "lib3mf_functionreference_settransform"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionReference_SetTransform == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionReference_GetChannelName = (PLib3MFFunctionReference_GetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_functionreference_getchannelname"); + #else // _WIN32 + pWrapperTable->m_FunctionReference_GetChannelName = (PLib3MFFunctionReference_GetChannelNamePtr) dlsym(hLibrary, "lib3mf_functionreference_getchannelname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionReference_GetChannelName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionReference_SetChannelName = (PLib3MFFunctionReference_SetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_functionreference_setchannelname"); + #else // _WIN32 + pWrapperTable->m_FunctionReference_SetChannelName = (PLib3MFFunctionReference_SetChannelNamePtr) dlsym(hLibrary, "lib3mf_functionreference_setchannelname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionReference_SetChannelName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionReference_SetMinFeatureSize = (PLib3MFFunctionReference_SetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_functionreference_setminfeaturesize"); + #else // _WIN32 + pWrapperTable->m_FunctionReference_SetMinFeatureSize = (PLib3MFFunctionReference_SetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_functionreference_setminfeaturesize"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionReference_SetMinFeatureSize == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionReference_GetMinFeatureSize = (PLib3MFFunctionReference_GetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_functionreference_getminfeaturesize"); + #else // _WIN32 + pWrapperTable->m_FunctionReference_GetMinFeatureSize = (PLib3MFFunctionReference_GetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_functionreference_getminfeaturesize"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionReference_GetMinFeatureSize == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionReference_SetFallBackValue = (PLib3MFFunctionReference_SetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_functionreference_setfallbackvalue"); + #else // _WIN32 + pWrapperTable->m_FunctionReference_SetFallBackValue = (PLib3MFFunctionReference_SetFallBackValuePtr) dlsym(hLibrary, "lib3mf_functionreference_setfallbackvalue"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionReference_SetFallBackValue == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionReference_GetFallBackValue = (PLib3MFFunctionReference_GetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_functionreference_getfallbackvalue"); + #else // _WIN32 + pWrapperTable->m_FunctionReference_GetFallBackValue = (PLib3MFFunctionReference_GetFallBackValuePtr) dlsym(hLibrary, "lib3mf_functionreference_getfallbackvalue"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionReference_GetFallBackValue == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeDataComposite_GetBaseMaterialGroup = (PLib3MFVolumeDataComposite_GetBaseMaterialGroupPtr) GetProcAddress(hLibrary, "lib3mf_volumedatacomposite_getbasematerialgroup"); + #else // _WIN32 + pWrapperTable->m_VolumeDataComposite_GetBaseMaterialGroup = (PLib3MFVolumeDataComposite_GetBaseMaterialGroupPtr) dlsym(hLibrary, "lib3mf_volumedatacomposite_getbasematerialgroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeDataComposite_GetBaseMaterialGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeDataComposite_SetBaseMaterialGroup = (PLib3MFVolumeDataComposite_SetBaseMaterialGroupPtr) GetProcAddress(hLibrary, "lib3mf_volumedatacomposite_setbasematerialgroup"); + #else // _WIN32 + pWrapperTable->m_VolumeDataComposite_SetBaseMaterialGroup = (PLib3MFVolumeDataComposite_SetBaseMaterialGroupPtr) dlsym(hLibrary, "lib3mf_volumedatacomposite_setbasematerialgroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeDataComposite_SetBaseMaterialGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeDataComposite_GetMaterialMappingCount = (PLib3MFVolumeDataComposite_GetMaterialMappingCountPtr) GetProcAddress(hLibrary, "lib3mf_volumedatacomposite_getmaterialmappingcount"); + #else // _WIN32 + pWrapperTable->m_VolumeDataComposite_GetMaterialMappingCount = (PLib3MFVolumeDataComposite_GetMaterialMappingCountPtr) dlsym(hLibrary, "lib3mf_volumedatacomposite_getmaterialmappingcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeDataComposite_GetMaterialMappingCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeDataComposite_GetMaterialMapping = (PLib3MFVolumeDataComposite_GetMaterialMappingPtr) GetProcAddress(hLibrary, "lib3mf_volumedatacomposite_getmaterialmapping"); + #else // _WIN32 + pWrapperTable->m_VolumeDataComposite_GetMaterialMapping = (PLib3MFVolumeDataComposite_GetMaterialMappingPtr) dlsym(hLibrary, "lib3mf_volumedatacomposite_getmaterialmapping"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeDataComposite_GetMaterialMapping == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeDataComposite_AddMaterialMapping = (PLib3MFVolumeDataComposite_AddMaterialMappingPtr) GetProcAddress(hLibrary, "lib3mf_volumedatacomposite_addmaterialmapping"); + #else // _WIN32 + pWrapperTable->m_VolumeDataComposite_AddMaterialMapping = (PLib3MFVolumeDataComposite_AddMaterialMappingPtr) dlsym(hLibrary, "lib3mf_volumedatacomposite_addmaterialmapping"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeDataComposite_AddMaterialMapping == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeDataComposite_RemoveMaterialMapping = (PLib3MFVolumeDataComposite_RemoveMaterialMappingPtr) GetProcAddress(hLibrary, "lib3mf_volumedatacomposite_removematerialmapping"); + #else // _WIN32 + pWrapperTable->m_VolumeDataComposite_RemoveMaterialMapping = (PLib3MFVolumeDataComposite_RemoveMaterialMappingPtr) dlsym(hLibrary, "lib3mf_volumedatacomposite_removematerialmapping"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeDataComposite_RemoveMaterialMapping == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeDataProperty_GetName = (PLib3MFVolumeDataProperty_GetNamePtr) GetProcAddress(hLibrary, "lib3mf_volumedataproperty_getname"); + #else // _WIN32 + pWrapperTable->m_VolumeDataProperty_GetName = (PLib3MFVolumeDataProperty_GetNamePtr) dlsym(hLibrary, "lib3mf_volumedataproperty_getname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeDataProperty_GetName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeDataProperty_SetIsRequired = (PLib3MFVolumeDataProperty_SetIsRequiredPtr) GetProcAddress(hLibrary, "lib3mf_volumedataproperty_setisrequired"); + #else // _WIN32 + pWrapperTable->m_VolumeDataProperty_SetIsRequired = (PLib3MFVolumeDataProperty_SetIsRequiredPtr) dlsym(hLibrary, "lib3mf_volumedataproperty_setisrequired"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeDataProperty_SetIsRequired == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeDataProperty_IsRequired = (PLib3MFVolumeDataProperty_IsRequiredPtr) GetProcAddress(hLibrary, "lib3mf_volumedataproperty_isrequired"); + #else // _WIN32 + pWrapperTable->m_VolumeDataProperty_IsRequired = (PLib3MFVolumeDataProperty_IsRequiredPtr) dlsym(hLibrary, "lib3mf_volumedataproperty_isrequired"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeDataProperty_IsRequired == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeData_GetComposite = (PLib3MFVolumeData_GetCompositePtr) GetProcAddress(hLibrary, "lib3mf_volumedata_getcomposite"); + #else // _WIN32 + pWrapperTable->m_VolumeData_GetComposite = (PLib3MFVolumeData_GetCompositePtr) dlsym(hLibrary, "lib3mf_volumedata_getcomposite"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeData_GetComposite == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeData_CreateNewComposite = (PLib3MFVolumeData_CreateNewCompositePtr) GetProcAddress(hLibrary, "lib3mf_volumedata_createnewcomposite"); + #else // _WIN32 + pWrapperTable->m_VolumeData_CreateNewComposite = (PLib3MFVolumeData_CreateNewCompositePtr) dlsym(hLibrary, "lib3mf_volumedata_createnewcomposite"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeData_CreateNewComposite == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeData_RemoveComposite = (PLib3MFVolumeData_RemoveCompositePtr) GetProcAddress(hLibrary, "lib3mf_volumedata_removecomposite"); + #else // _WIN32 + pWrapperTable->m_VolumeData_RemoveComposite = (PLib3MFVolumeData_RemoveCompositePtr) dlsym(hLibrary, "lib3mf_volumedata_removecomposite"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeData_RemoveComposite == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeData_GetColor = (PLib3MFVolumeData_GetColorPtr) GetProcAddress(hLibrary, "lib3mf_volumedata_getcolor"); + #else // _WIN32 + pWrapperTable->m_VolumeData_GetColor = (PLib3MFVolumeData_GetColorPtr) dlsym(hLibrary, "lib3mf_volumedata_getcolor"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeData_GetColor == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeData_CreateNewColor = (PLib3MFVolumeData_CreateNewColorPtr) GetProcAddress(hLibrary, "lib3mf_volumedata_createnewcolor"); + #else // _WIN32 + pWrapperTable->m_VolumeData_CreateNewColor = (PLib3MFVolumeData_CreateNewColorPtr) dlsym(hLibrary, "lib3mf_volumedata_createnewcolor"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeData_CreateNewColor == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeData_RemoveColor = (PLib3MFVolumeData_RemoveColorPtr) GetProcAddress(hLibrary, "lib3mf_volumedata_removecolor"); + #else // _WIN32 + pWrapperTable->m_VolumeData_RemoveColor = (PLib3MFVolumeData_RemoveColorPtr) dlsym(hLibrary, "lib3mf_volumedata_removecolor"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeData_RemoveColor == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeData_GetPropertyCount = (PLib3MFVolumeData_GetPropertyCountPtr) GetProcAddress(hLibrary, "lib3mf_volumedata_getpropertycount"); + #else // _WIN32 + pWrapperTable->m_VolumeData_GetPropertyCount = (PLib3MFVolumeData_GetPropertyCountPtr) dlsym(hLibrary, "lib3mf_volumedata_getpropertycount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeData_GetPropertyCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeData_GetProperty = (PLib3MFVolumeData_GetPropertyPtr) GetProcAddress(hLibrary, "lib3mf_volumedata_getproperty"); + #else // _WIN32 + pWrapperTable->m_VolumeData_GetProperty = (PLib3MFVolumeData_GetPropertyPtr) dlsym(hLibrary, "lib3mf_volumedata_getproperty"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeData_GetProperty == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeData_AddPropertyFromFunction = (PLib3MFVolumeData_AddPropertyFromFunctionPtr) GetProcAddress(hLibrary, "lib3mf_volumedata_addpropertyfromfunction"); + #else // _WIN32 + pWrapperTable->m_VolumeData_AddPropertyFromFunction = (PLib3MFVolumeData_AddPropertyFromFunctionPtr) dlsym(hLibrary, "lib3mf_volumedata_addpropertyfromfunction"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeData_AddPropertyFromFunction == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_VolumeData_RemoveProperty = (PLib3MFVolumeData_RemovePropertyPtr) GetProcAddress(hLibrary, "lib3mf_volumedata_removeproperty"); + #else // _WIN32 + pWrapperTable->m_VolumeData_RemoveProperty = (PLib3MFVolumeData_RemovePropertyPtr) dlsym(hLibrary, "lib3mf_volumedata_removeproperty"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_VolumeData_RemoveProperty == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Component_GetObjectResource = (PLib3MFComponent_GetObjectResourcePtr) GetProcAddress(hLibrary, "lib3mf_component_getobjectresource"); + #else // _WIN32 + pWrapperTable->m_Component_GetObjectResource = (PLib3MFComponent_GetObjectResourcePtr) dlsym(hLibrary, "lib3mf_component_getobjectresource"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Component_GetObjectResource == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Component_GetObjectResourceID = (PLib3MFComponent_GetObjectResourceIDPtr) GetProcAddress(hLibrary, "lib3mf_component_getobjectresourceid"); + #else // _WIN32 + pWrapperTable->m_Component_GetObjectResourceID = (PLib3MFComponent_GetObjectResourceIDPtr) dlsym(hLibrary, "lib3mf_component_getobjectresourceid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Component_GetObjectResourceID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Component_GetUUID = (PLib3MFComponent_GetUUIDPtr) GetProcAddress(hLibrary, "lib3mf_component_getuuid"); + #else // _WIN32 + pWrapperTable->m_Component_GetUUID = (PLib3MFComponent_GetUUIDPtr) dlsym(hLibrary, "lib3mf_component_getuuid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Component_GetUUID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Component_SetUUID = (PLib3MFComponent_SetUUIDPtr) GetProcAddress(hLibrary, "lib3mf_component_setuuid"); + #else // _WIN32 + pWrapperTable->m_Component_SetUUID = (PLib3MFComponent_SetUUIDPtr) dlsym(hLibrary, "lib3mf_component_setuuid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Component_SetUUID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Component_HasTransform = (PLib3MFComponent_HasTransformPtr) GetProcAddress(hLibrary, "lib3mf_component_hastransform"); + #else // _WIN32 + pWrapperTable->m_Component_HasTransform = (PLib3MFComponent_HasTransformPtr) dlsym(hLibrary, "lib3mf_component_hastransform"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Component_HasTransform == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Component_GetTransform = (PLib3MFComponent_GetTransformPtr) GetProcAddress(hLibrary, "lib3mf_component_gettransform"); + #else // _WIN32 + pWrapperTable->m_Component_GetTransform = (PLib3MFComponent_GetTransformPtr) dlsym(hLibrary, "lib3mf_component_gettransform"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Component_GetTransform == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Component_SetTransform = (PLib3MFComponent_SetTransformPtr) GetProcAddress(hLibrary, "lib3mf_component_settransform"); + #else // _WIN32 + pWrapperTable->m_Component_SetTransform = (PLib3MFComponent_SetTransformPtr) dlsym(hLibrary, "lib3mf_component_settransform"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Component_SetTransform == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComponentsObject_AddComponent = (PLib3MFComponentsObject_AddComponentPtr) GetProcAddress(hLibrary, "lib3mf_componentsobject_addcomponent"); + #else // _WIN32 + pWrapperTable->m_ComponentsObject_AddComponent = (PLib3MFComponentsObject_AddComponentPtr) dlsym(hLibrary, "lib3mf_componentsobject_addcomponent"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComponentsObject_AddComponent == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComponentsObject_GetComponent = (PLib3MFComponentsObject_GetComponentPtr) GetProcAddress(hLibrary, "lib3mf_componentsobject_getcomponent"); + #else // _WIN32 + pWrapperTable->m_ComponentsObject_GetComponent = (PLib3MFComponentsObject_GetComponentPtr) dlsym(hLibrary, "lib3mf_componentsobject_getcomponent"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComponentsObject_GetComponent == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComponentsObject_GetComponentCount = (PLib3MFComponentsObject_GetComponentCountPtr) GetProcAddress(hLibrary, "lib3mf_componentsobject_getcomponentcount"); + #else // _WIN32 + pWrapperTable->m_ComponentsObject_GetComponentCount = (PLib3MFComponentsObject_GetComponentCountPtr) dlsym(hLibrary, "lib3mf_componentsobject_getcomponentcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComponentsObject_GetComponentCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamSet_SetName = (PLib3MFBeamSet_SetNamePtr) GetProcAddress(hLibrary, "lib3mf_beamset_setname"); + #else // _WIN32 + pWrapperTable->m_BeamSet_SetName = (PLib3MFBeamSet_SetNamePtr) dlsym(hLibrary, "lib3mf_beamset_setname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamSet_SetName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamSet_GetName = (PLib3MFBeamSet_GetNamePtr) GetProcAddress(hLibrary, "lib3mf_beamset_getname"); + #else // _WIN32 + pWrapperTable->m_BeamSet_GetName = (PLib3MFBeamSet_GetNamePtr) dlsym(hLibrary, "lib3mf_beamset_getname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamSet_GetName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamSet_SetIdentifier = (PLib3MFBeamSet_SetIdentifierPtr) GetProcAddress(hLibrary, "lib3mf_beamset_setidentifier"); + #else // _WIN32 + pWrapperTable->m_BeamSet_SetIdentifier = (PLib3MFBeamSet_SetIdentifierPtr) dlsym(hLibrary, "lib3mf_beamset_setidentifier"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamSet_SetIdentifier == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamSet_GetIdentifier = (PLib3MFBeamSet_GetIdentifierPtr) GetProcAddress(hLibrary, "lib3mf_beamset_getidentifier"); + #else // _WIN32 + pWrapperTable->m_BeamSet_GetIdentifier = (PLib3MFBeamSet_GetIdentifierPtr) dlsym(hLibrary, "lib3mf_beamset_getidentifier"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamSet_GetIdentifier == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamSet_GetReferenceCount = (PLib3MFBeamSet_GetReferenceCountPtr) GetProcAddress(hLibrary, "lib3mf_beamset_getreferencecount"); + #else // _WIN32 + pWrapperTable->m_BeamSet_GetReferenceCount = (PLib3MFBeamSet_GetReferenceCountPtr) dlsym(hLibrary, "lib3mf_beamset_getreferencecount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamSet_GetReferenceCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamSet_SetReferences = (PLib3MFBeamSet_SetReferencesPtr) GetProcAddress(hLibrary, "lib3mf_beamset_setreferences"); + #else // _WIN32 + pWrapperTable->m_BeamSet_SetReferences = (PLib3MFBeamSet_SetReferencesPtr) dlsym(hLibrary, "lib3mf_beamset_setreferences"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamSet_SetReferences == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamSet_GetReferences = (PLib3MFBeamSet_GetReferencesPtr) GetProcAddress(hLibrary, "lib3mf_beamset_getreferences"); + #else // _WIN32 + pWrapperTable->m_BeamSet_GetReferences = (PLib3MFBeamSet_GetReferencesPtr) dlsym(hLibrary, "lib3mf_beamset_getreferences"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamSet_GetReferences == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamSet_GetBallReferenceCount = (PLib3MFBeamSet_GetBallReferenceCountPtr) GetProcAddress(hLibrary, "lib3mf_beamset_getballreferencecount"); + #else // _WIN32 + pWrapperTable->m_BeamSet_GetBallReferenceCount = (PLib3MFBeamSet_GetBallReferenceCountPtr) dlsym(hLibrary, "lib3mf_beamset_getballreferencecount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamSet_GetBallReferenceCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamSet_SetBallReferences = (PLib3MFBeamSet_SetBallReferencesPtr) GetProcAddress(hLibrary, "lib3mf_beamset_setballreferences"); + #else // _WIN32 + pWrapperTable->m_BeamSet_SetBallReferences = (PLib3MFBeamSet_SetBallReferencesPtr) dlsym(hLibrary, "lib3mf_beamset_setballreferences"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamSet_SetBallReferences == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BeamSet_GetBallReferences = (PLib3MFBeamSet_GetBallReferencesPtr) GetProcAddress(hLibrary, "lib3mf_beamset_getballreferences"); + #else // _WIN32 + pWrapperTable->m_BeamSet_GetBallReferences = (PLib3MFBeamSet_GetBallReferencesPtr) dlsym(hLibrary, "lib3mf_beamset_getballreferences"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BeamSet_GetBallReferences == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BaseMaterialGroup_GetCount = (PLib3MFBaseMaterialGroup_GetCountPtr) GetProcAddress(hLibrary, "lib3mf_basematerialgroup_getcount"); + #else // _WIN32 + pWrapperTable->m_BaseMaterialGroup_GetCount = (PLib3MFBaseMaterialGroup_GetCountPtr) dlsym(hLibrary, "lib3mf_basematerialgroup_getcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BaseMaterialGroup_GetCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BaseMaterialGroup_GetAllPropertyIDs = (PLib3MFBaseMaterialGroup_GetAllPropertyIDsPtr) GetProcAddress(hLibrary, "lib3mf_basematerialgroup_getallpropertyids"); + #else // _WIN32 + pWrapperTable->m_BaseMaterialGroup_GetAllPropertyIDs = (PLib3MFBaseMaterialGroup_GetAllPropertyIDsPtr) dlsym(hLibrary, "lib3mf_basematerialgroup_getallpropertyids"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BaseMaterialGroup_GetAllPropertyIDs == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BaseMaterialGroup_AddMaterial = (PLib3MFBaseMaterialGroup_AddMaterialPtr) GetProcAddress(hLibrary, "lib3mf_basematerialgroup_addmaterial"); + #else // _WIN32 + pWrapperTable->m_BaseMaterialGroup_AddMaterial = (PLib3MFBaseMaterialGroup_AddMaterialPtr) dlsym(hLibrary, "lib3mf_basematerialgroup_addmaterial"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BaseMaterialGroup_AddMaterial == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BaseMaterialGroup_RemoveMaterial = (PLib3MFBaseMaterialGroup_RemoveMaterialPtr) GetProcAddress(hLibrary, "lib3mf_basematerialgroup_removematerial"); + #else // _WIN32 + pWrapperTable->m_BaseMaterialGroup_RemoveMaterial = (PLib3MFBaseMaterialGroup_RemoveMaterialPtr) dlsym(hLibrary, "lib3mf_basematerialgroup_removematerial"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BaseMaterialGroup_RemoveMaterial == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BaseMaterialGroup_GetName = (PLib3MFBaseMaterialGroup_GetNamePtr) GetProcAddress(hLibrary, "lib3mf_basematerialgroup_getname"); + #else // _WIN32 + pWrapperTable->m_BaseMaterialGroup_GetName = (PLib3MFBaseMaterialGroup_GetNamePtr) dlsym(hLibrary, "lib3mf_basematerialgroup_getname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BaseMaterialGroup_GetName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BaseMaterialGroup_SetName = (PLib3MFBaseMaterialGroup_SetNamePtr) GetProcAddress(hLibrary, "lib3mf_basematerialgroup_setname"); + #else // _WIN32 + pWrapperTable->m_BaseMaterialGroup_SetName = (PLib3MFBaseMaterialGroup_SetNamePtr) dlsym(hLibrary, "lib3mf_basematerialgroup_setname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BaseMaterialGroup_SetName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BaseMaterialGroup_SetDisplayColor = (PLib3MFBaseMaterialGroup_SetDisplayColorPtr) GetProcAddress(hLibrary, "lib3mf_basematerialgroup_setdisplaycolor"); + #else // _WIN32 + pWrapperTable->m_BaseMaterialGroup_SetDisplayColor = (PLib3MFBaseMaterialGroup_SetDisplayColorPtr) dlsym(hLibrary, "lib3mf_basematerialgroup_setdisplaycolor"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BaseMaterialGroup_SetDisplayColor == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BaseMaterialGroup_GetDisplayColor = (PLib3MFBaseMaterialGroup_GetDisplayColorPtr) GetProcAddress(hLibrary, "lib3mf_basematerialgroup_getdisplaycolor"); + #else // _WIN32 + pWrapperTable->m_BaseMaterialGroup_GetDisplayColor = (PLib3MFBaseMaterialGroup_GetDisplayColorPtr) dlsym(hLibrary, "lib3mf_basematerialgroup_getdisplaycolor"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BaseMaterialGroup_GetDisplayColor == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ColorGroup_GetCount = (PLib3MFColorGroup_GetCountPtr) GetProcAddress(hLibrary, "lib3mf_colorgroup_getcount"); + #else // _WIN32 + pWrapperTable->m_ColorGroup_GetCount = (PLib3MFColorGroup_GetCountPtr) dlsym(hLibrary, "lib3mf_colorgroup_getcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ColorGroup_GetCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ColorGroup_GetAllPropertyIDs = (PLib3MFColorGroup_GetAllPropertyIDsPtr) GetProcAddress(hLibrary, "lib3mf_colorgroup_getallpropertyids"); + #else // _WIN32 + pWrapperTable->m_ColorGroup_GetAllPropertyIDs = (PLib3MFColorGroup_GetAllPropertyIDsPtr) dlsym(hLibrary, "lib3mf_colorgroup_getallpropertyids"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ColorGroup_GetAllPropertyIDs == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ColorGroup_AddColor = (PLib3MFColorGroup_AddColorPtr) GetProcAddress(hLibrary, "lib3mf_colorgroup_addcolor"); + #else // _WIN32 + pWrapperTable->m_ColorGroup_AddColor = (PLib3MFColorGroup_AddColorPtr) dlsym(hLibrary, "lib3mf_colorgroup_addcolor"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ColorGroup_AddColor == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ColorGroup_RemoveColor = (PLib3MFColorGroup_RemoveColorPtr) GetProcAddress(hLibrary, "lib3mf_colorgroup_removecolor"); + #else // _WIN32 + pWrapperTable->m_ColorGroup_RemoveColor = (PLib3MFColorGroup_RemoveColorPtr) dlsym(hLibrary, "lib3mf_colorgroup_removecolor"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ColorGroup_RemoveColor == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ColorGroup_SetColor = (PLib3MFColorGroup_SetColorPtr) GetProcAddress(hLibrary, "lib3mf_colorgroup_setcolor"); + #else // _WIN32 + pWrapperTable->m_ColorGroup_SetColor = (PLib3MFColorGroup_SetColorPtr) dlsym(hLibrary, "lib3mf_colorgroup_setcolor"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ColorGroup_SetColor == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ColorGroup_GetColor = (PLib3MFColorGroup_GetColorPtr) GetProcAddress(hLibrary, "lib3mf_colorgroup_getcolor"); + #else // _WIN32 + pWrapperTable->m_ColorGroup_GetColor = (PLib3MFColorGroup_GetColorPtr) dlsym(hLibrary, "lib3mf_colorgroup_getcolor"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ColorGroup_GetColor == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Texture2DGroup_GetCount = (PLib3MFTexture2DGroup_GetCountPtr) GetProcAddress(hLibrary, "lib3mf_texture2dgroup_getcount"); + #else // _WIN32 + pWrapperTable->m_Texture2DGroup_GetCount = (PLib3MFTexture2DGroup_GetCountPtr) dlsym(hLibrary, "lib3mf_texture2dgroup_getcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Texture2DGroup_GetCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Texture2DGroup_GetAllPropertyIDs = (PLib3MFTexture2DGroup_GetAllPropertyIDsPtr) GetProcAddress(hLibrary, "lib3mf_texture2dgroup_getallpropertyids"); + #else // _WIN32 + pWrapperTable->m_Texture2DGroup_GetAllPropertyIDs = (PLib3MFTexture2DGroup_GetAllPropertyIDsPtr) dlsym(hLibrary, "lib3mf_texture2dgroup_getallpropertyids"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Texture2DGroup_GetAllPropertyIDs == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Texture2DGroup_AddTex2Coord = (PLib3MFTexture2DGroup_AddTex2CoordPtr) GetProcAddress(hLibrary, "lib3mf_texture2dgroup_addtex2coord"); + #else // _WIN32 + pWrapperTable->m_Texture2DGroup_AddTex2Coord = (PLib3MFTexture2DGroup_AddTex2CoordPtr) dlsym(hLibrary, "lib3mf_texture2dgroup_addtex2coord"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Texture2DGroup_AddTex2Coord == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Texture2DGroup_GetTex2Coord = (PLib3MFTexture2DGroup_GetTex2CoordPtr) GetProcAddress(hLibrary, "lib3mf_texture2dgroup_gettex2coord"); + #else // _WIN32 + pWrapperTable->m_Texture2DGroup_GetTex2Coord = (PLib3MFTexture2DGroup_GetTex2CoordPtr) dlsym(hLibrary, "lib3mf_texture2dgroup_gettex2coord"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Texture2DGroup_GetTex2Coord == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Texture2DGroup_RemoveTex2Coord = (PLib3MFTexture2DGroup_RemoveTex2CoordPtr) GetProcAddress(hLibrary, "lib3mf_texture2dgroup_removetex2coord"); + #else // _WIN32 + pWrapperTable->m_Texture2DGroup_RemoveTex2Coord = (PLib3MFTexture2DGroup_RemoveTex2CoordPtr) dlsym(hLibrary, "lib3mf_texture2dgroup_removetex2coord"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Texture2DGroup_RemoveTex2Coord == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Texture2DGroup_GetTexture2D = (PLib3MFTexture2DGroup_GetTexture2DPtr) GetProcAddress(hLibrary, "lib3mf_texture2dgroup_gettexture2d"); + #else // _WIN32 + pWrapperTable->m_Texture2DGroup_GetTexture2D = (PLib3MFTexture2DGroup_GetTexture2DPtr) dlsym(hLibrary, "lib3mf_texture2dgroup_gettexture2d"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Texture2DGroup_GetTexture2D == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_CompositeMaterials_GetCount = (PLib3MFCompositeMaterials_GetCountPtr) GetProcAddress(hLibrary, "lib3mf_compositematerials_getcount"); + #else // _WIN32 + pWrapperTable->m_CompositeMaterials_GetCount = (PLib3MFCompositeMaterials_GetCountPtr) dlsym(hLibrary, "lib3mf_compositematerials_getcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_CompositeMaterials_GetCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_CompositeMaterials_GetAllPropertyIDs = (PLib3MFCompositeMaterials_GetAllPropertyIDsPtr) GetProcAddress(hLibrary, "lib3mf_compositematerials_getallpropertyids"); + #else // _WIN32 + pWrapperTable->m_CompositeMaterials_GetAllPropertyIDs = (PLib3MFCompositeMaterials_GetAllPropertyIDsPtr) dlsym(hLibrary, "lib3mf_compositematerials_getallpropertyids"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_CompositeMaterials_GetAllPropertyIDs == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_CompositeMaterials_GetBaseMaterialGroup = (PLib3MFCompositeMaterials_GetBaseMaterialGroupPtr) GetProcAddress(hLibrary, "lib3mf_compositematerials_getbasematerialgroup"); + #else // _WIN32 + pWrapperTable->m_CompositeMaterials_GetBaseMaterialGroup = (PLib3MFCompositeMaterials_GetBaseMaterialGroupPtr) dlsym(hLibrary, "lib3mf_compositematerials_getbasematerialgroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_CompositeMaterials_GetBaseMaterialGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_CompositeMaterials_AddComposite = (PLib3MFCompositeMaterials_AddCompositePtr) GetProcAddress(hLibrary, "lib3mf_compositematerials_addcomposite"); + #else // _WIN32 + pWrapperTable->m_CompositeMaterials_AddComposite = (PLib3MFCompositeMaterials_AddCompositePtr) dlsym(hLibrary, "lib3mf_compositematerials_addcomposite"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_CompositeMaterials_AddComposite == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_CompositeMaterials_RemoveComposite = (PLib3MFCompositeMaterials_RemoveCompositePtr) GetProcAddress(hLibrary, "lib3mf_compositematerials_removecomposite"); + #else // _WIN32 + pWrapperTable->m_CompositeMaterials_RemoveComposite = (PLib3MFCompositeMaterials_RemoveCompositePtr) dlsym(hLibrary, "lib3mf_compositematerials_removecomposite"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_CompositeMaterials_RemoveComposite == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_CompositeMaterials_GetComposite = (PLib3MFCompositeMaterials_GetCompositePtr) GetProcAddress(hLibrary, "lib3mf_compositematerials_getcomposite"); + #else // _WIN32 + pWrapperTable->m_CompositeMaterials_GetComposite = (PLib3MFCompositeMaterials_GetCompositePtr) dlsym(hLibrary, "lib3mf_compositematerials_getcomposite"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_CompositeMaterials_GetComposite == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MultiPropertyGroup_GetCount = (PLib3MFMultiPropertyGroup_GetCountPtr) GetProcAddress(hLibrary, "lib3mf_multipropertygroup_getcount"); + #else // _WIN32 + pWrapperTable->m_MultiPropertyGroup_GetCount = (PLib3MFMultiPropertyGroup_GetCountPtr) dlsym(hLibrary, "lib3mf_multipropertygroup_getcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MultiPropertyGroup_GetCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MultiPropertyGroup_GetAllPropertyIDs = (PLib3MFMultiPropertyGroup_GetAllPropertyIDsPtr) GetProcAddress(hLibrary, "lib3mf_multipropertygroup_getallpropertyids"); + #else // _WIN32 + pWrapperTable->m_MultiPropertyGroup_GetAllPropertyIDs = (PLib3MFMultiPropertyGroup_GetAllPropertyIDsPtr) dlsym(hLibrary, "lib3mf_multipropertygroup_getallpropertyids"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MultiPropertyGroup_GetAllPropertyIDs == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MultiPropertyGroup_AddMultiProperty = (PLib3MFMultiPropertyGroup_AddMultiPropertyPtr) GetProcAddress(hLibrary, "lib3mf_multipropertygroup_addmultiproperty"); + #else // _WIN32 + pWrapperTable->m_MultiPropertyGroup_AddMultiProperty = (PLib3MFMultiPropertyGroup_AddMultiPropertyPtr) dlsym(hLibrary, "lib3mf_multipropertygroup_addmultiproperty"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MultiPropertyGroup_AddMultiProperty == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MultiPropertyGroup_SetMultiProperty = (PLib3MFMultiPropertyGroup_SetMultiPropertyPtr) GetProcAddress(hLibrary, "lib3mf_multipropertygroup_setmultiproperty"); + #else // _WIN32 + pWrapperTable->m_MultiPropertyGroup_SetMultiProperty = (PLib3MFMultiPropertyGroup_SetMultiPropertyPtr) dlsym(hLibrary, "lib3mf_multipropertygroup_setmultiproperty"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MultiPropertyGroup_SetMultiProperty == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MultiPropertyGroup_GetMultiProperty = (PLib3MFMultiPropertyGroup_GetMultiPropertyPtr) GetProcAddress(hLibrary, "lib3mf_multipropertygroup_getmultiproperty"); + #else // _WIN32 + pWrapperTable->m_MultiPropertyGroup_GetMultiProperty = (PLib3MFMultiPropertyGroup_GetMultiPropertyPtr) dlsym(hLibrary, "lib3mf_multipropertygroup_getmultiproperty"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MultiPropertyGroup_GetMultiProperty == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MultiPropertyGroup_RemoveMultiProperty = (PLib3MFMultiPropertyGroup_RemoveMultiPropertyPtr) GetProcAddress(hLibrary, "lib3mf_multipropertygroup_removemultiproperty"); + #else // _WIN32 + pWrapperTable->m_MultiPropertyGroup_RemoveMultiProperty = (PLib3MFMultiPropertyGroup_RemoveMultiPropertyPtr) dlsym(hLibrary, "lib3mf_multipropertygroup_removemultiproperty"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MultiPropertyGroup_RemoveMultiProperty == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MultiPropertyGroup_GetLayerCount = (PLib3MFMultiPropertyGroup_GetLayerCountPtr) GetProcAddress(hLibrary, "lib3mf_multipropertygroup_getlayercount"); + #else // _WIN32 + pWrapperTable->m_MultiPropertyGroup_GetLayerCount = (PLib3MFMultiPropertyGroup_GetLayerCountPtr) dlsym(hLibrary, "lib3mf_multipropertygroup_getlayercount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MultiPropertyGroup_GetLayerCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MultiPropertyGroup_AddLayer = (PLib3MFMultiPropertyGroup_AddLayerPtr) GetProcAddress(hLibrary, "lib3mf_multipropertygroup_addlayer"); + #else // _WIN32 + pWrapperTable->m_MultiPropertyGroup_AddLayer = (PLib3MFMultiPropertyGroup_AddLayerPtr) dlsym(hLibrary, "lib3mf_multipropertygroup_addlayer"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MultiPropertyGroup_AddLayer == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MultiPropertyGroup_GetLayer = (PLib3MFMultiPropertyGroup_GetLayerPtr) GetProcAddress(hLibrary, "lib3mf_multipropertygroup_getlayer"); + #else // _WIN32 + pWrapperTable->m_MultiPropertyGroup_GetLayer = (PLib3MFMultiPropertyGroup_GetLayerPtr) dlsym(hLibrary, "lib3mf_multipropertygroup_getlayer"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MultiPropertyGroup_GetLayer == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MultiPropertyGroup_RemoveLayer = (PLib3MFMultiPropertyGroup_RemoveLayerPtr) GetProcAddress(hLibrary, "lib3mf_multipropertygroup_removelayer"); + #else // _WIN32 + pWrapperTable->m_MultiPropertyGroup_RemoveLayer = (PLib3MFMultiPropertyGroup_RemoveLayerPtr) dlsym(hLibrary, "lib3mf_multipropertygroup_removelayer"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MultiPropertyGroup_RemoveLayer == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Image3D_GetName = (PLib3MFImage3D_GetNamePtr) GetProcAddress(hLibrary, "lib3mf_image3d_getname"); + #else // _WIN32 + pWrapperTable->m_Image3D_GetName = (PLib3MFImage3D_GetNamePtr) dlsym(hLibrary, "lib3mf_image3d_getname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Image3D_GetName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Image3D_SetName = (PLib3MFImage3D_SetNamePtr) GetProcAddress(hLibrary, "lib3mf_image3d_setname"); + #else // _WIN32 + pWrapperTable->m_Image3D_SetName = (PLib3MFImage3D_SetNamePtr) dlsym(hLibrary, "lib3mf_image3d_setname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Image3D_SetName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Image3D_IsImageStack = (PLib3MFImage3D_IsImageStackPtr) GetProcAddress(hLibrary, "lib3mf_image3d_isimagestack"); + #else // _WIN32 + pWrapperTable->m_Image3D_IsImageStack = (PLib3MFImage3D_IsImageStackPtr) dlsym(hLibrary, "lib3mf_image3d_isimagestack"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Image3D_IsImageStack == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImageStack_GetRowCount = (PLib3MFImageStack_GetRowCountPtr) GetProcAddress(hLibrary, "lib3mf_imagestack_getrowcount"); + #else // _WIN32 + pWrapperTable->m_ImageStack_GetRowCount = (PLib3MFImageStack_GetRowCountPtr) dlsym(hLibrary, "lib3mf_imagestack_getrowcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImageStack_GetRowCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImageStack_SetRowCount = (PLib3MFImageStack_SetRowCountPtr) GetProcAddress(hLibrary, "lib3mf_imagestack_setrowcount"); + #else // _WIN32 + pWrapperTable->m_ImageStack_SetRowCount = (PLib3MFImageStack_SetRowCountPtr) dlsym(hLibrary, "lib3mf_imagestack_setrowcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImageStack_SetRowCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImageStack_GetColumnCount = (PLib3MFImageStack_GetColumnCountPtr) GetProcAddress(hLibrary, "lib3mf_imagestack_getcolumncount"); + #else // _WIN32 + pWrapperTable->m_ImageStack_GetColumnCount = (PLib3MFImageStack_GetColumnCountPtr) dlsym(hLibrary, "lib3mf_imagestack_getcolumncount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImageStack_GetColumnCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImageStack_SetColumnCount = (PLib3MFImageStack_SetColumnCountPtr) GetProcAddress(hLibrary, "lib3mf_imagestack_setcolumncount"); + #else // _WIN32 + pWrapperTable->m_ImageStack_SetColumnCount = (PLib3MFImageStack_SetColumnCountPtr) dlsym(hLibrary, "lib3mf_imagestack_setcolumncount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImageStack_SetColumnCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImageStack_GetSheetCount = (PLib3MFImageStack_GetSheetCountPtr) GetProcAddress(hLibrary, "lib3mf_imagestack_getsheetcount"); + #else // _WIN32 + pWrapperTable->m_ImageStack_GetSheetCount = (PLib3MFImageStack_GetSheetCountPtr) dlsym(hLibrary, "lib3mf_imagestack_getsheetcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImageStack_GetSheetCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImageStack_GetSheet = (PLib3MFImageStack_GetSheetPtr) GetProcAddress(hLibrary, "lib3mf_imagestack_getsheet"); + #else // _WIN32 + pWrapperTable->m_ImageStack_GetSheet = (PLib3MFImageStack_GetSheetPtr) dlsym(hLibrary, "lib3mf_imagestack_getsheet"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImageStack_GetSheet == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImageStack_SetSheet = (PLib3MFImageStack_SetSheetPtr) GetProcAddress(hLibrary, "lib3mf_imagestack_setsheet"); + #else // _WIN32 + pWrapperTable->m_ImageStack_SetSheet = (PLib3MFImageStack_SetSheetPtr) dlsym(hLibrary, "lib3mf_imagestack_setsheet"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImageStack_SetSheet == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImageStack_CreateEmptySheet = (PLib3MFImageStack_CreateEmptySheetPtr) GetProcAddress(hLibrary, "lib3mf_imagestack_createemptysheet"); + #else // _WIN32 + pWrapperTable->m_ImageStack_CreateEmptySheet = (PLib3MFImageStack_CreateEmptySheetPtr) dlsym(hLibrary, "lib3mf_imagestack_createemptysheet"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImageStack_CreateEmptySheet == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImageStack_CreateSheetFromBuffer = (PLib3MFImageStack_CreateSheetFromBufferPtr) GetProcAddress(hLibrary, "lib3mf_imagestack_createsheetfrombuffer"); + #else // _WIN32 + pWrapperTable->m_ImageStack_CreateSheetFromBuffer = (PLib3MFImageStack_CreateSheetFromBufferPtr) dlsym(hLibrary, "lib3mf_imagestack_createsheetfrombuffer"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImageStack_CreateSheetFromBuffer == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImageStack_CreateSheetFromFile = (PLib3MFImageStack_CreateSheetFromFilePtr) GetProcAddress(hLibrary, "lib3mf_imagestack_createsheetfromfile"); + #else // _WIN32 + pWrapperTable->m_ImageStack_CreateSheetFromFile = (PLib3MFImageStack_CreateSheetFromFilePtr) dlsym(hLibrary, "lib3mf_imagestack_createsheetfromfile"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImageStack_CreateSheetFromFile == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Attachment_GetPath = (PLib3MFAttachment_GetPathPtr) GetProcAddress(hLibrary, "lib3mf_attachment_getpath"); + #else // _WIN32 + pWrapperTable->m_Attachment_GetPath = (PLib3MFAttachment_GetPathPtr) dlsym(hLibrary, "lib3mf_attachment_getpath"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Attachment_GetPath == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Attachment_SetPath = (PLib3MFAttachment_SetPathPtr) GetProcAddress(hLibrary, "lib3mf_attachment_setpath"); + #else // _WIN32 + pWrapperTable->m_Attachment_SetPath = (PLib3MFAttachment_SetPathPtr) dlsym(hLibrary, "lib3mf_attachment_setpath"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Attachment_SetPath == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Attachment_PackagePart = (PLib3MFAttachment_PackagePartPtr) GetProcAddress(hLibrary, "lib3mf_attachment_packagepart"); + #else // _WIN32 + pWrapperTable->m_Attachment_PackagePart = (PLib3MFAttachment_PackagePartPtr) dlsym(hLibrary, "lib3mf_attachment_packagepart"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Attachment_PackagePart == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Attachment_GetRelationShipType = (PLib3MFAttachment_GetRelationShipTypePtr) GetProcAddress(hLibrary, "lib3mf_attachment_getrelationshiptype"); + #else // _WIN32 + pWrapperTable->m_Attachment_GetRelationShipType = (PLib3MFAttachment_GetRelationShipTypePtr) dlsym(hLibrary, "lib3mf_attachment_getrelationshiptype"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Attachment_GetRelationShipType == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Attachment_SetRelationShipType = (PLib3MFAttachment_SetRelationShipTypePtr) GetProcAddress(hLibrary, "lib3mf_attachment_setrelationshiptype"); + #else // _WIN32 + pWrapperTable->m_Attachment_SetRelationShipType = (PLib3MFAttachment_SetRelationShipTypePtr) dlsym(hLibrary, "lib3mf_attachment_setrelationshiptype"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Attachment_SetRelationShipType == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Attachment_WriteToFile = (PLib3MFAttachment_WriteToFilePtr) GetProcAddress(hLibrary, "lib3mf_attachment_writetofile"); + #else // _WIN32 + pWrapperTable->m_Attachment_WriteToFile = (PLib3MFAttachment_WriteToFilePtr) dlsym(hLibrary, "lib3mf_attachment_writetofile"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Attachment_WriteToFile == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Attachment_ReadFromFile = (PLib3MFAttachment_ReadFromFilePtr) GetProcAddress(hLibrary, "lib3mf_attachment_readfromfile"); + #else // _WIN32 + pWrapperTable->m_Attachment_ReadFromFile = (PLib3MFAttachment_ReadFromFilePtr) dlsym(hLibrary, "lib3mf_attachment_readfromfile"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Attachment_ReadFromFile == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Attachment_ReadFromCallback = (PLib3MFAttachment_ReadFromCallbackPtr) GetProcAddress(hLibrary, "lib3mf_attachment_readfromcallback"); + #else // _WIN32 + pWrapperTable->m_Attachment_ReadFromCallback = (PLib3MFAttachment_ReadFromCallbackPtr) dlsym(hLibrary, "lib3mf_attachment_readfromcallback"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Attachment_ReadFromCallback == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Attachment_GetStreamSize = (PLib3MFAttachment_GetStreamSizePtr) GetProcAddress(hLibrary, "lib3mf_attachment_getstreamsize"); + #else // _WIN32 + pWrapperTable->m_Attachment_GetStreamSize = (PLib3MFAttachment_GetStreamSizePtr) dlsym(hLibrary, "lib3mf_attachment_getstreamsize"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Attachment_GetStreamSize == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Attachment_WriteToBuffer = (PLib3MFAttachment_WriteToBufferPtr) GetProcAddress(hLibrary, "lib3mf_attachment_writetobuffer"); + #else // _WIN32 + pWrapperTable->m_Attachment_WriteToBuffer = (PLib3MFAttachment_WriteToBufferPtr) dlsym(hLibrary, "lib3mf_attachment_writetobuffer"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Attachment_WriteToBuffer == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Attachment_ReadFromBuffer = (PLib3MFAttachment_ReadFromBufferPtr) GetProcAddress(hLibrary, "lib3mf_attachment_readfrombuffer"); + #else // _WIN32 + pWrapperTable->m_Attachment_ReadFromBuffer = (PLib3MFAttachment_ReadFromBufferPtr) dlsym(hLibrary, "lib3mf_attachment_readfrombuffer"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Attachment_ReadFromBuffer == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Texture2D_GetAttachment = (PLib3MFTexture2D_GetAttachmentPtr) GetProcAddress(hLibrary, "lib3mf_texture2d_getattachment"); + #else // _WIN32 + pWrapperTable->m_Texture2D_GetAttachment = (PLib3MFTexture2D_GetAttachmentPtr) dlsym(hLibrary, "lib3mf_texture2d_getattachment"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Texture2D_GetAttachment == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Texture2D_SetAttachment = (PLib3MFTexture2D_SetAttachmentPtr) GetProcAddress(hLibrary, "lib3mf_texture2d_setattachment"); + #else // _WIN32 + pWrapperTable->m_Texture2D_SetAttachment = (PLib3MFTexture2D_SetAttachmentPtr) dlsym(hLibrary, "lib3mf_texture2d_setattachment"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Texture2D_SetAttachment == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Texture2D_GetContentType = (PLib3MFTexture2D_GetContentTypePtr) GetProcAddress(hLibrary, "lib3mf_texture2d_getcontenttype"); + #else // _WIN32 + pWrapperTable->m_Texture2D_GetContentType = (PLib3MFTexture2D_GetContentTypePtr) dlsym(hLibrary, "lib3mf_texture2d_getcontenttype"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Texture2D_GetContentType == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Texture2D_SetContentType = (PLib3MFTexture2D_SetContentTypePtr) GetProcAddress(hLibrary, "lib3mf_texture2d_setcontenttype"); + #else // _WIN32 + pWrapperTable->m_Texture2D_SetContentType = (PLib3MFTexture2D_SetContentTypePtr) dlsym(hLibrary, "lib3mf_texture2d_setcontenttype"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Texture2D_SetContentType == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Texture2D_GetTileStyleUV = (PLib3MFTexture2D_GetTileStyleUVPtr) GetProcAddress(hLibrary, "lib3mf_texture2d_gettilestyleuv"); + #else // _WIN32 + pWrapperTable->m_Texture2D_GetTileStyleUV = (PLib3MFTexture2D_GetTileStyleUVPtr) dlsym(hLibrary, "lib3mf_texture2d_gettilestyleuv"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Texture2D_GetTileStyleUV == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Texture2D_SetTileStyleUV = (PLib3MFTexture2D_SetTileStyleUVPtr) GetProcAddress(hLibrary, "lib3mf_texture2d_settilestyleuv"); + #else // _WIN32 + pWrapperTable->m_Texture2D_SetTileStyleUV = (PLib3MFTexture2D_SetTileStyleUVPtr) dlsym(hLibrary, "lib3mf_texture2d_settilestyleuv"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Texture2D_SetTileStyleUV == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Texture2D_GetFilter = (PLib3MFTexture2D_GetFilterPtr) GetProcAddress(hLibrary, "lib3mf_texture2d_getfilter"); + #else // _WIN32 + pWrapperTable->m_Texture2D_GetFilter = (PLib3MFTexture2D_GetFilterPtr) dlsym(hLibrary, "lib3mf_texture2d_getfilter"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Texture2D_GetFilter == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Texture2D_SetFilter = (PLib3MFTexture2D_SetFilterPtr) GetProcAddress(hLibrary, "lib3mf_texture2d_setfilter"); + #else // _WIN32 + pWrapperTable->m_Texture2D_SetFilter = (PLib3MFTexture2D_SetFilterPtr) dlsym(hLibrary, "lib3mf_texture2d_setfilter"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Texture2D_SetFilter == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitPort_GetIdentifier = (PLib3MFImplicitPort_GetIdentifierPtr) GetProcAddress(hLibrary, "lib3mf_implicitport_getidentifier"); + #else // _WIN32 + pWrapperTable->m_ImplicitPort_GetIdentifier = (PLib3MFImplicitPort_GetIdentifierPtr) dlsym(hLibrary, "lib3mf_implicitport_getidentifier"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitPort_GetIdentifier == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitPort_SetIdentifier = (PLib3MFImplicitPort_SetIdentifierPtr) GetProcAddress(hLibrary, "lib3mf_implicitport_setidentifier"); + #else // _WIN32 + pWrapperTable->m_ImplicitPort_SetIdentifier = (PLib3MFImplicitPort_SetIdentifierPtr) dlsym(hLibrary, "lib3mf_implicitport_setidentifier"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitPort_SetIdentifier == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitPort_GetDisplayName = (PLib3MFImplicitPort_GetDisplayNamePtr) GetProcAddress(hLibrary, "lib3mf_implicitport_getdisplayname"); + #else // _WIN32 + pWrapperTable->m_ImplicitPort_GetDisplayName = (PLib3MFImplicitPort_GetDisplayNamePtr) dlsym(hLibrary, "lib3mf_implicitport_getdisplayname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitPort_GetDisplayName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitPort_SetDisplayName = (PLib3MFImplicitPort_SetDisplayNamePtr) GetProcAddress(hLibrary, "lib3mf_implicitport_setdisplayname"); + #else // _WIN32 + pWrapperTable->m_ImplicitPort_SetDisplayName = (PLib3MFImplicitPort_SetDisplayNamePtr) dlsym(hLibrary, "lib3mf_implicitport_setdisplayname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitPort_SetDisplayName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitPort_SetType = (PLib3MFImplicitPort_SetTypePtr) GetProcAddress(hLibrary, "lib3mf_implicitport_settype"); + #else // _WIN32 + pWrapperTable->m_ImplicitPort_SetType = (PLib3MFImplicitPort_SetTypePtr) dlsym(hLibrary, "lib3mf_implicitport_settype"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitPort_SetType == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitPort_GetType = (PLib3MFImplicitPort_GetTypePtr) GetProcAddress(hLibrary, "lib3mf_implicitport_gettype"); + #else // _WIN32 + pWrapperTable->m_ImplicitPort_GetType = (PLib3MFImplicitPort_GetTypePtr) dlsym(hLibrary, "lib3mf_implicitport_gettype"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitPort_GetType == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitPort_GetReference = (PLib3MFImplicitPort_GetReferencePtr) GetProcAddress(hLibrary, "lib3mf_implicitport_getreference"); + #else // _WIN32 + pWrapperTable->m_ImplicitPort_GetReference = (PLib3MFImplicitPort_GetReferencePtr) dlsym(hLibrary, "lib3mf_implicitport_getreference"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitPort_GetReference == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitPort_SetReference = (PLib3MFImplicitPort_SetReferencePtr) GetProcAddress(hLibrary, "lib3mf_implicitport_setreference"); + #else // _WIN32 + pWrapperTable->m_ImplicitPort_SetReference = (PLib3MFImplicitPort_SetReferencePtr) dlsym(hLibrary, "lib3mf_implicitport_setreference"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitPort_SetReference == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Iterator_MoveNext = (PLib3MFIterator_MoveNextPtr) GetProcAddress(hLibrary, "lib3mf_iterator_movenext"); + #else // _WIN32 + pWrapperTable->m_Iterator_MoveNext = (PLib3MFIterator_MoveNextPtr) dlsym(hLibrary, "lib3mf_iterator_movenext"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Iterator_MoveNext == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Iterator_MovePrevious = (PLib3MFIterator_MovePreviousPtr) GetProcAddress(hLibrary, "lib3mf_iterator_moveprevious"); + #else // _WIN32 + pWrapperTable->m_Iterator_MovePrevious = (PLib3MFIterator_MovePreviousPtr) dlsym(hLibrary, "lib3mf_iterator_moveprevious"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Iterator_MovePrevious == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Iterator_Count = (PLib3MFIterator_CountPtr) GetProcAddress(hLibrary, "lib3mf_iterator_count"); + #else // _WIN32 + pWrapperTable->m_Iterator_Count = (PLib3MFIterator_CountPtr) dlsym(hLibrary, "lib3mf_iterator_count"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Iterator_Count == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitPortIterator_GetCurrent = (PLib3MFImplicitPortIterator_GetCurrentPtr) GetProcAddress(hLibrary, "lib3mf_implicitportiterator_getcurrent"); + #else // _WIN32 + pWrapperTable->m_ImplicitPortIterator_GetCurrent = (PLib3MFImplicitPortIterator_GetCurrentPtr) dlsym(hLibrary, "lib3mf_implicitportiterator_getcurrent"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitPortIterator_GetCurrent == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitNode_GetIdentifier = (PLib3MFImplicitNode_GetIdentifierPtr) GetProcAddress(hLibrary, "lib3mf_implicitnode_getidentifier"); + #else // _WIN32 + pWrapperTable->m_ImplicitNode_GetIdentifier = (PLib3MFImplicitNode_GetIdentifierPtr) dlsym(hLibrary, "lib3mf_implicitnode_getidentifier"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitNode_GetIdentifier == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitNode_SetIdentifier = (PLib3MFImplicitNode_SetIdentifierPtr) GetProcAddress(hLibrary, "lib3mf_implicitnode_setidentifier"); + #else // _WIN32 + pWrapperTable->m_ImplicitNode_SetIdentifier = (PLib3MFImplicitNode_SetIdentifierPtr) dlsym(hLibrary, "lib3mf_implicitnode_setidentifier"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitNode_SetIdentifier == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitNode_GetDisplayName = (PLib3MFImplicitNode_GetDisplayNamePtr) GetProcAddress(hLibrary, "lib3mf_implicitnode_getdisplayname"); + #else // _WIN32 + pWrapperTable->m_ImplicitNode_GetDisplayName = (PLib3MFImplicitNode_GetDisplayNamePtr) dlsym(hLibrary, "lib3mf_implicitnode_getdisplayname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitNode_GetDisplayName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitNode_SetDisplayName = (PLib3MFImplicitNode_SetDisplayNamePtr) GetProcAddress(hLibrary, "lib3mf_implicitnode_setdisplayname"); + #else // _WIN32 + pWrapperTable->m_ImplicitNode_SetDisplayName = (PLib3MFImplicitNode_SetDisplayNamePtr) dlsym(hLibrary, "lib3mf_implicitnode_setdisplayname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitNode_SetDisplayName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitNode_GetTag = (PLib3MFImplicitNode_GetTagPtr) GetProcAddress(hLibrary, "lib3mf_implicitnode_gettag"); + #else // _WIN32 + pWrapperTable->m_ImplicitNode_GetTag = (PLib3MFImplicitNode_GetTagPtr) dlsym(hLibrary, "lib3mf_implicitnode_gettag"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitNode_GetTag == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitNode_SetTag = (PLib3MFImplicitNode_SetTagPtr) GetProcAddress(hLibrary, "lib3mf_implicitnode_settag"); + #else // _WIN32 + pWrapperTable->m_ImplicitNode_SetTag = (PLib3MFImplicitNode_SetTagPtr) dlsym(hLibrary, "lib3mf_implicitnode_settag"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitNode_SetTag == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitNode_GetNodeType = (PLib3MFImplicitNode_GetNodeTypePtr) GetProcAddress(hLibrary, "lib3mf_implicitnode_getnodetype"); + #else // _WIN32 + pWrapperTable->m_ImplicitNode_GetNodeType = (PLib3MFImplicitNode_GetNodeTypePtr) dlsym(hLibrary, "lib3mf_implicitnode_getnodetype"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitNode_GetNodeType == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitNode_AddInput = (PLib3MFImplicitNode_AddInputPtr) GetProcAddress(hLibrary, "lib3mf_implicitnode_addinput"); + #else // _WIN32 + pWrapperTable->m_ImplicitNode_AddInput = (PLib3MFImplicitNode_AddInputPtr) dlsym(hLibrary, "lib3mf_implicitnode_addinput"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitNode_AddInput == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitNode_GetInputs = (PLib3MFImplicitNode_GetInputsPtr) GetProcAddress(hLibrary, "lib3mf_implicitnode_getinputs"); + #else // _WIN32 + pWrapperTable->m_ImplicitNode_GetInputs = (PLib3MFImplicitNode_GetInputsPtr) dlsym(hLibrary, "lib3mf_implicitnode_getinputs"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitNode_GetInputs == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitNode_AddOutput = (PLib3MFImplicitNode_AddOutputPtr) GetProcAddress(hLibrary, "lib3mf_implicitnode_addoutput"); + #else // _WIN32 + pWrapperTable->m_ImplicitNode_AddOutput = (PLib3MFImplicitNode_AddOutputPtr) dlsym(hLibrary, "lib3mf_implicitnode_addoutput"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitNode_AddOutput == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitNode_GetOutputs = (PLib3MFImplicitNode_GetOutputsPtr) GetProcAddress(hLibrary, "lib3mf_implicitnode_getoutputs"); + #else // _WIN32 + pWrapperTable->m_ImplicitNode_GetOutputs = (PLib3MFImplicitNode_GetOutputsPtr) dlsym(hLibrary, "lib3mf_implicitnode_getoutputs"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitNode_GetOutputs == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitNode_FindInput = (PLib3MFImplicitNode_FindInputPtr) GetProcAddress(hLibrary, "lib3mf_implicitnode_findinput"); + #else // _WIN32 + pWrapperTable->m_ImplicitNode_FindInput = (PLib3MFImplicitNode_FindInputPtr) dlsym(hLibrary, "lib3mf_implicitnode_findinput"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitNode_FindInput == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitNode_FindOutput = (PLib3MFImplicitNode_FindOutputPtr) GetProcAddress(hLibrary, "lib3mf_implicitnode_findoutput"); + #else // _WIN32 + pWrapperTable->m_ImplicitNode_FindOutput = (PLib3MFImplicitNode_FindOutputPtr) dlsym(hLibrary, "lib3mf_implicitnode_findoutput"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitNode_FindOutput == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitNode_AreTypesValid = (PLib3MFImplicitNode_AreTypesValidPtr) GetProcAddress(hLibrary, "lib3mf_implicitnode_aretypesvalid"); + #else // _WIN32 + pWrapperTable->m_ImplicitNode_AreTypesValid = (PLib3MFImplicitNode_AreTypesValidPtr) dlsym(hLibrary, "lib3mf_implicitnode_aretypesvalid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitNode_AreTypesValid == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_OneInputNode_GetInputA = (PLib3MFOneInputNode_GetInputAPtr) GetProcAddress(hLibrary, "lib3mf_oneinputnode_getinputa"); + #else // _WIN32 + pWrapperTable->m_OneInputNode_GetInputA = (PLib3MFOneInputNode_GetInputAPtr) dlsym(hLibrary, "lib3mf_oneinputnode_getinputa"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_OneInputNode_GetInputA == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_OneInputNode_GetOutputResult = (PLib3MFOneInputNode_GetOutputResultPtr) GetProcAddress(hLibrary, "lib3mf_oneinputnode_getoutputresult"); + #else // _WIN32 + pWrapperTable->m_OneInputNode_GetOutputResult = (PLib3MFOneInputNode_GetOutputResultPtr) dlsym(hLibrary, "lib3mf_oneinputnode_getoutputresult"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_OneInputNode_GetOutputResult == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ResourceIdNode_SetResource = (PLib3MFResourceIdNode_SetResourcePtr) GetProcAddress(hLibrary, "lib3mf_resourceidnode_setresource"); + #else // _WIN32 + pWrapperTable->m_ResourceIdNode_SetResource = (PLib3MFResourceIdNode_SetResourcePtr) dlsym(hLibrary, "lib3mf_resourceidnode_setresource"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ResourceIdNode_SetResource == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ResourceIdNode_GetResource = (PLib3MFResourceIdNode_GetResourcePtr) GetProcAddress(hLibrary, "lib3mf_resourceidnode_getresource"); + #else // _WIN32 + pWrapperTable->m_ResourceIdNode_GetResource = (PLib3MFResourceIdNode_GetResourcePtr) dlsym(hLibrary, "lib3mf_resourceidnode_getresource"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ResourceIdNode_GetResource == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ResourceIdNode_GetOutputValue = (PLib3MFResourceIdNode_GetOutputValuePtr) GetProcAddress(hLibrary, "lib3mf_resourceidnode_getoutputvalue"); + #else // _WIN32 + pWrapperTable->m_ResourceIdNode_GetOutputValue = (PLib3MFResourceIdNode_GetOutputValuePtr) dlsym(hLibrary, "lib3mf_resourceidnode_getoutputvalue"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ResourceIdNode_GetOutputValue == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_TwoInputNode_GetInputB = (PLib3MFTwoInputNode_GetInputBPtr) GetProcAddress(hLibrary, "lib3mf_twoinputnode_getinputb"); + #else // _WIN32 + pWrapperTable->m_TwoInputNode_GetInputB = (PLib3MFTwoInputNode_GetInputBPtr) dlsym(hLibrary, "lib3mf_twoinputnode_getinputb"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_TwoInputNode_GetInputB == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_SelectNode_GetInputB = (PLib3MFSelectNode_GetInputBPtr) GetProcAddress(hLibrary, "lib3mf_selectnode_getinputb"); + #else // _WIN32 + pWrapperTable->m_SelectNode_GetInputB = (PLib3MFSelectNode_GetInputBPtr) dlsym(hLibrary, "lib3mf_selectnode_getinputb"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_SelectNode_GetInputB == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_SelectNode_GetInputC = (PLib3MFSelectNode_GetInputCPtr) GetProcAddress(hLibrary, "lib3mf_selectnode_getinputc"); + #else // _WIN32 + pWrapperTable->m_SelectNode_GetInputC = (PLib3MFSelectNode_GetInputCPtr) dlsym(hLibrary, "lib3mf_selectnode_getinputc"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_SelectNode_GetInputC == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_SelectNode_GetInputD = (PLib3MFSelectNode_GetInputDPtr) GetProcAddress(hLibrary, "lib3mf_selectnode_getinputd"); + #else // _WIN32 + pWrapperTable->m_SelectNode_GetInputD = (PLib3MFSelectNode_GetInputDPtr) dlsym(hLibrary, "lib3mf_selectnode_getinputd"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_SelectNode_GetInputD == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ClampNode_GetInputMin = (PLib3MFClampNode_GetInputMinPtr) GetProcAddress(hLibrary, "lib3mf_clampnode_getinputmin"); + #else // _WIN32 + pWrapperTable->m_ClampNode_GetInputMin = (PLib3MFClampNode_GetInputMinPtr) dlsym(hLibrary, "lib3mf_clampnode_getinputmin"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ClampNode_GetInputMin == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ClampNode_GetInputMax = (PLib3MFClampNode_GetInputMaxPtr) GetProcAddress(hLibrary, "lib3mf_clampnode_getinputmax"); + #else // _WIN32 + pWrapperTable->m_ClampNode_GetInputMax = (PLib3MFClampNode_GetInputMaxPtr) dlsym(hLibrary, "lib3mf_clampnode_getinputmax"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ClampNode_GetInputMax == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeVectorNode_GetInputX = (PLib3MFComposeVectorNode_GetInputXPtr) GetProcAddress(hLibrary, "lib3mf_composevectornode_getinputx"); + #else // _WIN32 + pWrapperTable->m_ComposeVectorNode_GetInputX = (PLib3MFComposeVectorNode_GetInputXPtr) dlsym(hLibrary, "lib3mf_composevectornode_getinputx"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeVectorNode_GetInputX == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeVectorNode_GetInputY = (PLib3MFComposeVectorNode_GetInputYPtr) GetProcAddress(hLibrary, "lib3mf_composevectornode_getinputy"); + #else // _WIN32 + pWrapperTable->m_ComposeVectorNode_GetInputY = (PLib3MFComposeVectorNode_GetInputYPtr) dlsym(hLibrary, "lib3mf_composevectornode_getinputy"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeVectorNode_GetInputY == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeVectorNode_GetInputZ = (PLib3MFComposeVectorNode_GetInputZPtr) GetProcAddress(hLibrary, "lib3mf_composevectornode_getinputz"); + #else // _WIN32 + pWrapperTable->m_ComposeVectorNode_GetInputZ = (PLib3MFComposeVectorNode_GetInputZPtr) dlsym(hLibrary, "lib3mf_composevectornode_getinputz"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeVectorNode_GetInputZ == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeVectorNode_GetOutputResult = (PLib3MFComposeVectorNode_GetOutputResultPtr) GetProcAddress(hLibrary, "lib3mf_composevectornode_getoutputresult"); + #else // _WIN32 + pWrapperTable->m_ComposeVectorNode_GetOutputResult = (PLib3MFComposeVectorNode_GetOutputResultPtr) dlsym(hLibrary, "lib3mf_composevectornode_getoutputresult"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeVectorNode_GetOutputResult == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_DecomposeVectorNode_GetInputA = (PLib3MFDecomposeVectorNode_GetInputAPtr) GetProcAddress(hLibrary, "lib3mf_decomposevectornode_getinputa"); + #else // _WIN32 + pWrapperTable->m_DecomposeVectorNode_GetInputA = (PLib3MFDecomposeVectorNode_GetInputAPtr) dlsym(hLibrary, "lib3mf_decomposevectornode_getinputa"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_DecomposeVectorNode_GetInputA == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_DecomposeVectorNode_GetOutputX = (PLib3MFDecomposeVectorNode_GetOutputXPtr) GetProcAddress(hLibrary, "lib3mf_decomposevectornode_getoutputx"); + #else // _WIN32 + pWrapperTable->m_DecomposeVectorNode_GetOutputX = (PLib3MFDecomposeVectorNode_GetOutputXPtr) dlsym(hLibrary, "lib3mf_decomposevectornode_getoutputx"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_DecomposeVectorNode_GetOutputX == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_DecomposeVectorNode_GetOutputY = (PLib3MFDecomposeVectorNode_GetOutputYPtr) GetProcAddress(hLibrary, "lib3mf_decomposevectornode_getoutputy"); + #else // _WIN32 + pWrapperTable->m_DecomposeVectorNode_GetOutputY = (PLib3MFDecomposeVectorNode_GetOutputYPtr) dlsym(hLibrary, "lib3mf_decomposevectornode_getoutputy"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_DecomposeVectorNode_GetOutputY == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_DecomposeVectorNode_GetOutputZ = (PLib3MFDecomposeVectorNode_GetOutputZPtr) GetProcAddress(hLibrary, "lib3mf_decomposevectornode_getoutputz"); + #else // _WIN32 + pWrapperTable->m_DecomposeVectorNode_GetOutputZ = (PLib3MFDecomposeVectorNode_GetOutputZPtr) dlsym(hLibrary, "lib3mf_decomposevectornode_getoutputz"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_DecomposeVectorNode_GetOutputZ == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM00 = (PLib3MFComposeMatrixNode_GetInputM00Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getinputm00"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM00 = (PLib3MFComposeMatrixNode_GetInputM00Ptr) dlsym(hLibrary, "lib3mf_composematrixnode_getinputm00"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetInputM00 == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM01 = (PLib3MFComposeMatrixNode_GetInputM01Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getinputm01"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM01 = (PLib3MFComposeMatrixNode_GetInputM01Ptr) dlsym(hLibrary, "lib3mf_composematrixnode_getinputm01"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetInputM01 == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM02 = (PLib3MFComposeMatrixNode_GetInputM02Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getinputm02"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM02 = (PLib3MFComposeMatrixNode_GetInputM02Ptr) dlsym(hLibrary, "lib3mf_composematrixnode_getinputm02"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetInputM02 == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM03 = (PLib3MFComposeMatrixNode_GetInputM03Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getinputm03"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM03 = (PLib3MFComposeMatrixNode_GetInputM03Ptr) dlsym(hLibrary, "lib3mf_composematrixnode_getinputm03"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetInputM03 == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM10 = (PLib3MFComposeMatrixNode_GetInputM10Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getinputm10"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM10 = (PLib3MFComposeMatrixNode_GetInputM10Ptr) dlsym(hLibrary, "lib3mf_composematrixnode_getinputm10"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetInputM10 == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM11 = (PLib3MFComposeMatrixNode_GetInputM11Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getinputm11"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM11 = (PLib3MFComposeMatrixNode_GetInputM11Ptr) dlsym(hLibrary, "lib3mf_composematrixnode_getinputm11"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetInputM11 == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM12 = (PLib3MFComposeMatrixNode_GetInputM12Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getinputm12"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM12 = (PLib3MFComposeMatrixNode_GetInputM12Ptr) dlsym(hLibrary, "lib3mf_composematrixnode_getinputm12"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetInputM12 == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM13 = (PLib3MFComposeMatrixNode_GetInputM13Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getinputm13"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM13 = (PLib3MFComposeMatrixNode_GetInputM13Ptr) dlsym(hLibrary, "lib3mf_composematrixnode_getinputm13"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetInputM13 == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM20 = (PLib3MFComposeMatrixNode_GetInputM20Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getinputm20"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM20 = (PLib3MFComposeMatrixNode_GetInputM20Ptr) dlsym(hLibrary, "lib3mf_composematrixnode_getinputm20"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetInputM20 == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM21 = (PLib3MFComposeMatrixNode_GetInputM21Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getinputm21"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM21 = (PLib3MFComposeMatrixNode_GetInputM21Ptr) dlsym(hLibrary, "lib3mf_composematrixnode_getinputm21"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetInputM21 == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM22 = (PLib3MFComposeMatrixNode_GetInputM22Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getinputm22"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM22 = (PLib3MFComposeMatrixNode_GetInputM22Ptr) dlsym(hLibrary, "lib3mf_composematrixnode_getinputm22"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetInputM22 == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM23 = (PLib3MFComposeMatrixNode_GetInputM23Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getinputm23"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM23 = (PLib3MFComposeMatrixNode_GetInputM23Ptr) dlsym(hLibrary, "lib3mf_composematrixnode_getinputm23"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetInputM23 == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM30 = (PLib3MFComposeMatrixNode_GetInputM30Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getinputm30"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM30 = (PLib3MFComposeMatrixNode_GetInputM30Ptr) dlsym(hLibrary, "lib3mf_composematrixnode_getinputm30"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetInputM30 == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM31 = (PLib3MFComposeMatrixNode_GetInputM31Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getinputm31"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM31 = (PLib3MFComposeMatrixNode_GetInputM31Ptr) dlsym(hLibrary, "lib3mf_composematrixnode_getinputm31"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetInputM31 == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM32 = (PLib3MFComposeMatrixNode_GetInputM32Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getinputm32"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM32 = (PLib3MFComposeMatrixNode_GetInputM32Ptr) dlsym(hLibrary, "lib3mf_composematrixnode_getinputm32"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetInputM32 == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM33 = (PLib3MFComposeMatrixNode_GetInputM33Ptr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getinputm33"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetInputM33 = (PLib3MFComposeMatrixNode_GetInputM33Ptr) dlsym(hLibrary, "lib3mf_composematrixnode_getinputm33"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetInputM33 == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetOutputResult = (PLib3MFComposeMatrixNode_GetOutputResultPtr) GetProcAddress(hLibrary, "lib3mf_composematrixnode_getoutputresult"); + #else // _WIN32 + pWrapperTable->m_ComposeMatrixNode_GetOutputResult = (PLib3MFComposeMatrixNode_GetOutputResultPtr) dlsym(hLibrary, "lib3mf_composematrixnode_getoutputresult"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ComposeMatrixNode_GetOutputResult == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MatrixFromRowsNode_GetInputA = (PLib3MFMatrixFromRowsNode_GetInputAPtr) GetProcAddress(hLibrary, "lib3mf_matrixfromrowsnode_getinputa"); + #else // _WIN32 + pWrapperTable->m_MatrixFromRowsNode_GetInputA = (PLib3MFMatrixFromRowsNode_GetInputAPtr) dlsym(hLibrary, "lib3mf_matrixfromrowsnode_getinputa"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MatrixFromRowsNode_GetInputA == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MatrixFromRowsNode_GetInputB = (PLib3MFMatrixFromRowsNode_GetInputBPtr) GetProcAddress(hLibrary, "lib3mf_matrixfromrowsnode_getinputb"); + #else // _WIN32 + pWrapperTable->m_MatrixFromRowsNode_GetInputB = (PLib3MFMatrixFromRowsNode_GetInputBPtr) dlsym(hLibrary, "lib3mf_matrixfromrowsnode_getinputb"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MatrixFromRowsNode_GetInputB == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MatrixFromRowsNode_GetInputC = (PLib3MFMatrixFromRowsNode_GetInputCPtr) GetProcAddress(hLibrary, "lib3mf_matrixfromrowsnode_getinputc"); + #else // _WIN32 + pWrapperTable->m_MatrixFromRowsNode_GetInputC = (PLib3MFMatrixFromRowsNode_GetInputCPtr) dlsym(hLibrary, "lib3mf_matrixfromrowsnode_getinputc"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MatrixFromRowsNode_GetInputC == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MatrixFromRowsNode_GetInputD = (PLib3MFMatrixFromRowsNode_GetInputDPtr) GetProcAddress(hLibrary, "lib3mf_matrixfromrowsnode_getinputd"); + #else // _WIN32 + pWrapperTable->m_MatrixFromRowsNode_GetInputD = (PLib3MFMatrixFromRowsNode_GetInputDPtr) dlsym(hLibrary, "lib3mf_matrixfromrowsnode_getinputd"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MatrixFromRowsNode_GetInputD == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MatrixFromRowsNode_GetOutputResult = (PLib3MFMatrixFromRowsNode_GetOutputResultPtr) GetProcAddress(hLibrary, "lib3mf_matrixfromrowsnode_getoutputresult"); + #else // _WIN32 + pWrapperTable->m_MatrixFromRowsNode_GetOutputResult = (PLib3MFMatrixFromRowsNode_GetOutputResultPtr) dlsym(hLibrary, "lib3mf_matrixfromrowsnode_getoutputresult"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MatrixFromRowsNode_GetOutputResult == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MatrixFromColumnsNode_GetInputA = (PLib3MFMatrixFromColumnsNode_GetInputAPtr) GetProcAddress(hLibrary, "lib3mf_matrixfromcolumnsnode_getinputa"); + #else // _WIN32 + pWrapperTable->m_MatrixFromColumnsNode_GetInputA = (PLib3MFMatrixFromColumnsNode_GetInputAPtr) dlsym(hLibrary, "lib3mf_matrixfromcolumnsnode_getinputa"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MatrixFromColumnsNode_GetInputA == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MatrixFromColumnsNode_GetInputB = (PLib3MFMatrixFromColumnsNode_GetInputBPtr) GetProcAddress(hLibrary, "lib3mf_matrixfromcolumnsnode_getinputb"); + #else // _WIN32 + pWrapperTable->m_MatrixFromColumnsNode_GetInputB = (PLib3MFMatrixFromColumnsNode_GetInputBPtr) dlsym(hLibrary, "lib3mf_matrixfromcolumnsnode_getinputb"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MatrixFromColumnsNode_GetInputB == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MatrixFromColumnsNode_GetInputC = (PLib3MFMatrixFromColumnsNode_GetInputCPtr) GetProcAddress(hLibrary, "lib3mf_matrixfromcolumnsnode_getinputc"); + #else // _WIN32 + pWrapperTable->m_MatrixFromColumnsNode_GetInputC = (PLib3MFMatrixFromColumnsNode_GetInputCPtr) dlsym(hLibrary, "lib3mf_matrixfromcolumnsnode_getinputc"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MatrixFromColumnsNode_GetInputC == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MatrixFromColumnsNode_GetInputD = (PLib3MFMatrixFromColumnsNode_GetInputDPtr) GetProcAddress(hLibrary, "lib3mf_matrixfromcolumnsnode_getinputd"); + #else // _WIN32 + pWrapperTable->m_MatrixFromColumnsNode_GetInputD = (PLib3MFMatrixFromColumnsNode_GetInputDPtr) dlsym(hLibrary, "lib3mf_matrixfromcolumnsnode_getinputd"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MatrixFromColumnsNode_GetInputD == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MatrixFromColumnsNode_GetOutputResult = (PLib3MFMatrixFromColumnsNode_GetOutputResultPtr) GetProcAddress(hLibrary, "lib3mf_matrixfromcolumnsnode_getoutputresult"); + #else // _WIN32 + pWrapperTable->m_MatrixFromColumnsNode_GetOutputResult = (PLib3MFMatrixFromColumnsNode_GetOutputResultPtr) dlsym(hLibrary, "lib3mf_matrixfromcolumnsnode_getoutputresult"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MatrixFromColumnsNode_GetOutputResult == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ConstantNode_SetConstant = (PLib3MFConstantNode_SetConstantPtr) GetProcAddress(hLibrary, "lib3mf_constantnode_setconstant"); + #else // _WIN32 + pWrapperTable->m_ConstantNode_SetConstant = (PLib3MFConstantNode_SetConstantPtr) dlsym(hLibrary, "lib3mf_constantnode_setconstant"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ConstantNode_SetConstant == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ConstantNode_GetConstant = (PLib3MFConstantNode_GetConstantPtr) GetProcAddress(hLibrary, "lib3mf_constantnode_getconstant"); + #else // _WIN32 + pWrapperTable->m_ConstantNode_GetConstant = (PLib3MFConstantNode_GetConstantPtr) dlsym(hLibrary, "lib3mf_constantnode_getconstant"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ConstantNode_GetConstant == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ConstantNode_GetOutputValue = (PLib3MFConstantNode_GetOutputValuePtr) GetProcAddress(hLibrary, "lib3mf_constantnode_getoutputvalue"); + #else // _WIN32 + pWrapperTable->m_ConstantNode_GetOutputValue = (PLib3MFConstantNode_GetOutputValuePtr) dlsym(hLibrary, "lib3mf_constantnode_getoutputvalue"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ConstantNode_GetOutputValue == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ConstVecNode_SetVector = (PLib3MFConstVecNode_SetVectorPtr) GetProcAddress(hLibrary, "lib3mf_constvecnode_setvector"); + #else // _WIN32 + pWrapperTable->m_ConstVecNode_SetVector = (PLib3MFConstVecNode_SetVectorPtr) dlsym(hLibrary, "lib3mf_constvecnode_setvector"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ConstVecNode_SetVector == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ConstVecNode_GetVector = (PLib3MFConstVecNode_GetVectorPtr) GetProcAddress(hLibrary, "lib3mf_constvecnode_getvector"); + #else // _WIN32 + pWrapperTable->m_ConstVecNode_GetVector = (PLib3MFConstVecNode_GetVectorPtr) dlsym(hLibrary, "lib3mf_constvecnode_getvector"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ConstVecNode_GetVector == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ConstVecNode_GetOutputVector = (PLib3MFConstVecNode_GetOutputVectorPtr) GetProcAddress(hLibrary, "lib3mf_constvecnode_getoutputvector"); + #else // _WIN32 + pWrapperTable->m_ConstVecNode_GetOutputVector = (PLib3MFConstVecNode_GetOutputVectorPtr) dlsym(hLibrary, "lib3mf_constvecnode_getoutputvector"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ConstVecNode_GetOutputVector == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ConstMatNode_SetMatrix = (PLib3MFConstMatNode_SetMatrixPtr) GetProcAddress(hLibrary, "lib3mf_constmatnode_setmatrix"); + #else // _WIN32 + pWrapperTable->m_ConstMatNode_SetMatrix = (PLib3MFConstMatNode_SetMatrixPtr) dlsym(hLibrary, "lib3mf_constmatnode_setmatrix"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ConstMatNode_SetMatrix == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ConstMatNode_GetMatrix = (PLib3MFConstMatNode_GetMatrixPtr) GetProcAddress(hLibrary, "lib3mf_constmatnode_getmatrix"); + #else // _WIN32 + pWrapperTable->m_ConstMatNode_GetMatrix = (PLib3MFConstMatNode_GetMatrixPtr) dlsym(hLibrary, "lib3mf_constmatnode_getmatrix"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ConstMatNode_GetMatrix == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ConstMatNode_GetOutputMatrix = (PLib3MFConstMatNode_GetOutputMatrixPtr) GetProcAddress(hLibrary, "lib3mf_constmatnode_getoutputmatrix"); + #else // _WIN32 + pWrapperTable->m_ConstMatNode_GetOutputMatrix = (PLib3MFConstMatNode_GetOutputMatrixPtr) dlsym(hLibrary, "lib3mf_constmatnode_getoutputmatrix"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ConstMatNode_GetOutputMatrix == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshNode_GetInputMesh = (PLib3MFMeshNode_GetInputMeshPtr) GetProcAddress(hLibrary, "lib3mf_meshnode_getinputmesh"); + #else // _WIN32 + pWrapperTable->m_MeshNode_GetInputMesh = (PLib3MFMeshNode_GetInputMeshPtr) dlsym(hLibrary, "lib3mf_meshnode_getinputmesh"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshNode_GetInputMesh == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshNode_GetInputPos = (PLib3MFMeshNode_GetInputPosPtr) GetProcAddress(hLibrary, "lib3mf_meshnode_getinputpos"); + #else // _WIN32 + pWrapperTable->m_MeshNode_GetInputPos = (PLib3MFMeshNode_GetInputPosPtr) dlsym(hLibrary, "lib3mf_meshnode_getinputpos"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshNode_GetInputPos == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_MeshNode_GetOutputDistance = (PLib3MFMeshNode_GetOutputDistancePtr) GetProcAddress(hLibrary, "lib3mf_meshnode_getoutputdistance"); + #else // _WIN32 + pWrapperTable->m_MeshNode_GetOutputDistance = (PLib3MFMeshNode_GetOutputDistancePtr) dlsym(hLibrary, "lib3mf_meshnode_getoutputdistance"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_MeshNode_GetOutputDistance == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_UnsignedMeshNode_GetInputMesh = (PLib3MFUnsignedMeshNode_GetInputMeshPtr) GetProcAddress(hLibrary, "lib3mf_unsignedmeshnode_getinputmesh"); + #else // _WIN32 + pWrapperTable->m_UnsignedMeshNode_GetInputMesh = (PLib3MFUnsignedMeshNode_GetInputMeshPtr) dlsym(hLibrary, "lib3mf_unsignedmeshnode_getinputmesh"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_UnsignedMeshNode_GetInputMesh == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_UnsignedMeshNode_GetInputPos = (PLib3MFUnsignedMeshNode_GetInputPosPtr) GetProcAddress(hLibrary, "lib3mf_unsignedmeshnode_getinputpos"); + #else // _WIN32 + pWrapperTable->m_UnsignedMeshNode_GetInputPos = (PLib3MFUnsignedMeshNode_GetInputPosPtr) dlsym(hLibrary, "lib3mf_unsignedmeshnode_getinputpos"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_UnsignedMeshNode_GetInputPos == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_UnsignedMeshNode_GetOutputDistance = (PLib3MFUnsignedMeshNode_GetOutputDistancePtr) GetProcAddress(hLibrary, "lib3mf_unsignedmeshnode_getoutputdistance"); + #else // _WIN32 + pWrapperTable->m_UnsignedMeshNode_GetOutputDistance = (PLib3MFUnsignedMeshNode_GetOutputDistancePtr) dlsym(hLibrary, "lib3mf_unsignedmeshnode_getoutputdistance"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_UnsignedMeshNode_GetOutputDistance == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionCallNode_GetInputFunctionID = (PLib3MFFunctionCallNode_GetInputFunctionIDPtr) GetProcAddress(hLibrary, "lib3mf_functioncallnode_getinputfunctionid"); + #else // _WIN32 + pWrapperTable->m_FunctionCallNode_GetInputFunctionID = (PLib3MFFunctionCallNode_GetInputFunctionIDPtr) dlsym(hLibrary, "lib3mf_functioncallnode_getinputfunctionid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionCallNode_GetInputFunctionID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_NodeIterator_GetCurrent = (PLib3MFNodeIterator_GetCurrentPtr) GetProcAddress(hLibrary, "lib3mf_nodeiterator_getcurrent"); + #else // _WIN32 + pWrapperTable->m_NodeIterator_GetCurrent = (PLib3MFNodeIterator_GetCurrentPtr) dlsym(hLibrary, "lib3mf_nodeiterator_getcurrent"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_NodeIterator_GetCurrent == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Function_GetDisplayName = (PLib3MFFunction_GetDisplayNamePtr) GetProcAddress(hLibrary, "lib3mf_function_getdisplayname"); + #else // _WIN32 + pWrapperTable->m_Function_GetDisplayName = (PLib3MFFunction_GetDisplayNamePtr) dlsym(hLibrary, "lib3mf_function_getdisplayname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Function_GetDisplayName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Function_SetDisplayName = (PLib3MFFunction_SetDisplayNamePtr) GetProcAddress(hLibrary, "lib3mf_function_setdisplayname"); + #else // _WIN32 + pWrapperTable->m_Function_SetDisplayName = (PLib3MFFunction_SetDisplayNamePtr) dlsym(hLibrary, "lib3mf_function_setdisplayname"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Function_SetDisplayName == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Function_AddInput = (PLib3MFFunction_AddInputPtr) GetProcAddress(hLibrary, "lib3mf_function_addinput"); + #else // _WIN32 + pWrapperTable->m_Function_AddInput = (PLib3MFFunction_AddInputPtr) dlsym(hLibrary, "lib3mf_function_addinput"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Function_AddInput == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Function_GetInputs = (PLib3MFFunction_GetInputsPtr) GetProcAddress(hLibrary, "lib3mf_function_getinputs"); + #else // _WIN32 + pWrapperTable->m_Function_GetInputs = (PLib3MFFunction_GetInputsPtr) dlsym(hLibrary, "lib3mf_function_getinputs"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Function_GetInputs == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Function_RemoveInput = (PLib3MFFunction_RemoveInputPtr) GetProcAddress(hLibrary, "lib3mf_function_removeinput"); + #else // _WIN32 + pWrapperTable->m_Function_RemoveInput = (PLib3MFFunction_RemoveInputPtr) dlsym(hLibrary, "lib3mf_function_removeinput"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Function_RemoveInput == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Function_AddOutput = (PLib3MFFunction_AddOutputPtr) GetProcAddress(hLibrary, "lib3mf_function_addoutput"); + #else // _WIN32 + pWrapperTable->m_Function_AddOutput = (PLib3MFFunction_AddOutputPtr) dlsym(hLibrary, "lib3mf_function_addoutput"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Function_AddOutput == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Function_GetOutputs = (PLib3MFFunction_GetOutputsPtr) GetProcAddress(hLibrary, "lib3mf_function_getoutputs"); + #else // _WIN32 + pWrapperTable->m_Function_GetOutputs = (PLib3MFFunction_GetOutputsPtr) dlsym(hLibrary, "lib3mf_function_getoutputs"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Function_GetOutputs == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Function_RemoveOutput = (PLib3MFFunction_RemoveOutputPtr) GetProcAddress(hLibrary, "lib3mf_function_removeoutput"); + #else // _WIN32 + pWrapperTable->m_Function_RemoveOutput = (PLib3MFFunction_RemoveOutputPtr) dlsym(hLibrary, "lib3mf_function_removeoutput"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Function_RemoveOutput == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Function_FindInput = (PLib3MFFunction_FindInputPtr) GetProcAddress(hLibrary, "lib3mf_function_findinput"); + #else // _WIN32 + pWrapperTable->m_Function_FindInput = (PLib3MFFunction_FindInputPtr) dlsym(hLibrary, "lib3mf_function_findinput"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Function_FindInput == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Function_FindOutput = (PLib3MFFunction_FindOutputPtr) GetProcAddress(hLibrary, "lib3mf_function_findoutput"); + #else // _WIN32 + pWrapperTable->m_Function_FindOutput = (PLib3MFFunction_FindOutputPtr) dlsym(hLibrary, "lib3mf_function_findoutput"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Function_FindOutput == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_GetIdentifier = (PLib3MFImplicitFunction_GetIdentifierPtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_getidentifier"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_GetIdentifier = (PLib3MFImplicitFunction_GetIdentifierPtr) dlsym(hLibrary, "lib3mf_implicitfunction_getidentifier"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_GetIdentifier == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_SetIdentifier = (PLib3MFImplicitFunction_SetIdentifierPtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_setidentifier"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_SetIdentifier = (PLib3MFImplicitFunction_SetIdentifierPtr) dlsym(hLibrary, "lib3mf_implicitfunction_setidentifier"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_SetIdentifier == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddNode = (PLib3MFImplicitFunction_AddNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddNode = (PLib3MFImplicitFunction_AddNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddSinNode = (PLib3MFImplicitFunction_AddSinNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addsinnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddSinNode = (PLib3MFImplicitFunction_AddSinNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addsinnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddSinNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddCosNode = (PLib3MFImplicitFunction_AddCosNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addcosnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddCosNode = (PLib3MFImplicitFunction_AddCosNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addcosnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddCosNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddTanNode = (PLib3MFImplicitFunction_AddTanNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addtannode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddTanNode = (PLib3MFImplicitFunction_AddTanNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addtannode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddTanNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddArcSinNode = (PLib3MFImplicitFunction_AddArcSinNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addarcsinnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddArcSinNode = (PLib3MFImplicitFunction_AddArcSinNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addarcsinnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddArcSinNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddArcCosNode = (PLib3MFImplicitFunction_AddArcCosNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addarccosnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddArcCosNode = (PLib3MFImplicitFunction_AddArcCosNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addarccosnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddArcCosNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddArcTan2Node = (PLib3MFImplicitFunction_AddArcTan2NodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addarctan2node"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddArcTan2Node = (PLib3MFImplicitFunction_AddArcTan2NodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addarctan2node"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddArcTan2Node == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddSinhNode = (PLib3MFImplicitFunction_AddSinhNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addsinhnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddSinhNode = (PLib3MFImplicitFunction_AddSinhNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addsinhnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddSinhNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddCoshNode = (PLib3MFImplicitFunction_AddCoshNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addcoshnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddCoshNode = (PLib3MFImplicitFunction_AddCoshNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addcoshnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddCoshNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddTanhNode = (PLib3MFImplicitFunction_AddTanhNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addtanhnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddTanhNode = (PLib3MFImplicitFunction_AddTanhNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addtanhnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddTanhNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddRoundNode = (PLib3MFImplicitFunction_AddRoundNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addroundnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddRoundNode = (PLib3MFImplicitFunction_AddRoundNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addroundnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddRoundNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddCeilNode = (PLib3MFImplicitFunction_AddCeilNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addceilnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddCeilNode = (PLib3MFImplicitFunction_AddCeilNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addceilnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddCeilNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddFloorNode = (PLib3MFImplicitFunction_AddFloorNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addfloornode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddFloorNode = (PLib3MFImplicitFunction_AddFloorNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addfloornode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddFloorNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddSignNode = (PLib3MFImplicitFunction_AddSignNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addsignnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddSignNode = (PLib3MFImplicitFunction_AddSignNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addsignnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddSignNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddFractNode = (PLib3MFImplicitFunction_AddFractNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addfractnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddFractNode = (PLib3MFImplicitFunction_AddFractNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addfractnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddFractNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddAbsNode = (PLib3MFImplicitFunction_AddAbsNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addabsnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddAbsNode = (PLib3MFImplicitFunction_AddAbsNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addabsnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddAbsNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddExpNode = (PLib3MFImplicitFunction_AddExpNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addexpnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddExpNode = (PLib3MFImplicitFunction_AddExpNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addexpnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddExpNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddLogNode = (PLib3MFImplicitFunction_AddLogNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addlognode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddLogNode = (PLib3MFImplicitFunction_AddLogNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addlognode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddLogNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddLog2Node = (PLib3MFImplicitFunction_AddLog2NodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addlog2node"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddLog2Node = (PLib3MFImplicitFunction_AddLog2NodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addlog2node"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddLog2Node == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddLog10Node = (PLib3MFImplicitFunction_AddLog10NodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addlog10node"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddLog10Node = (PLib3MFImplicitFunction_AddLog10NodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addlog10node"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddLog10Node == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddLengthNode = (PLib3MFImplicitFunction_AddLengthNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addlengthnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddLengthNode = (PLib3MFImplicitFunction_AddLengthNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addlengthnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddLengthNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddTransposeNode = (PLib3MFImplicitFunction_AddTransposeNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addtransposenode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddTransposeNode = (PLib3MFImplicitFunction_AddTransposeNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addtransposenode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddTransposeNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddInverseNode = (PLib3MFImplicitFunction_AddInverseNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addinversenode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddInverseNode = (PLib3MFImplicitFunction_AddInverseNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addinversenode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddInverseNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddSqrtNode = (PLib3MFImplicitFunction_AddSqrtNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addsqrtnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddSqrtNode = (PLib3MFImplicitFunction_AddSqrtNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addsqrtnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddSqrtNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddResourceIdNode = (PLib3MFImplicitFunction_AddResourceIdNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addresourceidnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddResourceIdNode = (PLib3MFImplicitFunction_AddResourceIdNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addresourceidnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddResourceIdNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddAdditionNode = (PLib3MFImplicitFunction_AddAdditionNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addadditionnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddAdditionNode = (PLib3MFImplicitFunction_AddAdditionNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addadditionnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddAdditionNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddSubtractionNode = (PLib3MFImplicitFunction_AddSubtractionNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addsubtractionnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddSubtractionNode = (PLib3MFImplicitFunction_AddSubtractionNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addsubtractionnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddSubtractionNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddMultiplicationNode = (PLib3MFImplicitFunction_AddMultiplicationNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addmultiplicationnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddMultiplicationNode = (PLib3MFImplicitFunction_AddMultiplicationNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addmultiplicationnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddMultiplicationNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddDivisionNode = (PLib3MFImplicitFunction_AddDivisionNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_adddivisionnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddDivisionNode = (PLib3MFImplicitFunction_AddDivisionNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_adddivisionnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddDivisionNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddDotNode = (PLib3MFImplicitFunction_AddDotNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_adddotnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddDotNode = (PLib3MFImplicitFunction_AddDotNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_adddotnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddDotNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddCrossNode = (PLib3MFImplicitFunction_AddCrossNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addcrossnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddCrossNode = (PLib3MFImplicitFunction_AddCrossNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addcrossnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddCrossNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddMatVecMultiplicationNode = (PLib3MFImplicitFunction_AddMatVecMultiplicationNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addmatvecmultiplicationnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddMatVecMultiplicationNode = (PLib3MFImplicitFunction_AddMatVecMultiplicationNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addmatvecmultiplicationnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddMatVecMultiplicationNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddMinNode = (PLib3MFImplicitFunction_AddMinNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addminnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddMinNode = (PLib3MFImplicitFunction_AddMinNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addminnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddMinNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddMaxNode = (PLib3MFImplicitFunction_AddMaxNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addmaxnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddMaxNode = (PLib3MFImplicitFunction_AddMaxNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addmaxnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddMaxNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddFmodNode = (PLib3MFImplicitFunction_AddFmodNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addfmodnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddFmodNode = (PLib3MFImplicitFunction_AddFmodNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addfmodnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddFmodNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddPowNode = (PLib3MFImplicitFunction_AddPowNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addpownode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddPowNode = (PLib3MFImplicitFunction_AddPowNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addpownode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddPowNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddSelectNode = (PLib3MFImplicitFunction_AddSelectNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addselectnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddSelectNode = (PLib3MFImplicitFunction_AddSelectNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addselectnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddSelectNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddClampNode = (PLib3MFImplicitFunction_AddClampNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addclampnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddClampNode = (PLib3MFImplicitFunction_AddClampNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addclampnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddClampNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddComposeVectorNode = (PLib3MFImplicitFunction_AddComposeVectorNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addcomposevectornode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddComposeVectorNode = (PLib3MFImplicitFunction_AddComposeVectorNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addcomposevectornode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddComposeVectorNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddVectorFromScalarNode = (PLib3MFImplicitFunction_AddVectorFromScalarNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addvectorfromscalarnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddVectorFromScalarNode = (PLib3MFImplicitFunction_AddVectorFromScalarNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addvectorfromscalarnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddVectorFromScalarNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddDecomposeVectorNode = (PLib3MFImplicitFunction_AddDecomposeVectorNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_adddecomposevectornode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddDecomposeVectorNode = (PLib3MFImplicitFunction_AddDecomposeVectorNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_adddecomposevectornode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddDecomposeVectorNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddComposeMatrixNode = (PLib3MFImplicitFunction_AddComposeMatrixNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addcomposematrixnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddComposeMatrixNode = (PLib3MFImplicitFunction_AddComposeMatrixNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addcomposematrixnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddComposeMatrixNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddMatrixFromRowsNode = (PLib3MFImplicitFunction_AddMatrixFromRowsNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addmatrixfromrowsnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddMatrixFromRowsNode = (PLib3MFImplicitFunction_AddMatrixFromRowsNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addmatrixfromrowsnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddMatrixFromRowsNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddMatrixFromColumnsNode = (PLib3MFImplicitFunction_AddMatrixFromColumnsNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addmatrixfromcolumnsnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddMatrixFromColumnsNode = (PLib3MFImplicitFunction_AddMatrixFromColumnsNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addmatrixfromcolumnsnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddMatrixFromColumnsNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddConstantNode = (PLib3MFImplicitFunction_AddConstantNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addconstantnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddConstantNode = (PLib3MFImplicitFunction_AddConstantNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addconstantnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddConstantNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddConstVecNode = (PLib3MFImplicitFunction_AddConstVecNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addconstvecnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddConstVecNode = (PLib3MFImplicitFunction_AddConstVecNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addconstvecnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddConstVecNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddConstMatNode = (PLib3MFImplicitFunction_AddConstMatNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addconstmatnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddConstMatNode = (PLib3MFImplicitFunction_AddConstMatNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addconstmatnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddConstMatNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddMeshNode = (PLib3MFImplicitFunction_AddMeshNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addmeshnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddMeshNode = (PLib3MFImplicitFunction_AddMeshNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addmeshnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddMeshNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddUnsignedMeshNode = (PLib3MFImplicitFunction_AddUnsignedMeshNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addunsignedmeshnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddUnsignedMeshNode = (PLib3MFImplicitFunction_AddUnsignedMeshNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addunsignedmeshnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddUnsignedMeshNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddFunctionCallNode = (PLib3MFImplicitFunction_AddFunctionCallNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addfunctioncallnode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddFunctionCallNode = (PLib3MFImplicitFunction_AddFunctionCallNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_addfunctioncallnode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddFunctionCallNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_GetNodes = (PLib3MFImplicitFunction_GetNodesPtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_getnodes"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_GetNodes = (PLib3MFImplicitFunction_GetNodesPtr) dlsym(hLibrary, "lib3mf_implicitfunction_getnodes"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_GetNodes == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_RemoveNode = (PLib3MFImplicitFunction_RemoveNodePtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_removenode"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_RemoveNode = (PLib3MFImplicitFunction_RemoveNodePtr) dlsym(hLibrary, "lib3mf_implicitfunction_removenode"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_RemoveNode == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddLink = (PLib3MFImplicitFunction_AddLinkPtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addlink"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddLink = (PLib3MFImplicitFunction_AddLinkPtr) dlsym(hLibrary, "lib3mf_implicitfunction_addlink"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddLink == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_AddLinkByNames = (PLib3MFImplicitFunction_AddLinkByNamesPtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_addlinkbynames"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_AddLinkByNames = (PLib3MFImplicitFunction_AddLinkByNamesPtr) dlsym(hLibrary, "lib3mf_implicitfunction_addlinkbynames"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_AddLinkByNames == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_Clear = (PLib3MFImplicitFunction_ClearPtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_clear"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_Clear = (PLib3MFImplicitFunction_ClearPtr) dlsym(hLibrary, "lib3mf_implicitfunction_clear"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_Clear == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ImplicitFunction_SortNodesTopologically = (PLib3MFImplicitFunction_SortNodesTopologicallyPtr) GetProcAddress(hLibrary, "lib3mf_implicitfunction_sortnodestopologically"); + #else // _WIN32 + pWrapperTable->m_ImplicitFunction_SortNodesTopologically = (PLib3MFImplicitFunction_SortNodesTopologicallyPtr) dlsym(hLibrary, "lib3mf_implicitfunction_sortnodestopologically"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ImplicitFunction_SortNodesTopologically == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionFromImage3D_GetImage3D = (PLib3MFFunctionFromImage3D_GetImage3DPtr) GetProcAddress(hLibrary, "lib3mf_functionfromimage3d_getimage3d"); + #else // _WIN32 + pWrapperTable->m_FunctionFromImage3D_GetImage3D = (PLib3MFFunctionFromImage3D_GetImage3DPtr) dlsym(hLibrary, "lib3mf_functionfromimage3d_getimage3d"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionFromImage3D_GetImage3D == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionFromImage3D_SetImage3D = (PLib3MFFunctionFromImage3D_SetImage3DPtr) GetProcAddress(hLibrary, "lib3mf_functionfromimage3d_setimage3d"); + #else // _WIN32 + pWrapperTable->m_FunctionFromImage3D_SetImage3D = (PLib3MFFunctionFromImage3D_SetImage3DPtr) dlsym(hLibrary, "lib3mf_functionfromimage3d_setimage3d"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionFromImage3D_SetImage3D == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionFromImage3D_SetFilter = (PLib3MFFunctionFromImage3D_SetFilterPtr) GetProcAddress(hLibrary, "lib3mf_functionfromimage3d_setfilter"); + #else // _WIN32 + pWrapperTable->m_FunctionFromImage3D_SetFilter = (PLib3MFFunctionFromImage3D_SetFilterPtr) dlsym(hLibrary, "lib3mf_functionfromimage3d_setfilter"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionFromImage3D_SetFilter == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionFromImage3D_GetFilter = (PLib3MFFunctionFromImage3D_GetFilterPtr) GetProcAddress(hLibrary, "lib3mf_functionfromimage3d_getfilter"); + #else // _WIN32 + pWrapperTable->m_FunctionFromImage3D_GetFilter = (PLib3MFFunctionFromImage3D_GetFilterPtr) dlsym(hLibrary, "lib3mf_functionfromimage3d_getfilter"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionFromImage3D_GetFilter == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionFromImage3D_SetTileStyles = (PLib3MFFunctionFromImage3D_SetTileStylesPtr) GetProcAddress(hLibrary, "lib3mf_functionfromimage3d_settilestyles"); + #else // _WIN32 + pWrapperTable->m_FunctionFromImage3D_SetTileStyles = (PLib3MFFunctionFromImage3D_SetTileStylesPtr) dlsym(hLibrary, "lib3mf_functionfromimage3d_settilestyles"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionFromImage3D_SetTileStyles == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionFromImage3D_GetTileStyles = (PLib3MFFunctionFromImage3D_GetTileStylesPtr) GetProcAddress(hLibrary, "lib3mf_functionfromimage3d_gettilestyles"); + #else // _WIN32 + pWrapperTable->m_FunctionFromImage3D_GetTileStyles = (PLib3MFFunctionFromImage3D_GetTileStylesPtr) dlsym(hLibrary, "lib3mf_functionfromimage3d_gettilestyles"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionFromImage3D_GetTileStyles == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionFromImage3D_GetOffset = (PLib3MFFunctionFromImage3D_GetOffsetPtr) GetProcAddress(hLibrary, "lib3mf_functionfromimage3d_getoffset"); + #else // _WIN32 + pWrapperTable->m_FunctionFromImage3D_GetOffset = (PLib3MFFunctionFromImage3D_GetOffsetPtr) dlsym(hLibrary, "lib3mf_functionfromimage3d_getoffset"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionFromImage3D_GetOffset == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionFromImage3D_SetOffset = (PLib3MFFunctionFromImage3D_SetOffsetPtr) GetProcAddress(hLibrary, "lib3mf_functionfromimage3d_setoffset"); + #else // _WIN32 + pWrapperTable->m_FunctionFromImage3D_SetOffset = (PLib3MFFunctionFromImage3D_SetOffsetPtr) dlsym(hLibrary, "lib3mf_functionfromimage3d_setoffset"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionFromImage3D_SetOffset == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionFromImage3D_GetScale = (PLib3MFFunctionFromImage3D_GetScalePtr) GetProcAddress(hLibrary, "lib3mf_functionfromimage3d_getscale"); + #else // _WIN32 + pWrapperTable->m_FunctionFromImage3D_GetScale = (PLib3MFFunctionFromImage3D_GetScalePtr) dlsym(hLibrary, "lib3mf_functionfromimage3d_getscale"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionFromImage3D_GetScale == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FunctionFromImage3D_SetScale = (PLib3MFFunctionFromImage3D_SetScalePtr) GetProcAddress(hLibrary, "lib3mf_functionfromimage3d_setscale"); + #else // _WIN32 + pWrapperTable->m_FunctionFromImage3D_SetScale = (PLib3MFFunctionFromImage3D_SetScalePtr) dlsym(hLibrary, "lib3mf_functionfromimage3d_setscale"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FunctionFromImage3D_SetScale == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BuildItem_GetObjectResource = (PLib3MFBuildItem_GetObjectResourcePtr) GetProcAddress(hLibrary, "lib3mf_builditem_getobjectresource"); + #else // _WIN32 + pWrapperTable->m_BuildItem_GetObjectResource = (PLib3MFBuildItem_GetObjectResourcePtr) dlsym(hLibrary, "lib3mf_builditem_getobjectresource"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BuildItem_GetObjectResource == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BuildItem_GetUUID = (PLib3MFBuildItem_GetUUIDPtr) GetProcAddress(hLibrary, "lib3mf_builditem_getuuid"); + #else // _WIN32 + pWrapperTable->m_BuildItem_GetUUID = (PLib3MFBuildItem_GetUUIDPtr) dlsym(hLibrary, "lib3mf_builditem_getuuid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BuildItem_GetUUID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BuildItem_SetUUID = (PLib3MFBuildItem_SetUUIDPtr) GetProcAddress(hLibrary, "lib3mf_builditem_setuuid"); + #else // _WIN32 + pWrapperTable->m_BuildItem_SetUUID = (PLib3MFBuildItem_SetUUIDPtr) dlsym(hLibrary, "lib3mf_builditem_setuuid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BuildItem_SetUUID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BuildItem_GetObjectResourceID = (PLib3MFBuildItem_GetObjectResourceIDPtr) GetProcAddress(hLibrary, "lib3mf_builditem_getobjectresourceid"); + #else // _WIN32 + pWrapperTable->m_BuildItem_GetObjectResourceID = (PLib3MFBuildItem_GetObjectResourceIDPtr) dlsym(hLibrary, "lib3mf_builditem_getobjectresourceid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BuildItem_GetObjectResourceID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BuildItem_HasObjectTransform = (PLib3MFBuildItem_HasObjectTransformPtr) GetProcAddress(hLibrary, "lib3mf_builditem_hasobjecttransform"); + #else // _WIN32 + pWrapperTable->m_BuildItem_HasObjectTransform = (PLib3MFBuildItem_HasObjectTransformPtr) dlsym(hLibrary, "lib3mf_builditem_hasobjecttransform"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BuildItem_HasObjectTransform == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BuildItem_GetObjectTransform = (PLib3MFBuildItem_GetObjectTransformPtr) GetProcAddress(hLibrary, "lib3mf_builditem_getobjecttransform"); + #else // _WIN32 + pWrapperTable->m_BuildItem_GetObjectTransform = (PLib3MFBuildItem_GetObjectTransformPtr) dlsym(hLibrary, "lib3mf_builditem_getobjecttransform"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BuildItem_GetObjectTransform == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BuildItem_SetObjectTransform = (PLib3MFBuildItem_SetObjectTransformPtr) GetProcAddress(hLibrary, "lib3mf_builditem_setobjecttransform"); + #else // _WIN32 + pWrapperTable->m_BuildItem_SetObjectTransform = (PLib3MFBuildItem_SetObjectTransformPtr) dlsym(hLibrary, "lib3mf_builditem_setobjecttransform"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BuildItem_SetObjectTransform == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BuildItem_GetPartNumber = (PLib3MFBuildItem_GetPartNumberPtr) GetProcAddress(hLibrary, "lib3mf_builditem_getpartnumber"); + #else // _WIN32 + pWrapperTable->m_BuildItem_GetPartNumber = (PLib3MFBuildItem_GetPartNumberPtr) dlsym(hLibrary, "lib3mf_builditem_getpartnumber"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BuildItem_GetPartNumber == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BuildItem_SetPartNumber = (PLib3MFBuildItem_SetPartNumberPtr) GetProcAddress(hLibrary, "lib3mf_builditem_setpartnumber"); + #else // _WIN32 + pWrapperTable->m_BuildItem_SetPartNumber = (PLib3MFBuildItem_SetPartNumberPtr) dlsym(hLibrary, "lib3mf_builditem_setpartnumber"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BuildItem_SetPartNumber == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BuildItem_GetMetaDataGroup = (PLib3MFBuildItem_GetMetaDataGroupPtr) GetProcAddress(hLibrary, "lib3mf_builditem_getmetadatagroup"); + #else // _WIN32 + pWrapperTable->m_BuildItem_GetMetaDataGroup = (PLib3MFBuildItem_GetMetaDataGroupPtr) dlsym(hLibrary, "lib3mf_builditem_getmetadatagroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BuildItem_GetMetaDataGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BuildItem_GetOutbox = (PLib3MFBuildItem_GetOutboxPtr) GetProcAddress(hLibrary, "lib3mf_builditem_getoutbox"); + #else // _WIN32 + pWrapperTable->m_BuildItem_GetOutbox = (PLib3MFBuildItem_GetOutboxPtr) dlsym(hLibrary, "lib3mf_builditem_getoutbox"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BuildItem_GetOutbox == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BuildItemIterator_MoveNext = (PLib3MFBuildItemIterator_MoveNextPtr) GetProcAddress(hLibrary, "lib3mf_builditemiterator_movenext"); + #else // _WIN32 + pWrapperTable->m_BuildItemIterator_MoveNext = (PLib3MFBuildItemIterator_MoveNextPtr) dlsym(hLibrary, "lib3mf_builditemiterator_movenext"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BuildItemIterator_MoveNext == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BuildItemIterator_MovePrevious = (PLib3MFBuildItemIterator_MovePreviousPtr) GetProcAddress(hLibrary, "lib3mf_builditemiterator_moveprevious"); + #else // _WIN32 + pWrapperTable->m_BuildItemIterator_MovePrevious = (PLib3MFBuildItemIterator_MovePreviousPtr) dlsym(hLibrary, "lib3mf_builditemiterator_moveprevious"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BuildItemIterator_MovePrevious == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BuildItemIterator_GetCurrent = (PLib3MFBuildItemIterator_GetCurrentPtr) GetProcAddress(hLibrary, "lib3mf_builditemiterator_getcurrent"); + #else // _WIN32 + pWrapperTable->m_BuildItemIterator_GetCurrent = (PLib3MFBuildItemIterator_GetCurrentPtr) dlsym(hLibrary, "lib3mf_builditemiterator_getcurrent"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BuildItemIterator_GetCurrent == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BuildItemIterator_Clone = (PLib3MFBuildItemIterator_ClonePtr) GetProcAddress(hLibrary, "lib3mf_builditemiterator_clone"); + #else // _WIN32 + pWrapperTable->m_BuildItemIterator_Clone = (PLib3MFBuildItemIterator_ClonePtr) dlsym(hLibrary, "lib3mf_builditemiterator_clone"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BuildItemIterator_Clone == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_BuildItemIterator_Count = (PLib3MFBuildItemIterator_CountPtr) GetProcAddress(hLibrary, "lib3mf_builditemiterator_count"); + #else // _WIN32 + pWrapperTable->m_BuildItemIterator_Count = (PLib3MFBuildItemIterator_CountPtr) dlsym(hLibrary, "lib3mf_builditemiterator_count"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_BuildItemIterator_Count == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Slice_SetVertices = (PLib3MFSlice_SetVerticesPtr) GetProcAddress(hLibrary, "lib3mf_slice_setvertices"); + #else // _WIN32 + pWrapperTable->m_Slice_SetVertices = (PLib3MFSlice_SetVerticesPtr) dlsym(hLibrary, "lib3mf_slice_setvertices"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Slice_SetVertices == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Slice_GetVertices = (PLib3MFSlice_GetVerticesPtr) GetProcAddress(hLibrary, "lib3mf_slice_getvertices"); + #else // _WIN32 + pWrapperTable->m_Slice_GetVertices = (PLib3MFSlice_GetVerticesPtr) dlsym(hLibrary, "lib3mf_slice_getvertices"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Slice_GetVertices == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Slice_GetVertexCount = (PLib3MFSlice_GetVertexCountPtr) GetProcAddress(hLibrary, "lib3mf_slice_getvertexcount"); + #else // _WIN32 + pWrapperTable->m_Slice_GetVertexCount = (PLib3MFSlice_GetVertexCountPtr) dlsym(hLibrary, "lib3mf_slice_getvertexcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Slice_GetVertexCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Slice_AddPolygon = (PLib3MFSlice_AddPolygonPtr) GetProcAddress(hLibrary, "lib3mf_slice_addpolygon"); + #else // _WIN32 + pWrapperTable->m_Slice_AddPolygon = (PLib3MFSlice_AddPolygonPtr) dlsym(hLibrary, "lib3mf_slice_addpolygon"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Slice_AddPolygon == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Slice_GetPolygonCount = (PLib3MFSlice_GetPolygonCountPtr) GetProcAddress(hLibrary, "lib3mf_slice_getpolygoncount"); + #else // _WIN32 + pWrapperTable->m_Slice_GetPolygonCount = (PLib3MFSlice_GetPolygonCountPtr) dlsym(hLibrary, "lib3mf_slice_getpolygoncount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Slice_GetPolygonCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Slice_SetPolygonIndices = (PLib3MFSlice_SetPolygonIndicesPtr) GetProcAddress(hLibrary, "lib3mf_slice_setpolygonindices"); + #else // _WIN32 + pWrapperTable->m_Slice_SetPolygonIndices = (PLib3MFSlice_SetPolygonIndicesPtr) dlsym(hLibrary, "lib3mf_slice_setpolygonindices"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Slice_SetPolygonIndices == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Slice_GetPolygonIndices = (PLib3MFSlice_GetPolygonIndicesPtr) GetProcAddress(hLibrary, "lib3mf_slice_getpolygonindices"); + #else // _WIN32 + pWrapperTable->m_Slice_GetPolygonIndices = (PLib3MFSlice_GetPolygonIndicesPtr) dlsym(hLibrary, "lib3mf_slice_getpolygonindices"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Slice_GetPolygonIndices == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Slice_GetPolygonIndexCount = (PLib3MFSlice_GetPolygonIndexCountPtr) GetProcAddress(hLibrary, "lib3mf_slice_getpolygonindexcount"); + #else // _WIN32 + pWrapperTable->m_Slice_GetPolygonIndexCount = (PLib3MFSlice_GetPolygonIndexCountPtr) dlsym(hLibrary, "lib3mf_slice_getpolygonindexcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Slice_GetPolygonIndexCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Slice_GetZTop = (PLib3MFSlice_GetZTopPtr) GetProcAddress(hLibrary, "lib3mf_slice_getztop"); + #else // _WIN32 + pWrapperTable->m_Slice_GetZTop = (PLib3MFSlice_GetZTopPtr) dlsym(hLibrary, "lib3mf_slice_getztop"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Slice_GetZTop == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_SliceStack_GetBottomZ = (PLib3MFSliceStack_GetBottomZPtr) GetProcAddress(hLibrary, "lib3mf_slicestack_getbottomz"); + #else // _WIN32 + pWrapperTable->m_SliceStack_GetBottomZ = (PLib3MFSliceStack_GetBottomZPtr) dlsym(hLibrary, "lib3mf_slicestack_getbottomz"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_SliceStack_GetBottomZ == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_SliceStack_GetSliceCount = (PLib3MFSliceStack_GetSliceCountPtr) GetProcAddress(hLibrary, "lib3mf_slicestack_getslicecount"); + #else // _WIN32 + pWrapperTable->m_SliceStack_GetSliceCount = (PLib3MFSliceStack_GetSliceCountPtr) dlsym(hLibrary, "lib3mf_slicestack_getslicecount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_SliceStack_GetSliceCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_SliceStack_GetSlice = (PLib3MFSliceStack_GetSlicePtr) GetProcAddress(hLibrary, "lib3mf_slicestack_getslice"); + #else // _WIN32 + pWrapperTable->m_SliceStack_GetSlice = (PLib3MFSliceStack_GetSlicePtr) dlsym(hLibrary, "lib3mf_slicestack_getslice"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_SliceStack_GetSlice == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_SliceStack_AddSlice = (PLib3MFSliceStack_AddSlicePtr) GetProcAddress(hLibrary, "lib3mf_slicestack_addslice"); + #else // _WIN32 + pWrapperTable->m_SliceStack_AddSlice = (PLib3MFSliceStack_AddSlicePtr) dlsym(hLibrary, "lib3mf_slicestack_addslice"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_SliceStack_AddSlice == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_SliceStack_GetSliceRefCount = (PLib3MFSliceStack_GetSliceRefCountPtr) GetProcAddress(hLibrary, "lib3mf_slicestack_getslicerefcount"); + #else // _WIN32 + pWrapperTable->m_SliceStack_GetSliceRefCount = (PLib3MFSliceStack_GetSliceRefCountPtr) dlsym(hLibrary, "lib3mf_slicestack_getslicerefcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_SliceStack_GetSliceRefCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_SliceStack_AddSliceStackReference = (PLib3MFSliceStack_AddSliceStackReferencePtr) GetProcAddress(hLibrary, "lib3mf_slicestack_addslicestackreference"); + #else // _WIN32 + pWrapperTable->m_SliceStack_AddSliceStackReference = (PLib3MFSliceStack_AddSliceStackReferencePtr) dlsym(hLibrary, "lib3mf_slicestack_addslicestackreference"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_SliceStack_AddSliceStackReference == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_SliceStack_GetSliceStackReference = (PLib3MFSliceStack_GetSliceStackReferencePtr) GetProcAddress(hLibrary, "lib3mf_slicestack_getslicestackreference"); + #else // _WIN32 + pWrapperTable->m_SliceStack_GetSliceStackReference = (PLib3MFSliceStack_GetSliceStackReferencePtr) dlsym(hLibrary, "lib3mf_slicestack_getslicestackreference"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_SliceStack_GetSliceStackReference == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_SliceStack_CollapseSliceReferences = (PLib3MFSliceStack_CollapseSliceReferencesPtr) GetProcAddress(hLibrary, "lib3mf_slicestack_collapseslicereferences"); + #else // _WIN32 + pWrapperTable->m_SliceStack_CollapseSliceReferences = (PLib3MFSliceStack_CollapseSliceReferencesPtr) dlsym(hLibrary, "lib3mf_slicestack_collapseslicereferences"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_SliceStack_CollapseSliceReferences == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_SliceStack_SetOwnPath = (PLib3MFSliceStack_SetOwnPathPtr) GetProcAddress(hLibrary, "lib3mf_slicestack_setownpath"); + #else // _WIN32 + pWrapperTable->m_SliceStack_SetOwnPath = (PLib3MFSliceStack_SetOwnPathPtr) dlsym(hLibrary, "lib3mf_slicestack_setownpath"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_SliceStack_SetOwnPath == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_SliceStack_GetOwnPath = (PLib3MFSliceStack_GetOwnPathPtr) GetProcAddress(hLibrary, "lib3mf_slicestack_getownpath"); + #else // _WIN32 + pWrapperTable->m_SliceStack_GetOwnPath = (PLib3MFSliceStack_GetOwnPathPtr) dlsym(hLibrary, "lib3mf_slicestack_getownpath"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_SliceStack_GetOwnPath == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Consumer_GetConsumerID = (PLib3MFConsumer_GetConsumerIDPtr) GetProcAddress(hLibrary, "lib3mf_consumer_getconsumerid"); + #else // _WIN32 + pWrapperTable->m_Consumer_GetConsumerID = (PLib3MFConsumer_GetConsumerIDPtr) dlsym(hLibrary, "lib3mf_consumer_getconsumerid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Consumer_GetConsumerID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Consumer_GetKeyID = (PLib3MFConsumer_GetKeyIDPtr) GetProcAddress(hLibrary, "lib3mf_consumer_getkeyid"); + #else // _WIN32 + pWrapperTable->m_Consumer_GetKeyID = (PLib3MFConsumer_GetKeyIDPtr) dlsym(hLibrary, "lib3mf_consumer_getkeyid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Consumer_GetKeyID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Consumer_GetKeyValue = (PLib3MFConsumer_GetKeyValuePtr) GetProcAddress(hLibrary, "lib3mf_consumer_getkeyvalue"); + #else // _WIN32 + pWrapperTable->m_Consumer_GetKeyValue = (PLib3MFConsumer_GetKeyValuePtr) dlsym(hLibrary, "lib3mf_consumer_getkeyvalue"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Consumer_GetKeyValue == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_AccessRight_GetConsumer = (PLib3MFAccessRight_GetConsumerPtr) GetProcAddress(hLibrary, "lib3mf_accessright_getconsumer"); + #else // _WIN32 + pWrapperTable->m_AccessRight_GetConsumer = (PLib3MFAccessRight_GetConsumerPtr) dlsym(hLibrary, "lib3mf_accessright_getconsumer"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_AccessRight_GetConsumer == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_AccessRight_GetWrappingAlgorithm = (PLib3MFAccessRight_GetWrappingAlgorithmPtr) GetProcAddress(hLibrary, "lib3mf_accessright_getwrappingalgorithm"); + #else // _WIN32 + pWrapperTable->m_AccessRight_GetWrappingAlgorithm = (PLib3MFAccessRight_GetWrappingAlgorithmPtr) dlsym(hLibrary, "lib3mf_accessright_getwrappingalgorithm"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_AccessRight_GetWrappingAlgorithm == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_AccessRight_GetMgfAlgorithm = (PLib3MFAccessRight_GetMgfAlgorithmPtr) GetProcAddress(hLibrary, "lib3mf_accessright_getmgfalgorithm"); + #else // _WIN32 + pWrapperTable->m_AccessRight_GetMgfAlgorithm = (PLib3MFAccessRight_GetMgfAlgorithmPtr) dlsym(hLibrary, "lib3mf_accessright_getmgfalgorithm"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_AccessRight_GetMgfAlgorithm == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_AccessRight_GetDigestMethod = (PLib3MFAccessRight_GetDigestMethodPtr) GetProcAddress(hLibrary, "lib3mf_accessright_getdigestmethod"); + #else // _WIN32 + pWrapperTable->m_AccessRight_GetDigestMethod = (PLib3MFAccessRight_GetDigestMethodPtr) dlsym(hLibrary, "lib3mf_accessright_getdigestmethod"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_AccessRight_GetDigestMethod == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ContentEncryptionParams_GetEncryptionAlgorithm = (PLib3MFContentEncryptionParams_GetEncryptionAlgorithmPtr) GetProcAddress(hLibrary, "lib3mf_contentencryptionparams_getencryptionalgorithm"); + #else // _WIN32 + pWrapperTable->m_ContentEncryptionParams_GetEncryptionAlgorithm = (PLib3MFContentEncryptionParams_GetEncryptionAlgorithmPtr) dlsym(hLibrary, "lib3mf_contentencryptionparams_getencryptionalgorithm"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ContentEncryptionParams_GetEncryptionAlgorithm == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ContentEncryptionParams_GetKey = (PLib3MFContentEncryptionParams_GetKeyPtr) GetProcAddress(hLibrary, "lib3mf_contentencryptionparams_getkey"); + #else // _WIN32 + pWrapperTable->m_ContentEncryptionParams_GetKey = (PLib3MFContentEncryptionParams_GetKeyPtr) dlsym(hLibrary, "lib3mf_contentencryptionparams_getkey"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ContentEncryptionParams_GetKey == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ContentEncryptionParams_GetInitializationVector = (PLib3MFContentEncryptionParams_GetInitializationVectorPtr) GetProcAddress(hLibrary, "lib3mf_contentencryptionparams_getinitializationvector"); + #else // _WIN32 + pWrapperTable->m_ContentEncryptionParams_GetInitializationVector = (PLib3MFContentEncryptionParams_GetInitializationVectorPtr) dlsym(hLibrary, "lib3mf_contentencryptionparams_getinitializationvector"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ContentEncryptionParams_GetInitializationVector == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ContentEncryptionParams_GetAuthenticationTag = (PLib3MFContentEncryptionParams_GetAuthenticationTagPtr) GetProcAddress(hLibrary, "lib3mf_contentencryptionparams_getauthenticationtag"); + #else // _WIN32 + pWrapperTable->m_ContentEncryptionParams_GetAuthenticationTag = (PLib3MFContentEncryptionParams_GetAuthenticationTagPtr) dlsym(hLibrary, "lib3mf_contentencryptionparams_getauthenticationtag"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ContentEncryptionParams_GetAuthenticationTag == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ContentEncryptionParams_SetAuthenticationTag = (PLib3MFContentEncryptionParams_SetAuthenticationTagPtr) GetProcAddress(hLibrary, "lib3mf_contentencryptionparams_setauthenticationtag"); + #else // _WIN32 + pWrapperTable->m_ContentEncryptionParams_SetAuthenticationTag = (PLib3MFContentEncryptionParams_SetAuthenticationTagPtr) dlsym(hLibrary, "lib3mf_contentencryptionparams_setauthenticationtag"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ContentEncryptionParams_SetAuthenticationTag == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ContentEncryptionParams_GetAdditionalAuthenticationData = (PLib3MFContentEncryptionParams_GetAdditionalAuthenticationDataPtr) GetProcAddress(hLibrary, "lib3mf_contentencryptionparams_getadditionalauthenticationdata"); + #else // _WIN32 + pWrapperTable->m_ContentEncryptionParams_GetAdditionalAuthenticationData = (PLib3MFContentEncryptionParams_GetAdditionalAuthenticationDataPtr) dlsym(hLibrary, "lib3mf_contentencryptionparams_getadditionalauthenticationdata"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ContentEncryptionParams_GetAdditionalAuthenticationData == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ContentEncryptionParams_GetDescriptor = (PLib3MFContentEncryptionParams_GetDescriptorPtr) GetProcAddress(hLibrary, "lib3mf_contentencryptionparams_getdescriptor"); + #else // _WIN32 + pWrapperTable->m_ContentEncryptionParams_GetDescriptor = (PLib3MFContentEncryptionParams_GetDescriptorPtr) dlsym(hLibrary, "lib3mf_contentencryptionparams_getdescriptor"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ContentEncryptionParams_GetDescriptor == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ContentEncryptionParams_GetKeyUUID = (PLib3MFContentEncryptionParams_GetKeyUUIDPtr) GetProcAddress(hLibrary, "lib3mf_contentencryptionparams_getkeyuuid"); + #else // _WIN32 + pWrapperTable->m_ContentEncryptionParams_GetKeyUUID = (PLib3MFContentEncryptionParams_GetKeyUUIDPtr) dlsym(hLibrary, "lib3mf_contentencryptionparams_getkeyuuid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ContentEncryptionParams_GetKeyUUID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ResourceData_GetPath = (PLib3MFResourceData_GetPathPtr) GetProcAddress(hLibrary, "lib3mf_resourcedata_getpath"); + #else // _WIN32 + pWrapperTable->m_ResourceData_GetPath = (PLib3MFResourceData_GetPathPtr) dlsym(hLibrary, "lib3mf_resourcedata_getpath"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ResourceData_GetPath == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ResourceData_GetEncryptionAlgorithm = (PLib3MFResourceData_GetEncryptionAlgorithmPtr) GetProcAddress(hLibrary, "lib3mf_resourcedata_getencryptionalgorithm"); + #else // _WIN32 + pWrapperTable->m_ResourceData_GetEncryptionAlgorithm = (PLib3MFResourceData_GetEncryptionAlgorithmPtr) dlsym(hLibrary, "lib3mf_resourcedata_getencryptionalgorithm"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ResourceData_GetEncryptionAlgorithm == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ResourceData_GetCompression = (PLib3MFResourceData_GetCompressionPtr) GetProcAddress(hLibrary, "lib3mf_resourcedata_getcompression"); + #else // _WIN32 + pWrapperTable->m_ResourceData_GetCompression = (PLib3MFResourceData_GetCompressionPtr) dlsym(hLibrary, "lib3mf_resourcedata_getcompression"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ResourceData_GetCompression == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ResourceData_GetAdditionalAuthenticationData = (PLib3MFResourceData_GetAdditionalAuthenticationDataPtr) GetProcAddress(hLibrary, "lib3mf_resourcedata_getadditionalauthenticationdata"); + #else // _WIN32 + pWrapperTable->m_ResourceData_GetAdditionalAuthenticationData = (PLib3MFResourceData_GetAdditionalAuthenticationDataPtr) dlsym(hLibrary, "lib3mf_resourcedata_getadditionalauthenticationdata"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ResourceData_GetAdditionalAuthenticationData == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ResourceDataGroup_GetKeyUUID = (PLib3MFResourceDataGroup_GetKeyUUIDPtr) GetProcAddress(hLibrary, "lib3mf_resourcedatagroup_getkeyuuid"); + #else // _WIN32 + pWrapperTable->m_ResourceDataGroup_GetKeyUUID = (PLib3MFResourceDataGroup_GetKeyUUIDPtr) dlsym(hLibrary, "lib3mf_resourcedatagroup_getkeyuuid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ResourceDataGroup_GetKeyUUID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ResourceDataGroup_AddAccessRight = (PLib3MFResourceDataGroup_AddAccessRightPtr) GetProcAddress(hLibrary, "lib3mf_resourcedatagroup_addaccessright"); + #else // _WIN32 + pWrapperTable->m_ResourceDataGroup_AddAccessRight = (PLib3MFResourceDataGroup_AddAccessRightPtr) dlsym(hLibrary, "lib3mf_resourcedatagroup_addaccessright"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ResourceDataGroup_AddAccessRight == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ResourceDataGroup_FindAccessRightByConsumer = (PLib3MFResourceDataGroup_FindAccessRightByConsumerPtr) GetProcAddress(hLibrary, "lib3mf_resourcedatagroup_findaccessrightbyconsumer"); + #else // _WIN32 + pWrapperTable->m_ResourceDataGroup_FindAccessRightByConsumer = (PLib3MFResourceDataGroup_FindAccessRightByConsumerPtr) dlsym(hLibrary, "lib3mf_resourcedatagroup_findaccessrightbyconsumer"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ResourceDataGroup_FindAccessRightByConsumer == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ResourceDataGroup_RemoveAccessRight = (PLib3MFResourceDataGroup_RemoveAccessRightPtr) GetProcAddress(hLibrary, "lib3mf_resourcedatagroup_removeaccessright"); + #else // _WIN32 + pWrapperTable->m_ResourceDataGroup_RemoveAccessRight = (PLib3MFResourceDataGroup_RemoveAccessRightPtr) dlsym(hLibrary, "lib3mf_resourcedatagroup_removeaccessright"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ResourceDataGroup_RemoveAccessRight == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_AddConsumer = (PLib3MFKeyStore_AddConsumerPtr) GetProcAddress(hLibrary, "lib3mf_keystore_addconsumer"); + #else // _WIN32 + pWrapperTable->m_KeyStore_AddConsumer = (PLib3MFKeyStore_AddConsumerPtr) dlsym(hLibrary, "lib3mf_keystore_addconsumer"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_AddConsumer == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_GetConsumerCount = (PLib3MFKeyStore_GetConsumerCountPtr) GetProcAddress(hLibrary, "lib3mf_keystore_getconsumercount"); + #else // _WIN32 + pWrapperTable->m_KeyStore_GetConsumerCount = (PLib3MFKeyStore_GetConsumerCountPtr) dlsym(hLibrary, "lib3mf_keystore_getconsumercount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_GetConsumerCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_GetConsumer = (PLib3MFKeyStore_GetConsumerPtr) GetProcAddress(hLibrary, "lib3mf_keystore_getconsumer"); + #else // _WIN32 + pWrapperTable->m_KeyStore_GetConsumer = (PLib3MFKeyStore_GetConsumerPtr) dlsym(hLibrary, "lib3mf_keystore_getconsumer"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_GetConsumer == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_RemoveConsumer = (PLib3MFKeyStore_RemoveConsumerPtr) GetProcAddress(hLibrary, "lib3mf_keystore_removeconsumer"); + #else // _WIN32 + pWrapperTable->m_KeyStore_RemoveConsumer = (PLib3MFKeyStore_RemoveConsumerPtr) dlsym(hLibrary, "lib3mf_keystore_removeconsumer"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_RemoveConsumer == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_FindConsumer = (PLib3MFKeyStore_FindConsumerPtr) GetProcAddress(hLibrary, "lib3mf_keystore_findconsumer"); + #else // _WIN32 + pWrapperTable->m_KeyStore_FindConsumer = (PLib3MFKeyStore_FindConsumerPtr) dlsym(hLibrary, "lib3mf_keystore_findconsumer"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_FindConsumer == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_GetResourceDataGroupCount = (PLib3MFKeyStore_GetResourceDataGroupCountPtr) GetProcAddress(hLibrary, "lib3mf_keystore_getresourcedatagroupcount"); + #else // _WIN32 + pWrapperTable->m_KeyStore_GetResourceDataGroupCount = (PLib3MFKeyStore_GetResourceDataGroupCountPtr) dlsym(hLibrary, "lib3mf_keystore_getresourcedatagroupcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_GetResourceDataGroupCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_AddResourceDataGroup = (PLib3MFKeyStore_AddResourceDataGroupPtr) GetProcAddress(hLibrary, "lib3mf_keystore_addresourcedatagroup"); + #else // _WIN32 + pWrapperTable->m_KeyStore_AddResourceDataGroup = (PLib3MFKeyStore_AddResourceDataGroupPtr) dlsym(hLibrary, "lib3mf_keystore_addresourcedatagroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_AddResourceDataGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_GetResourceDataGroup = (PLib3MFKeyStore_GetResourceDataGroupPtr) GetProcAddress(hLibrary, "lib3mf_keystore_getresourcedatagroup"); + #else // _WIN32 + pWrapperTable->m_KeyStore_GetResourceDataGroup = (PLib3MFKeyStore_GetResourceDataGroupPtr) dlsym(hLibrary, "lib3mf_keystore_getresourcedatagroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_GetResourceDataGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_RemoveResourceDataGroup = (PLib3MFKeyStore_RemoveResourceDataGroupPtr) GetProcAddress(hLibrary, "lib3mf_keystore_removeresourcedatagroup"); + #else // _WIN32 + pWrapperTable->m_KeyStore_RemoveResourceDataGroup = (PLib3MFKeyStore_RemoveResourceDataGroupPtr) dlsym(hLibrary, "lib3mf_keystore_removeresourcedatagroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_RemoveResourceDataGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_FindResourceDataGroup = (PLib3MFKeyStore_FindResourceDataGroupPtr) GetProcAddress(hLibrary, "lib3mf_keystore_findresourcedatagroup"); + #else // _WIN32 + pWrapperTable->m_KeyStore_FindResourceDataGroup = (PLib3MFKeyStore_FindResourceDataGroupPtr) dlsym(hLibrary, "lib3mf_keystore_findresourcedatagroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_FindResourceDataGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_AddResourceData = (PLib3MFKeyStore_AddResourceDataPtr) GetProcAddress(hLibrary, "lib3mf_keystore_addresourcedata"); + #else // _WIN32 + pWrapperTable->m_KeyStore_AddResourceData = (PLib3MFKeyStore_AddResourceDataPtr) dlsym(hLibrary, "lib3mf_keystore_addresourcedata"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_AddResourceData == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_RemoveResourceData = (PLib3MFKeyStore_RemoveResourceDataPtr) GetProcAddress(hLibrary, "lib3mf_keystore_removeresourcedata"); + #else // _WIN32 + pWrapperTable->m_KeyStore_RemoveResourceData = (PLib3MFKeyStore_RemoveResourceDataPtr) dlsym(hLibrary, "lib3mf_keystore_removeresourcedata"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_RemoveResourceData == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_FindResourceData = (PLib3MFKeyStore_FindResourceDataPtr) GetProcAddress(hLibrary, "lib3mf_keystore_findresourcedata"); + #else // _WIN32 + pWrapperTable->m_KeyStore_FindResourceData = (PLib3MFKeyStore_FindResourceDataPtr) dlsym(hLibrary, "lib3mf_keystore_findresourcedata"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_FindResourceData == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_GetResourceDataCount = (PLib3MFKeyStore_GetResourceDataCountPtr) GetProcAddress(hLibrary, "lib3mf_keystore_getresourcedatacount"); + #else // _WIN32 + pWrapperTable->m_KeyStore_GetResourceDataCount = (PLib3MFKeyStore_GetResourceDataCountPtr) dlsym(hLibrary, "lib3mf_keystore_getresourcedatacount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_GetResourceDataCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_GetResourceData = (PLib3MFKeyStore_GetResourceDataPtr) GetProcAddress(hLibrary, "lib3mf_keystore_getresourcedata"); + #else // _WIN32 + pWrapperTable->m_KeyStore_GetResourceData = (PLib3MFKeyStore_GetResourceDataPtr) dlsym(hLibrary, "lib3mf_keystore_getresourcedata"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_GetResourceData == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_GetUUID = (PLib3MFKeyStore_GetUUIDPtr) GetProcAddress(hLibrary, "lib3mf_keystore_getuuid"); + #else // _WIN32 + pWrapperTable->m_KeyStore_GetUUID = (PLib3MFKeyStore_GetUUIDPtr) dlsym(hLibrary, "lib3mf_keystore_getuuid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_GetUUID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_KeyStore_SetUUID = (PLib3MFKeyStore_SetUUIDPtr) GetProcAddress(hLibrary, "lib3mf_keystore_setuuid"); + #else // _WIN32 + pWrapperTable->m_KeyStore_SetUUID = (PLib3MFKeyStore_SetUUIDPtr) dlsym(hLibrary, "lib3mf_keystore_setuuid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_KeyStore_SetUUID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_RootModelPart = (PLib3MFModel_RootModelPartPtr) GetProcAddress(hLibrary, "lib3mf_model_rootmodelpart"); + #else // _WIN32 + pWrapperTable->m_Model_RootModelPart = (PLib3MFModel_RootModelPartPtr) dlsym(hLibrary, "lib3mf_model_rootmodelpart"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_RootModelPart == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_FindOrCreatePackagePart = (PLib3MFModel_FindOrCreatePackagePartPtr) GetProcAddress(hLibrary, "lib3mf_model_findorcreatepackagepart"); + #else // _WIN32 + pWrapperTable->m_Model_FindOrCreatePackagePart = (PLib3MFModel_FindOrCreatePackagePartPtr) dlsym(hLibrary, "lib3mf_model_findorcreatepackagepart"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_FindOrCreatePackagePart == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_SetUnit = (PLib3MFModel_SetUnitPtr) GetProcAddress(hLibrary, "lib3mf_model_setunit"); + #else // _WIN32 + pWrapperTable->m_Model_SetUnit = (PLib3MFModel_SetUnitPtr) dlsym(hLibrary, "lib3mf_model_setunit"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_SetUnit == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetUnit = (PLib3MFModel_GetUnitPtr) GetProcAddress(hLibrary, "lib3mf_model_getunit"); + #else // _WIN32 + pWrapperTable->m_Model_GetUnit = (PLib3MFModel_GetUnitPtr) dlsym(hLibrary, "lib3mf_model_getunit"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetUnit == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetLanguage = (PLib3MFModel_GetLanguagePtr) GetProcAddress(hLibrary, "lib3mf_model_getlanguage"); + #else // _WIN32 + pWrapperTable->m_Model_GetLanguage = (PLib3MFModel_GetLanguagePtr) dlsym(hLibrary, "lib3mf_model_getlanguage"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetLanguage == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_SetLanguage = (PLib3MFModel_SetLanguagePtr) GetProcAddress(hLibrary, "lib3mf_model_setlanguage"); + #else // _WIN32 + pWrapperTable->m_Model_SetLanguage = (PLib3MFModel_SetLanguagePtr) dlsym(hLibrary, "lib3mf_model_setlanguage"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_SetLanguage == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_QueryWriter = (PLib3MFModel_QueryWriterPtr) GetProcAddress(hLibrary, "lib3mf_model_querywriter"); + #else // _WIN32 + pWrapperTable->m_Model_QueryWriter = (PLib3MFModel_QueryWriterPtr) dlsym(hLibrary, "lib3mf_model_querywriter"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_QueryWriter == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_QueryReader = (PLib3MFModel_QueryReaderPtr) GetProcAddress(hLibrary, "lib3mf_model_queryreader"); + #else // _WIN32 + pWrapperTable->m_Model_QueryReader = (PLib3MFModel_QueryReaderPtr) dlsym(hLibrary, "lib3mf_model_queryreader"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_QueryReader == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetResourceByID = (PLib3MFModel_GetResourceByIDPtr) GetProcAddress(hLibrary, "lib3mf_model_getresourcebyid"); + #else // _WIN32 + pWrapperTable->m_Model_GetResourceByID = (PLib3MFModel_GetResourceByIDPtr) dlsym(hLibrary, "lib3mf_model_getresourcebyid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetResourceByID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetTexture2DByID = (PLib3MFModel_GetTexture2DByIDPtr) GetProcAddress(hLibrary, "lib3mf_model_gettexture2dbyid"); + #else // _WIN32 + pWrapperTable->m_Model_GetTexture2DByID = (PLib3MFModel_GetTexture2DByIDPtr) dlsym(hLibrary, "lib3mf_model_gettexture2dbyid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetTexture2DByID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetPropertyTypeByID = (PLib3MFModel_GetPropertyTypeByIDPtr) GetProcAddress(hLibrary, "lib3mf_model_getpropertytypebyid"); + #else // _WIN32 + pWrapperTable->m_Model_GetPropertyTypeByID = (PLib3MFModel_GetPropertyTypeByIDPtr) dlsym(hLibrary, "lib3mf_model_getpropertytypebyid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetPropertyTypeByID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetBaseMaterialGroupByID = (PLib3MFModel_GetBaseMaterialGroupByIDPtr) GetProcAddress(hLibrary, "lib3mf_model_getbasematerialgroupbyid"); + #else // _WIN32 + pWrapperTable->m_Model_GetBaseMaterialGroupByID = (PLib3MFModel_GetBaseMaterialGroupByIDPtr) dlsym(hLibrary, "lib3mf_model_getbasematerialgroupbyid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetBaseMaterialGroupByID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetTexture2DGroupByID = (PLib3MFModel_GetTexture2DGroupByIDPtr) GetProcAddress(hLibrary, "lib3mf_model_gettexture2dgroupbyid"); + #else // _WIN32 + pWrapperTable->m_Model_GetTexture2DGroupByID = (PLib3MFModel_GetTexture2DGroupByIDPtr) dlsym(hLibrary, "lib3mf_model_gettexture2dgroupbyid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetTexture2DGroupByID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetCompositeMaterialsByID = (PLib3MFModel_GetCompositeMaterialsByIDPtr) GetProcAddress(hLibrary, "lib3mf_model_getcompositematerialsbyid"); + #else // _WIN32 + pWrapperTable->m_Model_GetCompositeMaterialsByID = (PLib3MFModel_GetCompositeMaterialsByIDPtr) dlsym(hLibrary, "lib3mf_model_getcompositematerialsbyid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetCompositeMaterialsByID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetMultiPropertyGroupByID = (PLib3MFModel_GetMultiPropertyGroupByIDPtr) GetProcAddress(hLibrary, "lib3mf_model_getmultipropertygroupbyid"); + #else // _WIN32 + pWrapperTable->m_Model_GetMultiPropertyGroupByID = (PLib3MFModel_GetMultiPropertyGroupByIDPtr) dlsym(hLibrary, "lib3mf_model_getmultipropertygroupbyid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetMultiPropertyGroupByID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetMeshObjectByID = (PLib3MFModel_GetMeshObjectByIDPtr) GetProcAddress(hLibrary, "lib3mf_model_getmeshobjectbyid"); + #else // _WIN32 + pWrapperTable->m_Model_GetMeshObjectByID = (PLib3MFModel_GetMeshObjectByIDPtr) dlsym(hLibrary, "lib3mf_model_getmeshobjectbyid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetMeshObjectByID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetComponentsObjectByID = (PLib3MFModel_GetComponentsObjectByIDPtr) GetProcAddress(hLibrary, "lib3mf_model_getcomponentsobjectbyid"); + #else // _WIN32 + pWrapperTable->m_Model_GetComponentsObjectByID = (PLib3MFModel_GetComponentsObjectByIDPtr) dlsym(hLibrary, "lib3mf_model_getcomponentsobjectbyid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetComponentsObjectByID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetColorGroupByID = (PLib3MFModel_GetColorGroupByIDPtr) GetProcAddress(hLibrary, "lib3mf_model_getcolorgroupbyid"); + #else // _WIN32 + pWrapperTable->m_Model_GetColorGroupByID = (PLib3MFModel_GetColorGroupByIDPtr) dlsym(hLibrary, "lib3mf_model_getcolorgroupbyid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetColorGroupByID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetSliceStackByID = (PLib3MFModel_GetSliceStackByIDPtr) GetProcAddress(hLibrary, "lib3mf_model_getslicestackbyid"); + #else // _WIN32 + pWrapperTable->m_Model_GetSliceStackByID = (PLib3MFModel_GetSliceStackByIDPtr) dlsym(hLibrary, "lib3mf_model_getslicestackbyid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetSliceStackByID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetLevelSetByID = (PLib3MFModel_GetLevelSetByIDPtr) GetProcAddress(hLibrary, "lib3mf_model_getlevelsetbyid"); + #else // _WIN32 + pWrapperTable->m_Model_GetLevelSetByID = (PLib3MFModel_GetLevelSetByIDPtr) dlsym(hLibrary, "lib3mf_model_getlevelsetbyid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetLevelSetByID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetBuildUUID = (PLib3MFModel_GetBuildUUIDPtr) GetProcAddress(hLibrary, "lib3mf_model_getbuilduuid"); + #else // _WIN32 + pWrapperTable->m_Model_GetBuildUUID = (PLib3MFModel_GetBuildUUIDPtr) dlsym(hLibrary, "lib3mf_model_getbuilduuid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetBuildUUID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_SetBuildUUID = (PLib3MFModel_SetBuildUUIDPtr) GetProcAddress(hLibrary, "lib3mf_model_setbuilduuid"); + #else // _WIN32 + pWrapperTable->m_Model_SetBuildUUID = (PLib3MFModel_SetBuildUUIDPtr) dlsym(hLibrary, "lib3mf_model_setbuilduuid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_SetBuildUUID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetBuildItems = (PLib3MFModel_GetBuildItemsPtr) GetProcAddress(hLibrary, "lib3mf_model_getbuilditems"); + #else // _WIN32 + pWrapperTable->m_Model_GetBuildItems = (PLib3MFModel_GetBuildItemsPtr) dlsym(hLibrary, "lib3mf_model_getbuilditems"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetBuildItems == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetOutbox = (PLib3MFModel_GetOutboxPtr) GetProcAddress(hLibrary, "lib3mf_model_getoutbox"); + #else // _WIN32 + pWrapperTable->m_Model_GetOutbox = (PLib3MFModel_GetOutboxPtr) dlsym(hLibrary, "lib3mf_model_getoutbox"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetOutbox == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetResources = (PLib3MFModel_GetResourcesPtr) GetProcAddress(hLibrary, "lib3mf_model_getresources"); + #else // _WIN32 + pWrapperTable->m_Model_GetResources = (PLib3MFModel_GetResourcesPtr) dlsym(hLibrary, "lib3mf_model_getresources"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetResources == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetObjects = (PLib3MFModel_GetObjectsPtr) GetProcAddress(hLibrary, "lib3mf_model_getobjects"); + #else // _WIN32 + pWrapperTable->m_Model_GetObjects = (PLib3MFModel_GetObjectsPtr) dlsym(hLibrary, "lib3mf_model_getobjects"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetObjects == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetMeshObjects = (PLib3MFModel_GetMeshObjectsPtr) GetProcAddress(hLibrary, "lib3mf_model_getmeshobjects"); + #else // _WIN32 + pWrapperTable->m_Model_GetMeshObjects = (PLib3MFModel_GetMeshObjectsPtr) dlsym(hLibrary, "lib3mf_model_getmeshobjects"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetMeshObjects == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetComponentsObjects = (PLib3MFModel_GetComponentsObjectsPtr) GetProcAddress(hLibrary, "lib3mf_model_getcomponentsobjects"); + #else // _WIN32 + pWrapperTable->m_Model_GetComponentsObjects = (PLib3MFModel_GetComponentsObjectsPtr) dlsym(hLibrary, "lib3mf_model_getcomponentsobjects"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetComponentsObjects == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetTexture2Ds = (PLib3MFModel_GetTexture2DsPtr) GetProcAddress(hLibrary, "lib3mf_model_gettexture2ds"); + #else // _WIN32 + pWrapperTable->m_Model_GetTexture2Ds = (PLib3MFModel_GetTexture2DsPtr) dlsym(hLibrary, "lib3mf_model_gettexture2ds"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetTexture2Ds == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetBaseMaterialGroups = (PLib3MFModel_GetBaseMaterialGroupsPtr) GetProcAddress(hLibrary, "lib3mf_model_getbasematerialgroups"); + #else // _WIN32 + pWrapperTable->m_Model_GetBaseMaterialGroups = (PLib3MFModel_GetBaseMaterialGroupsPtr) dlsym(hLibrary, "lib3mf_model_getbasematerialgroups"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetBaseMaterialGroups == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetColorGroups = (PLib3MFModel_GetColorGroupsPtr) GetProcAddress(hLibrary, "lib3mf_model_getcolorgroups"); + #else // _WIN32 + pWrapperTable->m_Model_GetColorGroups = (PLib3MFModel_GetColorGroupsPtr) dlsym(hLibrary, "lib3mf_model_getcolorgroups"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetColorGroups == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetTexture2DGroups = (PLib3MFModel_GetTexture2DGroupsPtr) GetProcAddress(hLibrary, "lib3mf_model_gettexture2dgroups"); + #else // _WIN32 + pWrapperTable->m_Model_GetTexture2DGroups = (PLib3MFModel_GetTexture2DGroupsPtr) dlsym(hLibrary, "lib3mf_model_gettexture2dgroups"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetTexture2DGroups == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetCompositeMaterials = (PLib3MFModel_GetCompositeMaterialsPtr) GetProcAddress(hLibrary, "lib3mf_model_getcompositematerials"); + #else // _WIN32 + pWrapperTable->m_Model_GetCompositeMaterials = (PLib3MFModel_GetCompositeMaterialsPtr) dlsym(hLibrary, "lib3mf_model_getcompositematerials"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetCompositeMaterials == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetMultiPropertyGroups = (PLib3MFModel_GetMultiPropertyGroupsPtr) GetProcAddress(hLibrary, "lib3mf_model_getmultipropertygroups"); + #else // _WIN32 + pWrapperTable->m_Model_GetMultiPropertyGroups = (PLib3MFModel_GetMultiPropertyGroupsPtr) dlsym(hLibrary, "lib3mf_model_getmultipropertygroups"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetMultiPropertyGroups == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetSliceStacks = (PLib3MFModel_GetSliceStacksPtr) GetProcAddress(hLibrary, "lib3mf_model_getslicestacks"); + #else // _WIN32 + pWrapperTable->m_Model_GetSliceStacks = (PLib3MFModel_GetSliceStacksPtr) dlsym(hLibrary, "lib3mf_model_getslicestacks"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetSliceStacks == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetImage3Ds = (PLib3MFModel_GetImage3DsPtr) GetProcAddress(hLibrary, "lib3mf_model_getimage3ds"); + #else // _WIN32 + pWrapperTable->m_Model_GetImage3Ds = (PLib3MFModel_GetImage3DsPtr) dlsym(hLibrary, "lib3mf_model_getimage3ds"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetImage3Ds == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_MergeToModel = (PLib3MFModel_MergeToModelPtr) GetProcAddress(hLibrary, "lib3mf_model_mergetomodel"); + #else // _WIN32 + pWrapperTable->m_Model_MergeToModel = (PLib3MFModel_MergeToModelPtr) dlsym(hLibrary, "lib3mf_model_mergetomodel"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_MergeToModel == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_MergeFromModel = (PLib3MFModel_MergeFromModelPtr) GetProcAddress(hLibrary, "lib3mf_model_mergefrommodel"); + #else // _WIN32 + pWrapperTable->m_Model_MergeFromModel = (PLib3MFModel_MergeFromModelPtr) dlsym(hLibrary, "lib3mf_model_mergefrommodel"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_MergeFromModel == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddMeshObject = (PLib3MFModel_AddMeshObjectPtr) GetProcAddress(hLibrary, "lib3mf_model_addmeshobject"); + #else // _WIN32 + pWrapperTable->m_Model_AddMeshObject = (PLib3MFModel_AddMeshObjectPtr) dlsym(hLibrary, "lib3mf_model_addmeshobject"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddMeshObject == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddComponentsObject = (PLib3MFModel_AddComponentsObjectPtr) GetProcAddress(hLibrary, "lib3mf_model_addcomponentsobject"); + #else // _WIN32 + pWrapperTable->m_Model_AddComponentsObject = (PLib3MFModel_AddComponentsObjectPtr) dlsym(hLibrary, "lib3mf_model_addcomponentsobject"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddComponentsObject == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddSliceStack = (PLib3MFModel_AddSliceStackPtr) GetProcAddress(hLibrary, "lib3mf_model_addslicestack"); + #else // _WIN32 + pWrapperTable->m_Model_AddSliceStack = (PLib3MFModel_AddSliceStackPtr) dlsym(hLibrary, "lib3mf_model_addslicestack"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddSliceStack == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddTexture2DFromAttachment = (PLib3MFModel_AddTexture2DFromAttachmentPtr) GetProcAddress(hLibrary, "lib3mf_model_addtexture2dfromattachment"); + #else // _WIN32 + pWrapperTable->m_Model_AddTexture2DFromAttachment = (PLib3MFModel_AddTexture2DFromAttachmentPtr) dlsym(hLibrary, "lib3mf_model_addtexture2dfromattachment"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddTexture2DFromAttachment == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddBaseMaterialGroup = (PLib3MFModel_AddBaseMaterialGroupPtr) GetProcAddress(hLibrary, "lib3mf_model_addbasematerialgroup"); + #else // _WIN32 + pWrapperTable->m_Model_AddBaseMaterialGroup = (PLib3MFModel_AddBaseMaterialGroupPtr) dlsym(hLibrary, "lib3mf_model_addbasematerialgroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddBaseMaterialGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddColorGroup = (PLib3MFModel_AddColorGroupPtr) GetProcAddress(hLibrary, "lib3mf_model_addcolorgroup"); + #else // _WIN32 + pWrapperTable->m_Model_AddColorGroup = (PLib3MFModel_AddColorGroupPtr) dlsym(hLibrary, "lib3mf_model_addcolorgroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddColorGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddTexture2DGroup = (PLib3MFModel_AddTexture2DGroupPtr) GetProcAddress(hLibrary, "lib3mf_model_addtexture2dgroup"); + #else // _WIN32 + pWrapperTable->m_Model_AddTexture2DGroup = (PLib3MFModel_AddTexture2DGroupPtr) dlsym(hLibrary, "lib3mf_model_addtexture2dgroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddTexture2DGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddCompositeMaterials = (PLib3MFModel_AddCompositeMaterialsPtr) GetProcAddress(hLibrary, "lib3mf_model_addcompositematerials"); + #else // _WIN32 + pWrapperTable->m_Model_AddCompositeMaterials = (PLib3MFModel_AddCompositeMaterialsPtr) dlsym(hLibrary, "lib3mf_model_addcompositematerials"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddCompositeMaterials == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddMultiPropertyGroup = (PLib3MFModel_AddMultiPropertyGroupPtr) GetProcAddress(hLibrary, "lib3mf_model_addmultipropertygroup"); + #else // _WIN32 + pWrapperTable->m_Model_AddMultiPropertyGroup = (PLib3MFModel_AddMultiPropertyGroupPtr) dlsym(hLibrary, "lib3mf_model_addmultipropertygroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddMultiPropertyGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddImageStack = (PLib3MFModel_AddImageStackPtr) GetProcAddress(hLibrary, "lib3mf_model_addimagestack"); + #else // _WIN32 + pWrapperTable->m_Model_AddImageStack = (PLib3MFModel_AddImageStackPtr) dlsym(hLibrary, "lib3mf_model_addimagestack"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddImageStack == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetImageStackByID = (PLib3MFModel_GetImageStackByIDPtr) GetProcAddress(hLibrary, "lib3mf_model_getimagestackbyid"); + #else // _WIN32 + pWrapperTable->m_Model_GetImageStackByID = (PLib3MFModel_GetImageStackByIDPtr) dlsym(hLibrary, "lib3mf_model_getimagestackbyid"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetImageStackByID == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddBuildItem = (PLib3MFModel_AddBuildItemPtr) GetProcAddress(hLibrary, "lib3mf_model_addbuilditem"); + #else // _WIN32 + pWrapperTable->m_Model_AddBuildItem = (PLib3MFModel_AddBuildItemPtr) dlsym(hLibrary, "lib3mf_model_addbuilditem"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddBuildItem == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_RemoveBuildItem = (PLib3MFModel_RemoveBuildItemPtr) GetProcAddress(hLibrary, "lib3mf_model_removebuilditem"); + #else // _WIN32 + pWrapperTable->m_Model_RemoveBuildItem = (PLib3MFModel_RemoveBuildItemPtr) dlsym(hLibrary, "lib3mf_model_removebuilditem"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_RemoveBuildItem == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetMetaDataGroup = (PLib3MFModel_GetMetaDataGroupPtr) GetProcAddress(hLibrary, "lib3mf_model_getmetadatagroup"); + #else // _WIN32 + pWrapperTable->m_Model_GetMetaDataGroup = (PLib3MFModel_GetMetaDataGroupPtr) dlsym(hLibrary, "lib3mf_model_getmetadatagroup"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetMetaDataGroup == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddAttachment = (PLib3MFModel_AddAttachmentPtr) GetProcAddress(hLibrary, "lib3mf_model_addattachment"); + #else // _WIN32 + pWrapperTable->m_Model_AddAttachment = (PLib3MFModel_AddAttachmentPtr) dlsym(hLibrary, "lib3mf_model_addattachment"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddAttachment == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_RemoveAttachment = (PLib3MFModel_RemoveAttachmentPtr) GetProcAddress(hLibrary, "lib3mf_model_removeattachment"); + #else // _WIN32 + pWrapperTable->m_Model_RemoveAttachment = (PLib3MFModel_RemoveAttachmentPtr) dlsym(hLibrary, "lib3mf_model_removeattachment"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_RemoveAttachment == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetAttachment = (PLib3MFModel_GetAttachmentPtr) GetProcAddress(hLibrary, "lib3mf_model_getattachment"); + #else // _WIN32 + pWrapperTable->m_Model_GetAttachment = (PLib3MFModel_GetAttachmentPtr) dlsym(hLibrary, "lib3mf_model_getattachment"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetAttachment == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_FindAttachment = (PLib3MFModel_FindAttachmentPtr) GetProcAddress(hLibrary, "lib3mf_model_findattachment"); + #else // _WIN32 + pWrapperTable->m_Model_FindAttachment = (PLib3MFModel_FindAttachmentPtr) dlsym(hLibrary, "lib3mf_model_findattachment"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_FindAttachment == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetAttachmentCount = (PLib3MFModel_GetAttachmentCountPtr) GetProcAddress(hLibrary, "lib3mf_model_getattachmentcount"); + #else // _WIN32 + pWrapperTable->m_Model_GetAttachmentCount = (PLib3MFModel_GetAttachmentCountPtr) dlsym(hLibrary, "lib3mf_model_getattachmentcount"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetAttachmentCount == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_HasPackageThumbnailAttachment = (PLib3MFModel_HasPackageThumbnailAttachmentPtr) GetProcAddress(hLibrary, "lib3mf_model_haspackagethumbnailattachment"); + #else // _WIN32 + pWrapperTable->m_Model_HasPackageThumbnailAttachment = (PLib3MFModel_HasPackageThumbnailAttachmentPtr) dlsym(hLibrary, "lib3mf_model_haspackagethumbnailattachment"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_HasPackageThumbnailAttachment == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_CreatePackageThumbnailAttachment = (PLib3MFModel_CreatePackageThumbnailAttachmentPtr) GetProcAddress(hLibrary, "lib3mf_model_createpackagethumbnailattachment"); + #else // _WIN32 + pWrapperTable->m_Model_CreatePackageThumbnailAttachment = (PLib3MFModel_CreatePackageThumbnailAttachmentPtr) dlsym(hLibrary, "lib3mf_model_createpackagethumbnailattachment"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_CreatePackageThumbnailAttachment == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetPackageThumbnailAttachment = (PLib3MFModel_GetPackageThumbnailAttachmentPtr) GetProcAddress(hLibrary, "lib3mf_model_getpackagethumbnailattachment"); + #else // _WIN32 + pWrapperTable->m_Model_GetPackageThumbnailAttachment = (PLib3MFModel_GetPackageThumbnailAttachmentPtr) dlsym(hLibrary, "lib3mf_model_getpackagethumbnailattachment"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetPackageThumbnailAttachment == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_RemovePackageThumbnailAttachment = (PLib3MFModel_RemovePackageThumbnailAttachmentPtr) GetProcAddress(hLibrary, "lib3mf_model_removepackagethumbnailattachment"); + #else // _WIN32 + pWrapperTable->m_Model_RemovePackageThumbnailAttachment = (PLib3MFModel_RemovePackageThumbnailAttachmentPtr) dlsym(hLibrary, "lib3mf_model_removepackagethumbnailattachment"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_RemovePackageThumbnailAttachment == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddCustomContentType = (PLib3MFModel_AddCustomContentTypePtr) GetProcAddress(hLibrary, "lib3mf_model_addcustomcontenttype"); + #else // _WIN32 + pWrapperTable->m_Model_AddCustomContentType = (PLib3MFModel_AddCustomContentTypePtr) dlsym(hLibrary, "lib3mf_model_addcustomcontenttype"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddCustomContentType == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_RemoveCustomContentType = (PLib3MFModel_RemoveCustomContentTypePtr) GetProcAddress(hLibrary, "lib3mf_model_removecustomcontenttype"); + #else // _WIN32 + pWrapperTable->m_Model_RemoveCustomContentType = (PLib3MFModel_RemoveCustomContentTypePtr) dlsym(hLibrary, "lib3mf_model_removecustomcontenttype"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_RemoveCustomContentType == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_SetRandomNumberCallback = (PLib3MFModel_SetRandomNumberCallbackPtr) GetProcAddress(hLibrary, "lib3mf_model_setrandomnumbercallback"); + #else // _WIN32 + pWrapperTable->m_Model_SetRandomNumberCallback = (PLib3MFModel_SetRandomNumberCallbackPtr) dlsym(hLibrary, "lib3mf_model_setrandomnumbercallback"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_SetRandomNumberCallback == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetKeyStore = (PLib3MFModel_GetKeyStorePtr) GetProcAddress(hLibrary, "lib3mf_model_getkeystore"); + #else // _WIN32 + pWrapperTable->m_Model_GetKeyStore = (PLib3MFModel_GetKeyStorePtr) dlsym(hLibrary, "lib3mf_model_getkeystore"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetKeyStore == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetFunctions = (PLib3MFModel_GetFunctionsPtr) GetProcAddress(hLibrary, "lib3mf_model_getfunctions"); + #else // _WIN32 + pWrapperTable->m_Model_GetFunctions = (PLib3MFModel_GetFunctionsPtr) dlsym(hLibrary, "lib3mf_model_getfunctions"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetFunctions == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddImplicitFunction = (PLib3MFModel_AddImplicitFunctionPtr) GetProcAddress(hLibrary, "lib3mf_model_addimplicitfunction"); + #else // _WIN32 + pWrapperTable->m_Model_AddImplicitFunction = (PLib3MFModel_AddImplicitFunctionPtr) dlsym(hLibrary, "lib3mf_model_addimplicitfunction"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddImplicitFunction == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddFunctionFromImage3D = (PLib3MFModel_AddFunctionFromImage3DPtr) GetProcAddress(hLibrary, "lib3mf_model_addfunctionfromimage3d"); + #else // _WIN32 + pWrapperTable->m_Model_AddFunctionFromImage3D = (PLib3MFModel_AddFunctionFromImage3DPtr) dlsym(hLibrary, "lib3mf_model_addfunctionfromimage3d"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddFunctionFromImage3D == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddVolumeData = (PLib3MFModel_AddVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_model_addvolumedata"); + #else // _WIN32 + pWrapperTable->m_Model_AddVolumeData = (PLib3MFModel_AddVolumeDataPtr) dlsym(hLibrary, "lib3mf_model_addvolumedata"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddVolumeData == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_AddLevelSet = (PLib3MFModel_AddLevelSetPtr) GetProcAddress(hLibrary, "lib3mf_model_addlevelset"); + #else // _WIN32 + pWrapperTable->m_Model_AddLevelSet = (PLib3MFModel_AddLevelSetPtr) dlsym(hLibrary, "lib3mf_model_addlevelset"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_AddLevelSet == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_GetLevelSets = (PLib3MFModel_GetLevelSetsPtr) GetProcAddress(hLibrary, "lib3mf_model_getlevelsets"); + #else // _WIN32 + pWrapperTable->m_Model_GetLevelSets = (PLib3MFModel_GetLevelSetsPtr) dlsym(hLibrary, "lib3mf_model_getlevelsets"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_GetLevelSets == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Model_RemoveResource = (PLib3MFModel_RemoveResourcePtr) GetProcAddress(hLibrary, "lib3mf_model_removeresource"); + #else // _WIN32 + pWrapperTable->m_Model_RemoveResource = (PLib3MFModel_RemoveResourcePtr) dlsym(hLibrary, "lib3mf_model_removeresource"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Model_RemoveResource == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_GetLibraryVersion = (PLib3MFGetLibraryVersionPtr) GetProcAddress(hLibrary, "lib3mf_getlibraryversion"); + #else // _WIN32 + pWrapperTable->m_GetLibraryVersion = (PLib3MFGetLibraryVersionPtr) dlsym(hLibrary, "lib3mf_getlibraryversion"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_GetLibraryVersion == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_GetPrereleaseInformation = (PLib3MFGetPrereleaseInformationPtr) GetProcAddress(hLibrary, "lib3mf_getprereleaseinformation"); + #else // _WIN32 + pWrapperTable->m_GetPrereleaseInformation = (PLib3MFGetPrereleaseInformationPtr) dlsym(hLibrary, "lib3mf_getprereleaseinformation"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_GetPrereleaseInformation == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_GetBuildInformation = (PLib3MFGetBuildInformationPtr) GetProcAddress(hLibrary, "lib3mf_getbuildinformation"); + #else // _WIN32 + pWrapperTable->m_GetBuildInformation = (PLib3MFGetBuildInformationPtr) dlsym(hLibrary, "lib3mf_getbuildinformation"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_GetBuildInformation == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_GetSpecificationVersion = (PLib3MFGetSpecificationVersionPtr) GetProcAddress(hLibrary, "lib3mf_getspecificationversion"); + #else // _WIN32 + pWrapperTable->m_GetSpecificationVersion = (PLib3MFGetSpecificationVersionPtr) dlsym(hLibrary, "lib3mf_getspecificationversion"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_GetSpecificationVersion == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_CreateModel = (PLib3MFCreateModelPtr) GetProcAddress(hLibrary, "lib3mf_createmodel"); + #else // _WIN32 + pWrapperTable->m_CreateModel = (PLib3MFCreateModelPtr) dlsym(hLibrary, "lib3mf_createmodel"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_CreateModel == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Release = (PLib3MFReleasePtr) GetProcAddress(hLibrary, "lib3mf_release"); + #else // _WIN32 + pWrapperTable->m_Release = (PLib3MFReleasePtr) dlsym(hLibrary, "lib3mf_release"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Release == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_Acquire = (PLib3MFAcquirePtr) GetProcAddress(hLibrary, "lib3mf_acquire"); + #else // _WIN32 + pWrapperTable->m_Acquire = (PLib3MFAcquirePtr) dlsym(hLibrary, "lib3mf_acquire"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_Acquire == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_SetJournal = (PLib3MFSetJournalPtr) GetProcAddress(hLibrary, "lib3mf_setjournal"); + #else // _WIN32 + pWrapperTable->m_SetJournal = (PLib3MFSetJournalPtr) dlsym(hLibrary, "lib3mf_setjournal"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_SetJournal == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_GetLastError = (PLib3MFGetLastErrorPtr) GetProcAddress(hLibrary, "lib3mf_getlasterror"); + #else // _WIN32 + pWrapperTable->m_GetLastError = (PLib3MFGetLastErrorPtr) dlsym(hLibrary, "lib3mf_getlasterror"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_GetLastError == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_GetSymbolLookupMethod = (PLib3MFGetSymbolLookupMethodPtr) GetProcAddress(hLibrary, "lib3mf_getsymbollookupmethod"); + #else // _WIN32 + pWrapperTable->m_GetSymbolLookupMethod = (PLib3MFGetSymbolLookupMethodPtr) dlsym(hLibrary, "lib3mf_getsymbollookupmethod"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_GetSymbolLookupMethod == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_RetrieveProgressMessage = (PLib3MFRetrieveProgressMessagePtr) GetProcAddress(hLibrary, "lib3mf_retrieveprogressmessage"); + #else // _WIN32 + pWrapperTable->m_RetrieveProgressMessage = (PLib3MFRetrieveProgressMessagePtr) dlsym(hLibrary, "lib3mf_retrieveprogressmessage"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_RetrieveProgressMessage == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_RGBAToColor = (PLib3MFRGBAToColorPtr) GetProcAddress(hLibrary, "lib3mf_rgbatocolor"); + #else // _WIN32 + pWrapperTable->m_RGBAToColor = (PLib3MFRGBAToColorPtr) dlsym(hLibrary, "lib3mf_rgbatocolor"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_RGBAToColor == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_FloatRGBAToColor = (PLib3MFFloatRGBAToColorPtr) GetProcAddress(hLibrary, "lib3mf_floatrgbatocolor"); + #else // _WIN32 + pWrapperTable->m_FloatRGBAToColor = (PLib3MFFloatRGBAToColorPtr) dlsym(hLibrary, "lib3mf_floatrgbatocolor"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_FloatRGBAToColor == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ColorToRGBA = (PLib3MFColorToRGBAPtr) GetProcAddress(hLibrary, "lib3mf_colortorgba"); + #else // _WIN32 + pWrapperTable->m_ColorToRGBA = (PLib3MFColorToRGBAPtr) dlsym(hLibrary, "lib3mf_colortorgba"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ColorToRGBA == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_ColorToFloatRGBA = (PLib3MFColorToFloatRGBAPtr) GetProcAddress(hLibrary, "lib3mf_colortofloatrgba"); + #else // _WIN32 + pWrapperTable->m_ColorToFloatRGBA = (PLib3MFColorToFloatRGBAPtr) dlsym(hLibrary, "lib3mf_colortofloatrgba"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_ColorToFloatRGBA == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_GetIdentityTransform = (PLib3MFGetIdentityTransformPtr) GetProcAddress(hLibrary, "lib3mf_getidentitytransform"); + #else // _WIN32 + pWrapperTable->m_GetIdentityTransform = (PLib3MFGetIdentityTransformPtr) dlsym(hLibrary, "lib3mf_getidentitytransform"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_GetIdentityTransform == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_GetUniformScaleTransform = (PLib3MFGetUniformScaleTransformPtr) GetProcAddress(hLibrary, "lib3mf_getuniformscaletransform"); + #else // _WIN32 + pWrapperTable->m_GetUniformScaleTransform = (PLib3MFGetUniformScaleTransformPtr) dlsym(hLibrary, "lib3mf_getuniformscaletransform"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_GetUniformScaleTransform == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_GetScaleTransform = (PLib3MFGetScaleTransformPtr) GetProcAddress(hLibrary, "lib3mf_getscaletransform"); + #else // _WIN32 + pWrapperTable->m_GetScaleTransform = (PLib3MFGetScaleTransformPtr) dlsym(hLibrary, "lib3mf_getscaletransform"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_GetScaleTransform == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + #ifdef _WIN32 + pWrapperTable->m_GetTranslationTransform = (PLib3MFGetTranslationTransformPtr) GetProcAddress(hLibrary, "lib3mf_gettranslationtransform"); + #else // _WIN32 + pWrapperTable->m_GetTranslationTransform = (PLib3MFGetTranslationTransformPtr) dlsym(hLibrary, "lib3mf_gettranslationtransform"); + dlerror(); + #endif // _WIN32 + if (pWrapperTable->m_GetTranslationTransform == NULL) + return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; + + pWrapperTable->m_LibraryHandle = hLibrary; + return LIB3MF_SUCCESS; +} + +Lib3MFHandle loadLib3MFLibrary (const char * pFileName) +{ + Lib3MFResult nResult; + sLib3MFDynamicWrapperTable * pWrapperTable = (sLib3MFDynamicWrapperTable *) malloc (sizeof (sLib3MFDynamicWrapperTable)); + if (pWrapperTable != NULL) { + nResult = InitLib3MFWrapperTable (pWrapperTable); + if (nResult != LIB3MF_SUCCESS) { + free (pWrapperTable); + return 0; + } + + nResult = LoadLib3MFWrapperTable (pWrapperTable, pFileName); + if (nResult != LIB3MF_SUCCESS) { + free (pWrapperTable); + return 0; + } + + return (Lib3MFHandle) pWrapperTable; + } +} + +void unloadLib3MFLibrary (Lib3MFHandle nLibraryHandle) +{ + sLib3MFDynamicWrapperTable * pWrapperTable = (sLib3MFDynamicWrapperTable *) malloc (sizeof (sLib3MFDynamicWrapperTable)); + if (pWrapperTable != NULL) { + ReleaseLib3MFWrapperTable (pWrapperTable); + free (pWrapperTable); + } +} + + +Lib3MFResult CCall_lib3mf_base_classtypeid(Lib3MFHandle libraryHandle, Lib3MF_Base pBase, Lib3MF_uint64 * pClassTypeId) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Base_ClassTypeId (pBase, pClassTypeId); +} + + +Lib3MFResult CCall_lib3mf_writer_writetofile(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, const char * pFilename) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Writer_WriteToFile (pWriter, pFilename); +} + + +Lib3MFResult CCall_lib3mf_writer_getstreamsize(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MF_uint64 * pStreamSize) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Writer_GetStreamSize (pWriter, pStreamSize); +} + + +Lib3MFResult CCall_lib3mf_writer_writetobuffer(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, const Lib3MF_uint64 nBufferBufferSize, Lib3MF_uint64* pBufferNeededCount, Lib3MF_uint8 * pBufferBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Writer_WriteToBuffer (pWriter, nBufferBufferSize, pBufferNeededCount, pBufferBuffer); +} + + +Lib3MFResult CCall_lib3mf_writer_writetocallback(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MFWriteCallback pTheWriteCallback, Lib3MFSeekCallback pTheSeekCallback, Lib3MF_pvoid pUserData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Writer_WriteToCallback (pWriter, pTheWriteCallback, pTheSeekCallback, pUserData); +} + + +Lib3MFResult CCall_lib3mf_writer_setprogresscallback(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MFProgressCallback pProgressCallback, Lib3MF_pvoid pUserData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Writer_SetProgressCallback (pWriter, pProgressCallback, pUserData); +} + + +Lib3MFResult CCall_lib3mf_writer_getdecimalprecision(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MF_uint32 * pDecimalPrecision) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Writer_GetDecimalPrecision (pWriter, pDecimalPrecision); +} + + +Lib3MFResult CCall_lib3mf_writer_setdecimalprecision(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MF_uint32 nDecimalPrecision) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Writer_SetDecimalPrecision (pWriter, nDecimalPrecision); +} + + +Lib3MFResult CCall_lib3mf_writer_setstrictmodeactive(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, bool bStrictModeActive) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Writer_SetStrictModeActive (pWriter, bStrictModeActive); +} + + +Lib3MFResult CCall_lib3mf_writer_getstrictmodeactive(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, bool * pStrictModeActive) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Writer_GetStrictModeActive (pWriter, pStrictModeActive); +} + + +Lib3MFResult CCall_lib3mf_writer_getwarning(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MF_uint32 nIndex, Lib3MF_uint32 * pErrorCode, const Lib3MF_uint32 nWarningBufferSize, Lib3MF_uint32* pWarningNeededChars, char * pWarningBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Writer_GetWarning (pWriter, nIndex, pErrorCode, nWarningBufferSize, pWarningNeededChars, pWarningBuffer); +} + + +Lib3MFResult CCall_lib3mf_writer_getwarningcount(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Writer_GetWarningCount (pWriter, pCount); +} + + +Lib3MFResult CCall_lib3mf_writer_addkeywrappingcallback(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, const char * pConsumerID, Lib3MFKeyWrappingCallback pTheCallback, Lib3MF_pvoid pUserData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Writer_AddKeyWrappingCallback (pWriter, pConsumerID, pTheCallback, pUserData); +} + + +Lib3MFResult CCall_lib3mf_writer_setcontentencryptioncallback(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MFContentEncryptionCallback pTheCallback, Lib3MF_pvoid pUserData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Writer_SetContentEncryptionCallback (pWriter, pTheCallback, pUserData); +} + + +Lib3MFResult CCall_lib3mf_reader_readfromfile(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, const char * pFilename) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Reader_ReadFromFile (pReader, pFilename); +} + + +Lib3MFResult CCall_lib3mf_reader_readfrombuffer(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MF_uint64 nBufferBufferSize, const Lib3MF_uint8 * pBufferBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Reader_ReadFromBuffer (pReader, nBufferBufferSize, pBufferBuffer); +} + + +Lib3MFResult CCall_lib3mf_reader_readfromcallback(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MFReadCallback pTheReadCallback, Lib3MF_uint64 nStreamSize, Lib3MFSeekCallback pTheSeekCallback, Lib3MF_pvoid pUserData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Reader_ReadFromCallback (pReader, pTheReadCallback, nStreamSize, pTheSeekCallback, pUserData); +} + + +Lib3MFResult CCall_lib3mf_reader_setprogresscallback(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MFProgressCallback pProgressCallback, Lib3MF_pvoid pUserData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Reader_SetProgressCallback (pReader, pProgressCallback, pUserData); +} + + +Lib3MFResult CCall_lib3mf_reader_addrelationtoread(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, const char * pRelationShipType) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Reader_AddRelationToRead (pReader, pRelationShipType); +} + + +Lib3MFResult CCall_lib3mf_reader_removerelationtoread(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, const char * pRelationShipType) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Reader_RemoveRelationToRead (pReader, pRelationShipType); +} + + +Lib3MFResult CCall_lib3mf_reader_setstrictmodeactive(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, bool bStrictModeActive) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Reader_SetStrictModeActive (pReader, bStrictModeActive); +} + + +Lib3MFResult CCall_lib3mf_reader_getstrictmodeactive(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, bool * pStrictModeActive) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Reader_GetStrictModeActive (pReader, pStrictModeActive); +} + + +Lib3MFResult CCall_lib3mf_reader_getwarning(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MF_uint32 nIndex, Lib3MF_uint32 * pErrorCode, const Lib3MF_uint32 nWarningBufferSize, Lib3MF_uint32* pWarningNeededChars, char * pWarningBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Reader_GetWarning (pReader, nIndex, pErrorCode, nWarningBufferSize, pWarningNeededChars, pWarningBuffer); +} + + +Lib3MFResult CCall_lib3mf_reader_getwarningcount(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Reader_GetWarningCount (pReader, pCount); +} + + +Lib3MFResult CCall_lib3mf_reader_addkeywrappingcallback(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, const char * pConsumerID, Lib3MFKeyWrappingCallback pTheCallback, Lib3MF_pvoid pUserData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Reader_AddKeyWrappingCallback (pReader, pConsumerID, pTheCallback, pUserData); +} + + +Lib3MFResult CCall_lib3mf_reader_setcontentencryptioncallback(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MFContentEncryptionCallback pTheCallback, Lib3MF_pvoid pUserData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Reader_SetContentEncryptionCallback (pReader, pTheCallback, pUserData); +} + + +Lib3MFResult CCall_lib3mf_packagepart_getpath(Lib3MFHandle libraryHandle, Lib3MF_PackagePart pPackagePart, const Lib3MF_uint32 nPathBufferSize, Lib3MF_uint32* pPathNeededChars, char * pPathBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_PackagePart_GetPath (pPackagePart, nPathBufferSize, pPathNeededChars, pPathBuffer); +} + + +Lib3MFResult CCall_lib3mf_packagepart_setpath(Lib3MFHandle libraryHandle, Lib3MF_PackagePart pPackagePart, const char * pPath) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_PackagePart_SetPath (pPackagePart, pPath); +} + + +Lib3MFResult CCall_lib3mf_resource_getresourceid(Lib3MFHandle libraryHandle, Lib3MF_Resource pResource, Lib3MF_uint32 * pUniqueResourceID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Resource_GetResourceID (pResource, pUniqueResourceID); +} + + +Lib3MFResult CCall_lib3mf_resource_getuniqueresourceid(Lib3MFHandle libraryHandle, Lib3MF_Resource pResource, Lib3MF_uint32 * pUniqueResourceID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Resource_GetUniqueResourceID (pResource, pUniqueResourceID); +} + + +Lib3MFResult CCall_lib3mf_resource_packagepart(Lib3MFHandle libraryHandle, Lib3MF_Resource pResource, Lib3MF_PackagePart * pPackagePart) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Resource_PackagePart (pResource, pPackagePart); +} + + +Lib3MFResult CCall_lib3mf_resource_setpackagepart(Lib3MFHandle libraryHandle, Lib3MF_Resource pResource, Lib3MF_PackagePart pPackagePart) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Resource_SetPackagePart (pResource, pPackagePart); +} + + +Lib3MFResult CCall_lib3mf_resource_getmodelresourceid(Lib3MFHandle libraryHandle, Lib3MF_Resource pResource, Lib3MF_uint32 * pModelResourceId) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Resource_GetModelResourceID (pResource, pModelResourceId); +} + + +Lib3MFResult CCall_lib3mf_resourceiterator_movenext(Lib3MFHandle libraryHandle, Lib3MF_ResourceIterator pResourceIterator, bool * pHasNext) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ResourceIterator_MoveNext (pResourceIterator, pHasNext); +} + + +Lib3MFResult CCall_lib3mf_resourceiterator_moveprevious(Lib3MFHandle libraryHandle, Lib3MF_ResourceIterator pResourceIterator, bool * pHasPrevious) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ResourceIterator_MovePrevious (pResourceIterator, pHasPrevious); +} + + +Lib3MFResult CCall_lib3mf_resourceiterator_getcurrent(Lib3MFHandle libraryHandle, Lib3MF_ResourceIterator pResourceIterator, Lib3MF_Resource * pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ResourceIterator_GetCurrent (pResourceIterator, pResource); +} + + +Lib3MFResult CCall_lib3mf_resourceiterator_clone(Lib3MFHandle libraryHandle, Lib3MF_ResourceIterator pResourceIterator, Lib3MF_ResourceIterator * pOutResourceIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ResourceIterator_Clone (pResourceIterator, pOutResourceIterator); +} + + +Lib3MFResult CCall_lib3mf_resourceiterator_count(Lib3MFHandle libraryHandle, Lib3MF_ResourceIterator pResourceIterator, Lib3MF_uint64 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ResourceIterator_Count (pResourceIterator, pCount); +} + + +Lib3MFResult CCall_lib3mf_slicestackiterator_getcurrentslicestack(Lib3MFHandle libraryHandle, Lib3MF_SliceStackIterator pSliceStackIterator, Lib3MF_SliceStack * pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_SliceStackIterator_GetCurrentSliceStack (pSliceStackIterator, pResource); +} + + +Lib3MFResult CCall_lib3mf_objectiterator_getcurrentobject(Lib3MFHandle libraryHandle, Lib3MF_ObjectIterator pObjectIterator, Lib3MF_Object * pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ObjectIterator_GetCurrentObject (pObjectIterator, pResource); +} + + +Lib3MFResult CCall_lib3mf_meshobjectiterator_getcurrentmeshobject(Lib3MFHandle libraryHandle, Lib3MF_MeshObjectIterator pMeshObjectIterator, Lib3MF_MeshObject * pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObjectIterator_GetCurrentMeshObject (pMeshObjectIterator, pResource); +} + + +Lib3MFResult CCall_lib3mf_componentsobjectiterator_getcurrentcomponentsobject(Lib3MFHandle libraryHandle, Lib3MF_ComponentsObjectIterator pComponentsObjectIterator, Lib3MF_ComponentsObject * pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComponentsObjectIterator_GetCurrentComponentsObject (pComponentsObjectIterator, pResource); +} + + +Lib3MFResult CCall_lib3mf_texture2diterator_getcurrenttexture2d(Lib3MFHandle libraryHandle, Lib3MF_Texture2DIterator pTexture2DIterator, Lib3MF_Texture2D * pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Texture2DIterator_GetCurrentTexture2D (pTexture2DIterator, pResource); +} + + +Lib3MFResult CCall_lib3mf_basematerialgroupiterator_getcurrentbasematerialgroup(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroupIterator pBaseMaterialGroupIterator, Lib3MF_BaseMaterialGroup * pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BaseMaterialGroupIterator_GetCurrentBaseMaterialGroup (pBaseMaterialGroupIterator, pResource); +} + + +Lib3MFResult CCall_lib3mf_colorgroupiterator_getcurrentcolorgroup(Lib3MFHandle libraryHandle, Lib3MF_ColorGroupIterator pColorGroupIterator, Lib3MF_ColorGroup * pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ColorGroupIterator_GetCurrentColorGroup (pColorGroupIterator, pResource); +} + + +Lib3MFResult CCall_lib3mf_texture2dgroupiterator_getcurrenttexture2dgroup(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroupIterator pTexture2DGroupIterator, Lib3MF_Texture2DGroup * pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Texture2DGroupIterator_GetCurrentTexture2DGroup (pTexture2DGroupIterator, pResource); +} + + +Lib3MFResult CCall_lib3mf_compositematerialsiterator_getcurrentcompositematerials(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterialsIterator pCompositeMaterialsIterator, Lib3MF_CompositeMaterials * pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_CompositeMaterialsIterator_GetCurrentCompositeMaterials (pCompositeMaterialsIterator, pResource); +} + + +Lib3MFResult CCall_lib3mf_multipropertygroupiterator_getcurrentmultipropertygroup(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroupIterator pMultiPropertyGroupIterator, Lib3MF_MultiPropertyGroup * pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MultiPropertyGroupIterator_GetCurrentMultiPropertyGroup (pMultiPropertyGroupIterator, pResource); +} + + +Lib3MFResult CCall_lib3mf_image3diterator_getcurrentimage3d(Lib3MFHandle libraryHandle, Lib3MF_Image3DIterator pImage3DIterator, Lib3MF_Image3D * pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Image3DIterator_GetCurrentImage3D (pImage3DIterator, pResource); +} + + +Lib3MFResult CCall_lib3mf_functioniterator_getcurrentfunction(Lib3MFHandle libraryHandle, Lib3MF_FunctionIterator pFunctionIterator, Lib3MF_Function * pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionIterator_GetCurrentFunction (pFunctionIterator, pResource); +} + + +Lib3MFResult CCall_lib3mf_levelsetiterator_getcurrentlevelset(Lib3MFHandle libraryHandle, Lib3MF_LevelSetIterator pLevelSetIterator, Lib3MF_LevelSet * pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSetIterator_GetCurrentLevelSet (pLevelSetIterator, pResource); +} + + +Lib3MFResult CCall_lib3mf_metadata_getnamespace(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const Lib3MF_uint32 nNameSpaceBufferSize, Lib3MF_uint32* pNameSpaceNeededChars, char * pNameSpaceBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaData_GetNameSpace (pMetaData, nNameSpaceBufferSize, pNameSpaceNeededChars, pNameSpaceBuffer); +} + + +Lib3MFResult CCall_lib3mf_metadata_setnamespace(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const char * pNameSpace) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaData_SetNameSpace (pMetaData, pNameSpace); +} + + +Lib3MFResult CCall_lib3mf_metadata_getname(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const Lib3MF_uint32 nNameBufferSize, Lib3MF_uint32* pNameNeededChars, char * pNameBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaData_GetName (pMetaData, nNameBufferSize, pNameNeededChars, pNameBuffer); +} + + +Lib3MFResult CCall_lib3mf_metadata_setname(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const char * pName) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaData_SetName (pMetaData, pName); +} + + +Lib3MFResult CCall_lib3mf_metadata_getkey(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const Lib3MF_uint32 nKeyBufferSize, Lib3MF_uint32* pKeyNeededChars, char * pKeyBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaData_GetKey (pMetaData, nKeyBufferSize, pKeyNeededChars, pKeyBuffer); +} + + +Lib3MFResult CCall_lib3mf_metadata_getmustpreserve(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, bool * pMustPreserve) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaData_GetMustPreserve (pMetaData, pMustPreserve); +} + + +Lib3MFResult CCall_lib3mf_metadata_setmustpreserve(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, bool bMustPreserve) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaData_SetMustPreserve (pMetaData, bMustPreserve); +} + + +Lib3MFResult CCall_lib3mf_metadata_gettype(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const Lib3MF_uint32 nTypeBufferSize, Lib3MF_uint32* pTypeNeededChars, char * pTypeBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaData_GetType (pMetaData, nTypeBufferSize, pTypeNeededChars, pTypeBuffer); +} + + +Lib3MFResult CCall_lib3mf_metadata_settype(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const char * pType) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaData_SetType (pMetaData, pType); +} + + +Lib3MFResult CCall_lib3mf_metadata_getvalue(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const Lib3MF_uint32 nValueBufferSize, Lib3MF_uint32* pValueNeededChars, char * pValueBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaData_GetValue (pMetaData, nValueBufferSize, pValueNeededChars, pValueBuffer); +} + + +Lib3MFResult CCall_lib3mf_metadata_setvalue(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const char * pValue) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaData_SetValue (pMetaData, pValue); +} + + +Lib3MFResult CCall_lib3mf_metadatagroup_getmetadatacount(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaDataGroup_GetMetaDataCount (pMetaDataGroup, pCount); +} + + +Lib3MFResult CCall_lib3mf_metadatagroup_getmetadata(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, Lib3MF_uint32 nIndex, Lib3MF_MetaData * pMetaData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaDataGroup_GetMetaData (pMetaDataGroup, nIndex, pMetaData); +} + + +Lib3MFResult CCall_lib3mf_metadatagroup_getmetadatabykey(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, const char * pNameSpace, const char * pName, Lib3MF_MetaData * pMetaData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaDataGroup_GetMetaDataByKey (pMetaDataGroup, pNameSpace, pName, pMetaData); +} + + +Lib3MFResult CCall_lib3mf_metadatagroup_removemetadatabyindex(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, Lib3MF_uint32 nIndex) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaDataGroup_RemoveMetaDataByIndex (pMetaDataGroup, nIndex); +} + + +Lib3MFResult CCall_lib3mf_metadatagroup_removemetadata(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, Lib3MF_MetaData pTheMetaData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaDataGroup_RemoveMetaData (pMetaDataGroup, pTheMetaData); +} + + +Lib3MFResult CCall_lib3mf_metadatagroup_addmetadata(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, const char * pNameSpace, const char * pName, const char * pValue, const char * pType, bool bMustPreserve, Lib3MF_MetaData * pMetaData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MetaDataGroup_AddMetaData (pMetaDataGroup, pNameSpace, pName, pValue, pType, bMustPreserve, pMetaData); +} + + +Lib3MFResult CCall_lib3mf_object_gettype(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, eLib3MFObjectType * pObjectType) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_GetType (pObject, pObjectType); +} + + +Lib3MFResult CCall_lib3mf_object_settype(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, eLib3MFObjectType eObjectType) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_SetType (pObject, eObjectType); +} + + +Lib3MFResult CCall_lib3mf_object_getname(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, const Lib3MF_uint32 nNameBufferSize, Lib3MF_uint32* pNameNeededChars, char * pNameBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_GetName (pObject, nNameBufferSize, pNameNeededChars, pNameBuffer); +} + + +Lib3MFResult CCall_lib3mf_object_setname(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, const char * pName) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_SetName (pObject, pName); +} + + +Lib3MFResult CCall_lib3mf_object_getpartnumber(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, const Lib3MF_uint32 nPartNumberBufferSize, Lib3MF_uint32* pPartNumberNeededChars, char * pPartNumberBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_GetPartNumber (pObject, nPartNumberBufferSize, pPartNumberNeededChars, pPartNumberBuffer); +} + + +Lib3MFResult CCall_lib3mf_object_setpartnumber(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, const char * pPartNumber) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_SetPartNumber (pObject, pPartNumber); +} + + +Lib3MFResult CCall_lib3mf_object_ismeshobject(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool * pIsMeshObject) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_IsMeshObject (pObject, pIsMeshObject); +} + + +Lib3MFResult CCall_lib3mf_object_iscomponentsobject(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool * pIsComponentsObject) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_IsComponentsObject (pObject, pIsComponentsObject); +} + + +Lib3MFResult CCall_lib3mf_object_islevelsetobject(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool * pIsLevelSetObject) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_IsLevelSetObject (pObject, pIsLevelSetObject); +} + + +Lib3MFResult CCall_lib3mf_object_isvalid(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool * pIsValid) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_IsValid (pObject, pIsValid); +} + + +Lib3MFResult CCall_lib3mf_object_setattachmentasthumbnail(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, Lib3MF_Attachment pAttachment) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_SetAttachmentAsThumbnail (pObject, pAttachment); +} + + +Lib3MFResult CCall_lib3mf_object_getthumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, Lib3MF_Attachment * pAttachment) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_GetThumbnailAttachment (pObject, pAttachment); +} + + +Lib3MFResult CCall_lib3mf_object_clearthumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Object pObject) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_ClearThumbnailAttachment (pObject); +} + + +Lib3MFResult CCall_lib3mf_object_getoutbox(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, sLib3MFBox * pOutbox) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_GetOutbox (pObject, pOutbox); +} + + +Lib3MFResult CCall_lib3mf_object_getuuid(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool * pHasUUID, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_GetUUID (pObject, pHasUUID, nUUIDBufferSize, pUUIDNeededChars, pUUIDBuffer); +} + + +Lib3MFResult CCall_lib3mf_object_setuuid(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, const char * pUUID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_SetUUID (pObject, pUUID); +} + + +Lib3MFResult CCall_lib3mf_object_getmetadatagroup(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, Lib3MF_MetaDataGroup * pMetaDataGroup) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_GetMetaDataGroup (pObject, pMetaDataGroup); +} + + +Lib3MFResult CCall_lib3mf_object_setslicesmeshresolution(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, eLib3MFSlicesMeshResolution eMeshResolution) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_SetSlicesMeshResolution (pObject, eMeshResolution); +} + + +Lib3MFResult CCall_lib3mf_object_getslicesmeshresolution(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, eLib3MFSlicesMeshResolution * pMeshResolution) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_GetSlicesMeshResolution (pObject, pMeshResolution); +} + + +Lib3MFResult CCall_lib3mf_object_hasslices(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool bRecursive, bool * pHasSlices) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_HasSlices (pObject, bRecursive, pHasSlices); +} + + +Lib3MFResult CCall_lib3mf_object_clearslicestack(Lib3MFHandle libraryHandle, Lib3MF_Object pObject) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_ClearSliceStack (pObject); +} + + +Lib3MFResult CCall_lib3mf_object_getslicestack(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, Lib3MF_SliceStack * pSliceStackInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_GetSliceStack (pObject, pSliceStackInstance); +} + + +Lib3MFResult CCall_lib3mf_object_assignslicestack(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, Lib3MF_SliceStack pSliceStackInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Object_AssignSliceStack (pObject, pSliceStackInstance); +} + + +Lib3MFResult CCall_lib3mf_meshobject_getvertexcount(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 * pVertexCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_GetVertexCount (pMeshObject, pVertexCount); +} + + +Lib3MFResult CCall_lib3mf_meshobject_gettrianglecount(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 * pVertexCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_GetTriangleCount (pMeshObject, pVertexCount); +} + + +Lib3MFResult CCall_lib3mf_meshobject_getvertex(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, sLib3MFPosition * pCoordinates) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_GetVertex (pMeshObject, nIndex, pCoordinates); +} + + +Lib3MFResult CCall_lib3mf_meshobject_setvertex(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, const sLib3MFPosition * pCoordinates) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_SetVertex (pMeshObject, nIndex, pCoordinates); +} + + +Lib3MFResult CCall_lib3mf_meshobject_addvertex(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, const sLib3MFPosition * pCoordinates, Lib3MF_uint32 * pNewIndex) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_AddVertex (pMeshObject, pCoordinates, pNewIndex); +} + + +Lib3MFResult CCall_lib3mf_meshobject_getvertices(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, const Lib3MF_uint64 nVerticesBufferSize, Lib3MF_uint64* pVerticesNeededCount, sLib3MFPosition * pVerticesBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_GetVertices (pMeshObject, nVerticesBufferSize, pVerticesNeededCount, pVerticesBuffer); +} + + +Lib3MFResult CCall_lib3mf_meshobject_gettriangle(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, sLib3MFTriangle * pIndices) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_GetTriangle (pMeshObject, nIndex, pIndices); +} + + +Lib3MFResult CCall_lib3mf_meshobject_settriangle(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, const sLib3MFTriangle * pIndices) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_SetTriangle (pMeshObject, nIndex, pIndices); +} + + +Lib3MFResult CCall_lib3mf_meshobject_addtriangle(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, const sLib3MFTriangle * pIndices, Lib3MF_uint32 * pNewIndex) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_AddTriangle (pMeshObject, pIndices, pNewIndex); +} + + +Lib3MFResult CCall_lib3mf_meshobject_gettriangleindices(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, const Lib3MF_uint64 nIndicesBufferSize, Lib3MF_uint64* pIndicesNeededCount, sLib3MFTriangle * pIndicesBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_GetTriangleIndices (pMeshObject, nIndicesBufferSize, pIndicesNeededCount, pIndicesBuffer); +} + + +Lib3MFResult CCall_lib3mf_meshobject_setobjectlevelproperty(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nUniqueResourceID, Lib3MF_uint32 nPropertyID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_SetObjectLevelProperty (pMeshObject, nUniqueResourceID, nPropertyID); +} + + +Lib3MFResult CCall_lib3mf_meshobject_getobjectlevelproperty(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 * pUniqueResourceID, Lib3MF_uint32 * pPropertyID, bool * pHasObjectLevelProperty) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_GetObjectLevelProperty (pMeshObject, pUniqueResourceID, pPropertyID, pHasObjectLevelProperty); +} + + +Lib3MFResult CCall_lib3mf_meshobject_settriangleproperties(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, const sLib3MFTriangleProperties * pProperties) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_SetTriangleProperties (pMeshObject, nIndex, pProperties); +} + + +Lib3MFResult CCall_lib3mf_meshobject_gettriangleproperties(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, sLib3MFTriangleProperties * pProperty) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_GetTriangleProperties (pMeshObject, nIndex, pProperty); +} + + +Lib3MFResult CCall_lib3mf_meshobject_setalltriangleproperties(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint64 nPropertiesArrayBufferSize, const sLib3MFTriangleProperties * pPropertiesArrayBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_SetAllTriangleProperties (pMeshObject, nPropertiesArrayBufferSize, pPropertiesArrayBuffer); +} + + +Lib3MFResult CCall_lib3mf_meshobject_getalltriangleproperties(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, const Lib3MF_uint64 nPropertiesArrayBufferSize, Lib3MF_uint64* pPropertiesArrayNeededCount, sLib3MFTriangleProperties * pPropertiesArrayBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_GetAllTriangleProperties (pMeshObject, nPropertiesArrayBufferSize, pPropertiesArrayNeededCount, pPropertiesArrayBuffer); +} + + +Lib3MFResult CCall_lib3mf_meshobject_clearallproperties(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_ClearAllProperties (pMeshObject); +} + + +Lib3MFResult CCall_lib3mf_meshobject_setgeometry(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint64 nVerticesBufferSize, const sLib3MFPosition * pVerticesBuffer, Lib3MF_uint64 nIndicesBufferSize, const sLib3MFTriangle * pIndicesBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_SetGeometry (pMeshObject, nVerticesBufferSize, pVerticesBuffer, nIndicesBufferSize, pIndicesBuffer); +} + + +Lib3MFResult CCall_lib3mf_meshobject_ismanifoldandoriented(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, bool * pIsManifoldAndOriented) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_IsManifoldAndOriented (pMeshObject, pIsManifoldAndOriented); +} + + +Lib3MFResult CCall_lib3mf_meshobject_beamlattice(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_BeamLattice * pTheBeamLattice) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_BeamLattice (pMeshObject, pTheBeamLattice); +} + + +Lib3MFResult CCall_lib3mf_meshobject_getvolumedata(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_VolumeData * pTheVolumeData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_GetVolumeData (pMeshObject, pTheVolumeData); +} + + +Lib3MFResult CCall_lib3mf_meshobject_setvolumedata(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_VolumeData pTheVolumeData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshObject_SetVolumeData (pMeshObject, pTheVolumeData); +} + + +Lib3MFResult CCall_lib3mf_levelset_getfunction(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_Function * pTheFunction) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSet_GetFunction (pLevelSet, pTheFunction); +} + + +Lib3MFResult CCall_lib3mf_levelset_setfunction(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_Function pTheFunction) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSet_SetFunction (pLevelSet, pTheFunction); +} + + +Lib3MFResult CCall_lib3mf_levelset_gettransform(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, sLib3MFTransform * pTransform) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSet_GetTransform (pLevelSet, pTransform); +} + + +Lib3MFResult CCall_lib3mf_levelset_settransform(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, const sLib3MFTransform * pTransform) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSet_SetTransform (pLevelSet, pTransform); +} + + +Lib3MFResult CCall_lib3mf_levelset_getchannelname(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSet_GetChannelName (pLevelSet, nChannelNameBufferSize, pChannelNameNeededChars, pChannelNameBuffer); +} + + +Lib3MFResult CCall_lib3mf_levelset_setchannelname(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, const char * pChannelName) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSet_SetChannelName (pLevelSet, pChannelName); +} + + +Lib3MFResult CCall_lib3mf_levelset_setminfeaturesize(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_double dMinFeatureSize) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSet_SetMinFeatureSize (pLevelSet, dMinFeatureSize); +} + + +Lib3MFResult CCall_lib3mf_levelset_getminfeaturesize(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_double * pMinFeatureSize) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSet_GetMinFeatureSize (pLevelSet, pMinFeatureSize); +} + + +Lib3MFResult CCall_lib3mf_levelset_setfallbackvalue(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_double dFallBackValue) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSet_SetFallBackValue (pLevelSet, dFallBackValue); +} + + +Lib3MFResult CCall_lib3mf_levelset_getfallbackvalue(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_double * pFallBackValue) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSet_GetFallBackValue (pLevelSet, pFallBackValue); +} + + +Lib3MFResult CCall_lib3mf_levelset_setmeshbboxonly(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, bool bMeshBBoxOnly) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSet_SetMeshBBoxOnly (pLevelSet, bMeshBBoxOnly); +} + + +Lib3MFResult CCall_lib3mf_levelset_getmeshbboxonly(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, bool * pMeshBBoxOnly) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSet_GetMeshBBoxOnly (pLevelSet, pMeshBBoxOnly); +} + + +Lib3MFResult CCall_lib3mf_levelset_setmesh(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject pTheMesh) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSet_SetMesh (pLevelSet, pTheMesh); +} + + +Lib3MFResult CCall_lib3mf_levelset_getmesh(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject * pTheMesh) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSet_GetMesh (pLevelSet, pTheMesh); +} + + +Lib3MFResult CCall_lib3mf_levelset_getvolumedata(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData * pTheVolumeData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSet_GetVolumeData (pLevelSet, pTheVolumeData); +} + + +Lib3MFResult CCall_lib3mf_levelset_setvolumedata(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData pTheVolumeData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_LevelSet_SetVolumeData (pLevelSet, pTheVolumeData); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_getminlength(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_double * pMinLength) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_GetMinLength (pBeamLattice, pMinLength); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_setminlength(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_double dMinLength) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_SetMinLength (pBeamLattice, dMinLength); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_getclipping(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, eLib3MFBeamLatticeClipMode * pClipMode, Lib3MF_uint32 * pUniqueResourceID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_GetClipping (pBeamLattice, pClipMode, pUniqueResourceID); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_setclipping(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, eLib3MFBeamLatticeClipMode eClipMode, Lib3MF_uint32 nUniqueResourceID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_SetClipping (pBeamLattice, eClipMode, nUniqueResourceID); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_getrepresentation(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, bool * pHasRepresentation, Lib3MF_uint32 * pUniqueResourceID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_GetRepresentation (pBeamLattice, pHasRepresentation, pUniqueResourceID); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_setrepresentation(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nUniqueResourceID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_SetRepresentation (pBeamLattice, nUniqueResourceID); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_getballoptions(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, eLib3MFBeamLatticeBallMode * pBallMode, Lib3MF_double * pBallRadius) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_GetBallOptions (pBeamLattice, pBallMode, pBallRadius); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_setballoptions(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, eLib3MFBeamLatticeBallMode eBallMode, Lib3MF_double dBallRadius) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_SetBallOptions (pBeamLattice, eBallMode, dBallRadius); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_getbeamcount(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_GetBeamCount (pBeamLattice, pCount); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_getbeam(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nIndex, sLib3MFBeam * pBeamInfo) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_GetBeam (pBeamLattice, nIndex, pBeamInfo); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_addbeam(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, const sLib3MFBeam * pBeamInfo, Lib3MF_uint32 * pIndex) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_AddBeam (pBeamLattice, pBeamInfo, pIndex); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_setbeam(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nIndex, const sLib3MFBeam * pBeamInfo) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_SetBeam (pBeamLattice, nIndex, pBeamInfo); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_setbeams(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint64 nBeamInfoBufferSize, const sLib3MFBeam * pBeamInfoBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_SetBeams (pBeamLattice, nBeamInfoBufferSize, pBeamInfoBuffer); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_getbeams(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, const Lib3MF_uint64 nBeamInfoBufferSize, Lib3MF_uint64* pBeamInfoNeededCount, sLib3MFBeam * pBeamInfoBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_GetBeams (pBeamLattice, nBeamInfoBufferSize, pBeamInfoNeededCount, pBeamInfoBuffer); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_getballcount(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_GetBallCount (pBeamLattice, pCount); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_getball(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nIndex, sLib3MFBall * pBallInfo) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_GetBall (pBeamLattice, nIndex, pBallInfo); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_addball(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, const sLib3MFBall * pBallInfo, Lib3MF_uint32 * pIndex) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_AddBall (pBeamLattice, pBallInfo, pIndex); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_setball(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nIndex, const sLib3MFBall * pBallInfo) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_SetBall (pBeamLattice, nIndex, pBallInfo); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_setballs(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint64 nBallInfoBufferSize, const sLib3MFBall * pBallInfoBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_SetBalls (pBeamLattice, nBallInfoBufferSize, pBallInfoBuffer); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_getballs(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, const Lib3MF_uint64 nBallInfoBufferSize, Lib3MF_uint64* pBallInfoNeededCount, sLib3MFBall * pBallInfoBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_GetBalls (pBeamLattice, nBallInfoBufferSize, pBallInfoNeededCount, pBallInfoBuffer); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_getbeamsetcount(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_GetBeamSetCount (pBeamLattice, pCount); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_addbeamset(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_BeamSet * pBeamSet) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_AddBeamSet (pBeamLattice, pBeamSet); +} + + +Lib3MFResult CCall_lib3mf_beamlattice_getbeamset(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nIndex, Lib3MF_BeamSet * pBeamSet) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamLattice_GetBeamSet (pBeamLattice, nIndex, pBeamSet); +} + + +Lib3MFResult CCall_lib3mf_functionreference_getfunctionresourceid(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_uint32 * pUniqueResourceID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionReference_GetFunctionResourceID (pFunctionReference, pUniqueResourceID); +} + + +Lib3MFResult CCall_lib3mf_functionreference_setfunctionresourceid(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_uint32 nUniqueResourceID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionReference_SetFunctionResourceID (pFunctionReference, nUniqueResourceID); +} + + +Lib3MFResult CCall_lib3mf_functionreference_gettransform(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, sLib3MFTransform * pTransform) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionReference_GetTransform (pFunctionReference, pTransform); +} + + +Lib3MFResult CCall_lib3mf_functionreference_settransform(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, const sLib3MFTransform * pTransform) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionReference_SetTransform (pFunctionReference, pTransform); +} + + +Lib3MFResult CCall_lib3mf_functionreference_getchannelname(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionReference_GetChannelName (pFunctionReference, nChannelNameBufferSize, pChannelNameNeededChars, pChannelNameBuffer); +} + + +Lib3MFResult CCall_lib3mf_functionreference_setchannelname(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, const char * pChannelName) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionReference_SetChannelName (pFunctionReference, pChannelName); +} + + +Lib3MFResult CCall_lib3mf_functionreference_setminfeaturesize(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_double dMinFeatureSize) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionReference_SetMinFeatureSize (pFunctionReference, dMinFeatureSize); +} + + +Lib3MFResult CCall_lib3mf_functionreference_getminfeaturesize(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_double * pMinFeatureSize) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionReference_GetMinFeatureSize (pFunctionReference, pMinFeatureSize); +} + + +Lib3MFResult CCall_lib3mf_functionreference_setfallbackvalue(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_double dFallBackValue) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionReference_SetFallBackValue (pFunctionReference, dFallBackValue); +} + + +Lib3MFResult CCall_lib3mf_functionreference_getfallbackvalue(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_double * pFallBackValue) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionReference_GetFallBackValue (pFunctionReference, pFallBackValue); +} + + +Lib3MFResult CCall_lib3mf_volumedatacomposite_getbasematerialgroup(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, Lib3MF_BaseMaterialGroup * pBaseMaterialGroupInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeDataComposite_GetBaseMaterialGroup (pVolumeDataComposite, pBaseMaterialGroupInstance); +} + + +Lib3MFResult CCall_lib3mf_volumedatacomposite_setbasematerialgroup(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, Lib3MF_BaseMaterialGroup pBaseMaterialGroupInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeDataComposite_SetBaseMaterialGroup (pVolumeDataComposite, pBaseMaterialGroupInstance); +} + + +Lib3MFResult CCall_lib3mf_volumedatacomposite_getmaterialmappingcount(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeDataComposite_GetMaterialMappingCount (pVolumeDataComposite, pCount); +} + + +Lib3MFResult CCall_lib3mf_volumedatacomposite_getmaterialmapping(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, Lib3MF_uint32 nIndex, Lib3MF_MaterialMapping * pTheMaterialMapping) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeDataComposite_GetMaterialMapping (pVolumeDataComposite, nIndex, pTheMaterialMapping); +} + + +Lib3MFResult CCall_lib3mf_volumedatacomposite_addmaterialmapping(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, const sLib3MFTransform * pTransform, Lib3MF_MaterialMapping * pTheMaterialMapping) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeDataComposite_AddMaterialMapping (pVolumeDataComposite, pTransform, pTheMaterialMapping); +} + + +Lib3MFResult CCall_lib3mf_volumedatacomposite_removematerialmapping(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, Lib3MF_uint32 nIndex) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeDataComposite_RemoveMaterialMapping (pVolumeDataComposite, nIndex); +} + + +Lib3MFResult CCall_lib3mf_volumedataproperty_getname(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataProperty pVolumeDataProperty, const Lib3MF_uint32 nPropertyNameBufferSize, Lib3MF_uint32* pPropertyNameNeededChars, char * pPropertyNameBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeDataProperty_GetName (pVolumeDataProperty, nPropertyNameBufferSize, pPropertyNameNeededChars, pPropertyNameBuffer); +} + + +Lib3MFResult CCall_lib3mf_volumedataproperty_setisrequired(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataProperty pVolumeDataProperty, bool bIsRequired) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeDataProperty_SetIsRequired (pVolumeDataProperty, bIsRequired); +} + + +Lib3MFResult CCall_lib3mf_volumedataproperty_isrequired(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataProperty pVolumeDataProperty, bool * pIsRequired) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeDataProperty_IsRequired (pVolumeDataProperty, pIsRequired); +} + + +Lib3MFResult CCall_lib3mf_volumedata_getcomposite(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_VolumeDataComposite * pTheCompositeData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeData_GetComposite (pVolumeData, pTheCompositeData); +} + + +Lib3MFResult CCall_lib3mf_volumedata_createnewcomposite(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_VolumeDataComposite * pTheCompositeData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeData_CreateNewComposite (pVolumeData, pTheCompositeData); +} + + +Lib3MFResult CCall_lib3mf_volumedata_removecomposite(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeData_RemoveComposite (pVolumeData); +} + + +Lib3MFResult CCall_lib3mf_volumedata_getcolor(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_VolumeDataColor * pTheColorData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeData_GetColor (pVolumeData, pTheColorData); +} + + +Lib3MFResult CCall_lib3mf_volumedata_createnewcolor(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_Function pTheFunction, Lib3MF_VolumeDataColor * pTheColorData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeData_CreateNewColor (pVolumeData, pTheFunction, pTheColorData); +} + + +Lib3MFResult CCall_lib3mf_volumedata_removecolor(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeData_RemoveColor (pVolumeData); +} + + +Lib3MFResult CCall_lib3mf_volumedata_getpropertycount(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeData_GetPropertyCount (pVolumeData, pCount); +} + + +Lib3MFResult CCall_lib3mf_volumedata_getproperty(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_uint32 nIndex, Lib3MF_VolumeDataProperty * pTheVolumeDataProperty) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeData_GetProperty (pVolumeData, nIndex, pTheVolumeDataProperty); +} + + +Lib3MFResult CCall_lib3mf_volumedata_addpropertyfromfunction(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, const char * pName, Lib3MF_Function pTheFunction, Lib3MF_VolumeDataProperty * pTheVolumeDataProperty) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeData_AddPropertyFromFunction (pVolumeData, pName, pTheFunction, pTheVolumeDataProperty); +} + + +Lib3MFResult CCall_lib3mf_volumedata_removeproperty(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_uint32 nIndex) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_VolumeData_RemoveProperty (pVolumeData, nIndex); +} + + +Lib3MFResult CCall_lib3mf_component_getobjectresource(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, Lib3MF_Object * pObjectResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Component_GetObjectResource (pComponent, pObjectResource); +} + + +Lib3MFResult CCall_lib3mf_component_getobjectresourceid(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, Lib3MF_uint32 * pUniqueResourceID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Component_GetObjectResourceID (pComponent, pUniqueResourceID); +} + + +Lib3MFResult CCall_lib3mf_component_getuuid(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, bool * pHasUUID, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Component_GetUUID (pComponent, pHasUUID, nUUIDBufferSize, pUUIDNeededChars, pUUIDBuffer); +} + + +Lib3MFResult CCall_lib3mf_component_setuuid(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, const char * pUUID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Component_SetUUID (pComponent, pUUID); +} + + +Lib3MFResult CCall_lib3mf_component_hastransform(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, bool * pHasTransform) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Component_HasTransform (pComponent, pHasTransform); +} + + +Lib3MFResult CCall_lib3mf_component_gettransform(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, sLib3MFTransform * pTransform) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Component_GetTransform (pComponent, pTransform); +} + + +Lib3MFResult CCall_lib3mf_component_settransform(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, const sLib3MFTransform * pTransform) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Component_SetTransform (pComponent, pTransform); +} + + +Lib3MFResult CCall_lib3mf_componentsobject_addcomponent(Lib3MFHandle libraryHandle, Lib3MF_ComponentsObject pComponentsObject, Lib3MF_Object pObjectResource, const sLib3MFTransform * pTransform, Lib3MF_Component * pComponentInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComponentsObject_AddComponent (pComponentsObject, pObjectResource, pTransform, pComponentInstance); +} + + +Lib3MFResult CCall_lib3mf_componentsobject_getcomponent(Lib3MFHandle libraryHandle, Lib3MF_ComponentsObject pComponentsObject, Lib3MF_uint32 nIndex, Lib3MF_Component * pComponentInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComponentsObject_GetComponent (pComponentsObject, nIndex, pComponentInstance); +} + + +Lib3MFResult CCall_lib3mf_componentsobject_getcomponentcount(Lib3MFHandle libraryHandle, Lib3MF_ComponentsObject pComponentsObject, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComponentsObject_GetComponentCount (pComponentsObject, pCount); +} + + +Lib3MFResult CCall_lib3mf_beamset_setname(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const char * pName) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamSet_SetName (pBeamSet, pName); +} + + +Lib3MFResult CCall_lib3mf_beamset_getname(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const Lib3MF_uint32 nNameBufferSize, Lib3MF_uint32* pNameNeededChars, char * pNameBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamSet_GetName (pBeamSet, nNameBufferSize, pNameNeededChars, pNameBuffer); +} + + +Lib3MFResult CCall_lib3mf_beamset_setidentifier(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const char * pIdentifier) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamSet_SetIdentifier (pBeamSet, pIdentifier); +} + + +Lib3MFResult CCall_lib3mf_beamset_getidentifier(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const Lib3MF_uint32 nIdentifierBufferSize, Lib3MF_uint32* pIdentifierNeededChars, char * pIdentifierBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamSet_GetIdentifier (pBeamSet, nIdentifierBufferSize, pIdentifierNeededChars, pIdentifierBuffer); +} + + +Lib3MFResult CCall_lib3mf_beamset_getreferencecount(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamSet_GetReferenceCount (pBeamSet, pCount); +} + + +Lib3MFResult CCall_lib3mf_beamset_setreferences(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, Lib3MF_uint64 nReferencesBufferSize, const Lib3MF_uint32 * pReferencesBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamSet_SetReferences (pBeamSet, nReferencesBufferSize, pReferencesBuffer); +} + + +Lib3MFResult CCall_lib3mf_beamset_getreferences(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const Lib3MF_uint64 nReferencesBufferSize, Lib3MF_uint64* pReferencesNeededCount, Lib3MF_uint32 * pReferencesBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamSet_GetReferences (pBeamSet, nReferencesBufferSize, pReferencesNeededCount, pReferencesBuffer); +} + + +Lib3MFResult CCall_lib3mf_beamset_getballreferencecount(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamSet_GetBallReferenceCount (pBeamSet, pCount); +} + + +Lib3MFResult CCall_lib3mf_beamset_setballreferences(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, Lib3MF_uint64 nBallReferencesBufferSize, const Lib3MF_uint32 * pBallReferencesBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamSet_SetBallReferences (pBeamSet, nBallReferencesBufferSize, pBallReferencesBuffer); +} + + +Lib3MFResult CCall_lib3mf_beamset_getballreferences(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const Lib3MF_uint64 nBallReferencesBufferSize, Lib3MF_uint64* pBallReferencesNeededCount, Lib3MF_uint32 * pBallReferencesBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BeamSet_GetBallReferences (pBeamSet, nBallReferencesBufferSize, pBallReferencesNeededCount, pBallReferencesBuffer); +} + + +Lib3MFResult CCall_lib3mf_basematerialgroup_getcount(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BaseMaterialGroup_GetCount (pBaseMaterialGroup, pCount); +} + + +Lib3MFResult CCall_lib3mf_basematerialgroup_getallpropertyids(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BaseMaterialGroup_GetAllPropertyIDs (pBaseMaterialGroup, nPropertyIDsBufferSize, pPropertyIDsNeededCount, pPropertyIDsBuffer); +} + + +Lib3MFResult CCall_lib3mf_basematerialgroup_addmaterial(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, const char * pName, const sLib3MFColor * pDisplayColor, Lib3MF_uint32 * pPropertyID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BaseMaterialGroup_AddMaterial (pBaseMaterialGroup, pName, pDisplayColor, pPropertyID); +} + + +Lib3MFResult CCall_lib3mf_basematerialgroup_removematerial(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 nPropertyID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BaseMaterialGroup_RemoveMaterial (pBaseMaterialGroup, nPropertyID); +} + + +Lib3MFResult CCall_lib3mf_basematerialgroup_getname(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 nPropertyID, const Lib3MF_uint32 nNameBufferSize, Lib3MF_uint32* pNameNeededChars, char * pNameBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BaseMaterialGroup_GetName (pBaseMaterialGroup, nPropertyID, nNameBufferSize, pNameNeededChars, pNameBuffer); +} + + +Lib3MFResult CCall_lib3mf_basematerialgroup_setname(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 nPropertyID, const char * pName) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BaseMaterialGroup_SetName (pBaseMaterialGroup, nPropertyID, pName); +} + + +Lib3MFResult CCall_lib3mf_basematerialgroup_setdisplaycolor(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 nPropertyID, const sLib3MFColor * pTheColor) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BaseMaterialGroup_SetDisplayColor (pBaseMaterialGroup, nPropertyID, pTheColor); +} + + +Lib3MFResult CCall_lib3mf_basematerialgroup_getdisplaycolor(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 nPropertyID, sLib3MFColor * pTheColor) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BaseMaterialGroup_GetDisplayColor (pBaseMaterialGroup, nPropertyID, pTheColor); +} + + +Lib3MFResult CCall_lib3mf_colorgroup_getcount(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ColorGroup_GetCount (pColorGroup, pCount); +} + + +Lib3MFResult CCall_lib3mf_colorgroup_getallpropertyids(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ColorGroup_GetAllPropertyIDs (pColorGroup, nPropertyIDsBufferSize, pPropertyIDsNeededCount, pPropertyIDsBuffer); +} + + +Lib3MFResult CCall_lib3mf_colorgroup_addcolor(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, const sLib3MFColor * pTheColor, Lib3MF_uint32 * pPropertyID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ColorGroup_AddColor (pColorGroup, pTheColor, pPropertyID); +} + + +Lib3MFResult CCall_lib3mf_colorgroup_removecolor(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, Lib3MF_uint32 nPropertyID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ColorGroup_RemoveColor (pColorGroup, nPropertyID); +} + + +Lib3MFResult CCall_lib3mf_colorgroup_setcolor(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, Lib3MF_uint32 nPropertyID, const sLib3MFColor * pTheColor) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ColorGroup_SetColor (pColorGroup, nPropertyID, pTheColor); +} + + +Lib3MFResult CCall_lib3mf_colorgroup_getcolor(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, Lib3MF_uint32 nPropertyID, sLib3MFColor * pTheColor) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ColorGroup_GetColor (pColorGroup, nPropertyID, pTheColor); +} + + +Lib3MFResult CCall_lib3mf_texture2dgroup_getcount(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Texture2DGroup_GetCount (pTexture2DGroup, pCount); +} + + +Lib3MFResult CCall_lib3mf_texture2dgroup_getallpropertyids(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Texture2DGroup_GetAllPropertyIDs (pTexture2DGroup, nPropertyIDsBufferSize, pPropertyIDsNeededCount, pPropertyIDsBuffer); +} + + +Lib3MFResult CCall_lib3mf_texture2dgroup_addtex2coord(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, const sLib3MFTex2Coord * pUVCoordinate, Lib3MF_uint32 * pPropertyID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Texture2DGroup_AddTex2Coord (pTexture2DGroup, pUVCoordinate, pPropertyID); +} + + +Lib3MFResult CCall_lib3mf_texture2dgroup_gettex2coord(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, Lib3MF_uint32 nPropertyID, sLib3MFTex2Coord * pUVCoordinate) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Texture2DGroup_GetTex2Coord (pTexture2DGroup, nPropertyID, pUVCoordinate); +} + + +Lib3MFResult CCall_lib3mf_texture2dgroup_removetex2coord(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, Lib3MF_uint32 nPropertyID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Texture2DGroup_RemoveTex2Coord (pTexture2DGroup, nPropertyID); +} + + +Lib3MFResult CCall_lib3mf_texture2dgroup_gettexture2d(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, Lib3MF_Texture2D * pTexture2DInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Texture2DGroup_GetTexture2D (pTexture2DGroup, pTexture2DInstance); +} + + +Lib3MFResult CCall_lib3mf_compositematerials_getcount(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_CompositeMaterials_GetCount (pCompositeMaterials, pCount); +} + + +Lib3MFResult CCall_lib3mf_compositematerials_getallpropertyids(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_CompositeMaterials_GetAllPropertyIDs (pCompositeMaterials, nPropertyIDsBufferSize, pPropertyIDsNeededCount, pPropertyIDsBuffer); +} + + +Lib3MFResult CCall_lib3mf_compositematerials_getbasematerialgroup(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, Lib3MF_BaseMaterialGroup * pBaseMaterialGroupInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_CompositeMaterials_GetBaseMaterialGroup (pCompositeMaterials, pBaseMaterialGroupInstance); +} + + +Lib3MFResult CCall_lib3mf_compositematerials_addcomposite(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, Lib3MF_uint64 nCompositeBufferSize, const sLib3MFCompositeConstituent * pCompositeBuffer, Lib3MF_uint32 * pPropertyID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_CompositeMaterials_AddComposite (pCompositeMaterials, nCompositeBufferSize, pCompositeBuffer, pPropertyID); +} + + +Lib3MFResult CCall_lib3mf_compositematerials_removecomposite(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, Lib3MF_uint32 nPropertyID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_CompositeMaterials_RemoveComposite (pCompositeMaterials, nPropertyID); +} + + +Lib3MFResult CCall_lib3mf_compositematerials_getcomposite(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, Lib3MF_uint32 nPropertyID, const Lib3MF_uint64 nCompositeBufferSize, Lib3MF_uint64* pCompositeNeededCount, sLib3MFCompositeConstituent * pCompositeBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_CompositeMaterials_GetComposite (pCompositeMaterials, nPropertyID, nCompositeBufferSize, pCompositeNeededCount, pCompositeBuffer); +} + + +Lib3MFResult CCall_lib3mf_multipropertygroup_getcount(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MultiPropertyGroup_GetCount (pMultiPropertyGroup, pCount); +} + + +Lib3MFResult CCall_lib3mf_multipropertygroup_getallpropertyids(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MultiPropertyGroup_GetAllPropertyIDs (pMultiPropertyGroup, nPropertyIDsBufferSize, pPropertyIDsNeededCount, pPropertyIDsBuffer); +} + + +Lib3MFResult CCall_lib3mf_multipropertygroup_addmultiproperty(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint64 nPropertyIDsBufferSize, const Lib3MF_uint32 * pPropertyIDsBuffer, Lib3MF_uint32 * pPropertyID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MultiPropertyGroup_AddMultiProperty (pMultiPropertyGroup, nPropertyIDsBufferSize, pPropertyIDsBuffer, pPropertyID); +} + + +Lib3MFResult CCall_lib3mf_multipropertygroup_setmultiproperty(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 nPropertyID, Lib3MF_uint64 nPropertyIDsBufferSize, const Lib3MF_uint32 * pPropertyIDsBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MultiPropertyGroup_SetMultiProperty (pMultiPropertyGroup, nPropertyID, nPropertyIDsBufferSize, pPropertyIDsBuffer); +} + + +Lib3MFResult CCall_lib3mf_multipropertygroup_getmultiproperty(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 nPropertyID, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MultiPropertyGroup_GetMultiProperty (pMultiPropertyGroup, nPropertyID, nPropertyIDsBufferSize, pPropertyIDsNeededCount, pPropertyIDsBuffer); +} + + +Lib3MFResult CCall_lib3mf_multipropertygroup_removemultiproperty(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 nPropertyID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MultiPropertyGroup_RemoveMultiProperty (pMultiPropertyGroup, nPropertyID); +} + + +Lib3MFResult CCall_lib3mf_multipropertygroup_getlayercount(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MultiPropertyGroup_GetLayerCount (pMultiPropertyGroup, pCount); +} + + +Lib3MFResult CCall_lib3mf_multipropertygroup_addlayer(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, const sLib3MFMultiPropertyLayer * pTheLayer, Lib3MF_uint32 * pLayerIndex) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MultiPropertyGroup_AddLayer (pMultiPropertyGroup, pTheLayer, pLayerIndex); +} + + +Lib3MFResult CCall_lib3mf_multipropertygroup_getlayer(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 nLayerIndex, sLib3MFMultiPropertyLayer * pTheLayer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MultiPropertyGroup_GetLayer (pMultiPropertyGroup, nLayerIndex, pTheLayer); +} + + +Lib3MFResult CCall_lib3mf_multipropertygroup_removelayer(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 nLayerIndex) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MultiPropertyGroup_RemoveLayer (pMultiPropertyGroup, nLayerIndex); +} + + +Lib3MFResult CCall_lib3mf_image3d_getname(Lib3MFHandle libraryHandle, Lib3MF_Image3D pImage3D, const Lib3MF_uint32 nNameBufferSize, Lib3MF_uint32* pNameNeededChars, char * pNameBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Image3D_GetName (pImage3D, nNameBufferSize, pNameNeededChars, pNameBuffer); +} + + +Lib3MFResult CCall_lib3mf_image3d_setname(Lib3MFHandle libraryHandle, Lib3MF_Image3D pImage3D, const char * pName) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Image3D_SetName (pImage3D, pName); +} + + +Lib3MFResult CCall_lib3mf_image3d_isimagestack(Lib3MFHandle libraryHandle, Lib3MF_Image3D pImage3D, bool * pIsImageStack) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Image3D_IsImageStack (pImage3D, pIsImageStack); +} + + +Lib3MFResult CCall_lib3mf_imagestack_getrowcount(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 * pRowCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImageStack_GetRowCount (pImageStack, pRowCount); +} + + +Lib3MFResult CCall_lib3mf_imagestack_setrowcount(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nRowCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImageStack_SetRowCount (pImageStack, nRowCount); +} + + +Lib3MFResult CCall_lib3mf_imagestack_getcolumncount(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 * pColumnCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImageStack_GetColumnCount (pImageStack, pColumnCount); +} + + +Lib3MFResult CCall_lib3mf_imagestack_setcolumncount(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nColumnCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImageStack_SetColumnCount (pImageStack, nColumnCount); +} + + +Lib3MFResult CCall_lib3mf_imagestack_getsheetcount(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 * pSheetCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImageStack_GetSheetCount (pImageStack, pSheetCount); +} + + +Lib3MFResult CCall_lib3mf_imagestack_getsheet(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nIndex, Lib3MF_Attachment * pSheet) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImageStack_GetSheet (pImageStack, nIndex, pSheet); +} + + +Lib3MFResult CCall_lib3mf_imagestack_setsheet(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nIndex, Lib3MF_Attachment pSheet) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImageStack_SetSheet (pImageStack, nIndex, pSheet); +} + + +Lib3MFResult CCall_lib3mf_imagestack_createemptysheet(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nIndex, const char * pPath, Lib3MF_Attachment * pSheet) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImageStack_CreateEmptySheet (pImageStack, nIndex, pPath, pSheet); +} + + +Lib3MFResult CCall_lib3mf_imagestack_createsheetfrombuffer(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nIndex, const char * pPath, Lib3MF_uint64 nDataBufferSize, const Lib3MF_uint8 * pDataBuffer, Lib3MF_Attachment * pSheet) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImageStack_CreateSheetFromBuffer (pImageStack, nIndex, pPath, nDataBufferSize, pDataBuffer, pSheet); +} + + +Lib3MFResult CCall_lib3mf_imagestack_createsheetfromfile(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nIndex, const char * pPath, const char * pFileName, Lib3MF_Attachment * pSheet) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImageStack_CreateSheetFromFile (pImageStack, nIndex, pPath, pFileName, pSheet); +} + + +Lib3MFResult CCall_lib3mf_attachment_getpath(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const Lib3MF_uint32 nPathBufferSize, Lib3MF_uint32* pPathNeededChars, char * pPathBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Attachment_GetPath (pAttachment, nPathBufferSize, pPathNeededChars, pPathBuffer); +} + + +Lib3MFResult CCall_lib3mf_attachment_setpath(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const char * pPath) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Attachment_SetPath (pAttachment, pPath); +} + + +Lib3MFResult CCall_lib3mf_attachment_packagepart(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, Lib3MF_PackagePart * pPackagePart) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Attachment_PackagePart (pAttachment, pPackagePart); +} + + +Lib3MFResult CCall_lib3mf_attachment_getrelationshiptype(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const Lib3MF_uint32 nPathBufferSize, Lib3MF_uint32* pPathNeededChars, char * pPathBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Attachment_GetRelationShipType (pAttachment, nPathBufferSize, pPathNeededChars, pPathBuffer); +} + + +Lib3MFResult CCall_lib3mf_attachment_setrelationshiptype(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const char * pPath) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Attachment_SetRelationShipType (pAttachment, pPath); +} + + +Lib3MFResult CCall_lib3mf_attachment_writetofile(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const char * pFileName) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Attachment_WriteToFile (pAttachment, pFileName); +} + + +Lib3MFResult CCall_lib3mf_attachment_readfromfile(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const char * pFileName) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Attachment_ReadFromFile (pAttachment, pFileName); +} + + +Lib3MFResult CCall_lib3mf_attachment_readfromcallback(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, Lib3MFReadCallback pTheReadCallback, Lib3MF_uint64 nStreamSize, Lib3MFSeekCallback pTheSeekCallback, Lib3MF_pvoid pUserData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Attachment_ReadFromCallback (pAttachment, pTheReadCallback, nStreamSize, pTheSeekCallback, pUserData); +} + + +Lib3MFResult CCall_lib3mf_attachment_getstreamsize(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, Lib3MF_uint64 * pStreamSize) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Attachment_GetStreamSize (pAttachment, pStreamSize); +} + + +Lib3MFResult CCall_lib3mf_attachment_writetobuffer(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const Lib3MF_uint64 nBufferBufferSize, Lib3MF_uint64* pBufferNeededCount, Lib3MF_uint8 * pBufferBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Attachment_WriteToBuffer (pAttachment, nBufferBufferSize, pBufferNeededCount, pBufferBuffer); +} + + +Lib3MFResult CCall_lib3mf_attachment_readfrombuffer(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, Lib3MF_uint64 nBufferBufferSize, const Lib3MF_uint8 * pBufferBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Attachment_ReadFromBuffer (pAttachment, nBufferBufferSize, pBufferBuffer); +} + + +Lib3MFResult CCall_lib3mf_texture2d_getattachment(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, Lib3MF_Attachment * pAttachment) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Texture2D_GetAttachment (pTexture2D, pAttachment); +} + + +Lib3MFResult CCall_lib3mf_texture2d_setattachment(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, Lib3MF_Attachment pAttachment) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Texture2D_SetAttachment (pTexture2D, pAttachment); +} + + +Lib3MFResult CCall_lib3mf_texture2d_getcontenttype(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureType * pContentType) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Texture2D_GetContentType (pTexture2D, pContentType); +} + + +Lib3MFResult CCall_lib3mf_texture2d_setcontenttype(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureType eContentType) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Texture2D_SetContentType (pTexture2D, eContentType); +} + + +Lib3MFResult CCall_lib3mf_texture2d_gettilestyleuv(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureTileStyle * pTileStyleU, eLib3MFTextureTileStyle * pTileStyleV) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Texture2D_GetTileStyleUV (pTexture2D, pTileStyleU, pTileStyleV); +} + + +Lib3MFResult CCall_lib3mf_texture2d_settilestyleuv(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureTileStyle eTileStyleU, eLib3MFTextureTileStyle eTileStyleV) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Texture2D_SetTileStyleUV (pTexture2D, eTileStyleU, eTileStyleV); +} + + +Lib3MFResult CCall_lib3mf_texture2d_getfilter(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureFilter * pFilter) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Texture2D_GetFilter (pTexture2D, pFilter); +} + + +Lib3MFResult CCall_lib3mf_texture2d_setfilter(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureFilter eFilter) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Texture2D_SetFilter (pTexture2D, eFilter); +} + + +Lib3MFResult CCall_lib3mf_implicitport_getidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const Lib3MF_uint32 nIdentifierBufferSize, Lib3MF_uint32* pIdentifierNeededChars, char * pIdentifierBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitPort_GetIdentifier (pImplicitPort, nIdentifierBufferSize, pIdentifierNeededChars, pIdentifierBuffer); +} + + +Lib3MFResult CCall_lib3mf_implicitport_setidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const char * pIdentifier) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitPort_SetIdentifier (pImplicitPort, pIdentifier); +} + + +Lib3MFResult CCall_lib3mf_implicitport_getdisplayname(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const Lib3MF_uint32 nDisplayNameBufferSize, Lib3MF_uint32* pDisplayNameNeededChars, char * pDisplayNameBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitPort_GetDisplayName (pImplicitPort, nDisplayNameBufferSize, pDisplayNameNeededChars, pDisplayNameBuffer); +} + + +Lib3MFResult CCall_lib3mf_implicitport_setdisplayname(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const char * pDisplayName) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitPort_SetDisplayName (pImplicitPort, pDisplayName); +} + + +Lib3MFResult CCall_lib3mf_implicitport_settype(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, eLib3MFImplicitPortType eImplicitPortType) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitPort_SetType (pImplicitPort, eImplicitPortType); +} + + +Lib3MFResult CCall_lib3mf_implicitport_gettype(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, eLib3MFImplicitPortType * pImplicitPortType) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitPort_GetType (pImplicitPort, pImplicitPortType); +} + + +Lib3MFResult CCall_lib3mf_implicitport_getreference(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const Lib3MF_uint32 nReferenceBufferSize, Lib3MF_uint32* pReferenceNeededChars, char * pReferenceBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitPort_GetReference (pImplicitPort, nReferenceBufferSize, pReferenceNeededChars, pReferenceBuffer); +} + + +Lib3MFResult CCall_lib3mf_implicitport_setreference(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const char * pReference) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitPort_SetReference (pImplicitPort, pReference); +} + + +Lib3MFResult CCall_lib3mf_iterator_movenext(Lib3MFHandle libraryHandle, Lib3MF_Iterator pIterator, bool * pHasNext) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Iterator_MoveNext (pIterator, pHasNext); +} + + +Lib3MFResult CCall_lib3mf_iterator_moveprevious(Lib3MFHandle libraryHandle, Lib3MF_Iterator pIterator, bool * pHasPrevious) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Iterator_MovePrevious (pIterator, pHasPrevious); +} + + +Lib3MFResult CCall_lib3mf_iterator_count(Lib3MFHandle libraryHandle, Lib3MF_Iterator pIterator, Lib3MF_uint64 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Iterator_Count (pIterator, pCount); +} + + +Lib3MFResult CCall_lib3mf_implicitportiterator_getcurrent(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPortIterator pImplicitPortIterator, Lib3MF_ImplicitPort * pPort) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitPortIterator_GetCurrent (pImplicitPortIterator, pPort); +} + + +Lib3MFResult CCall_lib3mf_implicitnode_getidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const Lib3MF_uint32 nIdentifierBufferSize, Lib3MF_uint32* pIdentifierNeededChars, char * pIdentifierBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitNode_GetIdentifier (pImplicitNode, nIdentifierBufferSize, pIdentifierNeededChars, pIdentifierBuffer); +} + + +Lib3MFResult CCall_lib3mf_implicitnode_setidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pIdentifier) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitNode_SetIdentifier (pImplicitNode, pIdentifier); +} + + +Lib3MFResult CCall_lib3mf_implicitnode_getdisplayname(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const Lib3MF_uint32 nDisplayNameBufferSize, Lib3MF_uint32* pDisplayNameNeededChars, char * pDisplayNameBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitNode_GetDisplayName (pImplicitNode, nDisplayNameBufferSize, pDisplayNameNeededChars, pDisplayNameBuffer); +} + + +Lib3MFResult CCall_lib3mf_implicitnode_setdisplayname(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pDisplayName) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitNode_SetDisplayName (pImplicitNode, pDisplayName); +} + + +Lib3MFResult CCall_lib3mf_implicitnode_gettag(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const Lib3MF_uint32 nTagBufferSize, Lib3MF_uint32* pTagNeededChars, char * pTagBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitNode_GetTag (pImplicitNode, nTagBufferSize, pTagNeededChars, pTagBuffer); +} + + +Lib3MFResult CCall_lib3mf_implicitnode_settag(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pTag) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitNode_SetTag (pImplicitNode, pTag); +} + + +Lib3MFResult CCall_lib3mf_implicitnode_getnodetype(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, eLib3MFImplicitNodeType * pType) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitNode_GetNodeType (pImplicitNode, pType); +} + + +Lib3MFResult CCall_lib3mf_implicitnode_addinput(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pIdentifier, const char * pDisplayName, Lib3MF_ImplicitPort * pPort) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitNode_AddInput (pImplicitNode, pIdentifier, pDisplayName, pPort); +} + + +Lib3MFResult CCall_lib3mf_implicitnode_getinputs(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, Lib3MF_ImplicitPortIterator * pIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitNode_GetInputs (pImplicitNode, pIterator); +} + + +Lib3MFResult CCall_lib3mf_implicitnode_addoutput(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pIdentifier, const char * pDisplayName, Lib3MF_ImplicitPort * pPort) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitNode_AddOutput (pImplicitNode, pIdentifier, pDisplayName, pPort); +} + + +Lib3MFResult CCall_lib3mf_implicitnode_getoutputs(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, Lib3MF_ImplicitPortIterator * pIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitNode_GetOutputs (pImplicitNode, pIterator); +} + + +Lib3MFResult CCall_lib3mf_implicitnode_findinput(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pIdentifier, Lib3MF_ImplicitPort * pInput) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitNode_FindInput (pImplicitNode, pIdentifier, pInput); +} + + +Lib3MFResult CCall_lib3mf_implicitnode_findoutput(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pIdentifier, Lib3MF_ImplicitPort * pOutput) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitNode_FindOutput (pImplicitNode, pIdentifier, pOutput); +} + + +Lib3MFResult CCall_lib3mf_implicitnode_aretypesvalid(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, bool * pValid) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitNode_AreTypesValid (pImplicitNode, pValid); +} + + +Lib3MFResult CCall_lib3mf_oneinputnode_getinputa(Lib3MFHandle libraryHandle, Lib3MF_OneInputNode pOneInputNode, Lib3MF_ImplicitPort * pInput) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_OneInputNode_GetInputA (pOneInputNode, pInput); +} + + +Lib3MFResult CCall_lib3mf_oneinputnode_getoutputresult(Lib3MFHandle libraryHandle, Lib3MF_OneInputNode pOneInputNode, Lib3MF_ImplicitPort * pResult) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_OneInputNode_GetOutputResult (pOneInputNode, pResult); +} + + +Lib3MFResult CCall_lib3mf_resourceidnode_setresource(Lib3MFHandle libraryHandle, Lib3MF_ResourceIdNode pResourceIdNode, Lib3MF_Resource pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ResourceIdNode_SetResource (pResourceIdNode, pResource); +} + + +Lib3MFResult CCall_lib3mf_resourceidnode_getresource(Lib3MFHandle libraryHandle, Lib3MF_ResourceIdNode pResourceIdNode, Lib3MF_Resource * pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ResourceIdNode_GetResource (pResourceIdNode, pResource); +} + + +Lib3MFResult CCall_lib3mf_resourceidnode_getoutputvalue(Lib3MFHandle libraryHandle, Lib3MF_ResourceIdNode pResourceIdNode, Lib3MF_ImplicitPort * pValue) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ResourceIdNode_GetOutputValue (pResourceIdNode, pValue); +} + + +Lib3MFResult CCall_lib3mf_twoinputnode_getinputb(Lib3MFHandle libraryHandle, Lib3MF_TwoInputNode pTwoInputNode, Lib3MF_ImplicitPort * pB) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_TwoInputNode_GetInputB (pTwoInputNode, pB); +} + + +Lib3MFResult CCall_lib3mf_selectnode_getinputb(Lib3MFHandle libraryHandle, Lib3MF_SelectNode pSelectNode, Lib3MF_ImplicitPort * pB) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_SelectNode_GetInputB (pSelectNode, pB); +} + + +Lib3MFResult CCall_lib3mf_selectnode_getinputc(Lib3MFHandle libraryHandle, Lib3MF_SelectNode pSelectNode, Lib3MF_ImplicitPort * pC) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_SelectNode_GetInputC (pSelectNode, pC); +} + + +Lib3MFResult CCall_lib3mf_selectnode_getinputd(Lib3MFHandle libraryHandle, Lib3MF_SelectNode pSelectNode, Lib3MF_ImplicitPort * pD) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_SelectNode_GetInputD (pSelectNode, pD); +} + + +Lib3MFResult CCall_lib3mf_clampnode_getinputmin(Lib3MFHandle libraryHandle, Lib3MF_ClampNode pClampNode, Lib3MF_ImplicitPort * pMin) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ClampNode_GetInputMin (pClampNode, pMin); +} + + +Lib3MFResult CCall_lib3mf_clampnode_getinputmax(Lib3MFHandle libraryHandle, Lib3MF_ClampNode pClampNode, Lib3MF_ImplicitPort * pMax) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ClampNode_GetInputMax (pClampNode, pMax); +} + + +Lib3MFResult CCall_lib3mf_composevectornode_getinputx(Lib3MFHandle libraryHandle, Lib3MF_ComposeVectorNode pComposeVectorNode, Lib3MF_ImplicitPort * pX) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeVectorNode_GetInputX (pComposeVectorNode, pX); +} + + +Lib3MFResult CCall_lib3mf_composevectornode_getinputy(Lib3MFHandle libraryHandle, Lib3MF_ComposeVectorNode pComposeVectorNode, Lib3MF_ImplicitPort * pY) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeVectorNode_GetInputY (pComposeVectorNode, pY); +} + + +Lib3MFResult CCall_lib3mf_composevectornode_getinputz(Lib3MFHandle libraryHandle, Lib3MF_ComposeVectorNode pComposeVectorNode, Lib3MF_ImplicitPort * pZ) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeVectorNode_GetInputZ (pComposeVectorNode, pZ); +} + + +Lib3MFResult CCall_lib3mf_composevectornode_getoutputresult(Lib3MFHandle libraryHandle, Lib3MF_ComposeVectorNode pComposeVectorNode, Lib3MF_ImplicitPort * pResult) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeVectorNode_GetOutputResult (pComposeVectorNode, pResult); +} + + +Lib3MFResult CCall_lib3mf_decomposevectornode_getinputa(Lib3MFHandle libraryHandle, Lib3MF_DecomposeVectorNode pDecomposeVectorNode, Lib3MF_ImplicitPort * pA) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_DecomposeVectorNode_GetInputA (pDecomposeVectorNode, pA); +} + + +Lib3MFResult CCall_lib3mf_decomposevectornode_getoutputx(Lib3MFHandle libraryHandle, Lib3MF_DecomposeVectorNode pDecomposeVectorNode, Lib3MF_ImplicitPort * pX) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_DecomposeVectorNode_GetOutputX (pDecomposeVectorNode, pX); +} + + +Lib3MFResult CCall_lib3mf_decomposevectornode_getoutputy(Lib3MFHandle libraryHandle, Lib3MF_DecomposeVectorNode pDecomposeVectorNode, Lib3MF_ImplicitPort * pY) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_DecomposeVectorNode_GetOutputY (pDecomposeVectorNode, pY); +} + + +Lib3MFResult CCall_lib3mf_decomposevectornode_getoutputz(Lib3MFHandle libraryHandle, Lib3MF_DecomposeVectorNode pDecomposeVectorNode, Lib3MF_ImplicitPort * pZ) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_DecomposeVectorNode_GetOutputZ (pDecomposeVectorNode, pZ); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm00(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM00) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetInputM00 (pComposeMatrixNode, pM00); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm01(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM01) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetInputM01 (pComposeMatrixNode, pM01); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm02(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM02) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetInputM02 (pComposeMatrixNode, pM02); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm03(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM03) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetInputM03 (pComposeMatrixNode, pM03); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm10(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM10) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetInputM10 (pComposeMatrixNode, pM10); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm11(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM11) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetInputM11 (pComposeMatrixNode, pM11); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm12(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM12) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetInputM12 (pComposeMatrixNode, pM12); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm13(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM13) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetInputM13 (pComposeMatrixNode, pM13); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm20(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM20) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetInputM20 (pComposeMatrixNode, pM20); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm21(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM21) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetInputM21 (pComposeMatrixNode, pM21); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm22(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM22) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetInputM22 (pComposeMatrixNode, pM22); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm23(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM23) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetInputM23 (pComposeMatrixNode, pM23); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm30(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM30) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetInputM30 (pComposeMatrixNode, pM30); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm31(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM31) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetInputM31 (pComposeMatrixNode, pM31); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm32(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM32) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetInputM32 (pComposeMatrixNode, pM32); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm33(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM33) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetInputM33 (pComposeMatrixNode, pM33); +} + + +Lib3MFResult CCall_lib3mf_composematrixnode_getoutputresult(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pResult) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ComposeMatrixNode_GetOutputResult (pComposeMatrixNode, pResult); +} + + +Lib3MFResult CCall_lib3mf_matrixfromrowsnode_getinputa(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromRowsNode pMatrixFromRowsNode, Lib3MF_ImplicitPort * pRow0) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MatrixFromRowsNode_GetInputA (pMatrixFromRowsNode, pRow0); +} + + +Lib3MFResult CCall_lib3mf_matrixfromrowsnode_getinputb(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromRowsNode pMatrixFromRowsNode, Lib3MF_ImplicitPort * pRow1) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MatrixFromRowsNode_GetInputB (pMatrixFromRowsNode, pRow1); +} + + +Lib3MFResult CCall_lib3mf_matrixfromrowsnode_getinputc(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromRowsNode pMatrixFromRowsNode, Lib3MF_ImplicitPort * pRow2) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MatrixFromRowsNode_GetInputC (pMatrixFromRowsNode, pRow2); +} + + +Lib3MFResult CCall_lib3mf_matrixfromrowsnode_getinputd(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromRowsNode pMatrixFromRowsNode, Lib3MF_ImplicitPort * pRow3) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MatrixFromRowsNode_GetInputD (pMatrixFromRowsNode, pRow3); +} + + +Lib3MFResult CCall_lib3mf_matrixfromrowsnode_getoutputresult(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromRowsNode pMatrixFromRowsNode, Lib3MF_ImplicitPort * pResult) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MatrixFromRowsNode_GetOutputResult (pMatrixFromRowsNode, pResult); +} + + +Lib3MFResult CCall_lib3mf_matrixfromcolumnsnode_getinputa(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromColumnsNode pMatrixFromColumnsNode, Lib3MF_ImplicitPort * pColumn0) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MatrixFromColumnsNode_GetInputA (pMatrixFromColumnsNode, pColumn0); +} + + +Lib3MFResult CCall_lib3mf_matrixfromcolumnsnode_getinputb(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromColumnsNode pMatrixFromColumnsNode, Lib3MF_ImplicitPort * pColumn1) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MatrixFromColumnsNode_GetInputB (pMatrixFromColumnsNode, pColumn1); +} + + +Lib3MFResult CCall_lib3mf_matrixfromcolumnsnode_getinputc(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromColumnsNode pMatrixFromColumnsNode, Lib3MF_ImplicitPort * pColumn2) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MatrixFromColumnsNode_GetInputC (pMatrixFromColumnsNode, pColumn2); +} + + +Lib3MFResult CCall_lib3mf_matrixfromcolumnsnode_getinputd(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromColumnsNode pMatrixFromColumnsNode, Lib3MF_ImplicitPort * pColumn3) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MatrixFromColumnsNode_GetInputD (pMatrixFromColumnsNode, pColumn3); +} + + +Lib3MFResult CCall_lib3mf_matrixfromcolumnsnode_getoutputresult(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromColumnsNode pMatrixFromColumnsNode, Lib3MF_ImplicitPort * pResult) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MatrixFromColumnsNode_GetOutputResult (pMatrixFromColumnsNode, pResult); +} + + +Lib3MFResult CCall_lib3mf_constantnode_setconstant(Lib3MFHandle libraryHandle, Lib3MF_ConstantNode pConstantNode, Lib3MF_double dValue) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ConstantNode_SetConstant (pConstantNode, dValue); +} + + +Lib3MFResult CCall_lib3mf_constantnode_getconstant(Lib3MFHandle libraryHandle, Lib3MF_ConstantNode pConstantNode, Lib3MF_double * pValue) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ConstantNode_GetConstant (pConstantNode, pValue); +} + + +Lib3MFResult CCall_lib3mf_constantnode_getoutputvalue(Lib3MFHandle libraryHandle, Lib3MF_ConstantNode pConstantNode, Lib3MF_ImplicitPort * pValue) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ConstantNode_GetOutputValue (pConstantNode, pValue); +} + + +Lib3MFResult CCall_lib3mf_constvecnode_setvector(Lib3MFHandle libraryHandle, Lib3MF_ConstVecNode pConstVecNode, const sLib3MFVector * pValue) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ConstVecNode_SetVector (pConstVecNode, pValue); +} + + +Lib3MFResult CCall_lib3mf_constvecnode_getvector(Lib3MFHandle libraryHandle, Lib3MF_ConstVecNode pConstVecNode, sLib3MFVector * pValue) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ConstVecNode_GetVector (pConstVecNode, pValue); +} + + +Lib3MFResult CCall_lib3mf_constvecnode_getoutputvector(Lib3MFHandle libraryHandle, Lib3MF_ConstVecNode pConstVecNode, Lib3MF_ImplicitPort * pVector) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ConstVecNode_GetOutputVector (pConstVecNode, pVector); +} + + +Lib3MFResult CCall_lib3mf_constmatnode_setmatrix(Lib3MFHandle libraryHandle, Lib3MF_ConstMatNode pConstMatNode, const sLib3MFMatrix4x4 * pValue) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ConstMatNode_SetMatrix (pConstMatNode, pValue); +} + + +Lib3MFResult CCall_lib3mf_constmatnode_getmatrix(Lib3MFHandle libraryHandle, Lib3MF_ConstMatNode pConstMatNode, sLib3MFMatrix4x4 * pValue) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ConstMatNode_GetMatrix (pConstMatNode, pValue); +} + + +Lib3MFResult CCall_lib3mf_constmatnode_getoutputmatrix(Lib3MFHandle libraryHandle, Lib3MF_ConstMatNode pConstMatNode, Lib3MF_ImplicitPort * pMatrix) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ConstMatNode_GetOutputMatrix (pConstMatNode, pMatrix); +} + + +Lib3MFResult CCall_lib3mf_meshnode_getinputmesh(Lib3MFHandle libraryHandle, Lib3MF_MeshNode pMeshNode, Lib3MF_ImplicitPort * pMesh) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshNode_GetInputMesh (pMeshNode, pMesh); +} + + +Lib3MFResult CCall_lib3mf_meshnode_getinputpos(Lib3MFHandle libraryHandle, Lib3MF_MeshNode pMeshNode, Lib3MF_ImplicitPort * pPos) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshNode_GetInputPos (pMeshNode, pPos); +} + + +Lib3MFResult CCall_lib3mf_meshnode_getoutputdistance(Lib3MFHandle libraryHandle, Lib3MF_MeshNode pMeshNode, Lib3MF_ImplicitPort * pDistance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_MeshNode_GetOutputDistance (pMeshNode, pDistance); +} + + +Lib3MFResult CCall_lib3mf_unsignedmeshnode_getinputmesh(Lib3MFHandle libraryHandle, Lib3MF_UnsignedMeshNode pUnsignedMeshNode, Lib3MF_ImplicitPort * pMesh) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_UnsignedMeshNode_GetInputMesh (pUnsignedMeshNode, pMesh); +} + + +Lib3MFResult CCall_lib3mf_unsignedmeshnode_getinputpos(Lib3MFHandle libraryHandle, Lib3MF_UnsignedMeshNode pUnsignedMeshNode, Lib3MF_ImplicitPort * pPos) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_UnsignedMeshNode_GetInputPos (pUnsignedMeshNode, pPos); +} + + +Lib3MFResult CCall_lib3mf_unsignedmeshnode_getoutputdistance(Lib3MFHandle libraryHandle, Lib3MF_UnsignedMeshNode pUnsignedMeshNode, Lib3MF_ImplicitPort * pDistance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_UnsignedMeshNode_GetOutputDistance (pUnsignedMeshNode, pDistance); +} + + +Lib3MFResult CCall_lib3mf_functioncallnode_getinputfunctionid(Lib3MFHandle libraryHandle, Lib3MF_FunctionCallNode pFunctionCallNode, Lib3MF_ImplicitPort * pFunction) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionCallNode_GetInputFunctionID (pFunctionCallNode, pFunction); +} + + +Lib3MFResult CCall_lib3mf_nodeiterator_getcurrent(Lib3MFHandle libraryHandle, Lib3MF_NodeIterator pNodeIterator, Lib3MF_ImplicitNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_NodeIterator_GetCurrent (pNodeIterator, pNode); +} + + +Lib3MFResult CCall_lib3mf_function_getdisplayname(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const Lib3MF_uint32 nDisplayNameBufferSize, Lib3MF_uint32* pDisplayNameNeededChars, char * pDisplayNameBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Function_GetDisplayName (pFunction, nDisplayNameBufferSize, pDisplayNameNeededChars, pDisplayNameBuffer); +} + + +Lib3MFResult CCall_lib3mf_function_setdisplayname(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const char * pDisplayName) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Function_SetDisplayName (pFunction, pDisplayName); +} + + +Lib3MFResult CCall_lib3mf_function_addinput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const char * pIdentifier, const char * pDisplayName, eLib3MFImplicitPortType eType, Lib3MF_ImplicitPort * pPort) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Function_AddInput (pFunction, pIdentifier, pDisplayName, eType, pPort); +} + + +Lib3MFResult CCall_lib3mf_function_getinputs(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, Lib3MF_ImplicitPortIterator * pIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Function_GetInputs (pFunction, pIterator); +} + + +Lib3MFResult CCall_lib3mf_function_removeinput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, Lib3MF_ImplicitPort pInput) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Function_RemoveInput (pFunction, pInput); +} + + +Lib3MFResult CCall_lib3mf_function_addoutput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const char * pIdentifier, const char * pDisplayName, eLib3MFImplicitPortType eType, Lib3MF_ImplicitPort * pPort) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Function_AddOutput (pFunction, pIdentifier, pDisplayName, eType, pPort); +} + + +Lib3MFResult CCall_lib3mf_function_getoutputs(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, Lib3MF_ImplicitPortIterator * pIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Function_GetOutputs (pFunction, pIterator); +} + + +Lib3MFResult CCall_lib3mf_function_removeoutput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, Lib3MF_ImplicitPort pOutput) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Function_RemoveOutput (pFunction, pOutput); +} + + +Lib3MFResult CCall_lib3mf_function_findinput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const char * pIdentifier, Lib3MF_ImplicitPort * pInput) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Function_FindInput (pFunction, pIdentifier, pInput); +} + + +Lib3MFResult CCall_lib3mf_function_findoutput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const char * pIdentifier, Lib3MF_ImplicitPort * pOutput) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Function_FindOutput (pFunction, pIdentifier, pOutput); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_getidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const Lib3MF_uint32 nIdentifierBufferSize, Lib3MF_uint32* pIdentifierNeededChars, char * pIdentifierBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_GetIdentifier (pImplicitFunction, nIdentifierBufferSize, pIdentifierNeededChars, pIdentifierBuffer); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_setidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_SetIdentifier (pImplicitFunction, pIdentifier); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, eLib3MFImplicitNodeType eNodeType, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ImplicitNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddNode (pImplicitFunction, eNodeType, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addsinnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SinNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddSinNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addcosnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_CosNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddCosNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addtannode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_TanNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddTanNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addarcsinnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ArcSinNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddArcSinNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addarccosnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ArcCosNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddArcCosNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addarctan2node(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ArcTan2Node * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddArcTan2Node (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addsinhnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SinhNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddSinhNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addcoshnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_CoshNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddCoshNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addtanhnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_TanhNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddTanhNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addroundnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_RoundNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddRoundNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addceilnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_CeilNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddCeilNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addfloornode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_FloorNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddFloorNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addsignnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SignNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddSignNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addfractnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_FractNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddFractNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addabsnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_AbsNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddAbsNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addexpnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ExpNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddExpNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addlognode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_LogNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddLogNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addlog2node(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_Log2Node * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddLog2Node (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addlog10node(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_Log10Node * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddLog10Node (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addlengthnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_LengthNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddLengthNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addtransposenode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_TransposeNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddTransposeNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addinversenode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_InverseNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddInverseNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addsqrtnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SqrtNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddSqrtNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addresourceidnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ResourceIdNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddResourceIdNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addadditionnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_AdditionNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddAdditionNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addsubtractionnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SubtractionNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddSubtractionNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addmultiplicationnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_MultiplicationNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddMultiplicationNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_adddivisionnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_DivisionNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddDivisionNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_adddotnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_DotNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddDotNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addcrossnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_CrossNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddCrossNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addmatvecmultiplicationnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_MatVecMultiplicationNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddMatVecMultiplicationNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addminnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_MinNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddMinNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addmaxnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_MaxNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddMaxNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addfmodnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_FmodNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddFmodNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addpownode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_PowNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddPowNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addselectnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SelectNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddSelectNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addclampnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ClampNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddClampNode (pImplicitFunction, pIdentifier, eConfiguration, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addcomposevectornode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ComposeVectorNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddComposeVectorNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addvectorfromscalarnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_VectorFromScalarNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddVectorFromScalarNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_adddecomposevectornode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_DecomposeVectorNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddDecomposeVectorNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addcomposematrixnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ComposeMatrixNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddComposeMatrixNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addmatrixfromrowsnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_MatrixFromRowsNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddMatrixFromRowsNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addmatrixfromcolumnsnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_MatrixFromColumnsNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddMatrixFromColumnsNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addconstantnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ConstantNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddConstantNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addconstvecnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ConstVecNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddConstVecNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addconstmatnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ConstMatNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddConstMatNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addmeshnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_MeshNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddMeshNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addunsignedmeshnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_UnsignedMeshNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddUnsignedMeshNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addfunctioncallnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_FunctionCallNode * pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddFunctionCallNode (pImplicitFunction, pIdentifier, pDisplayName, pTag, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_getnodes(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, Lib3MF_NodeIterator * pIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_GetNodes (pImplicitFunction, pIterator); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_removenode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, Lib3MF_ImplicitNode pNode) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_RemoveNode (pImplicitFunction, pNode); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addlink(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, Lib3MF_ImplicitPort pSource, Lib3MF_ImplicitPort pTarget) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddLink (pImplicitFunction, pSource, pTarget); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_addlinkbynames(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pSource, const char * pTarget) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_AddLinkByNames (pImplicitFunction, pSource, pTarget); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_clear(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_Clear (pImplicitFunction); +} + + +Lib3MFResult CCall_lib3mf_implicitfunction_sortnodestopologically(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ImplicitFunction_SortNodesTopologically (pImplicitFunction); +} + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_getimage3d(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_Image3D * pImage3D) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionFromImage3D_GetImage3D (pFunctionFromImage3D, pImage3D); +} + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_setimage3d(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_Image3D pImage3D) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionFromImage3D_SetImage3D (pFunctionFromImage3D, pImage3D); +} + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_setfilter(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, eLib3MFTextureFilter eFilter) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionFromImage3D_SetFilter (pFunctionFromImage3D, eFilter); +} + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_getfilter(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, eLib3MFTextureFilter * pFilter) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionFromImage3D_GetFilter (pFunctionFromImage3D, pFilter); +} + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_settilestyles(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, eLib3MFTextureTileStyle eTileStyleU, eLib3MFTextureTileStyle eTileStyleV, eLib3MFTextureTileStyle eTileStyleW) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionFromImage3D_SetTileStyles (pFunctionFromImage3D, eTileStyleU, eTileStyleV, eTileStyleW); +} + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_gettilestyles(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, eLib3MFTextureTileStyle * pTileStyleU, eLib3MFTextureTileStyle * pTileStyleV, eLib3MFTextureTileStyle * pTileStyleW) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionFromImage3D_GetTileStyles (pFunctionFromImage3D, pTileStyleU, pTileStyleV, pTileStyleW); +} + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_getoffset(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_double * pOffset) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionFromImage3D_GetOffset (pFunctionFromImage3D, pOffset); +} + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_setoffset(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_double dOffset) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionFromImage3D_SetOffset (pFunctionFromImage3D, dOffset); +} + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_getscale(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_double * pScale) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionFromImage3D_GetScale (pFunctionFromImage3D, pScale); +} + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_setscale(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_double dScale) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FunctionFromImage3D_SetScale (pFunctionFromImage3D, dScale); +} + + +Lib3MFResult CCall_lib3mf_builditem_getobjectresource(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, Lib3MF_Object * pObjectResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BuildItem_GetObjectResource (pBuildItem, pObjectResource); +} + + +Lib3MFResult CCall_lib3mf_builditem_getuuid(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, bool * pHasUUID, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BuildItem_GetUUID (pBuildItem, pHasUUID, nUUIDBufferSize, pUUIDNeededChars, pUUIDBuffer); +} + + +Lib3MFResult CCall_lib3mf_builditem_setuuid(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, const char * pUUID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BuildItem_SetUUID (pBuildItem, pUUID); +} + + +Lib3MFResult CCall_lib3mf_builditem_getobjectresourceid(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, Lib3MF_uint32 * pUniqueResourceID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BuildItem_GetObjectResourceID (pBuildItem, pUniqueResourceID); +} + + +Lib3MFResult CCall_lib3mf_builditem_hasobjecttransform(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, bool * pHasTransform) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BuildItem_HasObjectTransform (pBuildItem, pHasTransform); +} + + +Lib3MFResult CCall_lib3mf_builditem_getobjecttransform(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, sLib3MFTransform * pTransform) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BuildItem_GetObjectTransform (pBuildItem, pTransform); +} + + +Lib3MFResult CCall_lib3mf_builditem_setobjecttransform(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, const sLib3MFTransform * pTransform) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BuildItem_SetObjectTransform (pBuildItem, pTransform); +} + + +Lib3MFResult CCall_lib3mf_builditem_getpartnumber(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, const Lib3MF_uint32 nPartNumberBufferSize, Lib3MF_uint32* pPartNumberNeededChars, char * pPartNumberBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BuildItem_GetPartNumber (pBuildItem, nPartNumberBufferSize, pPartNumberNeededChars, pPartNumberBuffer); +} + + +Lib3MFResult CCall_lib3mf_builditem_setpartnumber(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, const char * pSetPartnumber) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BuildItem_SetPartNumber (pBuildItem, pSetPartnumber); +} + + +Lib3MFResult CCall_lib3mf_builditem_getmetadatagroup(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, Lib3MF_MetaDataGroup * pMetaDataGroup) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BuildItem_GetMetaDataGroup (pBuildItem, pMetaDataGroup); +} + + +Lib3MFResult CCall_lib3mf_builditem_getoutbox(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, sLib3MFBox * pOutbox) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BuildItem_GetOutbox (pBuildItem, pOutbox); +} + + +Lib3MFResult CCall_lib3mf_builditemiterator_movenext(Lib3MFHandle libraryHandle, Lib3MF_BuildItemIterator pBuildItemIterator, bool * pHasNext) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BuildItemIterator_MoveNext (pBuildItemIterator, pHasNext); +} + + +Lib3MFResult CCall_lib3mf_builditemiterator_moveprevious(Lib3MFHandle libraryHandle, Lib3MF_BuildItemIterator pBuildItemIterator, bool * pHasPrevious) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BuildItemIterator_MovePrevious (pBuildItemIterator, pHasPrevious); +} + + +Lib3MFResult CCall_lib3mf_builditemiterator_getcurrent(Lib3MFHandle libraryHandle, Lib3MF_BuildItemIterator pBuildItemIterator, Lib3MF_BuildItem * pBuildItem) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BuildItemIterator_GetCurrent (pBuildItemIterator, pBuildItem); +} + + +Lib3MFResult CCall_lib3mf_builditemiterator_clone(Lib3MFHandle libraryHandle, Lib3MF_BuildItemIterator pBuildItemIterator, Lib3MF_BuildItemIterator * pOutBuildItemIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BuildItemIterator_Clone (pBuildItemIterator, pOutBuildItemIterator); +} + + +Lib3MFResult CCall_lib3mf_builditemiterator_count(Lib3MFHandle libraryHandle, Lib3MF_BuildItemIterator pBuildItemIterator, Lib3MF_uint64 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_BuildItemIterator_Count (pBuildItemIterator, pCount); +} + + +Lib3MFResult CCall_lib3mf_slice_setvertices(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 nVerticesBufferSize, const sLib3MFPosition2D * pVerticesBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Slice_SetVertices (pSlice, nVerticesBufferSize, pVerticesBuffer); +} + + +Lib3MFResult CCall_lib3mf_slice_getvertices(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, const Lib3MF_uint64 nVerticesBufferSize, Lib3MF_uint64* pVerticesNeededCount, sLib3MFPosition2D * pVerticesBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Slice_GetVertices (pSlice, nVerticesBufferSize, pVerticesNeededCount, pVerticesBuffer); +} + + +Lib3MFResult CCall_lib3mf_slice_getvertexcount(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Slice_GetVertexCount (pSlice, pCount); +} + + +Lib3MFResult CCall_lib3mf_slice_addpolygon(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 nIndicesBufferSize, const Lib3MF_uint32 * pIndicesBuffer, Lib3MF_uint64 * pIndex) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Slice_AddPolygon (pSlice, nIndicesBufferSize, pIndicesBuffer, pIndex); +} + + +Lib3MFResult CCall_lib3mf_slice_getpolygoncount(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Slice_GetPolygonCount (pSlice, pCount); +} + + +Lib3MFResult CCall_lib3mf_slice_setpolygonindices(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 nIndex, Lib3MF_uint64 nIndicesBufferSize, const Lib3MF_uint32 * pIndicesBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Slice_SetPolygonIndices (pSlice, nIndex, nIndicesBufferSize, pIndicesBuffer); +} + + +Lib3MFResult CCall_lib3mf_slice_getpolygonindices(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 nIndex, const Lib3MF_uint64 nIndicesBufferSize, Lib3MF_uint64* pIndicesNeededCount, Lib3MF_uint32 * pIndicesBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Slice_GetPolygonIndices (pSlice, nIndex, nIndicesBufferSize, pIndicesNeededCount, pIndicesBuffer); +} + + +Lib3MFResult CCall_lib3mf_slice_getpolygonindexcount(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 nIndex, Lib3MF_uint64 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Slice_GetPolygonIndexCount (pSlice, nIndex, pCount); +} + + +Lib3MFResult CCall_lib3mf_slice_getztop(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_double * pZTop) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Slice_GetZTop (pSlice, pZTop); +} + + +Lib3MFResult CCall_lib3mf_slicestack_getbottomz(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_double * pZBottom) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_SliceStack_GetBottomZ (pSliceStack, pZBottom); +} + + +Lib3MFResult CCall_lib3mf_slicestack_getslicecount(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_uint64 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_SliceStack_GetSliceCount (pSliceStack, pCount); +} + + +Lib3MFResult CCall_lib3mf_slicestack_getslice(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_uint64 nSliceIndex, Lib3MF_Slice * pTheSlice) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_SliceStack_GetSlice (pSliceStack, nSliceIndex, pTheSlice); +} + + +Lib3MFResult CCall_lib3mf_slicestack_addslice(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_double dZTop, Lib3MF_Slice * pTheSlice) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_SliceStack_AddSlice (pSliceStack, dZTop, pTheSlice); +} + + +Lib3MFResult CCall_lib3mf_slicestack_getslicerefcount(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_uint64 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_SliceStack_GetSliceRefCount (pSliceStack, pCount); +} + + +Lib3MFResult CCall_lib3mf_slicestack_addslicestackreference(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_SliceStack pTheSliceStack) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_SliceStack_AddSliceStackReference (pSliceStack, pTheSliceStack); +} + + +Lib3MFResult CCall_lib3mf_slicestack_getslicestackreference(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_uint64 nSliceRefIndex, Lib3MF_SliceStack * pTheSliceStack) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_SliceStack_GetSliceStackReference (pSliceStack, nSliceRefIndex, pTheSliceStack); +} + + +Lib3MFResult CCall_lib3mf_slicestack_collapseslicereferences(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_SliceStack_CollapseSliceReferences (pSliceStack); +} + + +Lib3MFResult CCall_lib3mf_slicestack_setownpath(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, const char * pPath) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_SliceStack_SetOwnPath (pSliceStack, pPath); +} + + +Lib3MFResult CCall_lib3mf_slicestack_getownpath(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, const Lib3MF_uint32 nPathBufferSize, Lib3MF_uint32* pPathNeededChars, char * pPathBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_SliceStack_GetOwnPath (pSliceStack, nPathBufferSize, pPathNeededChars, pPathBuffer); +} + + +Lib3MFResult CCall_lib3mf_consumer_getconsumerid(Lib3MFHandle libraryHandle, Lib3MF_Consumer pConsumer, const Lib3MF_uint32 nConsumerIDBufferSize, Lib3MF_uint32* pConsumerIDNeededChars, char * pConsumerIDBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Consumer_GetConsumerID (pConsumer, nConsumerIDBufferSize, pConsumerIDNeededChars, pConsumerIDBuffer); +} + + +Lib3MFResult CCall_lib3mf_consumer_getkeyid(Lib3MFHandle libraryHandle, Lib3MF_Consumer pConsumer, const Lib3MF_uint32 nKeyIDBufferSize, Lib3MF_uint32* pKeyIDNeededChars, char * pKeyIDBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Consumer_GetKeyID (pConsumer, nKeyIDBufferSize, pKeyIDNeededChars, pKeyIDBuffer); +} + + +Lib3MFResult CCall_lib3mf_consumer_getkeyvalue(Lib3MFHandle libraryHandle, Lib3MF_Consumer pConsumer, const Lib3MF_uint32 nKeyValueBufferSize, Lib3MF_uint32* pKeyValueNeededChars, char * pKeyValueBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Consumer_GetKeyValue (pConsumer, nKeyValueBufferSize, pKeyValueNeededChars, pKeyValueBuffer); +} + + +Lib3MFResult CCall_lib3mf_accessright_getconsumer(Lib3MFHandle libraryHandle, Lib3MF_AccessRight pAccessRight, Lib3MF_Consumer * pConsumer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_AccessRight_GetConsumer (pAccessRight, pConsumer); +} + + +Lib3MFResult CCall_lib3mf_accessright_getwrappingalgorithm(Lib3MFHandle libraryHandle, Lib3MF_AccessRight pAccessRight, eLib3MFWrappingAlgorithm * pAlgorithm) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_AccessRight_GetWrappingAlgorithm (pAccessRight, pAlgorithm); +} + + +Lib3MFResult CCall_lib3mf_accessright_getmgfalgorithm(Lib3MFHandle libraryHandle, Lib3MF_AccessRight pAccessRight, eLib3MFMgfAlgorithm * pAlgorithm) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_AccessRight_GetMgfAlgorithm (pAccessRight, pAlgorithm); +} + + +Lib3MFResult CCall_lib3mf_accessright_getdigestmethod(Lib3MFHandle libraryHandle, Lib3MF_AccessRight pAccessRight, eLib3MFDigestMethod * pAlgorithm) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_AccessRight_GetDigestMethod (pAccessRight, pAlgorithm); +} + + +Lib3MFResult CCall_lib3mf_contentencryptionparams_getencryptionalgorithm(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, eLib3MFEncryptionAlgorithm * pAlgorithm) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ContentEncryptionParams_GetEncryptionAlgorithm (pContentEncryptionParams, pAlgorithm); +} + + +Lib3MFResult CCall_lib3mf_contentencryptionparams_getkey(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, const Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ContentEncryptionParams_GetKey (pContentEncryptionParams, nByteDataBufferSize, pByteDataNeededCount, pByteDataBuffer); +} + + +Lib3MFResult CCall_lib3mf_contentencryptionparams_getinitializationvector(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, const Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ContentEncryptionParams_GetInitializationVector (pContentEncryptionParams, nByteDataBufferSize, pByteDataNeededCount, pByteDataBuffer); +} + + +Lib3MFResult CCall_lib3mf_contentencryptionparams_getauthenticationtag(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, const Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ContentEncryptionParams_GetAuthenticationTag (pContentEncryptionParams, nByteDataBufferSize, pByteDataNeededCount, pByteDataBuffer); +} + + +Lib3MFResult CCall_lib3mf_contentencryptionparams_setauthenticationtag(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, Lib3MF_uint64 nByteDataBufferSize, const Lib3MF_uint8 * pByteDataBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ContentEncryptionParams_SetAuthenticationTag (pContentEncryptionParams, nByteDataBufferSize, pByteDataBuffer); +} + + +Lib3MFResult CCall_lib3mf_contentencryptionparams_getadditionalauthenticationdata(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, const Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ContentEncryptionParams_GetAdditionalAuthenticationData (pContentEncryptionParams, nByteDataBufferSize, pByteDataNeededCount, pByteDataBuffer); +} + + +Lib3MFResult CCall_lib3mf_contentencryptionparams_getdescriptor(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, Lib3MF_uint64 * pDescriptor) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ContentEncryptionParams_GetDescriptor (pContentEncryptionParams, pDescriptor); +} + + +Lib3MFResult CCall_lib3mf_contentencryptionparams_getkeyuuid(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ContentEncryptionParams_GetKeyUUID (pContentEncryptionParams, nUUIDBufferSize, pUUIDNeededChars, pUUIDBuffer); +} + + +Lib3MFResult CCall_lib3mf_resourcedata_getpath(Lib3MFHandle libraryHandle, Lib3MF_ResourceData pResourceData, Lib3MF_PackagePart * pPath) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ResourceData_GetPath (pResourceData, pPath); +} + + +Lib3MFResult CCall_lib3mf_resourcedata_getencryptionalgorithm(Lib3MFHandle libraryHandle, Lib3MF_ResourceData pResourceData, eLib3MFEncryptionAlgorithm * pEncryptionAlgorithm) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ResourceData_GetEncryptionAlgorithm (pResourceData, pEncryptionAlgorithm); +} + + +Lib3MFResult CCall_lib3mf_resourcedata_getcompression(Lib3MFHandle libraryHandle, Lib3MF_ResourceData pResourceData, eLib3MFCompression * pCompression) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ResourceData_GetCompression (pResourceData, pCompression); +} + + +Lib3MFResult CCall_lib3mf_resourcedata_getadditionalauthenticationdata(Lib3MFHandle libraryHandle, Lib3MF_ResourceData pResourceData, const Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ResourceData_GetAdditionalAuthenticationData (pResourceData, nByteDataBufferSize, pByteDataNeededCount, pByteDataBuffer); +} + + +Lib3MFResult CCall_lib3mf_resourcedatagroup_getkeyuuid(Lib3MFHandle libraryHandle, Lib3MF_ResourceDataGroup pResourceDataGroup, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ResourceDataGroup_GetKeyUUID (pResourceDataGroup, nUUIDBufferSize, pUUIDNeededChars, pUUIDBuffer); +} + + +Lib3MFResult CCall_lib3mf_resourcedatagroup_addaccessright(Lib3MFHandle libraryHandle, Lib3MF_ResourceDataGroup pResourceDataGroup, Lib3MF_Consumer pConsumer, eLib3MFWrappingAlgorithm eWrappingAlgorithm, eLib3MFMgfAlgorithm eMgfAlgorithm, eLib3MFDigestMethod eDigestMethod, Lib3MF_AccessRight * pTheAccessRight) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ResourceDataGroup_AddAccessRight (pResourceDataGroup, pConsumer, eWrappingAlgorithm, eMgfAlgorithm, eDigestMethod, pTheAccessRight); +} + + +Lib3MFResult CCall_lib3mf_resourcedatagroup_findaccessrightbyconsumer(Lib3MFHandle libraryHandle, Lib3MF_ResourceDataGroup pResourceDataGroup, Lib3MF_Consumer pConsumer, Lib3MF_AccessRight * pTheAccessRight) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ResourceDataGroup_FindAccessRightByConsumer (pResourceDataGroup, pConsumer, pTheAccessRight); +} + + +Lib3MFResult CCall_lib3mf_resourcedatagroup_removeaccessright(Lib3MFHandle libraryHandle, Lib3MF_ResourceDataGroup pResourceDataGroup, Lib3MF_Consumer pConsumer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ResourceDataGroup_RemoveAccessRight (pResourceDataGroup, pConsumer); +} + + +Lib3MFResult CCall_lib3mf_keystore_addconsumer(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, const char * pConsumerID, const char * pKeyID, const char * pKeyValue, Lib3MF_Consumer * pConsumer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_AddConsumer (pKeyStore, pConsumerID, pKeyID, pKeyValue, pConsumer); +} + + +Lib3MFResult CCall_lib3mf_keystore_getconsumercount(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_GetConsumerCount (pKeyStore, pCount); +} + + +Lib3MFResult CCall_lib3mf_keystore_getconsumer(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 nConsumerIndex, Lib3MF_Consumer * pConsumer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_GetConsumer (pKeyStore, nConsumerIndex, pConsumer); +} + + +Lib3MFResult CCall_lib3mf_keystore_removeconsumer(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_Consumer pConsumer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_RemoveConsumer (pKeyStore, pConsumer); +} + + +Lib3MFResult CCall_lib3mf_keystore_findconsumer(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, const char * pConsumerID, Lib3MF_Consumer * pConsumer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_FindConsumer (pKeyStore, pConsumerID, pConsumer); +} + + +Lib3MFResult CCall_lib3mf_keystore_getresourcedatagroupcount(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_GetResourceDataGroupCount (pKeyStore, pCount); +} + + +Lib3MFResult CCall_lib3mf_keystore_addresourcedatagroup(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_ResourceDataGroup * pResourceDataGroup) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_AddResourceDataGroup (pKeyStore, pResourceDataGroup); +} + + +Lib3MFResult CCall_lib3mf_keystore_getresourcedatagroup(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 nResourceDataIndex, Lib3MF_ResourceDataGroup * pResourceDataGroup) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_GetResourceDataGroup (pKeyStore, nResourceDataIndex, pResourceDataGroup); +} + + +Lib3MFResult CCall_lib3mf_keystore_removeresourcedatagroup(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_ResourceDataGroup pResourceDataGroup) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_RemoveResourceDataGroup (pKeyStore, pResourceDataGroup); +} + + +Lib3MFResult CCall_lib3mf_keystore_findresourcedatagroup(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_PackagePart pPartPath, Lib3MF_ResourceDataGroup * pResourceDataGroup) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_FindResourceDataGroup (pKeyStore, pPartPath, pResourceDataGroup); +} + + +Lib3MFResult CCall_lib3mf_keystore_addresourcedata(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_ResourceDataGroup pResourceDataGroup, Lib3MF_PackagePart pPartPath, eLib3MFEncryptionAlgorithm eAlgorithm, eLib3MFCompression eCompression, Lib3MF_uint64 nAdditionalAuthenticationDataBufferSize, const Lib3MF_uint8 * pAdditionalAuthenticationDataBuffer, Lib3MF_ResourceData * pResourceData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_AddResourceData (pKeyStore, pResourceDataGroup, pPartPath, eAlgorithm, eCompression, nAdditionalAuthenticationDataBufferSize, pAdditionalAuthenticationDataBuffer, pResourceData); +} + + +Lib3MFResult CCall_lib3mf_keystore_removeresourcedata(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_ResourceData pResourceData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_RemoveResourceData (pKeyStore, pResourceData); +} + + +Lib3MFResult CCall_lib3mf_keystore_findresourcedata(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_PackagePart pResourcePath, Lib3MF_ResourceData * pResourceData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_FindResourceData (pKeyStore, pResourcePath, pResourceData); +} + + +Lib3MFResult CCall_lib3mf_keystore_getresourcedatacount(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 * pCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_GetResourceDataCount (pKeyStore, pCount); +} + + +Lib3MFResult CCall_lib3mf_keystore_getresourcedata(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 nResourceDataIndex, Lib3MF_ResourceData * pResourceData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_GetResourceData (pKeyStore, nResourceDataIndex, pResourceData); +} + + +Lib3MFResult CCall_lib3mf_keystore_getuuid(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, bool * pHasUUID, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_GetUUID (pKeyStore, pHasUUID, nUUIDBufferSize, pUUIDNeededChars, pUUIDBuffer); +} + + +Lib3MFResult CCall_lib3mf_keystore_setuuid(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, const char * pUUID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_KeyStore_SetUUID (pKeyStore, pUUID); +} + + +Lib3MFResult CCall_lib3mf_model_rootmodelpart(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_PackagePart * pRootModelPart) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_RootModelPart (pModel, pRootModelPart); +} + + +Lib3MFResult CCall_lib3mf_model_findorcreatepackagepart(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pAbsolutePath, Lib3MF_PackagePart * pModelPart) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_FindOrCreatePackagePart (pModel, pAbsolutePath, pModelPart); +} + + +Lib3MFResult CCall_lib3mf_model_setunit(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, eLib3MFModelUnit eUnit) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_SetUnit (pModel, eUnit); +} + + +Lib3MFResult CCall_lib3mf_model_getunit(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, eLib3MFModelUnit * pUnit) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetUnit (pModel, pUnit); +} + + +Lib3MFResult CCall_lib3mf_model_getlanguage(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const Lib3MF_uint32 nLanguageBufferSize, Lib3MF_uint32* pLanguageNeededChars, char * pLanguageBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetLanguage (pModel, nLanguageBufferSize, pLanguageNeededChars, pLanguageBuffer); +} + + +Lib3MFResult CCall_lib3mf_model_setlanguage(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pLanguage) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_SetLanguage (pModel, pLanguage); +} + + +Lib3MFResult CCall_lib3mf_model_querywriter(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pWriterClass, Lib3MF_Writer * pWriterInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_QueryWriter (pModel, pWriterClass, pWriterInstance); +} + + +Lib3MFResult CCall_lib3mf_model_queryreader(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pReaderClass, Lib3MF_Reader * pReaderInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_QueryReader (pModel, pReaderClass, pReaderInstance); +} + + +Lib3MFResult CCall_lib3mf_model_getresourcebyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_Resource * pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetResourceByID (pModel, nUniqueResourceID, pResource); +} + + +Lib3MFResult CCall_lib3mf_model_gettexture2dbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_Texture2D * pTextureInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetTexture2DByID (pModel, nUniqueResourceID, pTextureInstance); +} + + +Lib3MFResult CCall_lib3mf_model_getpropertytypebyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, eLib3MFPropertyType * pThePropertyType) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetPropertyTypeByID (pModel, nUniqueResourceID, pThePropertyType); +} + + +Lib3MFResult CCall_lib3mf_model_getbasematerialgroupbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_BaseMaterialGroup * pBaseMaterialGroupInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetBaseMaterialGroupByID (pModel, nUniqueResourceID, pBaseMaterialGroupInstance); +} + + +Lib3MFResult CCall_lib3mf_model_gettexture2dgroupbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_Texture2DGroup * pTexture2DGroupInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetTexture2DGroupByID (pModel, nUniqueResourceID, pTexture2DGroupInstance); +} + + +Lib3MFResult CCall_lib3mf_model_getcompositematerialsbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_CompositeMaterials * pCompositeMaterialsInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetCompositeMaterialsByID (pModel, nUniqueResourceID, pCompositeMaterialsInstance); +} + + +Lib3MFResult CCall_lib3mf_model_getmultipropertygroupbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_MultiPropertyGroup * pMultiPropertyGroupInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetMultiPropertyGroupByID (pModel, nUniqueResourceID, pMultiPropertyGroupInstance); +} + + +Lib3MFResult CCall_lib3mf_model_getmeshobjectbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_MeshObject * pMeshObjectInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetMeshObjectByID (pModel, nUniqueResourceID, pMeshObjectInstance); +} + + +Lib3MFResult CCall_lib3mf_model_getcomponentsobjectbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_ComponentsObject * pComponentsObjectInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetComponentsObjectByID (pModel, nUniqueResourceID, pComponentsObjectInstance); +} + + +Lib3MFResult CCall_lib3mf_model_getcolorgroupbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_ColorGroup * pColorGroupInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetColorGroupByID (pModel, nUniqueResourceID, pColorGroupInstance); +} + + +Lib3MFResult CCall_lib3mf_model_getslicestackbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_SliceStack * pSliceStacInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetSliceStackByID (pModel, nUniqueResourceID, pSliceStacInstance); +} + + +Lib3MFResult CCall_lib3mf_model_getlevelsetbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_LevelSet * pLevelSetObjectInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetLevelSetByID (pModel, nUniqueResourceID, pLevelSetObjectInstance); +} + + +Lib3MFResult CCall_lib3mf_model_getbuilduuid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, bool * pHasUUID, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetBuildUUID (pModel, pHasUUID, nUUIDBufferSize, pUUIDNeededChars, pUUIDBuffer); +} + + +Lib3MFResult CCall_lib3mf_model_setbuilduuid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pUUID) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_SetBuildUUID (pModel, pUUID); +} + + +Lib3MFResult CCall_lib3mf_model_getbuilditems(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BuildItemIterator * pBuildItemIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetBuildItems (pModel, pBuildItemIterator); +} + + +Lib3MFResult CCall_lib3mf_model_getoutbox(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, sLib3MFBox * pOutbox) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetOutbox (pModel, pOutbox); +} + + +Lib3MFResult CCall_lib3mf_model_getresources(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ResourceIterator * pResourceIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetResources (pModel, pResourceIterator); +} + + +Lib3MFResult CCall_lib3mf_model_getobjects(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ObjectIterator * pResourceIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetObjects (pModel, pResourceIterator); +} + + +Lib3MFResult CCall_lib3mf_model_getmeshobjects(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_MeshObjectIterator * pResourceIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetMeshObjects (pModel, pResourceIterator); +} + + +Lib3MFResult CCall_lib3mf_model_getcomponentsobjects(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ComponentsObjectIterator * pResourceIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetComponentsObjects (pModel, pResourceIterator); +} + + +Lib3MFResult CCall_lib3mf_model_gettexture2ds(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Texture2DIterator * pResourceIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetTexture2Ds (pModel, pResourceIterator); +} + + +Lib3MFResult CCall_lib3mf_model_getbasematerialgroups(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BaseMaterialGroupIterator * pResourceIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetBaseMaterialGroups (pModel, pResourceIterator); +} + + +Lib3MFResult CCall_lib3mf_model_getcolorgroups(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ColorGroupIterator * pResourceIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetColorGroups (pModel, pResourceIterator); +} + + +Lib3MFResult CCall_lib3mf_model_gettexture2dgroups(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Texture2DGroupIterator * pResourceIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetTexture2DGroups (pModel, pResourceIterator); +} + + +Lib3MFResult CCall_lib3mf_model_getcompositematerials(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_CompositeMaterialsIterator * pResourceIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetCompositeMaterials (pModel, pResourceIterator); +} + + +Lib3MFResult CCall_lib3mf_model_getmultipropertygroups(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_MultiPropertyGroupIterator * pResourceIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetMultiPropertyGroups (pModel, pResourceIterator); +} + + +Lib3MFResult CCall_lib3mf_model_getslicestacks(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_SliceStackIterator * pResourceIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetSliceStacks (pModel, pResourceIterator); +} + + +Lib3MFResult CCall_lib3mf_model_getimage3ds(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Image3DIterator * pResourceIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetImage3Ds (pModel, pResourceIterator); +} + + +Lib3MFResult CCall_lib3mf_model_mergetomodel(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Model * pMergedModelInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_MergeToModel (pModel, pMergedModelInstance); +} + + +Lib3MFResult CCall_lib3mf_model_mergefrommodel(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Model pModelInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_MergeFromModel (pModel, pModelInstance); +} + + +Lib3MFResult CCall_lib3mf_model_addmeshobject(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_MeshObject * pMeshObjectInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddMeshObject (pModel, pMeshObjectInstance); +} + + +Lib3MFResult CCall_lib3mf_model_addcomponentsobject(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ComponentsObject * pComponentsObjectInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddComponentsObject (pModel, pComponentsObjectInstance); +} + + +Lib3MFResult CCall_lib3mf_model_addslicestack(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_double dZBottom, Lib3MF_SliceStack * pSliceStackInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddSliceStack (pModel, dZBottom, pSliceStackInstance); +} + + +Lib3MFResult CCall_lib3mf_model_addtexture2dfromattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Attachment pTextureAttachment, Lib3MF_Texture2D * pTexture2DInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddTexture2DFromAttachment (pModel, pTextureAttachment, pTexture2DInstance); +} + + +Lib3MFResult CCall_lib3mf_model_addbasematerialgroup(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BaseMaterialGroup * pBaseMaterialGroupInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddBaseMaterialGroup (pModel, pBaseMaterialGroupInstance); +} + + +Lib3MFResult CCall_lib3mf_model_addcolorgroup(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ColorGroup * pColorGroupInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddColorGroup (pModel, pColorGroupInstance); +} + + +Lib3MFResult CCall_lib3mf_model_addtexture2dgroup(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Texture2D pTexture2DInstance, Lib3MF_Texture2DGroup * pTexture2DGroupInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddTexture2DGroup (pModel, pTexture2DInstance, pTexture2DGroupInstance); +} + + +Lib3MFResult CCall_lib3mf_model_addcompositematerials(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BaseMaterialGroup pBaseMaterialGroupInstance, Lib3MF_CompositeMaterials * pCompositeMaterialsInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddCompositeMaterials (pModel, pBaseMaterialGroupInstance, pCompositeMaterialsInstance); +} + + +Lib3MFResult CCall_lib3mf_model_addmultipropertygroup(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_MultiPropertyGroup * pMultiPropertyGroupInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddMultiPropertyGroup (pModel, pMultiPropertyGroupInstance); +} + + +Lib3MFResult CCall_lib3mf_model_addimagestack(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nColumnCount, Lib3MF_uint32 nRowCount, Lib3MF_uint32 nSheetCount, Lib3MF_ImageStack * pInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddImageStack (pModel, nColumnCount, nRowCount, nSheetCount, pInstance); +} + + +Lib3MFResult CCall_lib3mf_model_getimagestackbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_ImageStack * pImageStackInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetImageStackByID (pModel, nUniqueResourceID, pImageStackInstance); +} + + +Lib3MFResult CCall_lib3mf_model_addbuilditem(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Object pObject, const sLib3MFTransform * pTransform, Lib3MF_BuildItem * pBuildItemInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddBuildItem (pModel, pObject, pTransform, pBuildItemInstance); +} + + +Lib3MFResult CCall_lib3mf_model_removebuilditem(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BuildItem pBuildItemInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_RemoveBuildItem (pModel, pBuildItemInstance); +} + + +Lib3MFResult CCall_lib3mf_model_getmetadatagroup(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_MetaDataGroup * pTheMetaDataGroup) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetMetaDataGroup (pModel, pTheMetaDataGroup); +} + + +Lib3MFResult CCall_lib3mf_model_addattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pURI, const char * pRelationShipType, Lib3MF_Attachment * pAttachmentInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddAttachment (pModel, pURI, pRelationShipType, pAttachmentInstance); +} + + +Lib3MFResult CCall_lib3mf_model_removeattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Attachment pAttachmentInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_RemoveAttachment (pModel, pAttachmentInstance); +} + + +Lib3MFResult CCall_lib3mf_model_getattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nIndex, Lib3MF_Attachment * pAttachmentInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetAttachment (pModel, nIndex, pAttachmentInstance); +} + + +Lib3MFResult CCall_lib3mf_model_findattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pURI, Lib3MF_Attachment * pAttachmentInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_FindAttachment (pModel, pURI, pAttachmentInstance); +} + + +Lib3MFResult CCall_lib3mf_model_getattachmentcount(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 * pAttachmentCount) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetAttachmentCount (pModel, pAttachmentCount); +} + + +Lib3MFResult CCall_lib3mf_model_haspackagethumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, bool * pHasThumbnail) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_HasPackageThumbnailAttachment (pModel, pHasThumbnail); +} + + +Lib3MFResult CCall_lib3mf_model_createpackagethumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Attachment * pAttachment) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_CreatePackageThumbnailAttachment (pModel, pAttachment); +} + + +Lib3MFResult CCall_lib3mf_model_getpackagethumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Attachment * pAttachment) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetPackageThumbnailAttachment (pModel, pAttachment); +} + + +Lib3MFResult CCall_lib3mf_model_removepackagethumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_RemovePackageThumbnailAttachment (pModel); +} + + +Lib3MFResult CCall_lib3mf_model_addcustomcontenttype(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pExtension, const char * pContentType) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddCustomContentType (pModel, pExtension, pContentType); +} + + +Lib3MFResult CCall_lib3mf_model_removecustomcontenttype(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pExtension) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_RemoveCustomContentType (pModel, pExtension); +} + + +Lib3MFResult CCall_lib3mf_model_setrandomnumbercallback(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MFRandomNumberCallback pTheCallback, Lib3MF_pvoid pUserData) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_SetRandomNumberCallback (pModel, pTheCallback, pUserData); +} + + +Lib3MFResult CCall_lib3mf_model_getkeystore(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_KeyStore * pKeyStore) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetKeyStore (pModel, pKeyStore); +} + + +Lib3MFResult CCall_lib3mf_model_getfunctions(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_FunctionIterator * pTheResourceIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetFunctions (pModel, pTheResourceIterator); +} + + +Lib3MFResult CCall_lib3mf_model_addimplicitfunction(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ImplicitFunction * pFunctionInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddImplicitFunction (pModel, pFunctionInstance); +} + + +Lib3MFResult CCall_lib3mf_model_addfunctionfromimage3d(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Image3D pImage3DInstance, Lib3MF_FunctionFromImage3D * pFunctionInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddFunctionFromImage3D (pModel, pImage3DInstance, pFunctionInstance); +} + + +Lib3MFResult CCall_lib3mf_model_addvolumedata(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_VolumeData * pVolumeDataInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddVolumeData (pModel, pVolumeDataInstance); +} + + +Lib3MFResult CCall_lib3mf_model_addlevelset(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_LevelSet * pLevelSetInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_AddLevelSet (pModel, pLevelSetInstance); +} + + +Lib3MFResult CCall_lib3mf_model_getlevelsets(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_LevelSetIterator * pResourceIterator) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_GetLevelSets (pModel, pResourceIterator); +} + + +Lib3MFResult CCall_lib3mf_model_removeresource(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Resource pResource) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Model_RemoveResource (pModel, pResource); +} + + +Lib3MFResult CCall_lib3mf_getlibraryversion(Lib3MFHandle libraryHandle, Lib3MF_uint32 * pMajor, Lib3MF_uint32 * pMinor, Lib3MF_uint32 * pMicro) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_GetLibraryVersion (pMajor, pMinor, pMicro); +} + + +Lib3MFResult CCall_lib3mf_getprereleaseinformation(Lib3MFHandle libraryHandle, bool * pHasPrereleaseInfo, const Lib3MF_uint32 nPrereleaseInfoBufferSize, Lib3MF_uint32* pPrereleaseInfoNeededChars, char * pPrereleaseInfoBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_GetPrereleaseInformation (pHasPrereleaseInfo, nPrereleaseInfoBufferSize, pPrereleaseInfoNeededChars, pPrereleaseInfoBuffer); +} + + +Lib3MFResult CCall_lib3mf_getbuildinformation(Lib3MFHandle libraryHandle, bool * pHasBuildInfo, const Lib3MF_uint32 nBuildInformationBufferSize, Lib3MF_uint32* pBuildInformationNeededChars, char * pBuildInformationBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_GetBuildInformation (pHasBuildInfo, nBuildInformationBufferSize, pBuildInformationNeededChars, pBuildInformationBuffer); +} + + +Lib3MFResult CCall_lib3mf_getspecificationversion(Lib3MFHandle libraryHandle, const char * pSpecificationURL, bool * pIsSupported, Lib3MF_uint32 * pMajor, Lib3MF_uint32 * pMinor, Lib3MF_uint32 * pMicro) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_GetSpecificationVersion (pSpecificationURL, pIsSupported, pMajor, pMinor, pMicro); +} + + +Lib3MFResult CCall_lib3mf_createmodel(Lib3MFHandle libraryHandle, Lib3MF_Model * pModel) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_CreateModel (pModel); +} + + +Lib3MFResult CCall_lib3mf_release(Lib3MFHandle libraryHandle, Lib3MF_Base pInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Release (pInstance); +} + + +Lib3MFResult CCall_lib3mf_acquire(Lib3MFHandle libraryHandle, Lib3MF_Base pInstance) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_Acquire (pInstance); +} + + +Lib3MFResult CCall_lib3mf_setjournal(Lib3MFHandle libraryHandle, const char * pJournalPath) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_SetJournal (pJournalPath); +} + + +Lib3MFResult CCall_lib3mf_getlasterror(Lib3MFHandle libraryHandle, Lib3MF_Base pInstance, const Lib3MF_uint32 nLastErrorStringBufferSize, Lib3MF_uint32* pLastErrorStringNeededChars, char * pLastErrorStringBuffer, bool * pHasLastError) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_GetLastError (pInstance, nLastErrorStringBufferSize, pLastErrorStringNeededChars, pLastErrorStringBuffer, pHasLastError); +} + + +Lib3MFResult CCall_lib3mf_getsymbollookupmethod(Lib3MFHandle libraryHandle, Lib3MF_pvoid * pSymbolLookupMethod) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_GetSymbolLookupMethod (pSymbolLookupMethod); +} + + +Lib3MFResult CCall_lib3mf_retrieveprogressmessage(Lib3MFHandle libraryHandle, eLib3MFProgressIdentifier eTheProgressIdentifier, const Lib3MF_uint32 nProgressMessageBufferSize, Lib3MF_uint32* pProgressMessageNeededChars, char * pProgressMessageBuffer) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_RetrieveProgressMessage (eTheProgressIdentifier, nProgressMessageBufferSize, pProgressMessageNeededChars, pProgressMessageBuffer); +} + + +Lib3MFResult CCall_lib3mf_rgbatocolor(Lib3MFHandle libraryHandle, Lib3MF_uint8 nRed, Lib3MF_uint8 nGreen, Lib3MF_uint8 nBlue, Lib3MF_uint8 nAlpha, sLib3MFColor * pTheColor) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_RGBAToColor (nRed, nGreen, nBlue, nAlpha, pTheColor); +} + + +Lib3MFResult CCall_lib3mf_floatrgbatocolor(Lib3MFHandle libraryHandle, Lib3MF_single fRed, Lib3MF_single fGreen, Lib3MF_single fBlue, Lib3MF_single fAlpha, sLib3MFColor * pTheColor) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_FloatRGBAToColor (fRed, fGreen, fBlue, fAlpha, pTheColor); +} + + +Lib3MFResult CCall_lib3mf_colortorgba(Lib3MFHandle libraryHandle, const sLib3MFColor * pTheColor, Lib3MF_uint8 * pRed, Lib3MF_uint8 * pGreen, Lib3MF_uint8 * pBlue, Lib3MF_uint8 * pAlpha) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ColorToRGBA (pTheColor, pRed, pGreen, pBlue, pAlpha); +} + + +Lib3MFResult CCall_lib3mf_colortofloatrgba(Lib3MFHandle libraryHandle, const sLib3MFColor * pTheColor, Lib3MF_single * pRed, Lib3MF_single * pGreen, Lib3MF_single * pBlue, Lib3MF_single * pAlpha) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_ColorToFloatRGBA (pTheColor, pRed, pGreen, pBlue, pAlpha); +} + + +Lib3MFResult CCall_lib3mf_getidentitytransform(Lib3MFHandle libraryHandle, sLib3MFTransform * pTransform) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_GetIdentityTransform (pTransform); +} + + +Lib3MFResult CCall_lib3mf_getuniformscaletransform(Lib3MFHandle libraryHandle, Lib3MF_single fFactor, sLib3MFTransform * pTransform) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_GetUniformScaleTransform (fFactor, pTransform); +} + + +Lib3MFResult CCall_lib3mf_getscaletransform(Lib3MFHandle libraryHandle, Lib3MF_single fFactorX, Lib3MF_single fFactorY, Lib3MF_single fFactorZ, sLib3MFTransform * pTransform) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_GetScaleTransform (fFactorX, fFactorY, fFactorZ, pTransform); +} + + +Lib3MFResult CCall_lib3mf_gettranslationtransform(Lib3MFHandle libraryHandle, Lib3MF_single fVectorX, Lib3MF_single fVectorY, Lib3MF_single fVectorZ, sLib3MFTransform * pTransform) +{ + if (libraryHandle == 0) + return LIB3MF_ERROR_INVALIDCAST; + sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; + return wrapperTable->m_GetTranslationTransform (fVectorX, fVectorY, fVectorZ, pTransform); +} + diff --git a/Autogenerated/Bindings/Go/lib3mf_dynamic.h b/Autogenerated/Bindings/Go/lib3mf_dynamic.h index 0211b290..4442a20a 100644 --- a/Autogenerated/Bindings/Go/lib3mf_dynamic.h +++ b/Autogenerated/Bindings/Go/lib3mf_dynamic.h @@ -7055,5 +7055,1815 @@ Lib3MFResult InitLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable); Lib3MFResult ReleaseLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable); Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable, const char * pLibraryFileName); -#endif // __LIB3MF_DYNAMICHEADER +Lib3MFHandle loadLib3MFLibrary (const char * pFileName); + +void unloadLib3MFLibrary (Lib3MFHandle nLibraryHandle); + + +Lib3MFResult CCall_lib3mf_base_classtypeid(Lib3MFHandle libraryHandle, Lib3MF_Base pBase, Lib3MF_uint64 * pClassTypeId); + + +Lib3MFResult CCall_lib3mf_writer_writetofile(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, const char * pFilename); + + +Lib3MFResult CCall_lib3mf_writer_getstreamsize(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MF_uint64 * pStreamSize); + + +Lib3MFResult CCall_lib3mf_writer_writetobuffer(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, const Lib3MF_uint64 nBufferBufferSize, Lib3MF_uint64* pBufferNeededCount, Lib3MF_uint8 * pBufferBuffer); + + +Lib3MFResult CCall_lib3mf_writer_writetocallback(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MFWriteCallback pTheWriteCallback, Lib3MFSeekCallback pTheSeekCallback, Lib3MF_pvoid pUserData); + + +Lib3MFResult CCall_lib3mf_writer_setprogresscallback(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MFProgressCallback pProgressCallback, Lib3MF_pvoid pUserData); + + +Lib3MFResult CCall_lib3mf_writer_getdecimalprecision(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MF_uint32 * pDecimalPrecision); + + +Lib3MFResult CCall_lib3mf_writer_setdecimalprecision(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MF_uint32 nDecimalPrecision); + + +Lib3MFResult CCall_lib3mf_writer_setstrictmodeactive(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, bool bStrictModeActive); + + +Lib3MFResult CCall_lib3mf_writer_getstrictmodeactive(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, bool * pStrictModeActive); + + +Lib3MFResult CCall_lib3mf_writer_getwarning(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MF_uint32 nIndex, Lib3MF_uint32 * pErrorCode, const Lib3MF_uint32 nWarningBufferSize, Lib3MF_uint32* pWarningNeededChars, char * pWarningBuffer); + + +Lib3MFResult CCall_lib3mf_writer_getwarningcount(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_writer_addkeywrappingcallback(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, const char * pConsumerID, Lib3MFKeyWrappingCallback pTheCallback, Lib3MF_pvoid pUserData); + + +Lib3MFResult CCall_lib3mf_writer_setcontentencryptioncallback(Lib3MFHandle libraryHandle, Lib3MF_Writer pWriter, Lib3MFContentEncryptionCallback pTheCallback, Lib3MF_pvoid pUserData); + + +Lib3MFResult CCall_lib3mf_reader_readfromfile(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, const char * pFilename); + + +Lib3MFResult CCall_lib3mf_reader_readfrombuffer(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MF_uint64 nBufferBufferSize, const Lib3MF_uint8 * pBufferBuffer); + + +Lib3MFResult CCall_lib3mf_reader_readfromcallback(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MFReadCallback pTheReadCallback, Lib3MF_uint64 nStreamSize, Lib3MFSeekCallback pTheSeekCallback, Lib3MF_pvoid pUserData); + + +Lib3MFResult CCall_lib3mf_reader_setprogresscallback(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MFProgressCallback pProgressCallback, Lib3MF_pvoid pUserData); + + +Lib3MFResult CCall_lib3mf_reader_addrelationtoread(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, const char * pRelationShipType); + + +Lib3MFResult CCall_lib3mf_reader_removerelationtoread(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, const char * pRelationShipType); + + +Lib3MFResult CCall_lib3mf_reader_setstrictmodeactive(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, bool bStrictModeActive); + + +Lib3MFResult CCall_lib3mf_reader_getstrictmodeactive(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, bool * pStrictModeActive); + + +Lib3MFResult CCall_lib3mf_reader_getwarning(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MF_uint32 nIndex, Lib3MF_uint32 * pErrorCode, const Lib3MF_uint32 nWarningBufferSize, Lib3MF_uint32* pWarningNeededChars, char * pWarningBuffer); + + +Lib3MFResult CCall_lib3mf_reader_getwarningcount(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_reader_addkeywrappingcallback(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, const char * pConsumerID, Lib3MFKeyWrappingCallback pTheCallback, Lib3MF_pvoid pUserData); + + +Lib3MFResult CCall_lib3mf_reader_setcontentencryptioncallback(Lib3MFHandle libraryHandle, Lib3MF_Reader pReader, Lib3MFContentEncryptionCallback pTheCallback, Lib3MF_pvoid pUserData); + + +Lib3MFResult CCall_lib3mf_packagepart_getpath(Lib3MFHandle libraryHandle, Lib3MF_PackagePart pPackagePart, const Lib3MF_uint32 nPathBufferSize, Lib3MF_uint32* pPathNeededChars, char * pPathBuffer); + + +Lib3MFResult CCall_lib3mf_packagepart_setpath(Lib3MFHandle libraryHandle, Lib3MF_PackagePart pPackagePart, const char * pPath); + + +Lib3MFResult CCall_lib3mf_resource_getresourceid(Lib3MFHandle libraryHandle, Lib3MF_Resource pResource, Lib3MF_uint32 * pUniqueResourceID); + + +Lib3MFResult CCall_lib3mf_resource_getuniqueresourceid(Lib3MFHandle libraryHandle, Lib3MF_Resource pResource, Lib3MF_uint32 * pUniqueResourceID); + + +Lib3MFResult CCall_lib3mf_resource_packagepart(Lib3MFHandle libraryHandle, Lib3MF_Resource pResource, Lib3MF_PackagePart * pPackagePart); + + +Lib3MFResult CCall_lib3mf_resource_setpackagepart(Lib3MFHandle libraryHandle, Lib3MF_Resource pResource, Lib3MF_PackagePart pPackagePart); + + +Lib3MFResult CCall_lib3mf_resource_getmodelresourceid(Lib3MFHandle libraryHandle, Lib3MF_Resource pResource, Lib3MF_uint32 * pModelResourceId); + + +Lib3MFResult CCall_lib3mf_resourceiterator_movenext(Lib3MFHandle libraryHandle, Lib3MF_ResourceIterator pResourceIterator, bool * pHasNext); + + +Lib3MFResult CCall_lib3mf_resourceiterator_moveprevious(Lib3MFHandle libraryHandle, Lib3MF_ResourceIterator pResourceIterator, bool * pHasPrevious); + + +Lib3MFResult CCall_lib3mf_resourceiterator_getcurrent(Lib3MFHandle libraryHandle, Lib3MF_ResourceIterator pResourceIterator, Lib3MF_Resource * pResource); + + +Lib3MFResult CCall_lib3mf_resourceiterator_clone(Lib3MFHandle libraryHandle, Lib3MF_ResourceIterator pResourceIterator, Lib3MF_ResourceIterator * pOutResourceIterator); + + +Lib3MFResult CCall_lib3mf_resourceiterator_count(Lib3MFHandle libraryHandle, Lib3MF_ResourceIterator pResourceIterator, Lib3MF_uint64 * pCount); + + +Lib3MFResult CCall_lib3mf_slicestackiterator_getcurrentslicestack(Lib3MFHandle libraryHandle, Lib3MF_SliceStackIterator pSliceStackIterator, Lib3MF_SliceStack * pResource); + + +Lib3MFResult CCall_lib3mf_objectiterator_getcurrentobject(Lib3MFHandle libraryHandle, Lib3MF_ObjectIterator pObjectIterator, Lib3MF_Object * pResource); + + +Lib3MFResult CCall_lib3mf_meshobjectiterator_getcurrentmeshobject(Lib3MFHandle libraryHandle, Lib3MF_MeshObjectIterator pMeshObjectIterator, Lib3MF_MeshObject * pResource); + + +Lib3MFResult CCall_lib3mf_componentsobjectiterator_getcurrentcomponentsobject(Lib3MFHandle libraryHandle, Lib3MF_ComponentsObjectIterator pComponentsObjectIterator, Lib3MF_ComponentsObject * pResource); + + +Lib3MFResult CCall_lib3mf_texture2diterator_getcurrenttexture2d(Lib3MFHandle libraryHandle, Lib3MF_Texture2DIterator pTexture2DIterator, Lib3MF_Texture2D * pResource); + + +Lib3MFResult CCall_lib3mf_basematerialgroupiterator_getcurrentbasematerialgroup(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroupIterator pBaseMaterialGroupIterator, Lib3MF_BaseMaterialGroup * pResource); + + +Lib3MFResult CCall_lib3mf_colorgroupiterator_getcurrentcolorgroup(Lib3MFHandle libraryHandle, Lib3MF_ColorGroupIterator pColorGroupIterator, Lib3MF_ColorGroup * pResource); + + +Lib3MFResult CCall_lib3mf_texture2dgroupiterator_getcurrenttexture2dgroup(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroupIterator pTexture2DGroupIterator, Lib3MF_Texture2DGroup * pResource); + + +Lib3MFResult CCall_lib3mf_compositematerialsiterator_getcurrentcompositematerials(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterialsIterator pCompositeMaterialsIterator, Lib3MF_CompositeMaterials * pResource); + + +Lib3MFResult CCall_lib3mf_multipropertygroupiterator_getcurrentmultipropertygroup(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroupIterator pMultiPropertyGroupIterator, Lib3MF_MultiPropertyGroup * pResource); + + +Lib3MFResult CCall_lib3mf_image3diterator_getcurrentimage3d(Lib3MFHandle libraryHandle, Lib3MF_Image3DIterator pImage3DIterator, Lib3MF_Image3D * pResource); + + +Lib3MFResult CCall_lib3mf_functioniterator_getcurrentfunction(Lib3MFHandle libraryHandle, Lib3MF_FunctionIterator pFunctionIterator, Lib3MF_Function * pResource); + + +Lib3MFResult CCall_lib3mf_levelsetiterator_getcurrentlevelset(Lib3MFHandle libraryHandle, Lib3MF_LevelSetIterator pLevelSetIterator, Lib3MF_LevelSet * pResource); + + +Lib3MFResult CCall_lib3mf_metadata_getnamespace(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const Lib3MF_uint32 nNameSpaceBufferSize, Lib3MF_uint32* pNameSpaceNeededChars, char * pNameSpaceBuffer); + + +Lib3MFResult CCall_lib3mf_metadata_setnamespace(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const char * pNameSpace); + + +Lib3MFResult CCall_lib3mf_metadata_getname(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const Lib3MF_uint32 nNameBufferSize, Lib3MF_uint32* pNameNeededChars, char * pNameBuffer); + + +Lib3MFResult CCall_lib3mf_metadata_setname(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const char * pName); + + +Lib3MFResult CCall_lib3mf_metadata_getkey(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const Lib3MF_uint32 nKeyBufferSize, Lib3MF_uint32* pKeyNeededChars, char * pKeyBuffer); + + +Lib3MFResult CCall_lib3mf_metadata_getmustpreserve(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, bool * pMustPreserve); + + +Lib3MFResult CCall_lib3mf_metadata_setmustpreserve(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, bool bMustPreserve); + + +Lib3MFResult CCall_lib3mf_metadata_gettype(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const Lib3MF_uint32 nTypeBufferSize, Lib3MF_uint32* pTypeNeededChars, char * pTypeBuffer); + + +Lib3MFResult CCall_lib3mf_metadata_settype(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const char * pType); + + +Lib3MFResult CCall_lib3mf_metadata_getvalue(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const Lib3MF_uint32 nValueBufferSize, Lib3MF_uint32* pValueNeededChars, char * pValueBuffer); + + +Lib3MFResult CCall_lib3mf_metadata_setvalue(Lib3MFHandle libraryHandle, Lib3MF_MetaData pMetaData, const char * pValue); + + +Lib3MFResult CCall_lib3mf_metadatagroup_getmetadatacount(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_metadatagroup_getmetadata(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, Lib3MF_uint32 nIndex, Lib3MF_MetaData * pMetaData); + + +Lib3MFResult CCall_lib3mf_metadatagroup_getmetadatabykey(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, const char * pNameSpace, const char * pName, Lib3MF_MetaData * pMetaData); + + +Lib3MFResult CCall_lib3mf_metadatagroup_removemetadatabyindex(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, Lib3MF_uint32 nIndex); + + +Lib3MFResult CCall_lib3mf_metadatagroup_removemetadata(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, Lib3MF_MetaData pTheMetaData); + + +Lib3MFResult CCall_lib3mf_metadatagroup_addmetadata(Lib3MFHandle libraryHandle, Lib3MF_MetaDataGroup pMetaDataGroup, const char * pNameSpace, const char * pName, const char * pValue, const char * pType, bool bMustPreserve, Lib3MF_MetaData * pMetaData); + + +Lib3MFResult CCall_lib3mf_object_gettype(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, eLib3MFObjectType * pObjectType); + + +Lib3MFResult CCall_lib3mf_object_settype(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, eLib3MFObjectType eObjectType); + + +Lib3MFResult CCall_lib3mf_object_getname(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, const Lib3MF_uint32 nNameBufferSize, Lib3MF_uint32* pNameNeededChars, char * pNameBuffer); + + +Lib3MFResult CCall_lib3mf_object_setname(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, const char * pName); + + +Lib3MFResult CCall_lib3mf_object_getpartnumber(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, const Lib3MF_uint32 nPartNumberBufferSize, Lib3MF_uint32* pPartNumberNeededChars, char * pPartNumberBuffer); + + +Lib3MFResult CCall_lib3mf_object_setpartnumber(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, const char * pPartNumber); + + +Lib3MFResult CCall_lib3mf_object_ismeshobject(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool * pIsMeshObject); + + +Lib3MFResult CCall_lib3mf_object_iscomponentsobject(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool * pIsComponentsObject); + + +Lib3MFResult CCall_lib3mf_object_islevelsetobject(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool * pIsLevelSetObject); + + +Lib3MFResult CCall_lib3mf_object_isvalid(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool * pIsValid); + + +Lib3MFResult CCall_lib3mf_object_setattachmentasthumbnail(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, Lib3MF_Attachment pAttachment); + + +Lib3MFResult CCall_lib3mf_object_getthumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, Lib3MF_Attachment * pAttachment); + + +Lib3MFResult CCall_lib3mf_object_clearthumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Object pObject); + + +Lib3MFResult CCall_lib3mf_object_getoutbox(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, sLib3MFBox * pOutbox); + + +Lib3MFResult CCall_lib3mf_object_getuuid(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool * pHasUUID, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer); + + +Lib3MFResult CCall_lib3mf_object_setuuid(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, const char * pUUID); + + +Lib3MFResult CCall_lib3mf_object_getmetadatagroup(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, Lib3MF_MetaDataGroup * pMetaDataGroup); + + +Lib3MFResult CCall_lib3mf_object_setslicesmeshresolution(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, eLib3MFSlicesMeshResolution eMeshResolution); + + +Lib3MFResult CCall_lib3mf_object_getslicesmeshresolution(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, eLib3MFSlicesMeshResolution * pMeshResolution); + + +Lib3MFResult CCall_lib3mf_object_hasslices(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, bool bRecursive, bool * pHasSlices); + + +Lib3MFResult CCall_lib3mf_object_clearslicestack(Lib3MFHandle libraryHandle, Lib3MF_Object pObject); + + +Lib3MFResult CCall_lib3mf_object_getslicestack(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, Lib3MF_SliceStack * pSliceStackInstance); + + +Lib3MFResult CCall_lib3mf_object_assignslicestack(Lib3MFHandle libraryHandle, Lib3MF_Object pObject, Lib3MF_SliceStack pSliceStackInstance); + + +Lib3MFResult CCall_lib3mf_meshobject_getvertexcount(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 * pVertexCount); + + +Lib3MFResult CCall_lib3mf_meshobject_gettrianglecount(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 * pVertexCount); + + +Lib3MFResult CCall_lib3mf_meshobject_getvertex(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, sLib3MFPosition * pCoordinates); + + +Lib3MFResult CCall_lib3mf_meshobject_setvertex(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, const sLib3MFPosition * pCoordinates); + + +Lib3MFResult CCall_lib3mf_meshobject_addvertex(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, const sLib3MFPosition * pCoordinates, Lib3MF_uint32 * pNewIndex); + + +Lib3MFResult CCall_lib3mf_meshobject_getvertices(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, const Lib3MF_uint64 nVerticesBufferSize, Lib3MF_uint64* pVerticesNeededCount, sLib3MFPosition * pVerticesBuffer); + + +Lib3MFResult CCall_lib3mf_meshobject_gettriangle(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, sLib3MFTriangle * pIndices); + + +Lib3MFResult CCall_lib3mf_meshobject_settriangle(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, const sLib3MFTriangle * pIndices); + + +Lib3MFResult CCall_lib3mf_meshobject_addtriangle(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, const sLib3MFTriangle * pIndices, Lib3MF_uint32 * pNewIndex); + + +Lib3MFResult CCall_lib3mf_meshobject_gettriangleindices(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, const Lib3MF_uint64 nIndicesBufferSize, Lib3MF_uint64* pIndicesNeededCount, sLib3MFTriangle * pIndicesBuffer); + + +Lib3MFResult CCall_lib3mf_meshobject_setobjectlevelproperty(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nUniqueResourceID, Lib3MF_uint32 nPropertyID); + + +Lib3MFResult CCall_lib3mf_meshobject_getobjectlevelproperty(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 * pUniqueResourceID, Lib3MF_uint32 * pPropertyID, bool * pHasObjectLevelProperty); + + +Lib3MFResult CCall_lib3mf_meshobject_settriangleproperties(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, const sLib3MFTriangleProperties * pProperties); + + +Lib3MFResult CCall_lib3mf_meshobject_gettriangleproperties(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint32 nIndex, sLib3MFTriangleProperties * pProperty); + + +Lib3MFResult CCall_lib3mf_meshobject_setalltriangleproperties(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint64 nPropertiesArrayBufferSize, const sLib3MFTriangleProperties * pPropertiesArrayBuffer); + + +Lib3MFResult CCall_lib3mf_meshobject_getalltriangleproperties(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, const Lib3MF_uint64 nPropertiesArrayBufferSize, Lib3MF_uint64* pPropertiesArrayNeededCount, sLib3MFTriangleProperties * pPropertiesArrayBuffer); + + +Lib3MFResult CCall_lib3mf_meshobject_clearallproperties(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject); + + +Lib3MFResult CCall_lib3mf_meshobject_setgeometry(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_uint64 nVerticesBufferSize, const sLib3MFPosition * pVerticesBuffer, Lib3MF_uint64 nIndicesBufferSize, const sLib3MFTriangle * pIndicesBuffer); + + +Lib3MFResult CCall_lib3mf_meshobject_ismanifoldandoriented(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, bool * pIsManifoldAndOriented); + + +Lib3MFResult CCall_lib3mf_meshobject_beamlattice(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_BeamLattice * pTheBeamLattice); + + +Lib3MFResult CCall_lib3mf_meshobject_getvolumedata(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_VolumeData * pTheVolumeData); + + +Lib3MFResult CCall_lib3mf_meshobject_setvolumedata(Lib3MFHandle libraryHandle, Lib3MF_MeshObject pMeshObject, Lib3MF_VolumeData pTheVolumeData); + + +Lib3MFResult CCall_lib3mf_levelset_getfunction(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_Function * pTheFunction); + + +Lib3MFResult CCall_lib3mf_levelset_setfunction(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_Function pTheFunction); + + +Lib3MFResult CCall_lib3mf_levelset_gettransform(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, sLib3MFTransform * pTransform); + + +Lib3MFResult CCall_lib3mf_levelset_settransform(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, const sLib3MFTransform * pTransform); + + +Lib3MFResult CCall_lib3mf_levelset_getchannelname(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer); + + +Lib3MFResult CCall_lib3mf_levelset_setchannelname(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, const char * pChannelName); + + +Lib3MFResult CCall_lib3mf_levelset_setminfeaturesize(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_double dMinFeatureSize); + + +Lib3MFResult CCall_lib3mf_levelset_getminfeaturesize(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_double * pMinFeatureSize); + + +Lib3MFResult CCall_lib3mf_levelset_setfallbackvalue(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_double dFallBackValue); + + +Lib3MFResult CCall_lib3mf_levelset_getfallbackvalue(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_double * pFallBackValue); + + +Lib3MFResult CCall_lib3mf_levelset_setmeshbboxonly(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, bool bMeshBBoxOnly); + + +Lib3MFResult CCall_lib3mf_levelset_getmeshbboxonly(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, bool * pMeshBBoxOnly); + + +Lib3MFResult CCall_lib3mf_levelset_setmesh(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject pTheMesh); + + +Lib3MFResult CCall_lib3mf_levelset_getmesh(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject * pTheMesh); + + +Lib3MFResult CCall_lib3mf_levelset_getvolumedata(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData * pTheVolumeData); + + +Lib3MFResult CCall_lib3mf_levelset_setvolumedata(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData pTheVolumeData); + + +Lib3MFResult CCall_lib3mf_beamlattice_getminlength(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_double * pMinLength); + + +Lib3MFResult CCall_lib3mf_beamlattice_setminlength(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_double dMinLength); + + +Lib3MFResult CCall_lib3mf_beamlattice_getclipping(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, eLib3MFBeamLatticeClipMode * pClipMode, Lib3MF_uint32 * pUniqueResourceID); + + +Lib3MFResult CCall_lib3mf_beamlattice_setclipping(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, eLib3MFBeamLatticeClipMode eClipMode, Lib3MF_uint32 nUniqueResourceID); + + +Lib3MFResult CCall_lib3mf_beamlattice_getrepresentation(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, bool * pHasRepresentation, Lib3MF_uint32 * pUniqueResourceID); + + +Lib3MFResult CCall_lib3mf_beamlattice_setrepresentation(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nUniqueResourceID); + + +Lib3MFResult CCall_lib3mf_beamlattice_getballoptions(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, eLib3MFBeamLatticeBallMode * pBallMode, Lib3MF_double * pBallRadius); + + +Lib3MFResult CCall_lib3mf_beamlattice_setballoptions(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, eLib3MFBeamLatticeBallMode eBallMode, Lib3MF_double dBallRadius); + + +Lib3MFResult CCall_lib3mf_beamlattice_getbeamcount(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_beamlattice_getbeam(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nIndex, sLib3MFBeam * pBeamInfo); + + +Lib3MFResult CCall_lib3mf_beamlattice_addbeam(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, const sLib3MFBeam * pBeamInfo, Lib3MF_uint32 * pIndex); + + +Lib3MFResult CCall_lib3mf_beamlattice_setbeam(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nIndex, const sLib3MFBeam * pBeamInfo); + + +Lib3MFResult CCall_lib3mf_beamlattice_setbeams(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint64 nBeamInfoBufferSize, const sLib3MFBeam * pBeamInfoBuffer); + + +Lib3MFResult CCall_lib3mf_beamlattice_getbeams(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, const Lib3MF_uint64 nBeamInfoBufferSize, Lib3MF_uint64* pBeamInfoNeededCount, sLib3MFBeam * pBeamInfoBuffer); + + +Lib3MFResult CCall_lib3mf_beamlattice_getballcount(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_beamlattice_getball(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nIndex, sLib3MFBall * pBallInfo); + + +Lib3MFResult CCall_lib3mf_beamlattice_addball(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, const sLib3MFBall * pBallInfo, Lib3MF_uint32 * pIndex); + + +Lib3MFResult CCall_lib3mf_beamlattice_setball(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nIndex, const sLib3MFBall * pBallInfo); + + +Lib3MFResult CCall_lib3mf_beamlattice_setballs(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint64 nBallInfoBufferSize, const sLib3MFBall * pBallInfoBuffer); + + +Lib3MFResult CCall_lib3mf_beamlattice_getballs(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, const Lib3MF_uint64 nBallInfoBufferSize, Lib3MF_uint64* pBallInfoNeededCount, sLib3MFBall * pBallInfoBuffer); + + +Lib3MFResult CCall_lib3mf_beamlattice_getbeamsetcount(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_beamlattice_addbeamset(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_BeamSet * pBeamSet); + + +Lib3MFResult CCall_lib3mf_beamlattice_getbeamset(Lib3MFHandle libraryHandle, Lib3MF_BeamLattice pBeamLattice, Lib3MF_uint32 nIndex, Lib3MF_BeamSet * pBeamSet); + + +Lib3MFResult CCall_lib3mf_functionreference_getfunctionresourceid(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_uint32 * pUniqueResourceID); + + +Lib3MFResult CCall_lib3mf_functionreference_setfunctionresourceid(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_uint32 nUniqueResourceID); + + +Lib3MFResult CCall_lib3mf_functionreference_gettransform(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, sLib3MFTransform * pTransform); + + +Lib3MFResult CCall_lib3mf_functionreference_settransform(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, const sLib3MFTransform * pTransform); + + +Lib3MFResult CCall_lib3mf_functionreference_getchannelname(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer); + + +Lib3MFResult CCall_lib3mf_functionreference_setchannelname(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, const char * pChannelName); + + +Lib3MFResult CCall_lib3mf_functionreference_setminfeaturesize(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_double dMinFeatureSize); + + +Lib3MFResult CCall_lib3mf_functionreference_getminfeaturesize(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_double * pMinFeatureSize); + + +Lib3MFResult CCall_lib3mf_functionreference_setfallbackvalue(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_double dFallBackValue); + + +Lib3MFResult CCall_lib3mf_functionreference_getfallbackvalue(Lib3MFHandle libraryHandle, Lib3MF_FunctionReference pFunctionReference, Lib3MF_double * pFallBackValue); + + +Lib3MFResult CCall_lib3mf_volumedatacomposite_getbasematerialgroup(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, Lib3MF_BaseMaterialGroup * pBaseMaterialGroupInstance); + + +Lib3MFResult CCall_lib3mf_volumedatacomposite_setbasematerialgroup(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, Lib3MF_BaseMaterialGroup pBaseMaterialGroupInstance); + + +Lib3MFResult CCall_lib3mf_volumedatacomposite_getmaterialmappingcount(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_volumedatacomposite_getmaterialmapping(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, Lib3MF_uint32 nIndex, Lib3MF_MaterialMapping * pTheMaterialMapping); + + +Lib3MFResult CCall_lib3mf_volumedatacomposite_addmaterialmapping(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, const sLib3MFTransform * pTransform, Lib3MF_MaterialMapping * pTheMaterialMapping); + + +Lib3MFResult CCall_lib3mf_volumedatacomposite_removematerialmapping(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataComposite pVolumeDataComposite, Lib3MF_uint32 nIndex); + + +Lib3MFResult CCall_lib3mf_volumedataproperty_getname(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataProperty pVolumeDataProperty, const Lib3MF_uint32 nPropertyNameBufferSize, Lib3MF_uint32* pPropertyNameNeededChars, char * pPropertyNameBuffer); + + +Lib3MFResult CCall_lib3mf_volumedataproperty_setisrequired(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataProperty pVolumeDataProperty, bool bIsRequired); + + +Lib3MFResult CCall_lib3mf_volumedataproperty_isrequired(Lib3MFHandle libraryHandle, Lib3MF_VolumeDataProperty pVolumeDataProperty, bool * pIsRequired); + + +Lib3MFResult CCall_lib3mf_volumedata_getcomposite(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_VolumeDataComposite * pTheCompositeData); + + +Lib3MFResult CCall_lib3mf_volumedata_createnewcomposite(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_VolumeDataComposite * pTheCompositeData); + + +Lib3MFResult CCall_lib3mf_volumedata_removecomposite(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData); + + +Lib3MFResult CCall_lib3mf_volumedata_getcolor(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_VolumeDataColor * pTheColorData); + + +Lib3MFResult CCall_lib3mf_volumedata_createnewcolor(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_Function pTheFunction, Lib3MF_VolumeDataColor * pTheColorData); + + +Lib3MFResult CCall_lib3mf_volumedata_removecolor(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData); + + +Lib3MFResult CCall_lib3mf_volumedata_getpropertycount(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_volumedata_getproperty(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_uint32 nIndex, Lib3MF_VolumeDataProperty * pTheVolumeDataProperty); + + +Lib3MFResult CCall_lib3mf_volumedata_addpropertyfromfunction(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, const char * pName, Lib3MF_Function pTheFunction, Lib3MF_VolumeDataProperty * pTheVolumeDataProperty); + + +Lib3MFResult CCall_lib3mf_volumedata_removeproperty(Lib3MFHandle libraryHandle, Lib3MF_VolumeData pVolumeData, Lib3MF_uint32 nIndex); + + +Lib3MFResult CCall_lib3mf_component_getobjectresource(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, Lib3MF_Object * pObjectResource); + + +Lib3MFResult CCall_lib3mf_component_getobjectresourceid(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, Lib3MF_uint32 * pUniqueResourceID); + + +Lib3MFResult CCall_lib3mf_component_getuuid(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, bool * pHasUUID, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer); + + +Lib3MFResult CCall_lib3mf_component_setuuid(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, const char * pUUID); + + +Lib3MFResult CCall_lib3mf_component_hastransform(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, bool * pHasTransform); + + +Lib3MFResult CCall_lib3mf_component_gettransform(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, sLib3MFTransform * pTransform); + + +Lib3MFResult CCall_lib3mf_component_settransform(Lib3MFHandle libraryHandle, Lib3MF_Component pComponent, const sLib3MFTransform * pTransform); + + +Lib3MFResult CCall_lib3mf_componentsobject_addcomponent(Lib3MFHandle libraryHandle, Lib3MF_ComponentsObject pComponentsObject, Lib3MF_Object pObjectResource, const sLib3MFTransform * pTransform, Lib3MF_Component * pComponentInstance); + + +Lib3MFResult CCall_lib3mf_componentsobject_getcomponent(Lib3MFHandle libraryHandle, Lib3MF_ComponentsObject pComponentsObject, Lib3MF_uint32 nIndex, Lib3MF_Component * pComponentInstance); + + +Lib3MFResult CCall_lib3mf_componentsobject_getcomponentcount(Lib3MFHandle libraryHandle, Lib3MF_ComponentsObject pComponentsObject, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_beamset_setname(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const char * pName); + + +Lib3MFResult CCall_lib3mf_beamset_getname(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const Lib3MF_uint32 nNameBufferSize, Lib3MF_uint32* pNameNeededChars, char * pNameBuffer); + + +Lib3MFResult CCall_lib3mf_beamset_setidentifier(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const char * pIdentifier); + + +Lib3MFResult CCall_lib3mf_beamset_getidentifier(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const Lib3MF_uint32 nIdentifierBufferSize, Lib3MF_uint32* pIdentifierNeededChars, char * pIdentifierBuffer); + + +Lib3MFResult CCall_lib3mf_beamset_getreferencecount(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_beamset_setreferences(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, Lib3MF_uint64 nReferencesBufferSize, const Lib3MF_uint32 * pReferencesBuffer); + + +Lib3MFResult CCall_lib3mf_beamset_getreferences(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const Lib3MF_uint64 nReferencesBufferSize, Lib3MF_uint64* pReferencesNeededCount, Lib3MF_uint32 * pReferencesBuffer); + + +Lib3MFResult CCall_lib3mf_beamset_getballreferencecount(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_beamset_setballreferences(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, Lib3MF_uint64 nBallReferencesBufferSize, const Lib3MF_uint32 * pBallReferencesBuffer); + + +Lib3MFResult CCall_lib3mf_beamset_getballreferences(Lib3MFHandle libraryHandle, Lib3MF_BeamSet pBeamSet, const Lib3MF_uint64 nBallReferencesBufferSize, Lib3MF_uint64* pBallReferencesNeededCount, Lib3MF_uint32 * pBallReferencesBuffer); + + +Lib3MFResult CCall_lib3mf_basematerialgroup_getcount(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_basematerialgroup_getallpropertyids(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer); + + +Lib3MFResult CCall_lib3mf_basematerialgroup_addmaterial(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, const char * pName, const sLib3MFColor * pDisplayColor, Lib3MF_uint32 * pPropertyID); + + +Lib3MFResult CCall_lib3mf_basematerialgroup_removematerial(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 nPropertyID); + + +Lib3MFResult CCall_lib3mf_basematerialgroup_getname(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 nPropertyID, const Lib3MF_uint32 nNameBufferSize, Lib3MF_uint32* pNameNeededChars, char * pNameBuffer); + + +Lib3MFResult CCall_lib3mf_basematerialgroup_setname(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 nPropertyID, const char * pName); + + +Lib3MFResult CCall_lib3mf_basematerialgroup_setdisplaycolor(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 nPropertyID, const sLib3MFColor * pTheColor); + + +Lib3MFResult CCall_lib3mf_basematerialgroup_getdisplaycolor(Lib3MFHandle libraryHandle, Lib3MF_BaseMaterialGroup pBaseMaterialGroup, Lib3MF_uint32 nPropertyID, sLib3MFColor * pTheColor); + + +Lib3MFResult CCall_lib3mf_colorgroup_getcount(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_colorgroup_getallpropertyids(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer); + + +Lib3MFResult CCall_lib3mf_colorgroup_addcolor(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, const sLib3MFColor * pTheColor, Lib3MF_uint32 * pPropertyID); + + +Lib3MFResult CCall_lib3mf_colorgroup_removecolor(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, Lib3MF_uint32 nPropertyID); + + +Lib3MFResult CCall_lib3mf_colorgroup_setcolor(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, Lib3MF_uint32 nPropertyID, const sLib3MFColor * pTheColor); + + +Lib3MFResult CCall_lib3mf_colorgroup_getcolor(Lib3MFHandle libraryHandle, Lib3MF_ColorGroup pColorGroup, Lib3MF_uint32 nPropertyID, sLib3MFColor * pTheColor); + + +Lib3MFResult CCall_lib3mf_texture2dgroup_getcount(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_texture2dgroup_getallpropertyids(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer); + + +Lib3MFResult CCall_lib3mf_texture2dgroup_addtex2coord(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, const sLib3MFTex2Coord * pUVCoordinate, Lib3MF_uint32 * pPropertyID); + + +Lib3MFResult CCall_lib3mf_texture2dgroup_gettex2coord(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, Lib3MF_uint32 nPropertyID, sLib3MFTex2Coord * pUVCoordinate); + + +Lib3MFResult CCall_lib3mf_texture2dgroup_removetex2coord(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, Lib3MF_uint32 nPropertyID); + + +Lib3MFResult CCall_lib3mf_texture2dgroup_gettexture2d(Lib3MFHandle libraryHandle, Lib3MF_Texture2DGroup pTexture2DGroup, Lib3MF_Texture2D * pTexture2DInstance); + + +Lib3MFResult CCall_lib3mf_compositematerials_getcount(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_compositematerials_getallpropertyids(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer); + + +Lib3MFResult CCall_lib3mf_compositematerials_getbasematerialgroup(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, Lib3MF_BaseMaterialGroup * pBaseMaterialGroupInstance); + + +Lib3MFResult CCall_lib3mf_compositematerials_addcomposite(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, Lib3MF_uint64 nCompositeBufferSize, const sLib3MFCompositeConstituent * pCompositeBuffer, Lib3MF_uint32 * pPropertyID); + + +Lib3MFResult CCall_lib3mf_compositematerials_removecomposite(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, Lib3MF_uint32 nPropertyID); + + +Lib3MFResult CCall_lib3mf_compositematerials_getcomposite(Lib3MFHandle libraryHandle, Lib3MF_CompositeMaterials pCompositeMaterials, Lib3MF_uint32 nPropertyID, const Lib3MF_uint64 nCompositeBufferSize, Lib3MF_uint64* pCompositeNeededCount, sLib3MFCompositeConstituent * pCompositeBuffer); + + +Lib3MFResult CCall_lib3mf_multipropertygroup_getcount(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_multipropertygroup_getallpropertyids(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer); + + +Lib3MFResult CCall_lib3mf_multipropertygroup_addmultiproperty(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint64 nPropertyIDsBufferSize, const Lib3MF_uint32 * pPropertyIDsBuffer, Lib3MF_uint32 * pPropertyID); + + +Lib3MFResult CCall_lib3mf_multipropertygroup_setmultiproperty(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 nPropertyID, Lib3MF_uint64 nPropertyIDsBufferSize, const Lib3MF_uint32 * pPropertyIDsBuffer); + + +Lib3MFResult CCall_lib3mf_multipropertygroup_getmultiproperty(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 nPropertyID, const Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer); + + +Lib3MFResult CCall_lib3mf_multipropertygroup_removemultiproperty(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 nPropertyID); + + +Lib3MFResult CCall_lib3mf_multipropertygroup_getlayercount(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 * pCount); + + +Lib3MFResult CCall_lib3mf_multipropertygroup_addlayer(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, const sLib3MFMultiPropertyLayer * pTheLayer, Lib3MF_uint32 * pLayerIndex); + + +Lib3MFResult CCall_lib3mf_multipropertygroup_getlayer(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 nLayerIndex, sLib3MFMultiPropertyLayer * pTheLayer); + + +Lib3MFResult CCall_lib3mf_multipropertygroup_removelayer(Lib3MFHandle libraryHandle, Lib3MF_MultiPropertyGroup pMultiPropertyGroup, Lib3MF_uint32 nLayerIndex); + + +Lib3MFResult CCall_lib3mf_image3d_getname(Lib3MFHandle libraryHandle, Lib3MF_Image3D pImage3D, const Lib3MF_uint32 nNameBufferSize, Lib3MF_uint32* pNameNeededChars, char * pNameBuffer); + + +Lib3MFResult CCall_lib3mf_image3d_setname(Lib3MFHandle libraryHandle, Lib3MF_Image3D pImage3D, const char * pName); + + +Lib3MFResult CCall_lib3mf_image3d_isimagestack(Lib3MFHandle libraryHandle, Lib3MF_Image3D pImage3D, bool * pIsImageStack); + + +Lib3MFResult CCall_lib3mf_imagestack_getrowcount(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 * pRowCount); + + +Lib3MFResult CCall_lib3mf_imagestack_setrowcount(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nRowCount); + + +Lib3MFResult CCall_lib3mf_imagestack_getcolumncount(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 * pColumnCount); + + +Lib3MFResult CCall_lib3mf_imagestack_setcolumncount(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nColumnCount); + + +Lib3MFResult CCall_lib3mf_imagestack_getsheetcount(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 * pSheetCount); + + +Lib3MFResult CCall_lib3mf_imagestack_getsheet(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nIndex, Lib3MF_Attachment * pSheet); + + +Lib3MFResult CCall_lib3mf_imagestack_setsheet(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nIndex, Lib3MF_Attachment pSheet); + + +Lib3MFResult CCall_lib3mf_imagestack_createemptysheet(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nIndex, const char * pPath, Lib3MF_Attachment * pSheet); + + +Lib3MFResult CCall_lib3mf_imagestack_createsheetfrombuffer(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nIndex, const char * pPath, Lib3MF_uint64 nDataBufferSize, const Lib3MF_uint8 * pDataBuffer, Lib3MF_Attachment * pSheet); + + +Lib3MFResult CCall_lib3mf_imagestack_createsheetfromfile(Lib3MFHandle libraryHandle, Lib3MF_ImageStack pImageStack, Lib3MF_uint32 nIndex, const char * pPath, const char * pFileName, Lib3MF_Attachment * pSheet); + + +Lib3MFResult CCall_lib3mf_attachment_getpath(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const Lib3MF_uint32 nPathBufferSize, Lib3MF_uint32* pPathNeededChars, char * pPathBuffer); + + +Lib3MFResult CCall_lib3mf_attachment_setpath(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const char * pPath); + + +Lib3MFResult CCall_lib3mf_attachment_packagepart(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, Lib3MF_PackagePart * pPackagePart); + + +Lib3MFResult CCall_lib3mf_attachment_getrelationshiptype(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const Lib3MF_uint32 nPathBufferSize, Lib3MF_uint32* pPathNeededChars, char * pPathBuffer); + + +Lib3MFResult CCall_lib3mf_attachment_setrelationshiptype(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const char * pPath); + + +Lib3MFResult CCall_lib3mf_attachment_writetofile(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const char * pFileName); + + +Lib3MFResult CCall_lib3mf_attachment_readfromfile(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const char * pFileName); + + +Lib3MFResult CCall_lib3mf_attachment_readfromcallback(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, Lib3MFReadCallback pTheReadCallback, Lib3MF_uint64 nStreamSize, Lib3MFSeekCallback pTheSeekCallback, Lib3MF_pvoid pUserData); + + +Lib3MFResult CCall_lib3mf_attachment_getstreamsize(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, Lib3MF_uint64 * pStreamSize); + + +Lib3MFResult CCall_lib3mf_attachment_writetobuffer(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, const Lib3MF_uint64 nBufferBufferSize, Lib3MF_uint64* pBufferNeededCount, Lib3MF_uint8 * pBufferBuffer); + + +Lib3MFResult CCall_lib3mf_attachment_readfrombuffer(Lib3MFHandle libraryHandle, Lib3MF_Attachment pAttachment, Lib3MF_uint64 nBufferBufferSize, const Lib3MF_uint8 * pBufferBuffer); + + +Lib3MFResult CCall_lib3mf_texture2d_getattachment(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, Lib3MF_Attachment * pAttachment); + + +Lib3MFResult CCall_lib3mf_texture2d_setattachment(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, Lib3MF_Attachment pAttachment); + + +Lib3MFResult CCall_lib3mf_texture2d_getcontenttype(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureType * pContentType); + + +Lib3MFResult CCall_lib3mf_texture2d_setcontenttype(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureType eContentType); + + +Lib3MFResult CCall_lib3mf_texture2d_gettilestyleuv(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureTileStyle * pTileStyleU, eLib3MFTextureTileStyle * pTileStyleV); + + +Lib3MFResult CCall_lib3mf_texture2d_settilestyleuv(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureTileStyle eTileStyleU, eLib3MFTextureTileStyle eTileStyleV); + + +Lib3MFResult CCall_lib3mf_texture2d_getfilter(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureFilter * pFilter); + + +Lib3MFResult CCall_lib3mf_texture2d_setfilter(Lib3MFHandle libraryHandle, Lib3MF_Texture2D pTexture2D, eLib3MFTextureFilter eFilter); + + +Lib3MFResult CCall_lib3mf_implicitport_getidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const Lib3MF_uint32 nIdentifierBufferSize, Lib3MF_uint32* pIdentifierNeededChars, char * pIdentifierBuffer); + + +Lib3MFResult CCall_lib3mf_implicitport_setidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const char * pIdentifier); + + +Lib3MFResult CCall_lib3mf_implicitport_getdisplayname(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const Lib3MF_uint32 nDisplayNameBufferSize, Lib3MF_uint32* pDisplayNameNeededChars, char * pDisplayNameBuffer); + + +Lib3MFResult CCall_lib3mf_implicitport_setdisplayname(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const char * pDisplayName); + + +Lib3MFResult CCall_lib3mf_implicitport_settype(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, eLib3MFImplicitPortType eImplicitPortType); + + +Lib3MFResult CCall_lib3mf_implicitport_gettype(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, eLib3MFImplicitPortType * pImplicitPortType); + + +Lib3MFResult CCall_lib3mf_implicitport_getreference(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const Lib3MF_uint32 nReferenceBufferSize, Lib3MF_uint32* pReferenceNeededChars, char * pReferenceBuffer); + + +Lib3MFResult CCall_lib3mf_implicitport_setreference(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPort pImplicitPort, const char * pReference); + + +Lib3MFResult CCall_lib3mf_iterator_movenext(Lib3MFHandle libraryHandle, Lib3MF_Iterator pIterator, bool * pHasNext); + + +Lib3MFResult CCall_lib3mf_iterator_moveprevious(Lib3MFHandle libraryHandle, Lib3MF_Iterator pIterator, bool * pHasPrevious); + + +Lib3MFResult CCall_lib3mf_iterator_count(Lib3MFHandle libraryHandle, Lib3MF_Iterator pIterator, Lib3MF_uint64 * pCount); + + +Lib3MFResult CCall_lib3mf_implicitportiterator_getcurrent(Lib3MFHandle libraryHandle, Lib3MF_ImplicitPortIterator pImplicitPortIterator, Lib3MF_ImplicitPort * pPort); + + +Lib3MFResult CCall_lib3mf_implicitnode_getidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const Lib3MF_uint32 nIdentifierBufferSize, Lib3MF_uint32* pIdentifierNeededChars, char * pIdentifierBuffer); + + +Lib3MFResult CCall_lib3mf_implicitnode_setidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pIdentifier); + + +Lib3MFResult CCall_lib3mf_implicitnode_getdisplayname(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const Lib3MF_uint32 nDisplayNameBufferSize, Lib3MF_uint32* pDisplayNameNeededChars, char * pDisplayNameBuffer); + + +Lib3MFResult CCall_lib3mf_implicitnode_setdisplayname(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pDisplayName); + + +Lib3MFResult CCall_lib3mf_implicitnode_gettag(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const Lib3MF_uint32 nTagBufferSize, Lib3MF_uint32* pTagNeededChars, char * pTagBuffer); + + +Lib3MFResult CCall_lib3mf_implicitnode_settag(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pTag); + + +Lib3MFResult CCall_lib3mf_implicitnode_getnodetype(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, eLib3MFImplicitNodeType * pType); + + +Lib3MFResult CCall_lib3mf_implicitnode_addinput(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pIdentifier, const char * pDisplayName, Lib3MF_ImplicitPort * pPort); + + +Lib3MFResult CCall_lib3mf_implicitnode_getinputs(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, Lib3MF_ImplicitPortIterator * pIterator); + + +Lib3MFResult CCall_lib3mf_implicitnode_addoutput(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pIdentifier, const char * pDisplayName, Lib3MF_ImplicitPort * pPort); + + +Lib3MFResult CCall_lib3mf_implicitnode_getoutputs(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, Lib3MF_ImplicitPortIterator * pIterator); + + +Lib3MFResult CCall_lib3mf_implicitnode_findinput(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pIdentifier, Lib3MF_ImplicitPort * pInput); + + +Lib3MFResult CCall_lib3mf_implicitnode_findoutput(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, const char * pIdentifier, Lib3MF_ImplicitPort * pOutput); + + +Lib3MFResult CCall_lib3mf_implicitnode_aretypesvalid(Lib3MFHandle libraryHandle, Lib3MF_ImplicitNode pImplicitNode, bool * pValid); + + +Lib3MFResult CCall_lib3mf_oneinputnode_getinputa(Lib3MFHandle libraryHandle, Lib3MF_OneInputNode pOneInputNode, Lib3MF_ImplicitPort * pInput); + + +Lib3MFResult CCall_lib3mf_oneinputnode_getoutputresult(Lib3MFHandle libraryHandle, Lib3MF_OneInputNode pOneInputNode, Lib3MF_ImplicitPort * pResult); + + +Lib3MFResult CCall_lib3mf_resourceidnode_setresource(Lib3MFHandle libraryHandle, Lib3MF_ResourceIdNode pResourceIdNode, Lib3MF_Resource pResource); + + +Lib3MFResult CCall_lib3mf_resourceidnode_getresource(Lib3MFHandle libraryHandle, Lib3MF_ResourceIdNode pResourceIdNode, Lib3MF_Resource * pResource); + + +Lib3MFResult CCall_lib3mf_resourceidnode_getoutputvalue(Lib3MFHandle libraryHandle, Lib3MF_ResourceIdNode pResourceIdNode, Lib3MF_ImplicitPort * pValue); + + +Lib3MFResult CCall_lib3mf_twoinputnode_getinputb(Lib3MFHandle libraryHandle, Lib3MF_TwoInputNode pTwoInputNode, Lib3MF_ImplicitPort * pB); + + +Lib3MFResult CCall_lib3mf_selectnode_getinputb(Lib3MFHandle libraryHandle, Lib3MF_SelectNode pSelectNode, Lib3MF_ImplicitPort * pB); + + +Lib3MFResult CCall_lib3mf_selectnode_getinputc(Lib3MFHandle libraryHandle, Lib3MF_SelectNode pSelectNode, Lib3MF_ImplicitPort * pC); + + +Lib3MFResult CCall_lib3mf_selectnode_getinputd(Lib3MFHandle libraryHandle, Lib3MF_SelectNode pSelectNode, Lib3MF_ImplicitPort * pD); + + +Lib3MFResult CCall_lib3mf_clampnode_getinputmin(Lib3MFHandle libraryHandle, Lib3MF_ClampNode pClampNode, Lib3MF_ImplicitPort * pMin); + + +Lib3MFResult CCall_lib3mf_clampnode_getinputmax(Lib3MFHandle libraryHandle, Lib3MF_ClampNode pClampNode, Lib3MF_ImplicitPort * pMax); + + +Lib3MFResult CCall_lib3mf_composevectornode_getinputx(Lib3MFHandle libraryHandle, Lib3MF_ComposeVectorNode pComposeVectorNode, Lib3MF_ImplicitPort * pX); + + +Lib3MFResult CCall_lib3mf_composevectornode_getinputy(Lib3MFHandle libraryHandle, Lib3MF_ComposeVectorNode pComposeVectorNode, Lib3MF_ImplicitPort * pY); + + +Lib3MFResult CCall_lib3mf_composevectornode_getinputz(Lib3MFHandle libraryHandle, Lib3MF_ComposeVectorNode pComposeVectorNode, Lib3MF_ImplicitPort * pZ); + + +Lib3MFResult CCall_lib3mf_composevectornode_getoutputresult(Lib3MFHandle libraryHandle, Lib3MF_ComposeVectorNode pComposeVectorNode, Lib3MF_ImplicitPort * pResult); + + +Lib3MFResult CCall_lib3mf_decomposevectornode_getinputa(Lib3MFHandle libraryHandle, Lib3MF_DecomposeVectorNode pDecomposeVectorNode, Lib3MF_ImplicitPort * pA); + + +Lib3MFResult CCall_lib3mf_decomposevectornode_getoutputx(Lib3MFHandle libraryHandle, Lib3MF_DecomposeVectorNode pDecomposeVectorNode, Lib3MF_ImplicitPort * pX); + + +Lib3MFResult CCall_lib3mf_decomposevectornode_getoutputy(Lib3MFHandle libraryHandle, Lib3MF_DecomposeVectorNode pDecomposeVectorNode, Lib3MF_ImplicitPort * pY); + + +Lib3MFResult CCall_lib3mf_decomposevectornode_getoutputz(Lib3MFHandle libraryHandle, Lib3MF_DecomposeVectorNode pDecomposeVectorNode, Lib3MF_ImplicitPort * pZ); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm00(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM00); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm01(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM01); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm02(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM02); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm03(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM03); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm10(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM10); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm11(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM11); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm12(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM12); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm13(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM13); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm20(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM20); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm21(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM21); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm22(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM22); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm23(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM23); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm30(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM30); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm31(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM31); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm32(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM32); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getinputm33(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pM33); + + +Lib3MFResult CCall_lib3mf_composematrixnode_getoutputresult(Lib3MFHandle libraryHandle, Lib3MF_ComposeMatrixNode pComposeMatrixNode, Lib3MF_ImplicitPort * pResult); + + +Lib3MFResult CCall_lib3mf_matrixfromrowsnode_getinputa(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromRowsNode pMatrixFromRowsNode, Lib3MF_ImplicitPort * pRow0); + + +Lib3MFResult CCall_lib3mf_matrixfromrowsnode_getinputb(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromRowsNode pMatrixFromRowsNode, Lib3MF_ImplicitPort * pRow1); + + +Lib3MFResult CCall_lib3mf_matrixfromrowsnode_getinputc(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromRowsNode pMatrixFromRowsNode, Lib3MF_ImplicitPort * pRow2); + + +Lib3MFResult CCall_lib3mf_matrixfromrowsnode_getinputd(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromRowsNode pMatrixFromRowsNode, Lib3MF_ImplicitPort * pRow3); + + +Lib3MFResult CCall_lib3mf_matrixfromrowsnode_getoutputresult(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromRowsNode pMatrixFromRowsNode, Lib3MF_ImplicitPort * pResult); + + +Lib3MFResult CCall_lib3mf_matrixfromcolumnsnode_getinputa(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromColumnsNode pMatrixFromColumnsNode, Lib3MF_ImplicitPort * pColumn0); + + +Lib3MFResult CCall_lib3mf_matrixfromcolumnsnode_getinputb(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromColumnsNode pMatrixFromColumnsNode, Lib3MF_ImplicitPort * pColumn1); + + +Lib3MFResult CCall_lib3mf_matrixfromcolumnsnode_getinputc(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromColumnsNode pMatrixFromColumnsNode, Lib3MF_ImplicitPort * pColumn2); + + +Lib3MFResult CCall_lib3mf_matrixfromcolumnsnode_getinputd(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromColumnsNode pMatrixFromColumnsNode, Lib3MF_ImplicitPort * pColumn3); + + +Lib3MFResult CCall_lib3mf_matrixfromcolumnsnode_getoutputresult(Lib3MFHandle libraryHandle, Lib3MF_MatrixFromColumnsNode pMatrixFromColumnsNode, Lib3MF_ImplicitPort * pResult); + + +Lib3MFResult CCall_lib3mf_constantnode_setconstant(Lib3MFHandle libraryHandle, Lib3MF_ConstantNode pConstantNode, Lib3MF_double dValue); + + +Lib3MFResult CCall_lib3mf_constantnode_getconstant(Lib3MFHandle libraryHandle, Lib3MF_ConstantNode pConstantNode, Lib3MF_double * pValue); + + +Lib3MFResult CCall_lib3mf_constantnode_getoutputvalue(Lib3MFHandle libraryHandle, Lib3MF_ConstantNode pConstantNode, Lib3MF_ImplicitPort * pValue); + + +Lib3MFResult CCall_lib3mf_constvecnode_setvector(Lib3MFHandle libraryHandle, Lib3MF_ConstVecNode pConstVecNode, const sLib3MFVector * pValue); + + +Lib3MFResult CCall_lib3mf_constvecnode_getvector(Lib3MFHandle libraryHandle, Lib3MF_ConstVecNode pConstVecNode, sLib3MFVector * pValue); + + +Lib3MFResult CCall_lib3mf_constvecnode_getoutputvector(Lib3MFHandle libraryHandle, Lib3MF_ConstVecNode pConstVecNode, Lib3MF_ImplicitPort * pVector); + + +Lib3MFResult CCall_lib3mf_constmatnode_setmatrix(Lib3MFHandle libraryHandle, Lib3MF_ConstMatNode pConstMatNode, const sLib3MFMatrix4x4 * pValue); + + +Lib3MFResult CCall_lib3mf_constmatnode_getmatrix(Lib3MFHandle libraryHandle, Lib3MF_ConstMatNode pConstMatNode, sLib3MFMatrix4x4 * pValue); + + +Lib3MFResult CCall_lib3mf_constmatnode_getoutputmatrix(Lib3MFHandle libraryHandle, Lib3MF_ConstMatNode pConstMatNode, Lib3MF_ImplicitPort * pMatrix); + + +Lib3MFResult CCall_lib3mf_meshnode_getinputmesh(Lib3MFHandle libraryHandle, Lib3MF_MeshNode pMeshNode, Lib3MF_ImplicitPort * pMesh); + + +Lib3MFResult CCall_lib3mf_meshnode_getinputpos(Lib3MFHandle libraryHandle, Lib3MF_MeshNode pMeshNode, Lib3MF_ImplicitPort * pPos); + + +Lib3MFResult CCall_lib3mf_meshnode_getoutputdistance(Lib3MFHandle libraryHandle, Lib3MF_MeshNode pMeshNode, Lib3MF_ImplicitPort * pDistance); + + +Lib3MFResult CCall_lib3mf_unsignedmeshnode_getinputmesh(Lib3MFHandle libraryHandle, Lib3MF_UnsignedMeshNode pUnsignedMeshNode, Lib3MF_ImplicitPort * pMesh); + + +Lib3MFResult CCall_lib3mf_unsignedmeshnode_getinputpos(Lib3MFHandle libraryHandle, Lib3MF_UnsignedMeshNode pUnsignedMeshNode, Lib3MF_ImplicitPort * pPos); + + +Lib3MFResult CCall_lib3mf_unsignedmeshnode_getoutputdistance(Lib3MFHandle libraryHandle, Lib3MF_UnsignedMeshNode pUnsignedMeshNode, Lib3MF_ImplicitPort * pDistance); + + +Lib3MFResult CCall_lib3mf_functioncallnode_getinputfunctionid(Lib3MFHandle libraryHandle, Lib3MF_FunctionCallNode pFunctionCallNode, Lib3MF_ImplicitPort * pFunction); + + +Lib3MFResult CCall_lib3mf_nodeiterator_getcurrent(Lib3MFHandle libraryHandle, Lib3MF_NodeIterator pNodeIterator, Lib3MF_ImplicitNode * pNode); + + +Lib3MFResult CCall_lib3mf_function_getdisplayname(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const Lib3MF_uint32 nDisplayNameBufferSize, Lib3MF_uint32* pDisplayNameNeededChars, char * pDisplayNameBuffer); + + +Lib3MFResult CCall_lib3mf_function_setdisplayname(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const char * pDisplayName); + + +Lib3MFResult CCall_lib3mf_function_addinput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const char * pIdentifier, const char * pDisplayName, eLib3MFImplicitPortType eType, Lib3MF_ImplicitPort * pPort); + + +Lib3MFResult CCall_lib3mf_function_getinputs(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, Lib3MF_ImplicitPortIterator * pIterator); + + +Lib3MFResult CCall_lib3mf_function_removeinput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, Lib3MF_ImplicitPort pInput); + + +Lib3MFResult CCall_lib3mf_function_addoutput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const char * pIdentifier, const char * pDisplayName, eLib3MFImplicitPortType eType, Lib3MF_ImplicitPort * pPort); + + +Lib3MFResult CCall_lib3mf_function_getoutputs(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, Lib3MF_ImplicitPortIterator * pIterator); + + +Lib3MFResult CCall_lib3mf_function_removeoutput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, Lib3MF_ImplicitPort pOutput); + + +Lib3MFResult CCall_lib3mf_function_findinput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const char * pIdentifier, Lib3MF_ImplicitPort * pInput); + + +Lib3MFResult CCall_lib3mf_function_findoutput(Lib3MFHandle libraryHandle, Lib3MF_Function pFunction, const char * pIdentifier, Lib3MF_ImplicitPort * pOutput); + + +Lib3MFResult CCall_lib3mf_implicitfunction_getidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const Lib3MF_uint32 nIdentifierBufferSize, Lib3MF_uint32* pIdentifierNeededChars, char * pIdentifierBuffer); + + +Lib3MFResult CCall_lib3mf_implicitfunction_setidentifier(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, eLib3MFImplicitNodeType eNodeType, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ImplicitNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addsinnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SinNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addcosnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_CosNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addtannode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_TanNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addarcsinnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ArcSinNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addarccosnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ArcCosNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addarctan2node(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ArcTan2Node * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addsinhnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SinhNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addcoshnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_CoshNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addtanhnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_TanhNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addroundnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_RoundNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addceilnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_CeilNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addfloornode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_FloorNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addsignnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SignNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addfractnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_FractNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addabsnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_AbsNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addexpnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ExpNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addlognode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_LogNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addlog2node(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_Log2Node * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addlog10node(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_Log10Node * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addlengthnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_LengthNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addtransposenode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_TransposeNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addinversenode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_InverseNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addsqrtnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SqrtNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addresourceidnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ResourceIdNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addadditionnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_AdditionNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addsubtractionnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SubtractionNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addmultiplicationnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_MultiplicationNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_adddivisionnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_DivisionNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_adddotnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_DotNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addcrossnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_CrossNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addmatvecmultiplicationnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_MatVecMultiplicationNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addminnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_MinNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addmaxnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_MaxNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addfmodnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_FmodNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addpownode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_PowNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addselectnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_SelectNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addclampnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, eLib3MFImplicitNodeConfiguration eConfiguration, const char * pDisplayName, const char * pTag, Lib3MF_ClampNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addcomposevectornode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ComposeVectorNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addvectorfromscalarnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_VectorFromScalarNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_adddecomposevectornode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_DecomposeVectorNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addcomposematrixnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ComposeMatrixNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addmatrixfromrowsnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_MatrixFromRowsNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addmatrixfromcolumnsnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_MatrixFromColumnsNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addconstantnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ConstantNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addconstvecnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ConstVecNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addconstmatnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_ConstMatNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addmeshnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_MeshNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addunsignedmeshnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_UnsignedMeshNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addfunctioncallnode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pIdentifier, const char * pDisplayName, const char * pTag, Lib3MF_FunctionCallNode * pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_getnodes(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, Lib3MF_NodeIterator * pIterator); + + +Lib3MFResult CCall_lib3mf_implicitfunction_removenode(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, Lib3MF_ImplicitNode pNode); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addlink(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, Lib3MF_ImplicitPort pSource, Lib3MF_ImplicitPort pTarget); + + +Lib3MFResult CCall_lib3mf_implicitfunction_addlinkbynames(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction, const char * pSource, const char * pTarget); + + +Lib3MFResult CCall_lib3mf_implicitfunction_clear(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction); + + +Lib3MFResult CCall_lib3mf_implicitfunction_sortnodestopologically(Lib3MFHandle libraryHandle, Lib3MF_ImplicitFunction pImplicitFunction); + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_getimage3d(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_Image3D * pImage3D); + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_setimage3d(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_Image3D pImage3D); + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_setfilter(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, eLib3MFTextureFilter eFilter); + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_getfilter(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, eLib3MFTextureFilter * pFilter); + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_settilestyles(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, eLib3MFTextureTileStyle eTileStyleU, eLib3MFTextureTileStyle eTileStyleV, eLib3MFTextureTileStyle eTileStyleW); + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_gettilestyles(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, eLib3MFTextureTileStyle * pTileStyleU, eLib3MFTextureTileStyle * pTileStyleV, eLib3MFTextureTileStyle * pTileStyleW); + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_getoffset(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_double * pOffset); + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_setoffset(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_double dOffset); + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_getscale(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_double * pScale); + + +Lib3MFResult CCall_lib3mf_functionfromimage3d_setscale(Lib3MFHandle libraryHandle, Lib3MF_FunctionFromImage3D pFunctionFromImage3D, Lib3MF_double dScale); + + +Lib3MFResult CCall_lib3mf_builditem_getobjectresource(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, Lib3MF_Object * pObjectResource); + + +Lib3MFResult CCall_lib3mf_builditem_getuuid(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, bool * pHasUUID, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer); + + +Lib3MFResult CCall_lib3mf_builditem_setuuid(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, const char * pUUID); + + +Lib3MFResult CCall_lib3mf_builditem_getobjectresourceid(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, Lib3MF_uint32 * pUniqueResourceID); + + +Lib3MFResult CCall_lib3mf_builditem_hasobjecttransform(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, bool * pHasTransform); + + +Lib3MFResult CCall_lib3mf_builditem_getobjecttransform(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, sLib3MFTransform * pTransform); + + +Lib3MFResult CCall_lib3mf_builditem_setobjecttransform(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, const sLib3MFTransform * pTransform); + + +Lib3MFResult CCall_lib3mf_builditem_getpartnumber(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, const Lib3MF_uint32 nPartNumberBufferSize, Lib3MF_uint32* pPartNumberNeededChars, char * pPartNumberBuffer); + + +Lib3MFResult CCall_lib3mf_builditem_setpartnumber(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, const char * pSetPartnumber); + + +Lib3MFResult CCall_lib3mf_builditem_getmetadatagroup(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, Lib3MF_MetaDataGroup * pMetaDataGroup); + + +Lib3MFResult CCall_lib3mf_builditem_getoutbox(Lib3MFHandle libraryHandle, Lib3MF_BuildItem pBuildItem, sLib3MFBox * pOutbox); + + +Lib3MFResult CCall_lib3mf_builditemiterator_movenext(Lib3MFHandle libraryHandle, Lib3MF_BuildItemIterator pBuildItemIterator, bool * pHasNext); + + +Lib3MFResult CCall_lib3mf_builditemiterator_moveprevious(Lib3MFHandle libraryHandle, Lib3MF_BuildItemIterator pBuildItemIterator, bool * pHasPrevious); + + +Lib3MFResult CCall_lib3mf_builditemiterator_getcurrent(Lib3MFHandle libraryHandle, Lib3MF_BuildItemIterator pBuildItemIterator, Lib3MF_BuildItem * pBuildItem); + + +Lib3MFResult CCall_lib3mf_builditemiterator_clone(Lib3MFHandle libraryHandle, Lib3MF_BuildItemIterator pBuildItemIterator, Lib3MF_BuildItemIterator * pOutBuildItemIterator); + + +Lib3MFResult CCall_lib3mf_builditemiterator_count(Lib3MFHandle libraryHandle, Lib3MF_BuildItemIterator pBuildItemIterator, Lib3MF_uint64 * pCount); + + +Lib3MFResult CCall_lib3mf_slice_setvertices(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 nVerticesBufferSize, const sLib3MFPosition2D * pVerticesBuffer); + + +Lib3MFResult CCall_lib3mf_slice_getvertices(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, const Lib3MF_uint64 nVerticesBufferSize, Lib3MF_uint64* pVerticesNeededCount, sLib3MFPosition2D * pVerticesBuffer); + + +Lib3MFResult CCall_lib3mf_slice_getvertexcount(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 * pCount); + + +Lib3MFResult CCall_lib3mf_slice_addpolygon(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 nIndicesBufferSize, const Lib3MF_uint32 * pIndicesBuffer, Lib3MF_uint64 * pIndex); + + +Lib3MFResult CCall_lib3mf_slice_getpolygoncount(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 * pCount); + + +Lib3MFResult CCall_lib3mf_slice_setpolygonindices(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 nIndex, Lib3MF_uint64 nIndicesBufferSize, const Lib3MF_uint32 * pIndicesBuffer); + + +Lib3MFResult CCall_lib3mf_slice_getpolygonindices(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 nIndex, const Lib3MF_uint64 nIndicesBufferSize, Lib3MF_uint64* pIndicesNeededCount, Lib3MF_uint32 * pIndicesBuffer); + + +Lib3MFResult CCall_lib3mf_slice_getpolygonindexcount(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_uint64 nIndex, Lib3MF_uint64 * pCount); + + +Lib3MFResult CCall_lib3mf_slice_getztop(Lib3MFHandle libraryHandle, Lib3MF_Slice pSlice, Lib3MF_double * pZTop); + + +Lib3MFResult CCall_lib3mf_slicestack_getbottomz(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_double * pZBottom); + + +Lib3MFResult CCall_lib3mf_slicestack_getslicecount(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_uint64 * pCount); + + +Lib3MFResult CCall_lib3mf_slicestack_getslice(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_uint64 nSliceIndex, Lib3MF_Slice * pTheSlice); + + +Lib3MFResult CCall_lib3mf_slicestack_addslice(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_double dZTop, Lib3MF_Slice * pTheSlice); + + +Lib3MFResult CCall_lib3mf_slicestack_getslicerefcount(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_uint64 * pCount); + + +Lib3MFResult CCall_lib3mf_slicestack_addslicestackreference(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_SliceStack pTheSliceStack); + + +Lib3MFResult CCall_lib3mf_slicestack_getslicestackreference(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, Lib3MF_uint64 nSliceRefIndex, Lib3MF_SliceStack * pTheSliceStack); + + +Lib3MFResult CCall_lib3mf_slicestack_collapseslicereferences(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack); + + +Lib3MFResult CCall_lib3mf_slicestack_setownpath(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, const char * pPath); + + +Lib3MFResult CCall_lib3mf_slicestack_getownpath(Lib3MFHandle libraryHandle, Lib3MF_SliceStack pSliceStack, const Lib3MF_uint32 nPathBufferSize, Lib3MF_uint32* pPathNeededChars, char * pPathBuffer); + + +Lib3MFResult CCall_lib3mf_consumer_getconsumerid(Lib3MFHandle libraryHandle, Lib3MF_Consumer pConsumer, const Lib3MF_uint32 nConsumerIDBufferSize, Lib3MF_uint32* pConsumerIDNeededChars, char * pConsumerIDBuffer); + + +Lib3MFResult CCall_lib3mf_consumer_getkeyid(Lib3MFHandle libraryHandle, Lib3MF_Consumer pConsumer, const Lib3MF_uint32 nKeyIDBufferSize, Lib3MF_uint32* pKeyIDNeededChars, char * pKeyIDBuffer); + + +Lib3MFResult CCall_lib3mf_consumer_getkeyvalue(Lib3MFHandle libraryHandle, Lib3MF_Consumer pConsumer, const Lib3MF_uint32 nKeyValueBufferSize, Lib3MF_uint32* pKeyValueNeededChars, char * pKeyValueBuffer); + + +Lib3MFResult CCall_lib3mf_accessright_getconsumer(Lib3MFHandle libraryHandle, Lib3MF_AccessRight pAccessRight, Lib3MF_Consumer * pConsumer); + + +Lib3MFResult CCall_lib3mf_accessright_getwrappingalgorithm(Lib3MFHandle libraryHandle, Lib3MF_AccessRight pAccessRight, eLib3MFWrappingAlgorithm * pAlgorithm); + + +Lib3MFResult CCall_lib3mf_accessright_getmgfalgorithm(Lib3MFHandle libraryHandle, Lib3MF_AccessRight pAccessRight, eLib3MFMgfAlgorithm * pAlgorithm); + + +Lib3MFResult CCall_lib3mf_accessright_getdigestmethod(Lib3MFHandle libraryHandle, Lib3MF_AccessRight pAccessRight, eLib3MFDigestMethod * pAlgorithm); + + +Lib3MFResult CCall_lib3mf_contentencryptionparams_getencryptionalgorithm(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, eLib3MFEncryptionAlgorithm * pAlgorithm); + + +Lib3MFResult CCall_lib3mf_contentencryptionparams_getkey(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, const Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer); + + +Lib3MFResult CCall_lib3mf_contentencryptionparams_getinitializationvector(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, const Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer); + + +Lib3MFResult CCall_lib3mf_contentencryptionparams_getauthenticationtag(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, const Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer); + + +Lib3MFResult CCall_lib3mf_contentencryptionparams_setauthenticationtag(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, Lib3MF_uint64 nByteDataBufferSize, const Lib3MF_uint8 * pByteDataBuffer); + + +Lib3MFResult CCall_lib3mf_contentencryptionparams_getadditionalauthenticationdata(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, const Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer); + + +Lib3MFResult CCall_lib3mf_contentencryptionparams_getdescriptor(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, Lib3MF_uint64 * pDescriptor); + + +Lib3MFResult CCall_lib3mf_contentencryptionparams_getkeyuuid(Lib3MFHandle libraryHandle, Lib3MF_ContentEncryptionParams pContentEncryptionParams, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer); + + +Lib3MFResult CCall_lib3mf_resourcedata_getpath(Lib3MFHandle libraryHandle, Lib3MF_ResourceData pResourceData, Lib3MF_PackagePart * pPath); + + +Lib3MFResult CCall_lib3mf_resourcedata_getencryptionalgorithm(Lib3MFHandle libraryHandle, Lib3MF_ResourceData pResourceData, eLib3MFEncryptionAlgorithm * pEncryptionAlgorithm); + + +Lib3MFResult CCall_lib3mf_resourcedata_getcompression(Lib3MFHandle libraryHandle, Lib3MF_ResourceData pResourceData, eLib3MFCompression * pCompression); + + +Lib3MFResult CCall_lib3mf_resourcedata_getadditionalauthenticationdata(Lib3MFHandle libraryHandle, Lib3MF_ResourceData pResourceData, const Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer); + + +Lib3MFResult CCall_lib3mf_resourcedatagroup_getkeyuuid(Lib3MFHandle libraryHandle, Lib3MF_ResourceDataGroup pResourceDataGroup, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer); + + +Lib3MFResult CCall_lib3mf_resourcedatagroup_addaccessright(Lib3MFHandle libraryHandle, Lib3MF_ResourceDataGroup pResourceDataGroup, Lib3MF_Consumer pConsumer, eLib3MFWrappingAlgorithm eWrappingAlgorithm, eLib3MFMgfAlgorithm eMgfAlgorithm, eLib3MFDigestMethod eDigestMethod, Lib3MF_AccessRight * pTheAccessRight); + + +Lib3MFResult CCall_lib3mf_resourcedatagroup_findaccessrightbyconsumer(Lib3MFHandle libraryHandle, Lib3MF_ResourceDataGroup pResourceDataGroup, Lib3MF_Consumer pConsumer, Lib3MF_AccessRight * pTheAccessRight); + + +Lib3MFResult CCall_lib3mf_resourcedatagroup_removeaccessright(Lib3MFHandle libraryHandle, Lib3MF_ResourceDataGroup pResourceDataGroup, Lib3MF_Consumer pConsumer); + + +Lib3MFResult CCall_lib3mf_keystore_addconsumer(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, const char * pConsumerID, const char * pKeyID, const char * pKeyValue, Lib3MF_Consumer * pConsumer); + + +Lib3MFResult CCall_lib3mf_keystore_getconsumercount(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 * pCount); + + +Lib3MFResult CCall_lib3mf_keystore_getconsumer(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 nConsumerIndex, Lib3MF_Consumer * pConsumer); + + +Lib3MFResult CCall_lib3mf_keystore_removeconsumer(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_Consumer pConsumer); + + +Lib3MFResult CCall_lib3mf_keystore_findconsumer(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, const char * pConsumerID, Lib3MF_Consumer * pConsumer); + + +Lib3MFResult CCall_lib3mf_keystore_getresourcedatagroupcount(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 * pCount); + + +Lib3MFResult CCall_lib3mf_keystore_addresourcedatagroup(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_ResourceDataGroup * pResourceDataGroup); + + +Lib3MFResult CCall_lib3mf_keystore_getresourcedatagroup(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 nResourceDataIndex, Lib3MF_ResourceDataGroup * pResourceDataGroup); + + +Lib3MFResult CCall_lib3mf_keystore_removeresourcedatagroup(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_ResourceDataGroup pResourceDataGroup); + + +Lib3MFResult CCall_lib3mf_keystore_findresourcedatagroup(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_PackagePart pPartPath, Lib3MF_ResourceDataGroup * pResourceDataGroup); + + +Lib3MFResult CCall_lib3mf_keystore_addresourcedata(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_ResourceDataGroup pResourceDataGroup, Lib3MF_PackagePart pPartPath, eLib3MFEncryptionAlgorithm eAlgorithm, eLib3MFCompression eCompression, Lib3MF_uint64 nAdditionalAuthenticationDataBufferSize, const Lib3MF_uint8 * pAdditionalAuthenticationDataBuffer, Lib3MF_ResourceData * pResourceData); + + +Lib3MFResult CCall_lib3mf_keystore_removeresourcedata(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_ResourceData pResourceData); + + +Lib3MFResult CCall_lib3mf_keystore_findresourcedata(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_PackagePart pResourcePath, Lib3MF_ResourceData * pResourceData); + + +Lib3MFResult CCall_lib3mf_keystore_getresourcedatacount(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 * pCount); + + +Lib3MFResult CCall_lib3mf_keystore_getresourcedata(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, Lib3MF_uint64 nResourceDataIndex, Lib3MF_ResourceData * pResourceData); + + +Lib3MFResult CCall_lib3mf_keystore_getuuid(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, bool * pHasUUID, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer); + + +Lib3MFResult CCall_lib3mf_keystore_setuuid(Lib3MFHandle libraryHandle, Lib3MF_KeyStore pKeyStore, const char * pUUID); + + +Lib3MFResult CCall_lib3mf_model_rootmodelpart(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_PackagePart * pRootModelPart); + + +Lib3MFResult CCall_lib3mf_model_findorcreatepackagepart(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pAbsolutePath, Lib3MF_PackagePart * pModelPart); + + +Lib3MFResult CCall_lib3mf_model_setunit(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, eLib3MFModelUnit eUnit); + + +Lib3MFResult CCall_lib3mf_model_getunit(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, eLib3MFModelUnit * pUnit); + + +Lib3MFResult CCall_lib3mf_model_getlanguage(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const Lib3MF_uint32 nLanguageBufferSize, Lib3MF_uint32* pLanguageNeededChars, char * pLanguageBuffer); + + +Lib3MFResult CCall_lib3mf_model_setlanguage(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pLanguage); + + +Lib3MFResult CCall_lib3mf_model_querywriter(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pWriterClass, Lib3MF_Writer * pWriterInstance); + + +Lib3MFResult CCall_lib3mf_model_queryreader(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pReaderClass, Lib3MF_Reader * pReaderInstance); + + +Lib3MFResult CCall_lib3mf_model_getresourcebyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_Resource * pResource); + + +Lib3MFResult CCall_lib3mf_model_gettexture2dbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_Texture2D * pTextureInstance); + + +Lib3MFResult CCall_lib3mf_model_getpropertytypebyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, eLib3MFPropertyType * pThePropertyType); + + +Lib3MFResult CCall_lib3mf_model_getbasematerialgroupbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_BaseMaterialGroup * pBaseMaterialGroupInstance); + + +Lib3MFResult CCall_lib3mf_model_gettexture2dgroupbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_Texture2DGroup * pTexture2DGroupInstance); + + +Lib3MFResult CCall_lib3mf_model_getcompositematerialsbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_CompositeMaterials * pCompositeMaterialsInstance); + + +Lib3MFResult CCall_lib3mf_model_getmultipropertygroupbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_MultiPropertyGroup * pMultiPropertyGroupInstance); + + +Lib3MFResult CCall_lib3mf_model_getmeshobjectbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_MeshObject * pMeshObjectInstance); + + +Lib3MFResult CCall_lib3mf_model_getcomponentsobjectbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_ComponentsObject * pComponentsObjectInstance); + + +Lib3MFResult CCall_lib3mf_model_getcolorgroupbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_ColorGroup * pColorGroupInstance); + + +Lib3MFResult CCall_lib3mf_model_getslicestackbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_SliceStack * pSliceStacInstance); + + +Lib3MFResult CCall_lib3mf_model_getlevelsetbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_LevelSet * pLevelSetObjectInstance); + + +Lib3MFResult CCall_lib3mf_model_getbuilduuid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, bool * pHasUUID, const Lib3MF_uint32 nUUIDBufferSize, Lib3MF_uint32* pUUIDNeededChars, char * pUUIDBuffer); + + +Lib3MFResult CCall_lib3mf_model_setbuilduuid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pUUID); + + +Lib3MFResult CCall_lib3mf_model_getbuilditems(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BuildItemIterator * pBuildItemIterator); + + +Lib3MFResult CCall_lib3mf_model_getoutbox(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, sLib3MFBox * pOutbox); + + +Lib3MFResult CCall_lib3mf_model_getresources(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ResourceIterator * pResourceIterator); + + +Lib3MFResult CCall_lib3mf_model_getobjects(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ObjectIterator * pResourceIterator); + + +Lib3MFResult CCall_lib3mf_model_getmeshobjects(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_MeshObjectIterator * pResourceIterator); + + +Lib3MFResult CCall_lib3mf_model_getcomponentsobjects(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ComponentsObjectIterator * pResourceIterator); + + +Lib3MFResult CCall_lib3mf_model_gettexture2ds(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Texture2DIterator * pResourceIterator); + + +Lib3MFResult CCall_lib3mf_model_getbasematerialgroups(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BaseMaterialGroupIterator * pResourceIterator); + + +Lib3MFResult CCall_lib3mf_model_getcolorgroups(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ColorGroupIterator * pResourceIterator); + + +Lib3MFResult CCall_lib3mf_model_gettexture2dgroups(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Texture2DGroupIterator * pResourceIterator); + + +Lib3MFResult CCall_lib3mf_model_getcompositematerials(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_CompositeMaterialsIterator * pResourceIterator); + + +Lib3MFResult CCall_lib3mf_model_getmultipropertygroups(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_MultiPropertyGroupIterator * pResourceIterator); + + +Lib3MFResult CCall_lib3mf_model_getslicestacks(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_SliceStackIterator * pResourceIterator); + + +Lib3MFResult CCall_lib3mf_model_getimage3ds(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Image3DIterator * pResourceIterator); + + +Lib3MFResult CCall_lib3mf_model_mergetomodel(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Model * pMergedModelInstance); + + +Lib3MFResult CCall_lib3mf_model_mergefrommodel(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Model pModelInstance); + + +Lib3MFResult CCall_lib3mf_model_addmeshobject(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_MeshObject * pMeshObjectInstance); + + +Lib3MFResult CCall_lib3mf_model_addcomponentsobject(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ComponentsObject * pComponentsObjectInstance); + + +Lib3MFResult CCall_lib3mf_model_addslicestack(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_double dZBottom, Lib3MF_SliceStack * pSliceStackInstance); + + +Lib3MFResult CCall_lib3mf_model_addtexture2dfromattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Attachment pTextureAttachment, Lib3MF_Texture2D * pTexture2DInstance); + + +Lib3MFResult CCall_lib3mf_model_addbasematerialgroup(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BaseMaterialGroup * pBaseMaterialGroupInstance); + + +Lib3MFResult CCall_lib3mf_model_addcolorgroup(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ColorGroup * pColorGroupInstance); + + +Lib3MFResult CCall_lib3mf_model_addtexture2dgroup(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Texture2D pTexture2DInstance, Lib3MF_Texture2DGroup * pTexture2DGroupInstance); + + +Lib3MFResult CCall_lib3mf_model_addcompositematerials(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BaseMaterialGroup pBaseMaterialGroupInstance, Lib3MF_CompositeMaterials * pCompositeMaterialsInstance); + + +Lib3MFResult CCall_lib3mf_model_addmultipropertygroup(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_MultiPropertyGroup * pMultiPropertyGroupInstance); + + +Lib3MFResult CCall_lib3mf_model_addimagestack(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nColumnCount, Lib3MF_uint32 nRowCount, Lib3MF_uint32 nSheetCount, Lib3MF_ImageStack * pInstance); + + +Lib3MFResult CCall_lib3mf_model_getimagestackbyid(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nUniqueResourceID, Lib3MF_ImageStack * pImageStackInstance); + + +Lib3MFResult CCall_lib3mf_model_addbuilditem(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Object pObject, const sLib3MFTransform * pTransform, Lib3MF_BuildItem * pBuildItemInstance); + + +Lib3MFResult CCall_lib3mf_model_removebuilditem(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BuildItem pBuildItemInstance); + + +Lib3MFResult CCall_lib3mf_model_getmetadatagroup(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_MetaDataGroup * pTheMetaDataGroup); + + +Lib3MFResult CCall_lib3mf_model_addattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pURI, const char * pRelationShipType, Lib3MF_Attachment * pAttachmentInstance); + + +Lib3MFResult CCall_lib3mf_model_removeattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Attachment pAttachmentInstance); + + +Lib3MFResult CCall_lib3mf_model_getattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 nIndex, Lib3MF_Attachment * pAttachmentInstance); + + +Lib3MFResult CCall_lib3mf_model_findattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pURI, Lib3MF_Attachment * pAttachmentInstance); + + +Lib3MFResult CCall_lib3mf_model_getattachmentcount(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_uint32 * pAttachmentCount); + + +Lib3MFResult CCall_lib3mf_model_haspackagethumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, bool * pHasThumbnail); + + +Lib3MFResult CCall_lib3mf_model_createpackagethumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Attachment * pAttachment); + + +Lib3MFResult CCall_lib3mf_model_getpackagethumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Attachment * pAttachment); + + +Lib3MFResult CCall_lib3mf_model_removepackagethumbnailattachment(Lib3MFHandle libraryHandle, Lib3MF_Model pModel); + + +Lib3MFResult CCall_lib3mf_model_addcustomcontenttype(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pExtension, const char * pContentType); + + +Lib3MFResult CCall_lib3mf_model_removecustomcontenttype(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, const char * pExtension); + + +Lib3MFResult CCall_lib3mf_model_setrandomnumbercallback(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MFRandomNumberCallback pTheCallback, Lib3MF_pvoid pUserData); + + +Lib3MFResult CCall_lib3mf_model_getkeystore(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_KeyStore * pKeyStore); + + +Lib3MFResult CCall_lib3mf_model_getfunctions(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_FunctionIterator * pTheResourceIterator); + + +Lib3MFResult CCall_lib3mf_model_addimplicitfunction(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_ImplicitFunction * pFunctionInstance); + + +Lib3MFResult CCall_lib3mf_model_addfunctionfromimage3d(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Image3D pImage3DInstance, Lib3MF_FunctionFromImage3D * pFunctionInstance); + + +Lib3MFResult CCall_lib3mf_model_addvolumedata(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_VolumeData * pVolumeDataInstance); + + +Lib3MFResult CCall_lib3mf_model_addlevelset(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_LevelSet * pLevelSetInstance); + + +Lib3MFResult CCall_lib3mf_model_getlevelsets(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_LevelSetIterator * pResourceIterator); + + +Lib3MFResult CCall_lib3mf_model_removeresource(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_Resource pResource); + + +Lib3MFResult CCall_lib3mf_getlibraryversion(Lib3MFHandle libraryHandle, Lib3MF_uint32 * pMajor, Lib3MF_uint32 * pMinor, Lib3MF_uint32 * pMicro); + + +Lib3MFResult CCall_lib3mf_getprereleaseinformation(Lib3MFHandle libraryHandle, bool * pHasPrereleaseInfo, const Lib3MF_uint32 nPrereleaseInfoBufferSize, Lib3MF_uint32* pPrereleaseInfoNeededChars, char * pPrereleaseInfoBuffer); + + +Lib3MFResult CCall_lib3mf_getbuildinformation(Lib3MFHandle libraryHandle, bool * pHasBuildInfo, const Lib3MF_uint32 nBuildInformationBufferSize, Lib3MF_uint32* pBuildInformationNeededChars, char * pBuildInformationBuffer); + + +Lib3MFResult CCall_lib3mf_getspecificationversion(Lib3MFHandle libraryHandle, const char * pSpecificationURL, bool * pIsSupported, Lib3MF_uint32 * pMajor, Lib3MF_uint32 * pMinor, Lib3MF_uint32 * pMicro); + + +Lib3MFResult CCall_lib3mf_createmodel(Lib3MFHandle libraryHandle, Lib3MF_Model * pModel); + + +Lib3MFResult CCall_lib3mf_release(Lib3MFHandle libraryHandle, Lib3MF_Base pInstance); + + +Lib3MFResult CCall_lib3mf_acquire(Lib3MFHandle libraryHandle, Lib3MF_Base pInstance); + + +Lib3MFResult CCall_lib3mf_setjournal(Lib3MFHandle libraryHandle, const char * pJournalPath); + + +Lib3MFResult CCall_lib3mf_getlasterror(Lib3MFHandle libraryHandle, Lib3MF_Base pInstance, const Lib3MF_uint32 nLastErrorStringBufferSize, Lib3MF_uint32* pLastErrorStringNeededChars, char * pLastErrorStringBuffer, bool * pHasLastError); + + +Lib3MFResult CCall_lib3mf_getsymbollookupmethod(Lib3MFHandle libraryHandle, Lib3MF_pvoid * pSymbolLookupMethod); + + +Lib3MFResult CCall_lib3mf_retrieveprogressmessage(Lib3MFHandle libraryHandle, eLib3MFProgressIdentifier eTheProgressIdentifier, const Lib3MF_uint32 nProgressMessageBufferSize, Lib3MF_uint32* pProgressMessageNeededChars, char * pProgressMessageBuffer); + + +Lib3MFResult CCall_lib3mf_rgbatocolor(Lib3MFHandle libraryHandle, Lib3MF_uint8 nRed, Lib3MF_uint8 nGreen, Lib3MF_uint8 nBlue, Lib3MF_uint8 nAlpha, sLib3MFColor * pTheColor); + + +Lib3MFResult CCall_lib3mf_floatrgbatocolor(Lib3MFHandle libraryHandle, Lib3MF_single fRed, Lib3MF_single fGreen, Lib3MF_single fBlue, Lib3MF_single fAlpha, sLib3MFColor * pTheColor); + + +Lib3MFResult CCall_lib3mf_colortorgba(Lib3MFHandle libraryHandle, const sLib3MFColor * pTheColor, Lib3MF_uint8 * pRed, Lib3MF_uint8 * pGreen, Lib3MF_uint8 * pBlue, Lib3MF_uint8 * pAlpha); + + +Lib3MFResult CCall_lib3mf_colortofloatrgba(Lib3MFHandle libraryHandle, const sLib3MFColor * pTheColor, Lib3MF_single * pRed, Lib3MF_single * pGreen, Lib3MF_single * pBlue, Lib3MF_single * pAlpha); + + +Lib3MFResult CCall_lib3mf_getidentitytransform(Lib3MFHandle libraryHandle, sLib3MFTransform * pTransform); + + +Lib3MFResult CCall_lib3mf_getuniformscaletransform(Lib3MFHandle libraryHandle, Lib3MF_single fFactor, sLib3MFTransform * pTransform); + + +Lib3MFResult CCall_lib3mf_getscaletransform(Lib3MFHandle libraryHandle, Lib3MF_single fFactorX, Lib3MF_single fFactorY, Lib3MF_single fFactorZ, sLib3MFTransform * pTransform); + + +Lib3MFResult CCall_lib3mf_gettranslationtransform(Lib3MFHandle libraryHandle, Lib3MF_single fVectorX, Lib3MF_single fVectorY, Lib3MF_single fVectorZ, sLib3MFTransform * pTransform); + +#endif // __LIB3MF_DYNAMICHEADER diff --git a/Include/API/lib3mf_absnode.hpp b/Include/API/lib3mf_absnode.hpp index e2fddf14..e5813e53 100644 --- a/Include/API/lib3mf_absnode.hpp +++ b/Include/API/lib3mf_absnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CAbsNode : public virtual IAbsNode, public virtual COneInputNode { */ public: - CAbsNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_accessright.hpp b/Include/API/lib3mf_accessright.hpp index 1c655eec..dfa489b7 100644 --- a/Include/API/lib3mf_accessright.hpp +++ b/Include/API/lib3mf_accessright.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,10 +29,12 @@ Abstract: This is the class declaration of CAccessRight */ -#ifndef __LIB3MF_DECRYPTRIGHT -#define __LIB3MF_DECRYPTRIGHT +#ifndef __LIB3MF_ACCESSRIGHT +#define __LIB3MF_ACCESSRIGHT #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) @@ -40,35 +42,54 @@ Abstract: This is the class declaration of CAccessRight #endif // Include custom headers here. -#include "Model/Classes/NMR_KeyStoreAccessRight.h" + + namespace Lib3MF { - namespace Impl { +namespace Impl { + + +/************************************************************************************************************************* + Class declaration of CAccessRight +**************************************************************************************************************************/ + +class CAccessRight : public virtual IAccessRight, public virtual CBase { +private: + /** + * Put private members here. + */ - /************************************************************************************************************************* - Class declaration of CAccessRight - **************************************************************************************************************************/ +protected: - class CAccessRight : public virtual IAccessRight, public virtual CBase { - private: - NMR::PKeyStoreAccessRight m_pAccessRight; - public: - CAccessRight(NMR::PKeyStoreAccessRight ar); + /** + * Put protected members here. + */ - // Inherited via IAccessRight - IConsumer * GetConsumer() override; +public: - Lib3MF::eWrappingAlgorithm GetWrappingAlgorithm() override; + /** + * Put additional public members here. They will not be visible in the external API. + */ - Lib3MF::eMgfAlgorithm GetMgfAlgorithm() override; - Lib3MF::eDigestMethod GetDigestMethod() override; + /** + * Public member functions to implement. + */ - // Other access methods - NMR::PKeyStoreAccessRight accessRight() const; + IConsumer * GetConsumer() override; + Lib3MF::eWrappingAlgorithm GetWrappingAlgorithm() override; - }; - } -} + Lib3MF::eMgfAlgorithm GetMgfAlgorithm() override; + + Lib3MF::eDigestMethod GetDigestMethod() override; + +}; + +} // namespace Impl +} // namespace Lib3MF + +#ifdef _MSC_VER +#pragma warning(pop) #endif +#endif // __LIB3MF_ACCESSRIGHT diff --git a/Include/API/lib3mf_additionnode.hpp b/Include/API/lib3mf_additionnode.hpp index e1f1038f..c68a85f7 100644 --- a/Include/API/lib3mf_additionnode.hpp +++ b/Include/API/lib3mf_additionnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CAdditionNode : public virtual IAdditionNode, public virtual CTwoInputNode */ public: - CAdditionNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_arccosnode.hpp b/Include/API/lib3mf_arccosnode.hpp index 2619ddf7..6841014b 100644 --- a/Include/API/lib3mf_arccosnode.hpp +++ b/Include/API/lib3mf_arccosnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -60,12 +60,12 @@ class CArcCosNode : public virtual IArcCosNode, public virtual COneInputNode { */ protected: + /** * Put protected members here. */ public: - CArcCosNode(NMR::PModelImplicitNode pImplicitNode); /** * Put additional public members here. They will not be visible in the external API. diff --git a/Include/API/lib3mf_arcsinnode.hpp b/Include/API/lib3mf_arcsinnode.hpp index b80b7f85..ca4e593e 100644 --- a/Include/API/lib3mf_arcsinnode.hpp +++ b/Include/API/lib3mf_arcsinnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -60,12 +60,12 @@ class CArcSinNode : public virtual IArcSinNode, public virtual COneInputNode { */ protected: + /** * Put protected members here. */ public: - CArcSinNode(NMR::PModelImplicitNode pImplicitNode); /** * Put additional public members here. They will not be visible in the external API. diff --git a/Include/API/lib3mf_arctan2node.hpp b/Include/API/lib3mf_arctan2node.hpp index a808736f..eb37b9f3 100644 --- a/Include/API/lib3mf_arctan2node.hpp +++ b/Include/API/lib3mf_arctan2node.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CArcTan2Node : public virtual IArcTan2Node, public virtual CTwoInputNode { */ public: - CArcTan2Node(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_arctannode.hpp b/Include/API/lib3mf_arctannode.hpp index 469f660a..c5619a3a 100644 --- a/Include/API/lib3mf_arctannode.hpp +++ b/Include/API/lib3mf_arctannode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CArcTanNode : public virtual IArcTanNode, public virtual COneInputNode { */ public: - CArcTanNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_attachment.hpp b/Include/API/lib3mf_attachment.hpp index b2f69a3c..666027c3 100644 --- a/Include/API/lib3mf_attachment.hpp +++ b/Include/API/lib3mf_attachment.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,6 +33,8 @@ Abstract: This is the class declaration of CAttachment #define __LIB3MF_ATTACHMENT #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) @@ -40,7 +42,7 @@ Abstract: This is the class declaration of CAttachment #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelAttachment.h" + namespace Lib3MF { namespace Impl { @@ -56,7 +58,6 @@ class CAttachment : public virtual IAttachment, public virtual CBase { /** * Put private members here. */ - NMR::PModelAttachment m_pModelAttachment; protected: @@ -69,43 +70,40 @@ class CAttachment : public virtual IAttachment, public virtual CBase { /** * Put additional public members here. They will not be visible in the external API. */ - CAttachment(NMR::PModelAttachment pModelAttachment); + /** * Public member functions to implement. */ - std::string GetPath (); + std::string GetPath() override; - void SetPath (const std::string & sPath); + void SetPath(const std::string & sPath) override; - IPackagePart * PackagePart(); + IPackagePart * PackagePart() override; - std::string GetRelationShipType (); + std::string GetRelationShipType() override; - void SetRelationShipType (const std::string & sPath); + void SetRelationShipType(const std::string & sPath) override; - void WriteToFile (const std::string & sFileName); + void WriteToFile(const std::string & sFileName) override; - void ReadFromFile (const std::string & sFileName); - - void ReadFromCallback(const Lib3MF::ReadCallback pTheReadCallback, const Lib3MF_uint64 nStreamSize, const Lib3MF::SeekCallback pTheSeekCallback, const Lib3MF_pvoid pUserData); + void ReadFromFile(const std::string & sFileName) override; - Lib3MF_uint64 GetStreamSize (); + void ReadFromCallback(const Lib3MF::ReadCallback pTheReadCallback, const Lib3MF_uint64 nStreamSize, const Lib3MF::SeekCallback pTheSeekCallback, const Lib3MF_pvoid pUserData) override; - void WriteToBuffer (Lib3MF_uint64 nBufferBufferSize, Lib3MF_uint64* pBufferNeededCount, Lib3MF_uint8 * pBufferBuffer); + Lib3MF_uint64 GetStreamSize() override; - void ReadFromBuffer(const Lib3MF_uint64 nBufferBufferSize, const Lib3MF_uint8 * pBufferBuffer); + void WriteToBuffer(Lib3MF_uint64 nBufferBufferSize, Lib3MF_uint64* pBufferNeededCount, Lib3MF_uint8 * pBufferBuffer) override; - NMR::PModelAttachment getModelAttachment (); + void ReadFromBuffer(const Lib3MF_uint64 nBufferBufferSize, const Lib3MF_uint8 * pBufferBuffer) override; }; -} -} +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) #endif - #endif // __LIB3MF_ATTACHMENT diff --git a/Include/API/lib3mf_base.hpp b/Include/API/lib3mf_base.hpp index 069e23a6..d89fafc1 100644 --- a/Include/API/lib3mf_base.hpp +++ b/Include/API/lib3mf_base.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -52,8 +52,8 @@ namespace Impl { class CBase : public virtual IBase { private: - std::unique_ptr> m_pErrors; - Lib3MF_uint32 m_nReferenceCount = 1; + std::unique_ptr m_pLastError; + uint32_t m_nReferenceCount = 1; /** * Put private members here. @@ -81,9 +81,13 @@ class CBase : public virtual IBase { bool DecRefCount() override; + /** * Public member functions to implement. */ + + Lib3MF_uint64 ClassTypeId() override; + }; } // namespace Impl diff --git a/Include/API/lib3mf_basematerialgroup.hpp b/Include/API/lib3mf_basematerialgroup.hpp index 21260b5c..321dbe3e 100644 --- a/Include/API/lib3mf_basematerialgroup.hpp +++ b/Include/API/lib3mf_basematerialgroup.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -24,7 +24,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Abstract: This is the class declaration of CBaseMaterial +Abstract: This is the class declaration of CBaseMaterialGroup */ @@ -42,8 +42,7 @@ Abstract: This is the class declaration of CBaseMaterial #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelBaseMaterial.h" -#include "Model/Classes/NMR_ModelBaseMaterials.h" + namespace Lib3MF { namespace Impl { @@ -59,43 +58,44 @@ class CBaseMaterialGroup : public virtual IBaseMaterialGroup, public virtual CRe /** * Put private members here. */ + protected: /** * Put protected members here. */ - NMR::CModelBaseMaterialResource& baseMaterialGroup(); public: /** * Put additional public members here. They will not be visible in the external API. */ - CBaseMaterialGroup(NMR::PModelBaseMaterialResource pResource); + /** * Public member functions to implement. */ - Lib3MF_uint32 GetCount (); + Lib3MF_uint32 GetCount() override; + + void GetAllPropertyIDs(Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) override; - Lib3MF_uint32 AddMaterial(const std::string & sName, const sLib3MFColor DisplayColor); + Lib3MF_uint32 AddMaterial(const std::string & sName, const Lib3MF::sColor DisplayColor) override; - void RemoveMaterial (const Lib3MF_uint32 nPropertyID); + void RemoveMaterial(const Lib3MF_uint32 nPropertyID) override; - std::string GetName (const Lib3MF_uint32 nPropertyID); + std::string GetName(const Lib3MF_uint32 nPropertyID) override; - void SetName (const Lib3MF_uint32 nPropertyID, const std::string & sName); + void SetName(const Lib3MF_uint32 nPropertyID, const std::string & sName) override; - void SetDisplayColor(const Lib3MF_uint32 nPropertyID, const sLib3MFColor TheColor); + void SetDisplayColor(const Lib3MF_uint32 nPropertyID, const Lib3MF::sColor TheColor) override; - sLib3MFColor GetDisplayColor(const Lib3MF_uint32 nPropertyID); + Lib3MF::sColor GetDisplayColor(const Lib3MF_uint32 nPropertyID) override; - void GetAllPropertyIDs(Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer); }; -} -} +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) diff --git a/Include/API/lib3mf_basematerialgroupiterator.hpp b/Include/API/lib3mf_basematerialgroupiterator.hpp index 30ecc428..ec5c35b2 100644 --- a/Include/API/lib3mf_basematerialgroupiterator.hpp +++ b/Include/API/lib3mf_basematerialgroupiterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -78,8 +78,6 @@ class CBaseMaterialGroupIterator : public virtual IBaseMaterialGroupIterator, pu IBaseMaterialGroup * GetCurrentBaseMaterialGroup() override; - IResource * GetCurrent() override; - }; } // namespace Impl diff --git a/Include/API/lib3mf_beamlattice.hpp b/Include/API/lib3mf_beamlattice.hpp index 3dd2742f..68ffed44 100644 --- a/Include/API/lib3mf_beamlattice.hpp +++ b/Include/API/lib3mf_beamlattice.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,15 +33,14 @@ Abstract: This is the class declaration of CBeamLattice #define __LIB3MF_BEAMLATTICE #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif -#include "Common/Mesh/NMR_Mesh.h" -#include "Model/Classes/NMR_ModelMeshBeamLatticeAttributes.h" -#include "Model/Classes/NMR_ModelMeshObject.h" // Include custom headers here. @@ -59,9 +58,6 @@ class CBeamLattice : public virtual IBeamLattice, public virtual CBase { /** * Put private members here. */ - NMR::CMesh& m_mesh; - NMR::PModelMeshBeamLatticeAttributes m_pAttributes; - NMR::PModelMeshObject m_pMeshObject; protected: @@ -74,57 +70,57 @@ class CBeamLattice : public virtual IBeamLattice, public virtual CBase { /** * Put additional public members here. They will not be visible in the external API. */ - CBeamLattice(NMR::PModelMeshObject pMeshObject, NMR::PModelMeshBeamLatticeAttributes pAttributes); + /** * Public member functions to implement. */ - Lib3MF_double GetMinLength (); + Lib3MF_double GetMinLength() override; - void SetMinLength (const Lib3MF_double dMinLength); + void SetMinLength(const Lib3MF_double dMinLength) override; - void GetClipping (eBeamLatticeClipMode & eClipMode, Lib3MF_uint32 & nUniqueResourceID); + void GetClipping(Lib3MF::eBeamLatticeClipMode & eClipMode, Lib3MF_uint32 & nUniqueResourceID) override; - void SetClipping (const eBeamLatticeClipMode eClipMode, const Lib3MF_uint32 nUniqueResourceID); + void SetClipping(const Lib3MF::eBeamLatticeClipMode eClipMode, const Lib3MF_uint32 nUniqueResourceID) override; - bool GetRepresentation(Lib3MF_uint32 & nUniqueResourceID); + bool GetRepresentation(Lib3MF_uint32 & nUniqueResourceID) override; - void SetRepresentation(const Lib3MF_uint32 nUniqueResourceID); + void SetRepresentation(const Lib3MF_uint32 nUniqueResourceID) override; - void GetBallOptions (eBeamLatticeBallMode & eBallMode, Lib3MF_double & dBallRadius); + void GetBallOptions(Lib3MF::eBeamLatticeBallMode & eBallMode, Lib3MF_double & dBallRadius) override; - void SetBallOptions (const eBeamLatticeBallMode eBallMode, const Lib3MF_double dBallRadius); + void SetBallOptions(const Lib3MF::eBeamLatticeBallMode eBallMode, const Lib3MF_double dBallRadius) override; - Lib3MF_uint32 GetBeamCount (); + Lib3MF_uint32 GetBeamCount() override; - sLib3MFBeam GetBeam (const Lib3MF_uint32 nIndex); + Lib3MF::sBeam GetBeam(const Lib3MF_uint32 nIndex) override; - Lib3MF_uint32 AddBeam (const sLib3MFBeam BeamInfo); + Lib3MF_uint32 AddBeam(const Lib3MF::sBeam BeamInfo) override; - void SetBeam (const Lib3MF_uint32 nIndex, const sLib3MFBeam BeamInfo); + void SetBeam(const Lib3MF_uint32 nIndex, const Lib3MF::sBeam BeamInfo) override; - void SetBeams (const Lib3MF_uint64 nBeamInfoBufferSize, const sLib3MFBeam * pBeamInfoBuffer); + void SetBeams(const Lib3MF_uint64 nBeamInfoBufferSize, const Lib3MF::sBeam * pBeamInfoBuffer) override; - void GetBeams (Lib3MF_uint64 nBeamInfoBufferSize, Lib3MF_uint64 * pBeamInfoNeededCount, sLib3MFBeam * pBeamInfoBuffer); + void GetBeams(Lib3MF_uint64 nBeamInfoBufferSize, Lib3MF_uint64* pBeamInfoNeededCount, Lib3MF::sBeam * pBeamInfoBuffer) override; - Lib3MF_uint32 GetBallCount (); + Lib3MF_uint32 GetBallCount() override; - sLib3MFBall GetBall (const Lib3MF_uint32 nIndex); + Lib3MF::sBall GetBall(const Lib3MF_uint32 nIndex) override; - Lib3MF_uint32 AddBall (const sLib3MFBall BallInfo); + Lib3MF_uint32 AddBall(const Lib3MF::sBall BallInfo) override; - void SetBall (const Lib3MF_uint32 nIndex, const sLib3MFBall BallInfo); + void SetBall(const Lib3MF_uint32 nIndex, const Lib3MF::sBall BallInfo) override; - void SetBalls (const Lib3MF_uint64 nBallInfoBufferSize, const sLib3MFBall * pBallInfoBuffer); + void SetBalls(const Lib3MF_uint64 nBallInfoBufferSize, const Lib3MF::sBall * pBallInfoBuffer) override; - void GetBalls (Lib3MF_uint64 nBeamInfoBufferSize, Lib3MF_uint64 * pBallInfoNeededCount, sLib3MFBall * pBallInfoBuffer); + void GetBalls(Lib3MF_uint64 nBallInfoBufferSize, Lib3MF_uint64* pBallInfoNeededCount, Lib3MF::sBall * pBallInfoBuffer) override; - Lib3MF_uint32 GetBeamSetCount (); + Lib3MF_uint32 GetBeamSetCount() override; - IBeamSet * AddBeamSet (); + IBeamSet * AddBeamSet() override; - IBeamSet * GetBeamSet (const Lib3MF_uint32 nIndex); + IBeamSet * GetBeamSet(const Lib3MF_uint32 nIndex) override; }; diff --git a/Include/API/lib3mf_beamset.hpp b/Include/API/lib3mf_beamset.hpp index 924c2258..944cae26 100644 --- a/Include/API/lib3mf_beamset.hpp +++ b/Include/API/lib3mf_beamset.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,22 +33,20 @@ Abstract: This is the class declaration of CBeamSet #define __LIB3MF_BEAMSET #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif -#include "Common/Mesh/NMR_MeshTypes.h" -#include "Common/Mesh/NMR_Mesh.h" -#include "Model/Classes/NMR_ModelMeshObject.h" // Include custom headers here. namespace Lib3MF { namespace Impl { -#define LIB3MF_MAXBEAMCOUNT (1UL << 31) /************************************************************************************************************************* Class declaration of CBeamSet @@ -60,8 +58,6 @@ class CBeamSet : public virtual IBeamSet, public virtual CBase { /** * Put private members here. */ - NMR::PBEAMSET m_pBeamSet; - NMR::CMesh& m_mesh; protected: @@ -74,36 +70,36 @@ class CBeamSet : public virtual IBeamSet, public virtual CBase { /** * Put additional public members here. They will not be visible in the external API. */ - CBeamSet(NMR::PBEAMSET pBeamSet, NMR::PModelMeshObject pMeshObject); + /** * Public member functions to implement. */ - virtual void SetName(const std::string & sName); + void SetName(const std::string & sName) override; - virtual std::string GetName(); + std::string GetName() override; - virtual void SetIdentifier(const std::string & sIdentifier); + void SetIdentifier(const std::string & sIdentifier) override; - virtual std::string GetIdentifier(); + std::string GetIdentifier() override; - virtual Lib3MF_uint32 GetReferenceCount(); + Lib3MF_uint32 GetReferenceCount() override; - virtual void SetReferences(const Lib3MF_uint64 nReferencesBufferSize, const Lib3MF_uint32 * pReferencesBuffer); + void SetReferences(const Lib3MF_uint64 nReferencesBufferSize, const Lib3MF_uint32 * pReferencesBuffer) override; - virtual void GetReferences(Lib3MF_uint64 nReferencesBufferSize, Lib3MF_uint64 * pReferencesNeededCount, Lib3MF_uint32 * pReferencesBuffer); + void GetReferences(Lib3MF_uint64 nReferencesBufferSize, Lib3MF_uint64* pReferencesNeededCount, Lib3MF_uint32 * pReferencesBuffer) override; - virtual Lib3MF_uint32 GetBallReferenceCount(); + Lib3MF_uint32 GetBallReferenceCount() override; - virtual void SetBallReferences(const Lib3MF_uint64 nBallReferencesBufferSize, const Lib3MF_uint32 * pBallReferencesBuffer); + void SetBallReferences(const Lib3MF_uint64 nBallReferencesBufferSize, const Lib3MF_uint32 * pBallReferencesBuffer) override; - virtual void GetBallReferences(Lib3MF_uint64 nBallReferencesBufferSize, Lib3MF_uint64 * pBallReferencesNeededCount, Lib3MF_uint32 * pBallReferencesBuffer); + void GetBallReferences(Lib3MF_uint64 nBallReferencesBufferSize, Lib3MF_uint64* pBallReferencesNeededCount, Lib3MF_uint32 * pBallReferencesBuffer) override; }; -} -} +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) diff --git a/Include/API/lib3mf_builditem.hpp b/Include/API/lib3mf_builditem.hpp index 5a693acf..8bd6a16e 100644 --- a/Include/API/lib3mf_builditem.hpp +++ b/Include/API/lib3mf_builditem.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,15 +33,16 @@ Abstract: This is the class declaration of CBuildItem #define __LIB3MF_BUILDITEM #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif - // Include custom headers here. -#include "Model/Classes/NMR_ModelBuildItem.h" + namespace Lib3MF { namespace Impl { @@ -57,53 +58,50 @@ class CBuildItem : public virtual IBuildItem, public virtual CBase { /** * Put private members here. */ - NMR::PModelBuildItem m_pBuildItem; protected: /** * Put protected members here. */ - NMR::CModelBuildItem& buildItem(); public: /** * Put additional public members here. They will not be visible in the external API. */ - CBuildItem(NMR::PModelBuildItem pBuildItem); - Lib3MF_uint32 GetHandle(); /** * Public member functions to implement. */ - IObject * GetObjectResource (); + IObject * GetObjectResource() override; + + std::string GetUUID(bool & bHasUUID) override; - std::string GetUUID (bool & bHasUUID); + void SetUUID(const std::string & sUUID) override; - void SetUUID (const std::string & sUUID); + Lib3MF_uint32 GetObjectResourceID() override; - Lib3MF_uint32 GetObjectResourceID (); + bool HasObjectTransform() override; - bool HasObjectTransform (); + Lib3MF::sTransform GetObjectTransform() override; - sLib3MFTransform GetObjectTransform (); + void SetObjectTransform(const Lib3MF::sTransform Transform) override; - void SetObjectTransform (const sLib3MFTransform Transform); + std::string GetPartNumber() override; - std::string GetPartNumber (); + void SetPartNumber(const std::string & sSetPartnumber) override; - void SetPartNumber (const std::string & sSetPartnumber); + IMetaDataGroup * GetMetaDataGroup() override; - IMetaDataGroup * GetMetaDataGroup (); + Lib3MF::sBox GetOutbox() override; - Lib3MF::sBox GetOutbox(); }; -} -} +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) diff --git a/Include/API/lib3mf_builditemiterator.hpp b/Include/API/lib3mf_builditemiterator.hpp index daffaabb..ab44fb3c 100644 --- a/Include/API/lib3mf_builditemiterator.hpp +++ b/Include/API/lib3mf_builditemiterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,15 +33,16 @@ Abstract: This is the class declaration of CBuildItemIterator #define __LIB3MF_BUILDITEMITERATOR #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif - // Include custom headers here. -#include "Model/Classes/NMR_ModelBuildItem.h" + namespace Lib3MF { namespace Impl { @@ -57,8 +58,6 @@ class CBuildItemIterator : public virtual IBuildItemIterator, public virtual CBa /** * Put private members here. */ - std::vector m_pBuildItems; - Lib3MF_int32 m_nCurrentIndex; protected: @@ -71,28 +70,26 @@ class CBuildItemIterator : public virtual IBuildItemIterator, public virtual CBa /** * Put additional public members here. They will not be visible in the external API. */ - CBuildItemIterator(); - void addBuildItem(NMR::PModelBuildItem pBuildItem); /** * Public member functions to implement. */ - bool MoveNext (); + bool MoveNext() override; - bool MovePrevious (); + bool MovePrevious() override; - IBuildItem * GetCurrent (); + IBuildItem * GetCurrent() override; - IBuildItemIterator * Clone (); + IBuildItemIterator * Clone() override; - Lib3MF_uint64 Count(); + Lib3MF_uint64 Count() override; }; -} -} +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) diff --git a/Include/API/lib3mf_ceilnode.hpp b/Include/API/lib3mf_ceilnode.hpp index 3cf09ae0..e972a257 100644 --- a/Include/API/lib3mf_ceilnode.hpp +++ b/Include/API/lib3mf_ceilnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CCeilNode : public virtual ICeilNode, public virtual COneInputNode { */ public: - CCeilNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_clampnode.hpp b/Include/API/lib3mf_clampnode.hpp index 23f2361e..77ec93d2 100644 --- a/Include/API/lib3mf_clampnode.hpp +++ b/Include/API/lib3mf_clampnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CClampNode : public virtual IClampNode, public virtual COneInputNode { */ public: - CClampNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ @@ -76,16 +76,8 @@ class CClampNode : public virtual IClampNode, public virtual COneInputNode { * Public member functions to implement. */ - /** - * IClampNode::GetInputMin - Retrieves the input for the lower limit - * @return the input for the lower limit - */ IImplicitPort * GetInputMin() override; - /** - * IClampNode::GetInputMax - Retrieves the input for the upper limit - * @return the input for the upper limit - */ IImplicitPort * GetInputMax() override; }; diff --git a/Include/API/lib3mf_colorgroup.hpp b/Include/API/lib3mf_colorgroup.hpp index 9f6d79b1..fc18026e 100644 --- a/Include/API/lib3mf_colorgroup.hpp +++ b/Include/API/lib3mf_colorgroup.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,7 +42,7 @@ Abstract: This is the class declaration of CColorGroup #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelColorGroup.h" + namespace Lib3MF { namespace Impl { @@ -64,31 +64,29 @@ class CColorGroup : public virtual IColorGroup, public virtual CResource { /** * Put protected members here. */ - NMR::CModelColorGroupResource& colorGroup(); public: /** * Put additional public members here. They will not be visible in the external API. */ - CColorGroup(NMR::PModelColorGroupResource pResource); /** * Public member functions to implement. */ - Lib3MF_uint32 GetCount (); + Lib3MF_uint32 GetCount() override; - void GetAllPropertyIDs (Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer); + void GetAllPropertyIDs(Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) override; - Lib3MF_uint32 AddColor (const sLib3MFColor TheColor); + Lib3MF_uint32 AddColor(const Lib3MF::sColor TheColor) override; - void SetColor (const Lib3MF_uint32 nPropertyID, const sLib3MFColor TheColor); + void RemoveColor(const Lib3MF_uint32 nPropertyID) override; - sLib3MFColor GetColor (const Lib3MF_uint32 nPropertyID); + void SetColor(const Lib3MF_uint32 nPropertyID, const Lib3MF::sColor TheColor) override; - void RemoveColor(const Lib3MF_uint32 nPropertyID); + Lib3MF::sColor GetColor(const Lib3MF_uint32 nPropertyID) override; }; diff --git a/Include/API/lib3mf_colorgroupiterator.hpp b/Include/API/lib3mf_colorgroupiterator.hpp index 223ff8f7..4a7108b3 100644 --- a/Include/API/lib3mf_colorgroupiterator.hpp +++ b/Include/API/lib3mf_colorgroupiterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -78,8 +78,6 @@ class CColorGroupIterator : public virtual IColorGroupIterator, public virtual C IColorGroup * GetCurrentColorGroup() override; - IResource * GetCurrent() override; - }; } // namespace Impl diff --git a/Include/API/lib3mf_component.hpp b/Include/API/lib3mf_component.hpp index 4bd53ca5..3e86230a 100644 --- a/Include/API/lib3mf_component.hpp +++ b/Include/API/lib3mf_component.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,15 +33,16 @@ Abstract: This is the class declaration of CComponent #define __LIB3MF_COMPONENT #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif - // Include custom headers here. -#include "Model/Classes/NMR_ModelComponent.h" + namespace Lib3MF { namespace Impl { @@ -57,7 +58,6 @@ class CComponent : public virtual IComponent, public virtual CBase { /** * Put private members here. */ - NMR::PModelComponent m_pComponent; protected: @@ -70,29 +70,30 @@ class CComponent : public virtual IComponent, public virtual CBase { /** * Put additional public members here. They will not be visible in the external API. */ - CComponent(NMR::PModelComponent pComponent); + /** * Public member functions to implement. */ - IObject * GetObjectResource (); + IObject * GetObjectResource() override; + + Lib3MF_uint32 GetObjectResourceID() override; - Lib3MF_uint32 GetObjectResourceID (); + std::string GetUUID(bool & bHasUUID) override; - std::string GetUUID (bool & bHasUUID); + void SetUUID(const std::string & sUUID) override; - void SetUUID (const std::string & sUUID); + bool HasTransform() override; - bool HasTransform (); + Lib3MF::sTransform GetTransform() override; - void SetTransform (const sLib3MFTransform Transform); + void SetTransform(const Lib3MF::sTransform Transform) override; - virtual sLib3MFTransform GetTransform(); }; -} -} +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) diff --git a/Include/API/lib3mf_componentsobject.hpp b/Include/API/lib3mf_componentsobject.hpp index 2206a254..63a40ba6 100644 --- a/Include/API/lib3mf_componentsobject.hpp +++ b/Include/API/lib3mf_componentsobject.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,7 +42,6 @@ Abstract: This is the class declaration of CComponentsObject #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelComponentsObject.h" namespace Lib3MF { @@ -62,34 +61,33 @@ class CComponentsObject : public virtual IComponentsObject, public virtual CObje protected: - NMR::CModelComponentsObject * getComponentsObject(); + /** + * Put protected members here. + */ public: + /** * Put additional public members here. They will not be visible in the external API. */ - CComponentsObject(NMR::PModelResource pResource); - static IComponentsObject* fnCreateComponentsObjectFromModelResource(NMR::PModelResource pResource, bool bFailIfUnkownClass); /** * Public member functions to implement. */ - IComponent * AddComponent (IObject* pObjectResource, const sLib3MFTransform Transform); - - IComponent * GetComponent (const Lib3MF_uint32 nIndex); + IComponent * AddComponent(IObject* pObjectResource, const Lib3MF::sTransform Transform) override; - Lib3MF_uint32 GetComponentCount (); + IComponent * GetComponent(const Lib3MF_uint32 nIndex) override; - bool IsMeshObject(); + Lib3MF_uint32 GetComponentCount() override; - bool IsComponentsObject(); - - bool IsLevelSetObject() override; }; -} -} +} // namespace Impl +} // namespace Lib3MF +#ifdef _MSC_VER +#pragma warning(pop) +#endif #endif // __LIB3MF_COMPONENTSOBJECT diff --git a/Include/API/lib3mf_componentsobjectiterator.hpp b/Include/API/lib3mf_componentsobjectiterator.hpp index 7444c653..e1016b8b 100644 --- a/Include/API/lib3mf_componentsobjectiterator.hpp +++ b/Include/API/lib3mf_componentsobjectiterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. diff --git a/Include/API/lib3mf_composematrixnode.hpp b/Include/API/lib3mf_composematrixnode.hpp index 24d9c2be..850c2283 100644 --- a/Include/API/lib3mf_composematrixnode.hpp +++ b/Include/API/lib3mf_composematrixnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,6 @@ class CComposeMatrixNode : public virtual IComposeMatrixNode, public virtual CIm */ public: - CComposeMatrixNode(NMR::PModelImplicitNode pImplicitNode); /** * Put additional public members here. They will not be visible in the external API. @@ -77,106 +76,38 @@ class CComposeMatrixNode : public virtual IComposeMatrixNode, public virtual CIm * Public member functions to implement. */ - /** - * IComposeMatrixNode::GetInputM00 - Retrieves the input for the element 0 0 - * @return the input for the m00 element - */ IImplicitPort * GetInputM00() override; - /** - * IComposeMatrixNode::GetInputM01 - Retrieves the input for the element 0 1 - * @return the input for the m01 element - */ IImplicitPort * GetInputM01() override; - /** - * IComposeMatrixNode::GetInputM02 - Retrieves the input for the element 0 2 - * @return the input for the m02 element - */ IImplicitPort * GetInputM02() override; - /** - * IComposeMatrixNode::GetInputM03 - Retrieves the input for the element 0 3 - * @return the input for the m03 element - */ IImplicitPort * GetInputM03() override; - /** - * IComposeMatrixNode::GetInputM10 - Retrieves the input for the element 1 0 - * @return the input for the m10 element - */ IImplicitPort * GetInputM10() override; - /** - * IComposeMatrixNode::GetInputM11 - Retrieves the input for the element 1 1 - * @return the input for the m11 element - */ IImplicitPort * GetInputM11() override; - /** - * IComposeMatrixNode::GetInputM12 - Retrieves the input for the element 1 2 - * @return the input for the m12 element - */ IImplicitPort * GetInputM12() override; - /** - * IComposeMatrixNode::GetInputM13 - Retrieves the input for the element 1 3 - * @return the input for the m3 element - */ IImplicitPort * GetInputM13() override; - /** - * IComposeMatrixNode::GetInputM20 - Retrieves the input for the element 2 0 - * @return the input for the m2 element - */ IImplicitPort * GetInputM20() override; - /** - * IComposeMatrixNode::GetInputM21 - Retrieves the input for the element 2 1 - * @return - */ IImplicitPort * GetInputM21() override; - /** - * IComposeMatrixNode::GetInputM22 - Retrieves the input for the element 2 2 - * @return the input for the m22 element - */ IImplicitPort * GetInputM22() override; - /** - * IComposeMatrixNode::GetInputM23 - Retrieves the input for the element 2 3 - * @return the input for the m23 element - */ IImplicitPort * GetInputM23() override; - /** - * IComposeMatrixNode::GetInputM30 - Retrieves the input for the element 3 0 - * @return the input for the m30 element - */ IImplicitPort * GetInputM30() override; - /** - * IComposeMatrixNode::GetInputM31 - Retrieves the input for the element 3 1 - * @return the input for the m31 element - */ IImplicitPort * GetInputM31() override; - /** - * IComposeMatrixNode::GetInputM32 - Retrieves the input for the element 3 2 - * @return the input for the m32 element - */ IImplicitPort * GetInputM32() override; - /** - * IComposeMatrixNode::GetInputM33 - Retrieves the input for the element 3 3 - * @return the input for the m33 element - */ IImplicitPort * GetInputM33() override; - /** - * IComposeMatrixNode::GetOutputMatrix - Retrieves the output - * @return the output - */ IImplicitPort * GetOutputResult() override; }; diff --git a/Include/API/lib3mf_composevectornode.hpp b/Include/API/lib3mf_composevectornode.hpp index b8496bb3..d06bd857 100644 --- a/Include/API/lib3mf_composevectornode.hpp +++ b/Include/API/lib3mf_composevectornode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CComposeVectorNode : public virtual IComposeVectorNode, public virtual CIm */ public: - CComposeVectorNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ @@ -76,28 +76,12 @@ class CComposeVectorNode : public virtual IComposeVectorNode, public virtual CIm * Public member functions to implement. */ - /** - * IComposeVectorNode::GetInputX - Retrieves the input for the x component - * @return the input for the x component - */ IImplicitPort * GetInputX() override; - /** - * IComposeVectorNode::GetInputY - Retrieves the input for the y component - * @return the input for the y component - */ IImplicitPort * GetInputY() override; - /** - * IComposeVectorNode::GetInputZ - Retrieves the input for the z component - * @return the input for the z component - */ IImplicitPort * GetInputZ() override; - /** - * IComposeVectorNode::GetOutputVector - Retrieves the output - * @return the output - */ IImplicitPort * GetOutputResult() override; }; diff --git a/Include/API/lib3mf_compositematerials.hpp b/Include/API/lib3mf_compositematerials.hpp index f250e8a1..2f64862e 100644 --- a/Include/API/lib3mf_compositematerials.hpp +++ b/Include/API/lib3mf_compositematerials.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,9 +42,7 @@ Abstract: This is the class declaration of CCompositeMaterials #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelCompositeMaterials.h" -#define LIB3MF_MAXCOMPOSITEMATERIALS (1UL << 31) namespace Lib3MF { namespace Impl { @@ -66,31 +64,30 @@ class CCompositeMaterials : public virtual ICompositeMaterials, public virtual C /** * Put protected members here. */ - NMR::CModelCompositeMaterialsResource& compositeMaterials(); public: /** * Put additional public members here. They will not be visible in the external API. */ - CCompositeMaterials(NMR::PModelCompositeMaterialsResource pResource); /** * Public member functions to implement. */ - Lib3MF_uint32 GetCount (); + Lib3MF_uint32 GetCount() override; - void GetAllPropertyIDs (Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer); + void GetAllPropertyIDs(Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) override; - IBaseMaterialGroup * GetBaseMaterialGroup (); + IBaseMaterialGroup * GetBaseMaterialGroup() override; - Lib3MF_uint32 AddComposite(const Lib3MF_uint64 nCompositeBufferSize, const sLib3MFCompositeConstituent * pCompositeBuffer); + Lib3MF_uint32 AddComposite(const Lib3MF_uint64 nCompositeBufferSize, const Lib3MF::sCompositeConstituent * pCompositeBuffer) override; - void RemoveComposite (const Lib3MF_uint32 nPropertyID); + void RemoveComposite(const Lib3MF_uint32 nPropertyID) override; + + void GetComposite(const Lib3MF_uint32 nPropertyID, Lib3MF_uint64 nCompositeBufferSize, Lib3MF_uint64* pCompositeNeededCount, Lib3MF::sCompositeConstituent * pCompositeBuffer) override; - void GetComposite(const Lib3MF_uint32 nPropertyID, Lib3MF_uint64 nCompositeBufferSize, Lib3MF_uint64* pCompositeNeededCount, sLib3MFCompositeConstituent * pCompositeBuffer); }; } // namespace Impl diff --git a/Include/API/lib3mf_compositematerialsiterator.hpp b/Include/API/lib3mf_compositematerialsiterator.hpp index 0448a34d..48655148 100644 --- a/Include/API/lib3mf_compositematerialsiterator.hpp +++ b/Include/API/lib3mf_compositematerialsiterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -78,8 +78,6 @@ class CCompositeMaterialsIterator : public virtual ICompositeMaterialsIterator, ICompositeMaterials * GetCurrentCompositeMaterials() override; - IResource * GetCurrent() override; - }; } // namespace Impl diff --git a/Include/API/lib3mf_constantnode.hpp b/Include/API/lib3mf_constantnode.hpp index b0aa3325..9bf63fc4 100644 --- a/Include/API/lib3mf_constantnode.hpp +++ b/Include/API/lib3mf_constantnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CConstantNode : public virtual IConstantNode, public virtual CImplicitNode */ public: - CConstantNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ @@ -76,22 +76,10 @@ class CConstantNode : public virtual IConstantNode, public virtual CImplicitNode * Public member functions to implement. */ - /** - * IConstantNode::SetConstant - Sets the constant value of the node - * @param[in] dValue - the value - */ void SetConstant(const Lib3MF_double dValue) override; - /** - * IConstantNode::GetConstant - Retrieves the constant value of the node - * @return the value - */ Lib3MF_double GetConstant() override; - /** - * IConstantNode::GetOutputValue - Retrieves the output - * @return the output - */ IImplicitPort * GetOutputValue() override; }; diff --git a/Include/API/lib3mf_constmatnode.hpp b/Include/API/lib3mf_constmatnode.hpp index 95cb78dd..f4235526 100644 --- a/Include/API/lib3mf_constmatnode.hpp +++ b/Include/API/lib3mf_constmatnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CConstMatNode : public virtual IConstMatNode, public virtual CImplicitNode */ public: - CConstMatNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ @@ -76,22 +76,10 @@ class CConstMatNode : public virtual IConstMatNode, public virtual CImplicitNode * Public member functions to implement. */ - /** - * IConstMatNode::SetMatrix - Sets the matrix value of the node - * @param[in] Value - the value - */ void SetMatrix(const Lib3MF::sMatrix4x4 Value) override; - /** - * IConstMatNode::GetMatrix - Retrieves the matrix value of the node - * @return the matrix - */ Lib3MF::sMatrix4x4 GetMatrix() override; - /** - * IConstMatNode::GetOutputMatrix - Retrieves the output - * @return the output - */ IImplicitPort * GetOutputMatrix() override; }; diff --git a/Include/API/lib3mf_constvecnode.hpp b/Include/API/lib3mf_constvecnode.hpp index 5f6c493e..64e75947 100644 --- a/Include/API/lib3mf_constvecnode.hpp +++ b/Include/API/lib3mf_constvecnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CConstVecNode : public virtual IConstVecNode, public virtual CImplicitNode */ public: - CConstVecNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ @@ -76,22 +76,10 @@ class CConstVecNode : public virtual IConstVecNode, public virtual CImplicitNode * Public member functions to implement. */ - /** - * IConstVecNode::SetVector - Sets the vector value of the node - * @param[in] Value - the value - */ void SetVector(const Lib3MF::sVector Value) override; - /** - * IConstVecNode::GetVector - Retrieves the vector value of the node - * @return the value - */ Lib3MF::sVector GetVector() override; - /** - * IConstVecNode::GetOutputVector - Retrieves the output - * @return the output - */ IImplicitPort * GetOutputVector() override; }; diff --git a/Include/API/lib3mf_consumer.hpp b/Include/API/lib3mf_consumer.hpp index b6afcc03..c0c0c5de 100644 --- a/Include/API/lib3mf_consumer.hpp +++ b/Include/API/lib3mf_consumer.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,34 +33,61 @@ Abstract: This is the class declaration of CConsumer #define __LIB3MF_CONSUMER #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif -#include "Model/Classes/NMR_KeyStoreConsumer.h" // Include custom headers here. + + namespace Lib3MF { - namespace Impl { - - /************************************************************************************************************************* - Class declaration of CConsumer - **************************************************************************************************************************/ - - class CConsumer : public virtual IConsumer, public virtual CBase { - private: - NMR::PKeyStoreConsumer m_Consumer; - public: - inline NMR::PKeyStoreConsumer consumer() const { - return m_Consumer; - } - CConsumer(NMR::PKeyStoreConsumer const & consumer); - // Inherited via IConsumer - std::string GetConsumerID() override; - std::string GetKeyID() override; - std::string GetKeyValue() override; - }; - } -} +namespace Impl { + + +/************************************************************************************************************************* + Class declaration of CConsumer +**************************************************************************************************************************/ + +class CConsumer : public virtual IConsumer, public virtual CBase { +private: + + /** + * Put private members here. + */ + +protected: + + /** + * Put protected members here. + */ + +public: + + /** + * Put additional public members here. They will not be visible in the external API. + */ + + + /** + * Public member functions to implement. + */ + + std::string GetConsumerID() override; + + std::string GetKeyID() override; + + std::string GetKeyValue() override; + +}; + +} // namespace Impl +} // namespace Lib3MF + +#ifdef _MSC_VER +#pragma warning(pop) #endif +#endif // __LIB3MF_CONSUMER diff --git a/Include/API/lib3mf_contentencryptionparams.hpp b/Include/API/lib3mf_contentencryptionparams.hpp index f6445451..45b5674d 100644 --- a/Include/API/lib3mf_contentencryptionparams.hpp +++ b/Include/API/lib3mf_contentencryptionparams.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,46 +29,75 @@ Abstract: This is the class declaration of CContentEncryptionParams */ -#ifndef __LIB3MF_CIPHERDATA -#define __LIB3MF_CIPHERDATA +#ifndef __LIB3MF_CONTENTENCRYPTIONPARAMS +#define __LIB3MF_CONTENTENCRYPTIONPARAMS #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif - -#include "Model/Classes/NMR_KeyStoreCEKParams.h" // Include custom headers here. + + namespace Lib3MF { - namespace Impl { - - /************************************************************************************************************************* - Class declaration of CContentEncryptionParams - **************************************************************************************************************************/ - - class CContentEncryptionParams : public virtual IContentEncryptionParams, public virtual CBase { - private: - NMR::PCKeyStoreContentEncryptionParams m_pParams; - public: - CContentEncryptionParams(NMR::PCKeyStoreContentEncryptionParams const & p); - // Inherited via IContentEncryptionParams - Lib3MF_uint64 GetDescriptor(); - Lib3MF::eEncryptionAlgorithm GetEncryptionAlgorithm(); - void GetKey(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64 *pByteDataNeededCount, Lib3MF_uint8 *pByteDataBuffer); - void GetInitializationVector(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64 *pByteDataNeededCount, Lib3MF_uint8 *pByteDataBuffer); - void GetAuthenticationTag(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64 *pByteDataNeededCount, Lib3MF_uint8 *pByteDataBuffer); - void SetAuthenticationTag(Lib3MF_uint64 const nByteDataBufferSize, const Lib3MF_uint8 *pByteDataBuffer); - void GetAdditionalAuthenticationData(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64 *pByteDataNeededCount, Lib3MF_uint8 *pByteDataBuffer); - void SetAdditionalAuthenticationData(Lib3MF_uint64 const nByteDataBufferSize, const Lib3MF_uint8 *pByteDataBuffer); - std::string GetKeyUUID(); - - inline NMR::PKeyStoreCEKParams params() const { - return m_pParams; - } - }; - } -} +namespace Impl { + + +/************************************************************************************************************************* + Class declaration of CContentEncryptionParams +**************************************************************************************************************************/ + +class CContentEncryptionParams : public virtual IContentEncryptionParams, public virtual CBase { +private: + + /** + * Put private members here. + */ + +protected: + + /** + * Put protected members here. + */ + +public: + + /** + * Put additional public members here. They will not be visible in the external API. + */ + + + /** + * Public member functions to implement. + */ + + Lib3MF::eEncryptionAlgorithm GetEncryptionAlgorithm() override; + + void GetKey(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) override; + + void GetInitializationVector(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) override; + + void GetAuthenticationTag(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) override; + + void SetAuthenticationTag(const Lib3MF_uint64 nByteDataBufferSize, const Lib3MF_uint8 * pByteDataBuffer) override; + + void GetAdditionalAuthenticationData(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) override; + + Lib3MF_uint64 GetDescriptor() override; + + std::string GetKeyUUID() override; + +}; + +} // namespace Impl +} // namespace Lib3MF + +#ifdef _MSC_VER +#pragma warning(pop) #endif +#endif // __LIB3MF_CONTENTENCRYPTIONPARAMS diff --git a/Include/API/lib3mf_coshnode.hpp b/Include/API/lib3mf_coshnode.hpp index b0de53b1..6346a402 100644 --- a/Include/API/lib3mf_coshnode.hpp +++ b/Include/API/lib3mf_coshnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CCoshNode : public virtual ICoshNode, public virtual COneInputNode { */ public: - CCoshNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_cosnode.hpp b/Include/API/lib3mf_cosnode.hpp index 1128cf77..d7d49562 100644 --- a/Include/API/lib3mf_cosnode.hpp +++ b/Include/API/lib3mf_cosnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CCosNode : public virtual ICosNode, public virtual COneInputNode { */ public: - CCosNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_crossnode.hpp b/Include/API/lib3mf_crossnode.hpp index 13d5a709..bc2fde1b 100644 --- a/Include/API/lib3mf_crossnode.hpp +++ b/Include/API/lib3mf_crossnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,8 +66,7 @@ class CCrossNode : public virtual ICrossNode, public virtual CTwoInputNode { */ public: - CCrossNode() = delete; - CCrossNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_decomposevectornode.hpp b/Include/API/lib3mf_decomposevectornode.hpp index 070ca9d3..4314430a 100644 --- a/Include/API/lib3mf_decomposevectornode.hpp +++ b/Include/API/lib3mf_decomposevectornode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CDecomposeVectorNode : public virtual IDecomposeVectorNode, public virtual */ public: - CDecomposeVectorNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ @@ -76,28 +76,12 @@ class CDecomposeVectorNode : public virtual IDecomposeVectorNode, public virtual * Public member functions to implement. */ - /** - * IDecomposeVectorNode::GetInputVector - Retrieves the input - * @return the input - */ IImplicitPort * GetInputA() override; - /** - * IDecomposeVectorNode::GetOutputX - Retrieves the output for the x component - * @return the output for the x component - */ IImplicitPort * GetOutputX() override; - /** - * IDecomposeVectorNode::GetOutputY - Retrieves the output for the y component - * @return the output for the y component - */ IImplicitPort * GetOutputY() override; - /** - * IDecomposeVectorNode::GetOutputZ - Retrieves the output for the z component - * @return the output for the z component - */ IImplicitPort * GetOutputZ() override; }; diff --git a/Include/API/lib3mf_divisionnode.hpp b/Include/API/lib3mf_divisionnode.hpp index 0e23bf49..e282baa4 100644 --- a/Include/API/lib3mf_divisionnode.hpp +++ b/Include/API/lib3mf_divisionnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CDivisionNode : public virtual IDivisionNode, public virtual CTwoInputNode */ public: - CDivisionNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_dotnode.hpp b/Include/API/lib3mf_dotnode.hpp index 32951f09..a8bd70ca 100644 --- a/Include/API/lib3mf_dotnode.hpp +++ b/Include/API/lib3mf_dotnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CDotNode : public virtual IDotNode, public virtual CTwoInputNode { */ public: - CDotNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_expnode.hpp b/Include/API/lib3mf_expnode.hpp index 3b9dae9e..61cec516 100644 --- a/Include/API/lib3mf_expnode.hpp +++ b/Include/API/lib3mf_expnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CExpNode : public virtual IExpNode, public virtual COneInputNode { */ public: - CExpNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_floornode.hpp b/Include/API/lib3mf_floornode.hpp index 21315063..135d934b 100644 --- a/Include/API/lib3mf_floornode.hpp +++ b/Include/API/lib3mf_floornode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CFloorNode : public virtual IFloorNode, public virtual COneInputNode { */ public: - CFloorNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_fmodnode.hpp b/Include/API/lib3mf_fmodnode.hpp index ec99eb53..ccd5b2cf 100644 --- a/Include/API/lib3mf_fmodnode.hpp +++ b/Include/API/lib3mf_fmodnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CFmodNode : public virtual IFmodNode, public virtual CTwoInputNode { */ public: - CFmodNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_fractnode.hpp b/Include/API/lib3mf_fractnode.hpp index d50eb5c2..faf08781 100644 --- a/Include/API/lib3mf_fractnode.hpp +++ b/Include/API/lib3mf_fractnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CFractNode : public virtual IFractNode, public virtual COneInputNode { */ public: - CFractNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_function.hpp b/Include/API/lib3mf_function.hpp index 3b8f2d71..42e3746f 100644 --- a/Include/API/lib3mf_function.hpp +++ b/Include/API/lib3mf_function.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,7 +42,7 @@ Abstract: This is the class declaration of CFunction #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelFunction.h" + namespace Lib3MF { namespace Impl { @@ -54,10 +54,10 @@ namespace Impl { class CFunction : public virtual IFunction, public virtual CResource { private: + /** - * Put private members here. - */ - NMR::CModelFunction* function(); + * Put private members here. + */ protected: @@ -70,79 +70,30 @@ class CFunction : public virtual IFunction, public virtual CResource { /** * Put additional public members here. They will not be visible in the external API. */ - CFunction() = delete; - CFunction(NMR::PModelResource pResource); + /** * Public member functions to implement. */ - /** - * IFunction::GetDisplayName - Retrieves the display name of the function - * @return the display name - */ std::string GetDisplayName() override; - /** - * IFunction::SetDisplayName - Sets the display name of the function - * @param[in] sDisplayName - the display name - */ void SetDisplayName(const std::string & sDisplayName) override; - /** - * IFunction::AddInput - Add an input - * @param[in] sIdentifier - the identifier of the input - * @param[in] sDisplayName - the display name of the input - * @param[in] eType - the type of the input - * @return The added input port - */ IImplicitPort * AddInput(const std::string & sIdentifier, const std::string & sDisplayName, const Lib3MF::eImplicitPortType eType) override; - /** - * IFunction::GetInputs - Retrieves the inputs - * @return iterator for the list of inputs - */ IImplicitPortIterator * GetInputs() override; - /** - * IFunction::RemoveInput - Removes an input - * @param[in] pInput - The input to be removed - */ void RemoveInput(IImplicitPort* pInput) override; - /** - * IFunction::AddOutput - Add an output - * @param[in] sIdentifier - the identifier of the output - * @param[in] sDisplayName - the display name of the output - * @param[in] eType - the type of the input - * @return The added input port - */ IImplicitPort * AddOutput(const std::string & sIdentifier, const std::string & sDisplayName, const Lib3MF::eImplicitPortType eType) override; - /** - * IFunction::GetOutputs - Retrieves the outputs - * @return iterator for the outputs - */ IImplicitPortIterator * GetOutputs() override; - /** - * IFunction::RemoveOutput - Removes an output - * @param[in] pOutput - The output to be removed - */ void RemoveOutput(IImplicitPort* pOutput) override; - /** - * IFunction::FindInput - Retrieves an input - * @param[in] sIdentifier - the identifier of the input - * @return the input port - */ IImplicitPort * FindInput(const std::string & sIdentifier) override; - /** - * IFunction::FindOutput - Retrieves an output - * @param[in] sIdentifier - the identifier of the output - * @return the output port - */ IImplicitPort * FindOutput(const std::string & sIdentifier) override; }; diff --git a/Include/API/lib3mf_functioncallnode.hpp b/Include/API/lib3mf_functioncallnode.hpp index bdad495b..c4e28c51 100644 --- a/Include/API/lib3mf_functioncallnode.hpp +++ b/Include/API/lib3mf_functioncallnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CFunctionCallNode : public virtual IFunctionCallNode, public virtual CImpl */ public: - CFunctionCallNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ @@ -76,11 +76,8 @@ class CFunctionCallNode : public virtual IFunctionCallNode, public virtual CImpl * Public member functions to implement. */ - /** - * IFunctionCallNode::GetInputFunctionId - Retrieves the input for the function id - * @return the input port for the function - */ IImplicitPort * GetInputFunctionID() override; + }; } // namespace Impl diff --git a/Include/API/lib3mf_functionfromimage3d.hpp b/Include/API/lib3mf_functionfromimage3d.hpp index ef781c44..bd11af77 100644 --- a/Include/API/lib3mf_functionfromimage3d.hpp +++ b/Include/API/lib3mf_functionfromimage3d.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,7 +42,7 @@ Abstract: This is the class declaration of CFunctionFromImage3D #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelFunctionFromImage3D.h" + namespace Lib3MF { namespace Impl { @@ -58,7 +58,6 @@ class CFunctionFromImage3D : public virtual IFunctionFromImage3D, public virtual /** * Put private members here. */ - NMR::CModelFunctionFromImage3D* functionfromimage3d(); protected: @@ -71,78 +70,30 @@ class CFunctionFromImage3D : public virtual IFunctionFromImage3D, public virtual /** * Put additional public members here. They will not be visible in the external API. */ - /** - * Put additional public members here. They will not be visible in the external API. - */ - CFunctionFromImage3D() = delete; - CFunctionFromImage3D(NMR::PModelResource pResource); + /** * Public member functions to implement. */ - /** - * IFunctionFromImage3D::GetImage3D - Returns the selected 3D image. - * @return image instance - */ IImage3D * GetImage3D() override; - /** - * IFunctionFromImage3D::SetImage3D - Sets the 3D image of the selector. - * @param[in] pImage3D - image instance - */ void SetImage3D(IImage3D* pImage3D) override; - /** - * IFunctionFromImage3D::SetFilter - Sets the texture filter of the selector. - * @param[in] eFilter - texture filter - */ void SetFilter(const Lib3MF::eTextureFilter eFilter) override; - /** - * IFunctionFromImage3D::GetFilter - Returns the texture filter of the selector. - * @return texture filter - */ Lib3MF::eTextureFilter GetFilter() override; - /** - * IFunctionFromImage3D::SetTileStyles - Sets the tile styles of the selector. - * @param[in] eTileStyleU - tile style in U - * @param[in] eTileStyleV - tile style in V - * @param[in] eTileStyleW - tile style in W - */ void SetTileStyles(const Lib3MF::eTextureTileStyle eTileStyleU, const Lib3MF::eTextureTileStyle eTileStyleV, const Lib3MF::eTextureTileStyle eTileStyleW) override; - /** - * IFunctionFromImage3D::GetTileStyles - Retrieves the tile styles of the selector. - * @param[out] eTileStyleU - tile style in U - * @param[out] eTileStyleV - tile style in V - * @param[out] eTileStyleW - tile style in W - */ void GetTileStyles(Lib3MF::eTextureTileStyle & eTileStyleU, Lib3MF::eTextureTileStyle & eTileStyleV, Lib3MF::eTextureTileStyle & eTileStyleW) override; - /** - * IFunctionFromImage3D::GetOffset - returns the offset value for the pixel values in the Image3D - * @return the offset value for the pixel values in the Image3D - */ Lib3MF_double GetOffset() override; - /** - * IFunctionFromImage3D::SetOffset - Sets the offset value for the pixel values in the Image3D - * @param[in] dOffset - the offset value for the pixel values in the Image3D - */ void SetOffset(const Lib3MF_double dOffset) override; - /** - * IFunctionFromImage3D::GetScale - returns the scale value for the pixel values in the Image3D - * @return the scale value for the pixel values in the Image3D - */ Lib3MF_double GetScale() override; - /** - * IFunctionFromImage3D::SetScale - Sets the scale value for the pixel values in the Image3D - * @param[in] dScale - the scale value for the pixel values in the Image3D - */ void SetScale(const Lib3MF_double dScale) override; }; diff --git a/Include/API/lib3mf_functioniterator.hpp b/Include/API/lib3mf_functioniterator.hpp index 95d69483..018b113e 100644 --- a/Include/API/lib3mf_functioniterator.hpp +++ b/Include/API/lib3mf_functioniterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -76,10 +76,6 @@ class CFunctionIterator : public virtual IFunctionIterator, public virtual CReso * Public member functions to implement. */ - /** - * IFunctionIterator::GetCurrentFunction - Returns the Function the iterator points at. - * @return returns the Function instance. - */ IFunction * GetCurrentFunction() override; }; diff --git a/Include/API/lib3mf_functionreference.hpp b/Include/API/lib3mf_functionreference.hpp index b2c7b829..8aae2e9e 100644 --- a/Include/API/lib3mf_functionreference.hpp +++ b/Include/API/lib3mf_functionreference.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,7 +42,7 @@ Abstract: This is the class declaration of CFunctionReference #endif // Include custom headers here. -#include "Common/NMR_FunctionReference.h" + namespace Lib3MF { namespace Impl { @@ -58,86 +58,44 @@ class CFunctionReference : public virtual IFunctionReference, public virtual CBa /** * Put private members here. */ - + protected: /** * Put protected members here. */ - NMR::PFunctionReference m_pFunctionReference; + public: /** * Put additional public members here. They will not be visible in the external API. */ - CFunctionReference(NMR::PFunctionReference pFunctionReference); + /** * Public member functions to implement. */ - /** - * IFunctionReference::GetFunctionResourceID - Returns the UniqueResourceID of the Function. - * @return returns the UniqueResourceID. - */ Lib3MF_uint32 GetFunctionResourceID() override; - /** - * IFunctionReference::SetFunctionResourceID - Sets the UniqueResourceID to refer to. - * @param[in] nUniqueResourceID - UniqueResourceID of the function - */ void SetFunctionResourceID(const Lib3MF_uint32 nUniqueResourceID) override; - - /** - * IFunctionReference::GetTransform - Returns the transformation matrix into the coordinate system of the referenced Function. - * @return the transformation matrix - */ Lib3MF::sTransform GetTransform() override; - /** - * IFunctionReference::SetTransform - Sets the transformation matrix into the coordinate system of the referenced Function. - * @param[in] Transform - new transformation matrix - */ void SetTransform(const Lib3MF::sTransform Transform) override; - /** - * IFunctionReference::GetChannelName - Returns the name of the function output to use. - * @return the name of the function output - */ std::string GetChannelName() override; - /** - * IFunctionReference::SetChannelName - Sets the name of the function output to use. - * @param[in] sChannelName - new name of the function output - */ void SetChannelName(const std::string & sChannelName) override; - /** - * IFunctionReference::SetMinFeatureSize - Sets the minimal feature size as a hint for the function evaluator - * @param[in] dMinFeatureSize - minimal feature size - */ void SetMinFeatureSize(const Lib3MF_double dMinFeatureSize) override; - /** - * IFunctionReference::GetMinFeatureSize - Returns the minimal feature size as a hint for the function evaluator - * @return minimal feature size - */ Lib3MF_double GetMinFeatureSize() override; - /** - * IFunctionReference::SetFallBackValue - Sets the fallback value to use - * if the function evaluation fails (e.g. evaluates to NaN or Inf). - * @param[in] dFallBackValue - fallback value - */ void SetFallBackValue(const Lib3MF_double dFallBackValue) override; - /** - * IFunctionReference::GetFallBackValue - Returns the fallback value to - * use if the function evaluation fails (e.g. evaluates to NaN or Inf). - * @return fallback value - */ - Lib3MF_double GetFallBackValue(); + Lib3MF_double GetFallBackValue() override; + }; } // namespace Impl diff --git a/Include/API/lib3mf_image3d.hpp b/Include/API/lib3mf_image3d.hpp index 8de45244..e020926e 100644 --- a/Include/API/lib3mf_image3d.hpp +++ b/Include/API/lib3mf_image3d.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,7 +42,7 @@ Abstract: This is the class declaration of CImage3D #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelImage3D.h" + namespace Lib3MF { namespace Impl { @@ -64,14 +64,13 @@ class CImage3D : public virtual IImage3D, public virtual CResource { /** * Put protected members here. */ - NMR::CModelImage3D* image3D(); + public: /** * Put additional public members here. They will not be visible in the external API. */ - CImage3D() = delete; - CImage3D(NMR::PModelResource pResource); + /** * Public member functions to implement. diff --git a/Include/API/lib3mf_image3diterator.hpp b/Include/API/lib3mf_image3diterator.hpp index 4752d353..63ab6e39 100644 --- a/Include/API/lib3mf_image3diterator.hpp +++ b/Include/API/lib3mf_image3diterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -77,6 +77,7 @@ class CImage3DIterator : public virtual IImage3DIterator, public virtual CResour */ IImage3D * GetCurrentImage3D() override; + }; } // namespace Impl diff --git a/Include/API/lib3mf_imagestack.hpp b/Include/API/lib3mf_imagestack.hpp index b0d6da42..224f5bde 100644 --- a/Include/API/lib3mf_imagestack.hpp +++ b/Include/API/lib3mf_imagestack.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,7 +42,7 @@ Abstract: This is the class declaration of CImageStack #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelImageStack.h" + namespace Lib3MF { namespace Impl { @@ -58,7 +58,6 @@ class CImageStack : public virtual IImageStack, public virtual CImage3D { /** * Put private members here. */ - NMR::PModelImageStack m_pModelImageStack; protected: @@ -71,8 +70,7 @@ class CImageStack : public virtual IImageStack, public virtual CImage3D { /** * Put additional public members here. They will not be visible in the external API. */ - CImageStack() = delete; - CImageStack(NMR::PModelImageStack pModelImageStack); + /** * Public member functions to implement. diff --git a/Include/API/lib3mf_implicitfunction.hpp b/Include/API/lib3mf_implicitfunction.hpp index ec009b86..319c3432 100644 --- a/Include/API/lib3mf_implicitfunction.hpp +++ b/Include/API/lib3mf_implicitfunction.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -28,768 +28,176 @@ Abstract: This is the class declaration of CImplicitFunction */ + #ifndef __LIB3MF_IMPLICITFUNCTION #define __LIB3MF_IMPLICITFUNCTION -#include "lib3mf_function.hpp" #include "lib3mf_interfaces.hpp" // Parent classes -#include "lib3mf_base.hpp" - +#include "lib3mf_function.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelImplicitFunction.h" - -namespace Lib3MF -{ - namespace Impl - { - - /************************************************************************************************************************* - Class declaration of CImplicitFunction - **************************************************************************************************************************/ - - class CImplicitFunction : public IImplicitFunction, public CFunction - { - private: - /** - * Put private members here. - */ - NMR::CModelImplicitFunction* function(); - - protected: - /** - * Put protected members here. - */ - - public: - /** - * Put additional public members here. They will not be visible in - * the external API. - */ - - CImplicitFunction() = delete; - CImplicitFunction(NMR::PModelResource pResource); - /** - * Public member functions to implement. - */ - - /** - * IImplicitFunction::GetIdentifier - Retrieves the identifier of - * the function - * @return the identifier - */ - std::string GetIdentifier() override; - - /** - * IImplicitFunction::SetIdentifier - Sets the identifier of the - * function - * @param[in] sIdentifier - the identifier - */ - void SetIdentifier(const std::string& sIdentifier) override; - - /** - * IImplicitFunction::AddNode - Add a node - * @param[in] eNodeType - the type of the node - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IImplicitNode* AddNode( - const Lib3MF::eImplicitNodeType eNodeType, - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddSinNode - Add a SinNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ISinNode* AddSinNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddCosNode - Add a CosNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ICosNode* AddCosNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddTanNode - Add a TanNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ITanNode* AddTanNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddArcSinNode - Add a ArcSinNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IArcSinNode* AddArcSinNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddArcCosNode - Add a ArcCosNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IArcCosNode* AddArcCosNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddArcTan2Node - Add a ArcTan2Node - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IArcTan2Node* AddArcTan2Node( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddSinhNode - Add a SinhNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ISinhNode* AddSinhNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddCoshNode - Add a CoshNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ICoshNode* AddCoshNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddTanhNode - Add a TanhNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ITanhNode* AddTanhNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddRoundNode - Add a RoundNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IRoundNode* AddRoundNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddCeilNode - Add a CeilNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ICeilNode* AddCeilNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddFloorNode - Add a FloorNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IFloorNode* AddFloorNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddSignNode - Add a SignNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ISignNode* AddSignNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddFractNode - Add a FractNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IFractNode* AddFractNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddAbsNode - Add a AbsNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IAbsNode* AddAbsNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddExpNode - Add a ExpNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IExpNode* AddExpNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddLogNode - Add a LogNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ILogNode* AddLogNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddLog2Node - Add a Log2Node - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ILog2Node* AddLog2Node( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddLog10Node - Add a Log10Node - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ILog10Node* AddLog10Node( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddLengthNode - Add a LengthNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ILengthNode* AddLengthNode(const std::string& sIdentifier, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddTransposeNode - Add a TransposeNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ITransposeNode* AddTransposeNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::InverseNode - Add a InverseNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IInverseNode* AddInverseNode(const std::string& sIdentifier, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddSqrtNode - Add a SqrtNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ISqrtNode* AddSqrtNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddResourceIdNode - Add a ResourceIdNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IResourceIdNode* AddResourceIdNode( - const std::string& sIdentifier, const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddAdditionNode - Add an AdditionNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IAdditionNode* AddAdditionNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddSubtractionNode - Add a SubtractionNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ISubtractionNode* AddSubtractionNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddMultiplicationNode - Add a - * MultiplicationNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IMultiplicationNode* AddMultiplicationNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddDivisionNode - Add a DivisionNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IDivisionNode* AddDivisionNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddDotNode - Add a DotNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IDotNode* AddDotNode(const std::string& sIdentifier, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddCrossNode - Add a CrossNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ICrossNode* AddCrossNode(const std::string& sIdentifier, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddMatVecMultiplicationNode - Add a - * MatVecMultiplicationNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IMatVecMultiplicationNode* AddMatVecMultiplicationNode( - const std::string& sIdentifier, const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddMinNode - Add a MinNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IMinNode* AddMinNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddMaxNode - Add a MaxNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IMaxNode* AddMaxNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddFmodNode - Add a FmodNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IFmodNode* AddFmodNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddPowNode - Add a PowNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IPowNode* AddPowNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddSelectNode - Add a SelectNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - ISelectNode* AddSelectNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddClampNode - Add a ClampNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] eConfiguration - the configuration of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IClampNode* AddClampNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddComposeVectorNode - Add a ComposeVectorNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IComposeVectorNode* AddComposeVectorNode( - const std::string& sIdentifier, const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddVectorFromScalarNode - Add a VectorFromScalar - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IVectorFromScalarNode * AddVectorFromScalarNode(const std::string & sIdentifier, - const std::string & sDisplayName, - const std::string & sTag) override; - - /** - * IImplicitFunction::AddDecomposeVectorNode - Add a - * DecomposeVectorNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IDecomposeVectorNode* AddDecomposeVectorNode( - const std::string& sIdentifier, const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddComposeMatrixNode - Add a ComposeMatrixNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IComposeMatrixNode* AddComposeMatrixNode( - const std::string& sIdentifier, const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddMatrixFromRowsNode - Add a MatrixFromRowsNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IMatrixFromRowsNode * AddMatrixFromRowsNode(const std::string & sIdentifier, - const std::string & sDisplayName, - const std::string & sTag) override; - - /** - * IImplicitFunction::AddMatrixFromColumnsNode - Add a MatrixFromColumnsNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IMatrixFromColumnsNode * AddMatrixFromColumnsNode(const std::string & sIdentifier, - const std::string & sDisplayName, - const std::string & sTag) override; - - /** - * IImplicitFunction::AddConstantNode - Add a ConstantNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IConstantNode* AddConstantNode(const std::string& sIdentifier, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddConstVecNode - Add a ConstVecNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IConstVecNode* AddConstVecNode(const std::string& sIdentifier, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddConstMatNode - Add a ConstMatNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IConstMatNode* AddConstMatNode(const std::string& sIdentifier, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddMeshNode - Add a MeshNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IMeshNode* AddMeshNode(const std::string& sIdentifier, - const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::AddUnsignedMeshNode - Add a UnsignedMeshNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IUnsignedMeshNode * AddUnsignedMeshNode(const std::string & sIdentifier, - const std::string & sDisplayName, - const std::string & sTag) override; - - /** - * IImplicitFunction::AddFunctionCallNode - Add a FunctionCallNode - * @param[in] sIdentifier - the identifier of the node - * @param[in] sDisplayName - the display name of the node - * @param[in] sTag - the tag of the node - * @return the added node - */ - IFunctionCallNode* AddFunctionCallNode( - const std::string& sIdentifier, const std::string& sDisplayName, - const std::string& sTag) override; - - /** - * IImplicitFunction::GetNodes - Retrieves the nodes - * @return the accessor to the nodes - */ - INodeIterator* GetNodes() override; - - /** - * IImplicitFunction::RemoveNode - Removes a node - * @param[in] pNode - The node to be removed - */ - void RemoveNode(IImplicitNode* pNode) override; - - /** - * IImplicitFunction::AddLink - Add a link - * @param[in] pSource - the source port - * @param[in] pTarget - the target port - */ - void AddLink(IImplicitPort* pSource, - IImplicitPort* pTarget) override; - - /** - * IImplicitFunction::AddLinkByNames - Add a link - * @param[in] sSource - name of the source port in the format - * nodename.portname - * @param[in] sTarget - name of the target port in the format - * nodename.portname - */ - void AddLinkByNames(const std::string& sSource, - const std::string& sTarget) override; - - /** - * IImplicitFunction::Clear - Clears the function - */ - void Clear() override; - - /** - * IImplicitFunction::SortNodesTopologically - Sorts the nodes - * topologically - */ - void SortNodesTopologically() override; - }; - - } // namespace Impl -} // namespace Lib3MF + + +namespace Lib3MF { +namespace Impl { + + +/************************************************************************************************************************* + Class declaration of CImplicitFunction +**************************************************************************************************************************/ + +class CImplicitFunction : public virtual IImplicitFunction, public virtual CFunction { +private: + + /** + * Put private members here. + */ + +protected: + + /** + * Put protected members here. + */ + +public: + + /** + * Put additional public members here. They will not be visible in the external API. + */ + + + /** + * Public member functions to implement. + */ + + std::string GetIdentifier() override; + + void SetIdentifier(const std::string & sIdentifier) override; + + IImplicitNode * AddNode(const Lib3MF::eImplicitNodeType eNodeType, const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + ISinNode * AddSinNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + ICosNode * AddCosNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + ITanNode * AddTanNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IArcSinNode * AddArcSinNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IArcCosNode * AddArcCosNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IArcTan2Node * AddArcTan2Node(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + ISinhNode * AddSinhNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + ICoshNode * AddCoshNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + ITanhNode * AddTanhNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IRoundNode * AddRoundNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + ICeilNode * AddCeilNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IFloorNode * AddFloorNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + ISignNode * AddSignNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IFractNode * AddFractNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IAbsNode * AddAbsNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IExpNode * AddExpNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + ILogNode * AddLogNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + ILog2Node * AddLog2Node(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + ILog10Node * AddLog10Node(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + ILengthNode * AddLengthNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + ITransposeNode * AddTransposeNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IInverseNode * AddInverseNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + ISqrtNode * AddSqrtNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IResourceIdNode * AddResourceIdNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + IAdditionNode * AddAdditionNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + ISubtractionNode * AddSubtractionNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IMultiplicationNode * AddMultiplicationNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IDivisionNode * AddDivisionNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IDotNode * AddDotNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + ICrossNode * AddCrossNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + IMatVecMultiplicationNode * AddMatVecMultiplicationNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + IMinNode * AddMinNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IMaxNode * AddMaxNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IFmodNode * AddFmodNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IPowNode * AddPowNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + ISelectNode * AddSelectNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IClampNode * AddClampNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) override; + + IComposeVectorNode * AddComposeVectorNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + IVectorFromScalarNode * AddVectorFromScalarNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + IDecomposeVectorNode * AddDecomposeVectorNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + IComposeMatrixNode * AddComposeMatrixNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + IMatrixFromRowsNode * AddMatrixFromRowsNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + IMatrixFromColumnsNode * AddMatrixFromColumnsNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + IConstantNode * AddConstantNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + IConstVecNode * AddConstVecNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + IConstMatNode * AddConstMatNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + IMeshNode * AddMeshNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + IUnsignedMeshNode * AddUnsignedMeshNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + IFunctionCallNode * AddFunctionCallNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) override; + + INodeIterator * GetNodes() override; + + void RemoveNode(IImplicitNode* pNode) override; + + void AddLink(IImplicitPort* pSource, IImplicitPort* pTarget) override; + + void AddLinkByNames(const std::string & sSource, const std::string & sTarget) override; + + void Clear() override; + + void SortNodesTopologically() override; + +}; + +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) #endif -#endif // __LIB3MF_IMPLICITFUNCTION +#endif // __LIB3MF_IMPLICITFUNCTION diff --git a/Include/API/lib3mf_implicitnode.hpp b/Include/API/lib3mf_implicitnode.hpp index 10b733bb..46024f0f 100644 --- a/Include/API/lib3mf_implicitnode.hpp +++ b/Include/API/lib3mf_implicitnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -28,6 +28,7 @@ Abstract: This is the class declaration of CImplicitNode */ + #ifndef __LIB3MF_IMPLICITNODE #define __LIB3MF_IMPLICITNODE @@ -41,130 +42,71 @@ Abstract: This is the class declaration of CImplicitNode #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelImplicitNode.h" - -namespace Lib3MF -{ - namespace Impl - { - - /************************************************************************************************************************* - Class declaration of CImplicitNode - **************************************************************************************************************************/ - - class CImplicitNode : public virtual IImplicitNode, public virtual CBase - { - private: - - - protected: - /** - * Put protected members here. - */ - NMR::PModelImplicitNode m_pImplicitNode; - - IImplicitPort * FindInputOrThrow(const std::string & sIdentifier); - IImplicitPort * FindOutputOrThrow(const std::string & sIdentifier); - public: - - CImplicitNode() = default; - explicit CImplicitNode(NMR::PModelImplicitNode pImplicitNode); - - /** - * Public member functions to implement. - */ - - /** - * IImplicitNode::GetIdentifier - Retrieves the identifier of the node - * @return the identifier - */ - std::string GetIdentifier() override; - - /** - * IImplicitNode::SetIdentifier - Sets the identifier of the node - * @param[in] sIdentifier - the identifier - */ - void SetIdentifier(const std::string & sIdentifier) override; - - /** - * IImplicitNode::GetDisplayName - Retrieves the display name of the node - * @return the display name - */ - std::string GetDisplayName() override; - - /** - * IImplicitNode::SetDisplayName - Sets the display name of the node - * @param[in] sDisplayName - the display name - */ - void SetDisplayName(const std::string & sDisplayName) override; - - /** - * IImplicitNode::GetTag - Retrieves the tag of the node - * @return the tag - */ - std::string GetTag() override; - - /** - * IImplicitNode::SetTag - Sets the tag of the node - * @param[in] sTag - the tag - */ - void SetTag(const std::string& sTag) override; - - Lib3MF::eImplicitNodeType GetNodeType() override; - - /** - * IImplicitNode::AddInput - Add an input - * @param[in] sIdentifier - the identifier of the input - * @param[in] sDisplayName - the display name of the input - * @return - */ - IImplicitPort * AddInput(const std::string & sIdentifier, - const std::string & sDisplayName) override; - - /** - * IImplicitNode::GetInputs - Retrieves the inputs - * @return the accessor to the inputs - */ - IImplicitPortIterator * GetInputs() override; - - /** - * IImplicitNode::AddOutput - Add an output - * @param[in] sIdentifier - the identifier of the output - * @param[in] sDisplayName - the display name of the output - * @return - */ - IImplicitPort * AddOutput(const std::string & sIdentifier, - const std::string & sDisplayName) override; - - /** - * IImplicitNode::GetOutputs - Retrieves the outputs - * @return the accessor to the outputs - */ - IImplicitPortIterator * GetOutputs() override; - - /** - * IImplicitNode::FindInput - Retrieves an input - * @param[in] sIdentifier - the identifier of the input - * @return the input port - */ - IImplicitPort * FindInput(const std::string & sIdentifier) override; - - /** - * IImplicitNode::FindOutput - Retrieves an output - * @param[in] sIdentifier - the identifier of the output - * @return the output port - */ - IImplicitPort * FindOutput(const std::string & sIdentifier) override; - - /** - * IImplicitNode::AreTypesValid - Checks if the types of the input - * and output ports are valid for the node type - * @return true, if the types are valid - */ - bool AreTypesValid() override; - }; - - } // namespace Impl + + +namespace Lib3MF { +namespace Impl { + + +/************************************************************************************************************************* + Class declaration of CImplicitNode +**************************************************************************************************************************/ + +class CImplicitNode : public virtual IImplicitNode, public virtual CBase { +private: + + /** + * Put private members here. + */ + +protected: + + /** + * Put protected members here. + */ + +public: + + /** + * Put additional public members here. They will not be visible in the external API. + */ + + + /** + * Public member functions to implement. + */ + + std::string GetIdentifier() override; + + void SetIdentifier(const std::string & sIdentifier) override; + + std::string GetDisplayName() override; + + void SetDisplayName(const std::string & sDisplayName) override; + + std::string GetTag() override; + + void SetTag(const std::string & sTag) override; + + Lib3MF::eImplicitNodeType GetNodeType() override; + + IImplicitPort * AddInput(const std::string & sIdentifier, const std::string & sDisplayName) override; + + IImplicitPortIterator * GetInputs() override; + + IImplicitPort * AddOutput(const std::string & sIdentifier, const std::string & sDisplayName) override; + + IImplicitPortIterator * GetOutputs() override; + + IImplicitPort * FindInput(const std::string & sIdentifier) override; + + IImplicitPort * FindOutput(const std::string & sIdentifier) override; + + bool AreTypesValid() override; + +}; + +} // namespace Impl } // namespace Lib3MF #ifdef _MSC_VER diff --git a/Include/API/lib3mf_implicitport.hpp b/Include/API/lib3mf_implicitport.hpp index 28a1aaee..a1481291 100644 --- a/Include/API/lib3mf_implicitport.hpp +++ b/Include/API/lib3mf_implicitport.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -28,6 +28,7 @@ Abstract: This is the class declaration of CImplicitPort */ + #ifndef __LIB3MF_IMPLICITPORT #define __LIB3MF_IMPLICITPORT @@ -41,94 +42,59 @@ Abstract: This is the class declaration of CImplicitPort #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelImplicitPort.h" - -namespace Lib3MF -{ - namespace Impl - { - - /************************************************************************************************************************* - Class declaration of CImplicitPort - **************************************************************************************************************************/ - - class CImplicitPort : public virtual IImplicitPort, public virtual CBase - { - private: - /** - * Put private members here. - */ - NMR::PModelImplicitPort m_pImplicitPort; - - protected: - /** - * Put protected members here. - */ - - public: - CImplicitPort(NMR::PModelImplicitPort pImplicitPort); - /** - * Put additional public members here. They will not be visible in the external API. - */ - - /** - * Public member functions to implement. - */ - - /** - * IImplicitPort::GetIdentifier - Retrieves the identifier of the port - * @return the identifier - */ - std::string GetIdentifier() override; - - /** - * IImplicitPort::SetIdentifier - Sets the identifier of the port - * @param[in] sIdentifier - the identifier - */ - void SetIdentifier(const std::string & sIdentifier) override; - - /** - * IImplicitPort::GetDisplayName - Retrieves the display name of the port - * @return the display name - */ - std::string GetDisplayName() override; - - /** - * IImplicitPort::SetDisplayName - Sets the display name of the port - * @param[in] sDisplayName - the display name - */ - void SetDisplayName(const std::string & sDisplayName) override; - - /** - * IImplicitPort::SetType - Sets the type of the port - * @param[in] eImplicitPortType - the type - */ - void SetType(const Lib3MF::eImplicitPortType eImplicitPortType) override; - - /** - * IImplicitPort::GetType - Retrieves the type of the port - * @return the type - */ - Lib3MF::eImplicitPortType GetType() override; - - /** - * IImplicitPort::GetReference - Retrieves the reference of the port, only used for - * input ports - * @return the reference - */ - std::string GetReference() override; - - /** - * IImplicitPort::SetReference - Sets the reference of the port, only used for input - * ports - * @param[in] sReference - the reference - */ - void SetReference(const std::string & sReference) override; - - NMR::PModelImplicitPort getPort(); - }; - - } // namespace Impl + + +namespace Lib3MF { +namespace Impl { + + +/************************************************************************************************************************* + Class declaration of CImplicitPort +**************************************************************************************************************************/ + +class CImplicitPort : public virtual IImplicitPort, public virtual CBase { +private: + + /** + * Put private members here. + */ + +protected: + + /** + * Put protected members here. + */ + +public: + + /** + * Put additional public members here. They will not be visible in the external API. + */ + + + /** + * Public member functions to implement. + */ + + std::string GetIdentifier() override; + + void SetIdentifier(const std::string & sIdentifier) override; + + std::string GetDisplayName() override; + + void SetDisplayName(const std::string & sDisplayName) override; + + void SetType(const Lib3MF::eImplicitPortType eImplicitPortType) override; + + Lib3MF::eImplicitPortType GetType() override; + + std::string GetReference() override; + + void SetReference(const std::string & sReference) override; + +}; + +} // namespace Impl } // namespace Lib3MF #ifdef _MSC_VER diff --git a/Include/API/lib3mf_implicitportiterator.hpp b/Include/API/lib3mf_implicitportiterator.hpp index b0e6d169..369125fc 100644 --- a/Include/API/lib3mf_implicitportiterator.hpp +++ b/Include/API/lib3mf_implicitportiterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,7 +42,7 @@ Abstract: This is the class declaration of CImplicitPortIterator #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelImplicitNode.h" + namespace Lib3MF { namespace Impl { @@ -58,7 +58,7 @@ class CImplicitPortIterator : public virtual IImplicitPortIterator, public virtu /** * Put private members here. */ - NMR::PPorts m_pPorts; + protected: /** @@ -66,7 +66,7 @@ class CImplicitPortIterator : public virtual IImplicitPortIterator, public virtu */ public: - CImplicitPortIterator(NMR::PPorts pPorts); + /** * Put additional public members here. They will not be visible in the external API. */ @@ -76,14 +76,8 @@ class CImplicitPortIterator : public virtual IImplicitPortIterator, public virtu * Public member functions to implement. */ - /** - * IImplicitPortIterator::GetCurrent - Returns the current element - * @return The current element - */ IImplicitPort * GetCurrent() override; - Lib3MF_uint64 Count() override; - }; } // namespace Impl diff --git a/Include/API/lib3mf_inversenode.hpp b/Include/API/lib3mf_inversenode.hpp index a013fd15..fa68375a 100644 --- a/Include/API/lib3mf_inversenode.hpp +++ b/Include/API/lib3mf_inversenode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CInverseNode : public virtual IInverseNode, public virtual COneInputNode { */ public: - CInverseNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_iterator.hpp b/Include/API/lib3mf_iterator.hpp index fb72702c..3c0a1348 100644 --- a/Include/API/lib3mf_iterator.hpp +++ b/Include/API/lib3mf_iterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -58,14 +58,13 @@ class CIterator : public virtual IIterator, public virtual CBase { /** * Put private members here. */ - Lib3MF_int64 m_nCurrentIndex = -1; + protected: /** * Put protected members here. */ - Lib3MF_int64 getCurrentIndex(); - void throwIfInvalidIndex(); + public: /** @@ -77,22 +76,10 @@ class CIterator : public virtual IIterator, public virtual CBase { * Public member functions to implement. */ - /** - * IIterator::MoveNext - Iterates to the next item in the list. - * @return Iterates to the next item in the list. - */ bool MoveNext() override; - /** - * IIterator::MovePrevious - Iterates to the previous item in the list. - * @return Iterates to the previous item in the list. - */ bool MovePrevious() override; - /** - * IIterator::Count - Returns the number of items the iterator captures. - * @return returns the number of items the iterator captures. - */ Lib3MF_uint64 Count() override; }; diff --git a/Include/API/lib3mf_keystore.hpp b/Include/API/lib3mf_keystore.hpp index 78e48df3..94a37c92 100644 --- a/Include/API/lib3mf_keystore.hpp +++ b/Include/API/lib3mf_keystore.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,6 +33,8 @@ Abstract: This is the class declaration of CKeyStore #define __LIB3MF_KEYSTORE #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) @@ -40,86 +42,80 @@ Abstract: This is the class declaration of CKeyStore #endif // Include custom headers here. -#include "Model/Classes/NMR_KeyStore.h" -#include "Model/Classes/NMR_Model.h" + + namespace Lib3MF { - namespace Impl { +namespace Impl { + +/************************************************************************************************************************* + Class declaration of CKeyStore +**************************************************************************************************************************/ - /************************************************************************************************************************* - Class declaration of CKeyStore - **************************************************************************************************************************/ +class CKeyStore : public virtual IKeyStore, public virtual CBase { +private: - class CKeyStore : public virtual IKeyStore, public virtual CBase { - private: + /** + * Put private members here. + */ - /** - * Put private members here. - */ - NMR::PKeyStore m_pKeyStore; - NMR::PModel m_pModel; - protected: +protected: - /** - * Put protected members here. - */ + /** + * Put protected members here. + */ - public: +public: - /** - * Put additional public members here. They will not be visible in the external API. - */ - CKeyStore(NMR::PModel const & pModel); - - /** - * Public member functions to implement. - */ + /** + * Put additional public members here. They will not be visible in the external API. + */ - // Inherited via IKeyStore - IConsumer * AddConsumer(const std::string & sConsumerID, const std::string & sKeyID, const std::string & sKeyValue) override; + /** + * Public member functions to implement. + */ - Lib3MF_uint64 GetConsumerCount() override; + IConsumer * AddConsumer(const std::string & sConsumerID, const std::string & sKeyID, const std::string & sKeyValue) override; - IConsumer * GetConsumer(const Lib3MF_uint64 nConsumerIndex) override; + Lib3MF_uint64 GetConsumerCount() override; - IConsumer * FindConsumer(const std::string & sConsumerID) override; + IConsumer * GetConsumer(const Lib3MF_uint64 nConsumerIndex) override; - virtual void RemoveConsumer(IConsumer * pConsumerInstance) override; + void RemoveConsumer(IConsumer* pConsumer) override; - std::string GetUUID(bool & bHasUUID) override; - - void SetUUID(const std::string & sUUID) override; + IConsumer * FindConsumer(const std::string & sConsumerID) override; - virtual Lib3MF_uint64 GetResourceDataGroupCount() override; + Lib3MF_uint64 GetResourceDataGroupCount() override; - IResourceDataGroup * GetResourceDataGroup(const Lib3MF_uint64 nResourceDataIndex) override; + IResourceDataGroup * AddResourceDataGroup() override; - IResourceDataGroup * AddResourceDataGroup() override; + IResourceDataGroup * GetResourceDataGroup(const Lib3MF_uint64 nResourceDataIndex) override; - void RemoveResourceDataGroup(IResourceDataGroup * pTheResourceDataGroup) override; + void RemoveResourceDataGroup(IResourceDataGroup* pResourceDataGroup) override; - Lib3MF::Impl::IResourceDataGroup * FindResourceDataGroup(Lib3MF::Impl::IPackagePart *pPartPath) override; + IResourceDataGroup * FindResourceDataGroup(IPackagePart* pPartPath) override; - IResourceData * AddResourceData( - IResourceDataGroup * pResourceDataGroup, - IPackagePart * pPartPath, - const Lib3MF::eEncryptionAlgorithm eAlgorithm, - const Lib3MF::eCompression eCompression, - const Lib3MF_uint64 nAdditionalAuthenticationDataBufferSize, - const Lib3MF_uint8 * pAdditionalAuthenticationDataBuffer) override; + IResourceData * AddResourceData(IResourceDataGroup* pResourceDataGroup, IPackagePart* pPartPath, const Lib3MF::eEncryptionAlgorithm eAlgorithm, const Lib3MF::eCompression eCompression, const Lib3MF_uint64 nAdditionalAuthenticationDataBufferSize, const Lib3MF_uint8 * pAdditionalAuthenticationDataBuffer) override; - void RemoveResourceData(Lib3MF::Impl::IResourceData *pResourceData) override; + void RemoveResourceData(IResourceData* pResourceData) override; - Lib3MF_uint64 GetResourceDataCount() override; + IResourceData * FindResourceData(IPackagePart* pResourcePath) override; - Lib3MF::Impl::IResourceData * GetResourceData(const Lib3MF_uint64 nResourceDataIndex) override; + Lib3MF_uint64 GetResourceDataCount() override; - IResourceData * FindResourceData(IPackagePart * pResourcePath) override; + IResourceData * GetResourceData(const Lib3MF_uint64 nResourceDataIndex) override; - }; + std::string GetUUID(bool & bHasUUID) override; - } // namespace Impl + void SetUUID(const std::string & sUUID) override; + +}; + +} // namespace Impl } // namespace Lib3MF -#endif // __LIB3MF_KEYSTORE \ No newline at end of file +#ifdef _MSC_VER +#pragma warning(pop) +#endif +#endif // __LIB3MF_KEYSTORE diff --git a/Include/API/lib3mf_lengthnode.hpp b/Include/API/lib3mf_lengthnode.hpp index 912c6f26..32b7384d 100644 --- a/Include/API/lib3mf_lengthnode.hpp +++ b/Include/API/lib3mf_lengthnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CLengthNode : public virtual ILengthNode, public virtual COneInputNode { */ public: - CLengthNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_levelset.hpp b/Include/API/lib3mf_levelset.hpp index be1c11e4..650b8ec1 100644 --- a/Include/API/lib3mf_levelset.hpp +++ b/Include/API/lib3mf_levelset.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,8 +29,8 @@ Abstract: This is the class declaration of CLevelSet */ -#ifndef __LIB3MF_BOUNDARYSHAPE -#define __LIB3MF_BOUNDARYSHAPE +#ifndef __LIB3MF_LEVELSET +#define __LIB3MF_LEVELSET #include "lib3mf_interfaces.hpp" @@ -42,7 +42,7 @@ Abstract: This is the class declaration of CLevelSet #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelLevelSetObject.h" + namespace Lib3MF { namespace Impl { @@ -58,7 +58,7 @@ class CLevelSet : public virtual ILevelSet, public virtual CObject { /** * Put private members here. */ - NMR::PModelLevelSetObject levelSetObject(); + protected: /** @@ -66,123 +66,48 @@ class CLevelSet : public virtual ILevelSet, public virtual CObject { */ public: + /** * Put additional public members here. They will not be visible in the external API. */ - CLevelSet() = delete; - - CLevelSet(NMR::PModelResource pResource); - /** * Public member functions to implement. */ - static ILevelSet* fnCreateLevelSetFromModelResource( - NMR::PModelResource pResource, bool bFailIfUnkownClass); - /** - * ILevelSet::GetFunction - Returns the function that is used as boundary shape. - * @return the function to use as boundary shape - */ IFunction * GetFunction() override; - /** - * ILevelSet::SetFunction - Sets the function to use as boundary shape. - * @param[in] pTheFunction - the function to use as boundary shape - */ void SetFunction(IFunction* pTheFunction) override; - /** - * ILevelSet::GetTransform - Returns the transformation matrix into the coordinate system of the referenced Function. - * @return the transformation matrix - */ Lib3MF::sTransform GetTransform() override; - /** - * ILevelSet::SetTransform - Sets the transformation matrix into the coordinate system of the referenced Function. - * @param[in] Transform - new transformation matrix - */ void SetTransform(const Lib3MF::sTransform Transform) override; - /** - * ILevelSet::GetChannelName - Returns the name of the function output channel to use. - * @return the name of the function output channel - */ std::string GetChannelName() override; - /** - * ILevelSet::SetChannelName - Sets the name of the function output channel to use. - * @param[in] sChannelName - new name of the function output channel - */ void SetChannelName(const std::string & sChannelName) override; - /** - * ILevelSet::SetMinFeatureSize - Sets the minimal feature size as a hint for the function evaluator - * @param[in] dMinFeatureSize - minimal feature size - */ void SetMinFeatureSize(const Lib3MF_double dMinFeatureSize) override; - /** - * ILevelSet::GetMinFeatureSize - Returns the minimal feature size as a hint for the function evaluator - * @return minimal feature size - */ Lib3MF_double GetMinFeatureSize() override; - /** - * ILevelSet::SetFallBackValue - Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). - * @param[in] dFallBackValue - fallback value - */ void SetFallBackValue(const Lib3MF_double dFallBackValue) override; - /** - * ILevelSet::GetFallBackValue - Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). - * @return fallback value - */ Lib3MF_double GetFallBackValue() override; - /** - * ILevelSet::SetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary - * @param[in] bMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary - */ void SetMeshBBoxOnly(const bool bMeshBBoxOnly) override; - /** - * ILevelSet::GetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary - * @return If set only the bounding box of the mesh is intersected with the boundary - */ bool GetMeshBBoxOnly() override; - /** - * ILevelSet::SetMesh - Sets the mesh to use as evaluation domain - * @param[in] pTheMesh - The mesh - */ void SetMesh(IMeshObject* pTheMesh) override; - /** - * ILevelSet::GetMesh - Returns the mesh that is used as evaluation domain - * @return The mesh - */ IMeshObject * GetMesh() override; - - /** - * ILevelSet::GetVolumeData - Retrieves the VolumeData this MeshObject. - * @return the VolumeData of this MeshObject - */ IVolumeData * GetVolumeData() override; - /** - * ILevelSet::SetVolumeData - Sets the VolumeData of this LevelSet. - * @param[in] pTheVolumeData - the VolumeData of this MeshObject - */ void SetVolumeData(IVolumeData* pTheVolumeData) override; - bool IsMeshObject() override; - - bool IsComponentsObject() override; - - bool IsLevelSetObject() override; }; } // namespace Impl @@ -191,4 +116,4 @@ class CLevelSet : public virtual ILevelSet, public virtual CObject { #ifdef _MSC_VER #pragma warning(pop) #endif -#endif // __LIB3MF_BOUNDARYSHAPE +#endif // __LIB3MF_LEVELSET diff --git a/Include/API/lib3mf_levelsetiterator.hpp b/Include/API/lib3mf_levelsetiterator.hpp index 1684a132..a48588d7 100644 --- a/Include/API/lib3mf_levelsetiterator.hpp +++ b/Include/API/lib3mf_levelsetiterator.hpp @@ -29,8 +29,8 @@ Abstract: This is the class declaration of CLevelSetIterator */ -#ifndef __LIB3MF_BOUNDARYSHAPEITERATOR -#define __LIB3MF_BOUNDARYSHAPEITERATOR +#ifndef __LIB3MF_LEVELSETITERATOR +#define __LIB3MF_LEVELSETITERATOR #include "lib3mf_interfaces.hpp" @@ -76,10 +76,6 @@ class CLevelSetIterator : public virtual ILevelSetIterator, public virtual CReso * Public member functions to implement. */ - /** - * ILevelSetIterator::GetCurrentLevelSet - Returns the LevelSet the iterator points at. - * @return returns the MeshObject instance. - */ ILevelSet * GetCurrentLevelSet() override; }; @@ -90,4 +86,4 @@ class CLevelSetIterator : public virtual ILevelSetIterator, public virtual CReso #ifdef _MSC_VER #pragma warning(pop) #endif -#endif // __LIB3MF_BOUNDARYSHAPEITERATOR +#endif // __LIB3MF_LEVELSETITERATOR diff --git a/Include/API/lib3mf_log10node.hpp b/Include/API/lib3mf_log10node.hpp index d8429eaa..947efcdf 100644 --- a/Include/API/lib3mf_log10node.hpp +++ b/Include/API/lib3mf_log10node.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CLog10Node : public virtual ILog10Node, public virtual COneInputNode { */ public: - CLog10Node(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_log2node.hpp b/Include/API/lib3mf_log2node.hpp index 71202858..4283ea72 100644 --- a/Include/API/lib3mf_log2node.hpp +++ b/Include/API/lib3mf_log2node.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CLog2Node : public virtual ILog2Node, public virtual COneInputNode { */ public: - CLog2Node(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_lognode.hpp b/Include/API/lib3mf_lognode.hpp index c14eab2b..59cb40fd 100644 --- a/Include/API/lib3mf_lognode.hpp +++ b/Include/API/lib3mf_lognode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CLogNode : public virtual ILogNode, public virtual COneInputNode { */ public: - CLogNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_materialmapping.hpp b/Include/API/lib3mf_materialmapping.hpp index 0bfd6d6e..db691cac 100644 --- a/Include/API/lib3mf_materialmapping.hpp +++ b/Include/API/lib3mf_materialmapping.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. diff --git a/Include/API/lib3mf_matrixfromcolumnsnode.hpp b/Include/API/lib3mf_matrixfromcolumnsnode.hpp index 0fe97004..ecb192b7 100644 --- a/Include/API/lib3mf_matrixfromcolumnsnode.hpp +++ b/Include/API/lib3mf_matrixfromcolumnsnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CMatrixFromColumnsNode : public virtual IMatrixFromColumnsNode, public vir */ public: - CMatrixFromColumnsNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ @@ -76,34 +76,14 @@ class CMatrixFromColumnsNode : public virtual IMatrixFromColumnsNode, public vir * Public member functions to implement. */ - /** - * IMatrixFromColumnsNode::GetInputA - Retrieves the input for the first column - * @return the input for the first column - */ IImplicitPort * GetInputA() override; - /** - * IMatrixFromColumnsNode::GetInputB - Retrieves the input for the second column - * @return the input for the second column - */ IImplicitPort * GetInputB() override; - /** - * IMatrixFromColumnsNode::GetInputC - Retrieves the input for the third column - * @return the input for the third column - */ IImplicitPort * GetInputC() override; - /** - * IMatrixFromColumnsNode::GetInputD - Retrieves the input for the fourth column - * @return the input for the fourth column - */ IImplicitPort * GetInputD() override; - /** - * IMatrixFromColumnsNode::GetOutputResult - Retrieves the output - * @return the output - */ IImplicitPort * GetOutputResult() override; }; diff --git a/Include/API/lib3mf_matrixfromrowsnode.hpp b/Include/API/lib3mf_matrixfromrowsnode.hpp index b02703de..7b2206a3 100644 --- a/Include/API/lib3mf_matrixfromrowsnode.hpp +++ b/Include/API/lib3mf_matrixfromrowsnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CMatrixFromRowsNode : public virtual IMatrixFromRowsNode, public virtual C */ public: - CMatrixFromRowsNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ @@ -76,34 +76,14 @@ class CMatrixFromRowsNode : public virtual IMatrixFromRowsNode, public virtual C * Public member functions to implement. */ - /** - * IMatrixFromRowsNode::GetInputA - Retrieves the input for the first row - * @return the input for the first row - */ IImplicitPort * GetInputA() override; - /** - * IMatrixFromRowsNode::GetInputB - Retrieves the input for the second row - * @return the input for the second row - */ IImplicitPort * GetInputB() override; - /** - * IMatrixFromRowsNode::GetInputC - Retrieves the input for the third row - * @return the input for the third row - */ IImplicitPort * GetInputC() override; - /** - * IMatrixFromRowsNode::GetInputD - Retrieves the input for the fourth row - * @return the input for the fourth row - */ IImplicitPort * GetInputD() override; - /** - * IMatrixFromRowsNode::GetOutputResult - Retrieves the output - * @return the output - */ IImplicitPort * GetOutputResult() override; }; diff --git a/Include/API/lib3mf_matvecmultiplicationnode.hpp b/Include/API/lib3mf_matvecmultiplicationnode.hpp index c534ce43..f37e664e 100644 --- a/Include/API/lib3mf_matvecmultiplicationnode.hpp +++ b/Include/API/lib3mf_matvecmultiplicationnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CMatVecMultiplicationNode : public virtual IMatVecMultiplicationNode, publ */ public: - CMatVecMultiplicationNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_maxnode.hpp b/Include/API/lib3mf_maxnode.hpp index 06969d7c..a8071675 100644 --- a/Include/API/lib3mf_maxnode.hpp +++ b/Include/API/lib3mf_maxnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -28,6 +28,7 @@ Abstract: This is the class declaration of CMaxNode */ + #ifndef __LIB3MF_MAXNODE #define __LIB3MF_MAXNODE @@ -42,43 +43,45 @@ Abstract: This is the class declaration of CMaxNode // Include custom headers here. -namespace Lib3MF -{ - namespace Impl - { - - /************************************************************************************************************************* - Class declaration of CMaxNode - **************************************************************************************************************************/ - - class CMaxNode : public virtual IMaxNode, public virtual CTwoInputNode - { - private: - /** - * Put private members here. - */ - - protected: - /** - * Put protected members here. - */ - - public: - CMaxNode(NMR::PModelImplicitNode pImplicitNode); - /** - * Put additional public members here. They will not be visible in - * the external API. - */ - - /** - * Public member functions to implement. - */ - }; - - } // namespace Impl -} // namespace Lib3MF + +namespace Lib3MF { +namespace Impl { + + +/************************************************************************************************************************* + Class declaration of CMaxNode +**************************************************************************************************************************/ + +class CMaxNode : public virtual IMaxNode, public virtual CTwoInputNode { +private: + + /** + * Put private members here. + */ + +protected: + + /** + * Put protected members here. + */ + +public: + + /** + * Put additional public members here. They will not be visible in the external API. + */ + + + /** + * Public member functions to implement. + */ + +}; + +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) #endif -#endif // __LIB3MF_MAXNODE +#endif // __LIB3MF_MAXNODE diff --git a/Include/API/lib3mf_meshnode.hpp b/Include/API/lib3mf_meshnode.hpp index 6094a144..0bde4ec8 100644 --- a/Include/API/lib3mf_meshnode.hpp +++ b/Include/API/lib3mf_meshnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CMeshNode : public virtual IMeshNode, public virtual CImplicitNode { */ public: - CMeshNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ @@ -76,22 +76,10 @@ class CMeshNode : public virtual IMeshNode, public virtual CImplicitNode { * Public member functions to implement. */ - /** - * IMeshNode::GetInputMesh - Retrieves the input for the model resource id of the mesh - * @return the input port for the model resource id of the mesh - */ IImplicitPort * GetInputMesh() override; - /** - * IMeshNode::GetInputPos - Retrieves the input for the position - * @return the input port for the position - */ IImplicitPort * GetInputPos() override; - /** - * IMeshNode::GetOutputDistance - Retrieves the output - * @return the output port for the signed distance to the mesh - */ IImplicitPort * GetOutputDistance() override; }; diff --git a/Include/API/lib3mf_meshobject.hpp b/Include/API/lib3mf_meshobject.hpp index b5630a2d..5932df78 100644 --- a/Include/API/lib3mf_meshobject.hpp +++ b/Include/API/lib3mf_meshobject.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,12 +42,12 @@ Abstract: This is the class declaration of CMeshObject #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelMeshObject.h" -#include "Common/MeshInformation/NMR_MeshInformation_Properties.h" + namespace Lib3MF { namespace Impl { + /************************************************************************************************************************* Class declaration of CMeshObject **************************************************************************************************************************/ @@ -58,10 +58,6 @@ class CMeshObject : public virtual IMeshObject, public virtual CObject { /** * Put private members here. */ - NMR::PModelMeshObject meshObject(); - NMR::CMesh* mesh(); - - NMR::CMeshInformation_Properties* getMeshInformationProperties(); protected: @@ -70,72 +66,64 @@ class CMeshObject : public virtual IMeshObject, public virtual CObject { */ public: - static IMeshObject* fnCreateMeshObjectFromModelResource(NMR::PModelResource pResource, bool bFailIfUnkownClass); /** * Put additional public members here. They will not be visible in the external API. */ - CMeshObject(NMR::PModelResource pResource); + /** * Public member functions to implement. */ - Lib3MF_uint32 GetVertexCount (); - - Lib3MF_uint32 GetTriangleCount (); + Lib3MF_uint32 GetVertexCount() override; - void SetVertex (const Lib3MF_uint32 nIndex, const sLib3MFPosition Coordinates); + Lib3MF_uint32 GetTriangleCount() override; - sLib3MFPosition GetVertex(const Lib3MF_uint32 nIndex); + Lib3MF::sPosition GetVertex(const Lib3MF_uint32 nIndex) override; - Lib3MF_uint32 AddVertex (const sLib3MFPosition Coordinates); + void SetVertex(const Lib3MF_uint32 nIndex, const Lib3MF::sPosition Coordinates) override; - virtual void GetVertices(Lib3MF_uint64 nVerticesBufferSize, Lib3MF_uint64* pVerticesNeededCount, sLib3MFPosition * pVerticesBuffer); + Lib3MF_uint32 AddVertex(const Lib3MF::sPosition Coordinates) override; - sLib3MFTriangle GetTriangle (const Lib3MF_uint32 nIndex); + void GetVertices(Lib3MF_uint64 nVerticesBufferSize, Lib3MF_uint64* pVerticesNeededCount, Lib3MF::sPosition * pVerticesBuffer) override; - void SetTriangle (const Lib3MF_uint32 nIndex, const sLib3MFTriangle Indices); + Lib3MF::sTriangle GetTriangle(const Lib3MF_uint32 nIndex) override; - Lib3MF_uint32 AddTriangle (const sLib3MFTriangle Indices); + void SetTriangle(const Lib3MF_uint32 nIndex, const Lib3MF::sTriangle Indices) override; - void GetTriangleIndices (Lib3MF_uint64 nIndicesBufferSize, Lib3MF_uint64* pIndicesNeededCount, sLib3MFTriangle * pIndicesBuffer); + Lib3MF_uint32 AddTriangle(const Lib3MF::sTriangle Indices) override; - void SetGeometry(const Lib3MF_uint64 nVerticesBufferSize, const sLib3MFPosition * pVerticesBuffer, const Lib3MF_uint64 nIndicesBufferSize, const sLib3MFTriangle * pIndicesBuffer); + void GetTriangleIndices(Lib3MF_uint64 nIndicesBufferSize, Lib3MF_uint64* pIndicesNeededCount, Lib3MF::sTriangle * pIndicesBuffer) override; - bool IsManifoldAndOriented(); + void SetObjectLevelProperty(const Lib3MF_uint32 nUniqueResourceID, const Lib3MF_uint32 nPropertyID) override; - bool IsMeshObject(); + bool GetObjectLevelProperty(Lib3MF_uint32 & nUniqueResourceID, Lib3MF_uint32 & nPropertyID) override; - bool IsComponentsObject(); + void SetTriangleProperties(const Lib3MF_uint32 nIndex, const Lib3MF::sTriangleProperties Properties) override; - bool IsLevelSetObject() override; + void GetTriangleProperties(const Lib3MF_uint32 nIndex, Lib3MF::sTriangleProperties & sProperty) override; - bool IsValid(); + void SetAllTriangleProperties(const Lib3MF_uint64 nPropertiesArrayBufferSize, const Lib3MF::sTriangleProperties * pPropertiesArrayBuffer) override; - virtual IBeamLattice * BeamLattice(); + void GetAllTriangleProperties(Lib3MF_uint64 nPropertiesArrayBufferSize, Lib3MF_uint64* pPropertiesArrayNeededCount, Lib3MF::sTriangleProperties * pPropertiesArrayBuffer) override; - void SetObjectLevelProperty(const Lib3MF_uint32 nUniqueResourceID, const Lib3MF_uint32 nPropertyID); + void ClearAllProperties() override; - bool GetObjectLevelProperty(Lib3MF_uint32 & nUniqueResourceID, Lib3MF_uint32 & nPropertyID); + void SetGeometry(const Lib3MF_uint64 nVerticesBufferSize, const Lib3MF::sPosition * pVerticesBuffer, const Lib3MF_uint64 nIndicesBufferSize, const Lib3MF::sTriangle * pIndicesBuffer) override; - void SetTriangleProperties(const Lib3MF_uint32 nIndex, const sLib3MFTriangleProperties Properties); + bool IsManifoldAndOriented() override; - void GetTriangleProperties(const Lib3MF_uint32 nIndex, sLib3MFTriangleProperties & sProperty); - - void SetAllTriangleProperties(const Lib3MF_uint64 nPropertiesArrayBufferSize, const sLib3MFTriangleProperties * pPropertiesArrayBuffer); - - void GetAllTriangleProperties(Lib3MF_uint64 nPropertiesArrayBufferSize, Lib3MF_uint64* pPropertiesArrayNeededCount, sLib3MFTriangleProperties * pPropertiesArrayBuffer); - - void ClearAllProperties(); + IBeamLattice * BeamLattice() override; IVolumeData * GetVolumeData() override; void SetVolumeData(IVolumeData* pTheVolumeData) override; + }; -} -} +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) diff --git a/Include/API/lib3mf_meshobjectiterator.hpp b/Include/API/lib3mf_meshobjectiterator.hpp index 766f33a9..cf01fa30 100644 --- a/Include/API/lib3mf_meshobjectiterator.hpp +++ b/Include/API/lib3mf_meshobjectiterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. diff --git a/Include/API/lib3mf_metadata.hpp b/Include/API/lib3mf_metadata.hpp index db7d2de4..4f18517f 100644 --- a/Include/API/lib3mf_metadata.hpp +++ b/Include/API/lib3mf_metadata.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,14 +33,14 @@ Abstract: This is the class declaration of CMetaData #define __LIB3MF_METADATA #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif -#include "Model/Classes/NMR_ModelMetaData.h" - // Include custom headers here. @@ -58,7 +58,6 @@ class CMetaData : public virtual IMetaData, public virtual CBase { /** * Put private members here. */ - NMR::PModelMetaData m_pMetaData; protected: @@ -71,38 +70,38 @@ class CMetaData : public virtual IMetaData, public virtual CBase { /** * Put additional public members here. They will not be visible in the external API. */ - CMetaData(NMR::PModelMetaData pMetaData); + /** * Public member functions to implement. */ - std::string GetNameSpace (); + std::string GetNameSpace() override; - void SetNameSpace (const std::string & sNameSpace); + void SetNameSpace(const std::string & sNameSpace) override; - std::string GetName (); + std::string GetName() override; - std::string GetKey(); + void SetName(const std::string & sName) override; - void SetName (const std::string & sName); + std::string GetKey() override; - bool GetMustPreserve (); + bool GetMustPreserve() override; - void SetMustPreserve (const bool bMustPreserve); + void SetMustPreserve(const bool bMustPreserve) override; - std::string GetType (); + std::string GetType() override; - void SetType (const std::string & sType); + void SetType(const std::string & sType) override; - std::string GetValue (); + std::string GetValue() override; - void SetValue (const std::string & sValue); + void SetValue(const std::string & sValue) override; }; -} -} +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) diff --git a/Include/API/lib3mf_metadatagroup.hpp b/Include/API/lib3mf_metadatagroup.hpp index 76fc36b0..22abb857 100644 --- a/Include/API/lib3mf_metadatagroup.hpp +++ b/Include/API/lib3mf_metadatagroup.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,14 +33,14 @@ Abstract: This is the class declaration of CMetaDataGroup #define __LIB3MF_METADATAGROUP #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif -#include "Model/Classes/NMR_ModelMetaDataGroup.h" - // Include custom headers here. @@ -58,7 +58,6 @@ class CMetaDataGroup : public virtual IMetaDataGroup, public virtual CBase { /** * Put private members here. */ - NMR::PModelMetaDataGroup m_pModelMetaDataGroup; protected: @@ -71,29 +70,28 @@ class CMetaDataGroup : public virtual IMetaDataGroup, public virtual CBase { /** * Put additional public members here. They will not be visible in the external API. */ - CMetaDataGroup(NMR::PModelMetaDataGroup pMetaDataGroup); + /** * Public member functions to implement. */ - virtual Lib3MF_uint32 GetMetaDataCount(); - - IMetaData * GetMetaData(const Lib3MF_uint32 nIndex); + Lib3MF_uint32 GetMetaDataCount() override; - IMetaData * GetMetaDataByKey(const std::string & sNameSpace, const std::string & sName); + IMetaData * GetMetaData(const Lib3MF_uint32 nIndex) override; - void RemoveMetaDataByIndex(const Lib3MF_uint32 nIndex); + IMetaData * GetMetaDataByKey(const std::string & sNameSpace, const std::string & sName) override; - void RemoveMetaData(IMetaData* pTheMetaData); + void RemoveMetaDataByIndex(const Lib3MF_uint32 nIndex) override; - IMetaData * AddMetaData(const std::string & sNameSpace, const std::string & sName, const std::string & sValue, const std::string & sType, const bool bMustPreserve); + void RemoveMetaData(IMetaData* pTheMetaData) override; + IMetaData * AddMetaData(const std::string & sNameSpace, const std::string & sName, const std::string & sValue, const std::string & sType, const bool bMustPreserve) override; }; -} -} +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) diff --git a/Include/API/lib3mf_minnode.hpp b/Include/API/lib3mf_minnode.hpp index 47cdb5e4..c55a8cae 100644 --- a/Include/API/lib3mf_minnode.hpp +++ b/Include/API/lib3mf_minnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CMinNode : public virtual IMinNode, public virtual CTwoInputNode { */ public: - CMinNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_model.hpp b/Include/API/lib3mf_model.hpp index 6326c122..263e89db 100644 --- a/Include/API/lib3mf_model.hpp +++ b/Include/API/lib3mf_model.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,17 +33,16 @@ Abstract: This is the class declaration of CModel #define __LIB3MF_MODEL #include "lib3mf_interfaces.hpp" -#include "lib3mf_base.hpp" +// Parent classes +#include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif - // Include custom headers here. -#include "Model/Classes/NMR_Model.h" -#include "Model/Classes/NMR_KeyStore.h" + namespace Lib3MF { namespace Impl { @@ -56,9 +55,9 @@ namespace Impl { class CModel : public virtual IModel, public virtual CBase { private: - NMR::PModel m_model; - - void mergeModel(NMR::CModel & sourceModel, NMR::CModel & targetModel); + /** + * Put private members here. + */ protected: @@ -71,11 +70,7 @@ class CModel : public virtual IModel, public virtual CBase { /** * Put additional public members here. They will not be visible in the external API. */ - CModel(); - NMR::CModel& model(); - - static IResource* createIResourceFromModelResource(NMR::PModelResource pResource, bool bFailIfUnkownClass); /** * Public member functions to implement. @@ -85,9 +80,9 @@ class CModel : public virtual IModel, public virtual CBase { IPackagePart * FindOrCreatePackagePart(const std::string & sAbsolutePath) override; - void SetUnit (const eLib3MFModelUnit eUnit) override; + void SetUnit(const Lib3MF::eModelUnit eUnit) override; - eLib3MFModelUnit GetUnit() override; + Lib3MF::eModelUnit GetUnit() override; std::string GetLanguage() override; @@ -97,36 +92,38 @@ class CModel : public virtual IModel, public virtual CBase { IReader * QueryReader(const std::string & sReaderClass) override; - IResource* GetResourceByID(const Lib3MF_uint32 nUniqueResourceID) override; + IResource * GetResourceByID(const Lib3MF_uint32 nUniqueResourceID) override; ITexture2D * GetTexture2DByID(const Lib3MF_uint32 nUniqueResourceID) override; - eLib3MFPropertyType GetPropertyTypeByID(const Lib3MF_uint32 nUniqueResourceID) override; + Lib3MF::ePropertyType GetPropertyTypeByID(const Lib3MF_uint32 nUniqueResourceID) override; IBaseMaterialGroup * GetBaseMaterialGroupByID(const Lib3MF_uint32 nUniqueResourceID) override; - IMeshObject * GetMeshObjectByID(const Lib3MF_uint32 nUniqueResourceID) override; - - IComponentsObject * GetComponentsObjectByID(const Lib3MF_uint32 nUniqueResourceID) override; - - IColorGroup * GetColorGroupByID(const Lib3MF_uint32 nUniqueResourceID) override; - ITexture2DGroup * GetTexture2DGroupByID(const Lib3MF_uint32 nUniqueResourceID) override; ICompositeMaterials * GetCompositeMaterialsByID(const Lib3MF_uint32 nUniqueResourceID) override; IMultiPropertyGroup * GetMultiPropertyGroupByID(const Lib3MF_uint32 nUniqueResourceID) override; + IMeshObject * GetMeshObjectByID(const Lib3MF_uint32 nUniqueResourceID) override; + + IComponentsObject * GetComponentsObjectByID(const Lib3MF_uint32 nUniqueResourceID) override; + + IColorGroup * GetColorGroupByID(const Lib3MF_uint32 nUniqueResourceID) override; + ISliceStack * GetSliceStackByID(const Lib3MF_uint32 nUniqueResourceID) override; - ILevelSet* GetLevelSetByID(const Lib3MF_uint32 nUniqueResourceID) override; + ILevelSet * GetLevelSetByID(const Lib3MF_uint32 nUniqueResourceID) override; - std::string GetBuildUUID (bool & bHasUUID) override; + std::string GetBuildUUID(bool & bHasUUID) override; - void SetBuildUUID (const std::string & sUUID) override; + void SetBuildUUID(const std::string & sUUID) override; IBuildItemIterator * GetBuildItems() override; + Lib3MF::sBox GetOutbox() override; + IResourceIterator * GetResources() override; IObjectIterator * GetObjects() override; @@ -149,6 +146,8 @@ class CModel : public virtual IModel, public virtual CBase { ISliceStackIterator * GetSliceStacks() override; + IImage3DIterator * GetImage3Ds() override; + IModel * MergeToModel() override; void MergeFromModel(IModel* pModelInstance) override; @@ -171,7 +170,11 @@ class CModel : public virtual IModel, public virtual CBase { IMultiPropertyGroup * AddMultiPropertyGroup() override; - IBuildItem * AddBuildItem(IObject* pObject, const sLib3MFTransform Transform) override; + IImageStack * AddImageStack(const Lib3MF_uint32 nColumnCount, const Lib3MF_uint32 nRowCount, const Lib3MF_uint32 nSheetCount) override; + + IImageStack * GetImageStackByID(const Lib3MF_uint32 nUniqueResourceID) override; + + IBuildItem * AddBuildItem(IObject* pObject, const Lib3MF::sTransform Transform) override; void RemoveBuildItem(IBuildItem* pBuildItemInstance) override; @@ -199,38 +202,30 @@ class CModel : public virtual IModel, public virtual CBase { void RemoveCustomContentType(const std::string & sExtension) override; - Lib3MF::sBox GetOutbox() override; - - IKeyStore * GetKeyStore() override; - void SetRandomNumberCallback(const Lib3MF::RandomNumberCallback pTheCallback, const Lib3MF_pvoid pUserData) override; - IImageStack * AddImageStack(const Lib3MF_uint32 nSizeX, const Lib3MF_uint32 nSizeY, const Lib3MF_uint32 nSheetCount) override; - - IImageStack* GetImageStackByID(const Lib3MF_uint32 nUniqueResourceID) override; - - IImage3DIterator * GetImage3Ds() override; + IKeyStore * GetKeyStore() override; IFunctionIterator * GetFunctions() override; IImplicitFunction * AddImplicitFunction() override; - IFunctionFromImage3D* AddFunctionFromImage3D(IImage3D* pImage3DInstance) override; + IFunctionFromImage3D * AddFunctionFromImage3D(IImage3D* pImage3DInstance) override; IVolumeData * AddVolumeData() override; - ILevelSet* AddLevelSet() override; + ILevelSet * AddLevelSet() override; ILevelSetIterator * GetLevelSets() override; void RemoveResource(IResource* pResource) override; + }; -} -} +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) #endif - #endif // __LIB3MF_MODEL diff --git a/Include/API/lib3mf_modnode.hpp b/Include/API/lib3mf_modnode.hpp index 8ea0e796..8dcccb67 100644 --- a/Include/API/lib3mf_modnode.hpp +++ b/Include/API/lib3mf_modnode.hpp @@ -66,7 +66,7 @@ class CModNode : public virtual IModNode, public virtual CTwoInputNode { */ public: - CModNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_multiplicationnode.hpp b/Include/API/lib3mf_multiplicationnode.hpp index 032fa1bb..231ac028 100644 --- a/Include/API/lib3mf_multiplicationnode.hpp +++ b/Include/API/lib3mf_multiplicationnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CMultiplicationNode : public virtual IMultiplicationNode, public virtual C */ public: - CMultiplicationNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_multipropertygroup.hpp b/Include/API/lib3mf_multipropertygroup.hpp index f50b451d..2d24cbf7 100644 --- a/Include/API/lib3mf_multipropertygroup.hpp +++ b/Include/API/lib3mf_multipropertygroup.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,9 +42,7 @@ Abstract: This is the class declaration of CMultiPropertyGroup #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelMultiPropertyGroup.h" -#define LIB3MF_MAXMULTIPROPERTIES (1UL << 31) namespace Lib3MF { namespace Impl { @@ -67,38 +65,36 @@ class CMultiPropertyGroup : public virtual IMultiPropertyGroup, public virtual C * Put protected members here. */ - NMR::CModelMultiPropertyGroupResource& multiPropertyGroup(); - public: /** * Put additional public members here. They will not be visible in the external API. */ - CMultiPropertyGroup(NMR::PModelMultiPropertyGroupResource pResource); + /** * Public member functions to implement. */ - Lib3MF_uint32 GetCount (); + Lib3MF_uint32 GetCount() override; - void GetAllPropertyIDs (Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer); + void GetAllPropertyIDs(Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) override; - Lib3MF_uint32 AddMultiProperty (const Lib3MF_uint64 nPropertyIDsBufferSize, const Lib3MF_uint32 * pPropertyIDsBuffer); + Lib3MF_uint32 AddMultiProperty(const Lib3MF_uint64 nPropertyIDsBufferSize, const Lib3MF_uint32 * pPropertyIDsBuffer) override; - void SetMultiProperty (const Lib3MF_uint32 nPropertyID, const Lib3MF_uint64 nPropertyIDsBufferSize, const Lib3MF_uint32 * pPropertyIDsBuffer); + void SetMultiProperty(const Lib3MF_uint32 nPropertyID, const Lib3MF_uint64 nPropertyIDsBufferSize, const Lib3MF_uint32 * pPropertyIDsBuffer) override; - void GetMultiProperty (const Lib3MF_uint32 nPropertyID, Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer); + void GetMultiProperty(const Lib3MF_uint32 nPropertyID, Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) override; - void RemoveMultiProperty (const Lib3MF_uint32 nPropertyID); + void RemoveMultiProperty(const Lib3MF_uint32 nPropertyID) override; - Lib3MF_uint32 GetLayerCount (); + Lib3MF_uint32 GetLayerCount() override; - Lib3MF_uint32 AddLayer (const sLib3MFMultiPropertyLayer TheLayer); + Lib3MF_uint32 AddLayer(const Lib3MF::sMultiPropertyLayer TheLayer) override; - sLib3MFMultiPropertyLayer GetLayer (const Lib3MF_uint32 nLayerIndex); + Lib3MF::sMultiPropertyLayer GetLayer(const Lib3MF_uint32 nLayerIndex) override; - void RemoveLayer (const Lib3MF_uint32 nLayerIndex); + void RemoveLayer(const Lib3MF_uint32 nLayerIndex) override; }; diff --git a/Include/API/lib3mf_multipropertygroupiterator.hpp b/Include/API/lib3mf_multipropertygroupiterator.hpp index 4181e888..2c336fe4 100644 --- a/Include/API/lib3mf_multipropertygroupiterator.hpp +++ b/Include/API/lib3mf_multipropertygroupiterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -78,7 +78,6 @@ class CMultiPropertyGroupIterator : public virtual IMultiPropertyGroupIterator, IMultiPropertyGroup * GetCurrentMultiPropertyGroup() override; - IResource * GetCurrent() override; }; } // namespace Impl diff --git a/Include/API/lib3mf_nodeiterator.hpp b/Include/API/lib3mf_nodeiterator.hpp index 4839fa5c..2e2812e1 100644 --- a/Include/API/lib3mf_nodeiterator.hpp +++ b/Include/API/lib3mf_nodeiterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -28,6 +28,7 @@ Abstract: This is the class declaration of CNodeIterator */ + #ifndef __LIB3MF_NODEITERATOR #define __LIB3MF_NODEITERATOR @@ -41,53 +42,45 @@ Abstract: This is the class declaration of CNodeIterator #endif // Include custom headers here. -#include "lib3mf_implicitfunction.hpp" -#include "lib3mf_implicitnode.hpp" - -namespace Lib3MF -{ - namespace Impl - { - - /************************************************************************************************************************* - Class declaration of CNodeIterator - **************************************************************************************************************************/ - - class CNodeIterator : public virtual INodeIterator, public virtual CIterator - { - private: - /** - * Put private members here. - */ - NMR::PImplicitNodes m_pNodes; - - IImplicitNode * implicitNodeFromModelImplicitNode(NMR::PModelImplicitNode pNode); - protected: - /** - * Put protected members here. - */ - - public: - CNodeIterator(NMR::PImplicitNodes pNodes); - CNodeIterator() = delete; - /** - * Put additional public members here. They will not be visible in the external API. - */ - - /** - * Public member functions to implement. - */ - - /** - * INodeIterator::GetCurrent - Returns the current element - * @return The current element - */ - IImplicitNode * GetCurrent() override; - - Lib3MF_uint64 Count() override; - }; - - } // namespace Impl + + +namespace Lib3MF { +namespace Impl { + + +/************************************************************************************************************************* + Class declaration of CNodeIterator +**************************************************************************************************************************/ + +class CNodeIterator : public virtual INodeIterator, public virtual CIterator { +private: + + /** + * Put private members here. + */ + +protected: + + /** + * Put protected members here. + */ + +public: + + /** + * Put additional public members here. They will not be visible in the external API. + */ + + + /** + * Public member functions to implement. + */ + + IImplicitNode * GetCurrent() override; + +}; + +} // namespace Impl } // namespace Lib3MF #ifdef _MSC_VER diff --git a/Include/API/lib3mf_object.hpp b/Include/API/lib3mf_object.hpp index 1b92133f..8d7c6cfb 100644 --- a/Include/API/lib3mf_object.hpp +++ b/Include/API/lib3mf_object.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,7 +42,7 @@ Abstract: This is the class declaration of CObject #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelResource.h" + namespace Lib3MF { namespace Impl { @@ -60,76 +60,72 @@ class CObject : public virtual IObject, public virtual CResource { */ protected: - NMR::CModelObject* object(); + + /** + * Put protected members here. + */ public: /** * Put additional public members here. They will not be visible in the external API. */ - CObject(NMR::PModelResource pResource); - CObject() = delete; - static IObject* fnCreateObjectFromModelResource(NMR::PModelResource pResource, bool bFailIfUnkownClass); /** * Public member functions to implement. */ - eLib3MFObjectType GetType (); - - void SetType (const eLib3MFObjectType eObjectType); - - std::string GetName (); + Lib3MF::eObjectType GetType() override; - void SetName (const std::string & sName); + void SetType(const Lib3MF::eObjectType eObjectType) override; - std::string GetPartNumber (); + std::string GetName() override; - void SetPartNumber (const std::string & sPartNumber); + void SetName(const std::string & sName) override; - virtual bool IsMeshObject (); + std::string GetPartNumber() override; - virtual bool IsComponentsObject (); + void SetPartNumber(const std::string & sPartNumber) override; - virtual bool IsLevelSetObject (); + bool IsMeshObject() override; - virtual IMeshObject * AsMeshObject(); + bool IsComponentsObject() override; - virtual IComponentsObject * AsComponentsObject(); + bool IsLevelSetObject() override; - bool IsValid (); + bool IsValid() override; - void SetAttachmentAsThumbnail(IAttachment* pAttachment); + void SetAttachmentAsThumbnail(IAttachment* pAttachment) override; - IAttachment * GetThumbnailAttachment(); + IAttachment * GetThumbnailAttachment() override; - void ClearThumbnailAttachment(); + void ClearThumbnailAttachment() override; - IMetaDataGroup * GetMetaDataGroup (); + Lib3MF::sBox GetOutbox() override; - std::string GetUUID(bool & bHasUUID); + std::string GetUUID(bool & bHasUUID) override; - void SetUUID(const std::string & sUUID); + void SetUUID(const std::string & sUUID) override; - void SetSlicesMeshResolution(const eLib3MFSlicesMeshResolution eMeshResolution); + IMetaDataGroup * GetMetaDataGroup() override; - eLib3MFSlicesMeshResolution GetSlicesMeshResolution(); + void SetSlicesMeshResolution(const Lib3MF::eSlicesMeshResolution eMeshResolution) override; - bool HasSlices(const bool bRecursive); + Lib3MF::eSlicesMeshResolution GetSlicesMeshResolution() override; - void ClearSliceStack(); + bool HasSlices(const bool bRecursive) override; - ISliceStack * GetSliceStack(); + void ClearSliceStack() override; - void AssignSliceStack(ISliceStack* pSliceStackInstance); + ISliceStack * GetSliceStack() override; - Lib3MF::sBox GetOutbox(); + void AssignSliceStack(ISliceStack* pSliceStackInstance) override; }; -} -} +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) diff --git a/Include/API/lib3mf_objectiterator.hpp b/Include/API/lib3mf_objectiterator.hpp index e1e19476..f780845c 100644 --- a/Include/API/lib3mf_objectiterator.hpp +++ b/Include/API/lib3mf_objectiterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -78,9 +78,6 @@ class CObjectIterator : public virtual IObjectIterator, public virtual CResource IObject * GetCurrentObject() override; - - IResource * GetCurrent() override; - }; } // namespace Impl diff --git a/Include/API/lib3mf_oneinputnode.hpp b/Include/API/lib3mf_oneinputnode.hpp index 823e7d4c..438f27f8 100644 --- a/Include/API/lib3mf_oneinputnode.hpp +++ b/Include/API/lib3mf_oneinputnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,8 +66,6 @@ class COneInputNode : public virtual IOneInputNode, public virtual CImplicitNode */ public: - COneInputNode() = default; - COneInputNode(NMR::PModelImplicitNode pImplicitNode); /** * Put additional public members here. They will not be visible in the external API. @@ -78,16 +76,8 @@ class COneInputNode : public virtual IOneInputNode, public virtual CImplicitNode * Public member functions to implement. */ - /** - * IOneInputNode::GetInputA - Retrieves the input - * @return the input - */ IImplicitPort * GetInputA() override; - /** - * IOneInputNode::GetOutputResult - Retrieves the output - * @return the output - */ IImplicitPort * GetOutputResult() override; }; diff --git a/Include/API/lib3mf_packagepart.hpp b/Include/API/lib3mf_packagepart.hpp index ccf9b2d9..1bf33c36 100644 --- a/Include/API/lib3mf_packagepart.hpp +++ b/Include/API/lib3mf_packagepart.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,8 +29,8 @@ Abstract: This is the class declaration of CPackagePart */ -#ifndef __LIB3MF_MODELPART -#define __LIB3MF_MODELPART +#ifndef __LIB3MF_PACKAGEPART +#define __LIB3MF_PACKAGEPART #include "lib3mf_interfaces.hpp" @@ -42,7 +42,7 @@ Abstract: This is the class declaration of CPackagePart #endif // Include custom headers here. -#include "Model/Classes/NMR_PackageResourceID.h" + namespace Lib3MF { namespace Impl { @@ -58,7 +58,6 @@ class CPackagePart : public virtual IPackagePart, public virtual CBase { /** * Put private members here. */ - NMR::PPackageModelPath m_pPath; protected: @@ -71,7 +70,7 @@ class CPackagePart : public virtual IPackagePart, public virtual CBase { /** * Put additional public members here. They will not be visible in the external API. */ - CPackagePart(NMR::PPackageModelPath pPath); + /** * Public member functions to implement. @@ -89,4 +88,4 @@ class CPackagePart : public virtual IPackagePart, public virtual CBase { #ifdef _MSC_VER #pragma warning(pop) #endif -#endif // __LIB3MF_MODELPART +#endif // __LIB3MF_PACKAGEPART diff --git a/Include/API/lib3mf_pownode.hpp b/Include/API/lib3mf_pownode.hpp index 991e53bc..b67aefce 100644 --- a/Include/API/lib3mf_pownode.hpp +++ b/Include/API/lib3mf_pownode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CPowNode : public virtual IPowNode, public virtual CTwoInputNode { */ public: - CPowNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_reader.hpp b/Include/API/lib3mf_reader.hpp index 1e0f76ed..92e2f944 100644 --- a/Include/API/lib3mf_reader.hpp +++ b/Include/API/lib3mf_reader.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,22 +33,20 @@ Abstract: This is the class declaration of CReader #define __LIB3MF_READER #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif - // Include custom headers here. -#include "Model/Reader/NMR_ModelReader.h" -#include "Model/Reader/NMR_ModelReader_3MF_Native.h" -#include "Model/Reader/NMR_ModelReader_STL.h" + namespace Lib3MF { namespace Impl { -#define LIB3MF_READER_MAXKEYSIZE (1UL << 31) /************************************************************************************************************************* Class declaration of CReader @@ -60,54 +58,52 @@ class CReader : public virtual IReader, public virtual CBase { /** * Put private members here. */ - NMR::PModelReader m_pReader; protected: /** * Put protected members here. */ - + public: /** * Put additional public members here. They will not be visible in the external API. */ - CReader(std::string sReaderClass, NMR::PModel model); - NMR::CModelReader& reader(); + /** * Public member functions to implement. */ - void ReadFromFile (const std::string & sFilename); + void ReadFromFile(const std::string & sFilename) override; - void ReadFromBuffer (const Lib3MF_uint64 nBufferBufferSize, const Lib3MF_uint8 * pBufferBuffer); + void ReadFromBuffer(const Lib3MF_uint64 nBufferBufferSize, const Lib3MF_uint8 * pBufferBuffer) override; - void ReadFromCallback(const Lib3MFReadCallback pTheReadCallback, const Lib3MF_uint64 nStreamSize, const Lib3MFSeekCallback pTheSeekCallback, const Lib3MF_pvoid pUserData); + void ReadFromCallback(const Lib3MF::ReadCallback pTheReadCallback, const Lib3MF_uint64 nStreamSize, const Lib3MF::SeekCallback pTheSeekCallback, const Lib3MF_pvoid pUserData) override; - void AddRelationToRead (const std::string & sRelationShipType); + void SetProgressCallback(const Lib3MF::ProgressCallback pProgressCallback, const Lib3MF_pvoid pUserData) override; - void SetProgressCallback(const Lib3MFProgressCallback pProgressCallback, const Lib3MF_pvoid pUserData); + void AddRelationToRead(const std::string & sRelationShipType) override; - void RemoveRelationToRead (const std::string & sRelationShipType); + void RemoveRelationToRead(const std::string & sRelationShipType) override; - void SetStrictModeActive (const bool bStrictModeActive); + void SetStrictModeActive(const bool bStrictModeActive) override; - bool GetStrictModeActive (); + bool GetStrictModeActive() override; - std::string GetWarning (const Lib3MF_uint32 nIndex, Lib3MF_uint32 & nErrorCode); + std::string GetWarning(const Lib3MF_uint32 nIndex, Lib3MF_uint32 & nErrorCode) override; - Lib3MF_uint32 GetWarningCount (); + Lib3MF_uint32 GetWarningCount() override; - void AddKeyWrappingCallback(const std::string &sConsumerID, const Lib3MF::KeyWrappingCallback pTheCallback, const Lib3MF_pvoid pUserData); + void AddKeyWrappingCallback(const std::string & sConsumerID, const Lib3MF::KeyWrappingCallback pTheCallback, const Lib3MF_pvoid pUserData) override; - void SetContentEncryptionCallback(const Lib3MF::ContentEncryptionCallback pTheCallback, const Lib3MF_pvoid pUserData); + void SetContentEncryptionCallback(const Lib3MF::ContentEncryptionCallback pTheCallback, const Lib3MF_pvoid pUserData) override; }; -} -} +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) diff --git a/Include/API/lib3mf_resource.hpp b/Include/API/lib3mf_resource.hpp index 846a27f3..22a2b1a5 100644 --- a/Include/API/lib3mf_resource.hpp +++ b/Include/API/lib3mf_resource.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,15 +33,16 @@ Abstract: This is the class declaration of CResource #define __LIB3MF_RESOURCE #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif - // Include custom headers here. -#include "Model/Classes/NMR_ModelResource.h" + namespace Lib3MF { namespace Impl { @@ -57,19 +58,19 @@ class CResource : public virtual IResource, public virtual CBase { /** * Put private members here. */ - NMR::PModelResource m_pResource; protected: + /** + * Put protected members here. + */ + public: - NMR::CModel* model(); - NMR::PModelResource resource(); /** * Put additional public members here. They will not be visible in the external API. */ - CResource() = delete; - CResource(NMR::PModelResource pResource); + /** * Public member functions to implement. @@ -79,17 +80,16 @@ class CResource : public virtual IResource, public virtual CBase { Lib3MF_uint32 GetUniqueResourceID() override; - virtual IObject * AsObject(); - IPackagePart * PackagePart() override; - void SetPackagePart(IPackagePart* pPackagePath) override; + void SetPackagePart(IPackagePart* pPackagePart) override; Lib3MF_uint32 GetModelResourceID() override; + }; -} -} +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) diff --git a/Include/API/lib3mf_resourcedata.hpp b/Include/API/lib3mf_resourcedata.hpp index cae2902d..579b8600 100644 --- a/Include/API/lib3mf_resourcedata.hpp +++ b/Include/API/lib3mf_resourcedata.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,42 +33,63 @@ Abstract: This is the class declaration of CResourceData #define __LIB3MF_RESOURCEDATA #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif -#include "Model/Classes/NMR_KeyStoreResourceData.h" // Include custom headers here. + + namespace Lib3MF { - namespace Impl { +namespace Impl { + + +/************************************************************************************************************************* + Class declaration of CResourceData +**************************************************************************************************************************/ + +class CResourceData : public virtual IResourceData, public virtual CBase { +private: + /** + * Put private members here. + */ - /************************************************************************************************************************* - Class declaration of CResourceData - **************************************************************************************************************************/ +protected: - class CResourceData : public virtual IResourceData, public virtual CBase { - private: - NMR::PKeyStoreResourceData m_pResourceData; - public: - CResourceData(NMR::PKeyStoreResourceData resourceData); + /** + * Put protected members here. + */ +public: - // Inherited via IResourceData - IPackagePart * GetPath() override; + /** + * Put additional public members here. They will not be visible in the external API. + */ - Lib3MF::eEncryptionAlgorithm GetEncryptionAlgorithm() override; - Lib3MF::eCompression GetCompression() override; + /** + * Public member functions to implement. + */ - void GetAdditionalAuthenticationData(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64 * pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) override; + IPackagePart * GetPath() override; - inline NMR::PKeyStoreResourceData resourceData() const { - return m_pResourceData; - } - }; - } -} + Lib3MF::eEncryptionAlgorithm GetEncryptionAlgorithm() override; + + Lib3MF::eCompression GetCompression() override; + + void GetAdditionalAuthenticationData(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) override; + +}; + +} // namespace Impl +} // namespace Lib3MF + +#ifdef _MSC_VER +#pragma warning(pop) #endif +#endif // __LIB3MF_RESOURCEDATA diff --git a/Include/API/lib3mf_resourcedatagroup.hpp b/Include/API/lib3mf_resourcedatagroup.hpp index cc88bcc4..0521418a 100644 --- a/Include/API/lib3mf_resourcedatagroup.hpp +++ b/Include/API/lib3mf_resourcedatagroup.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,43 +32,64 @@ Abstract: This is the class declaration of CResourceDataGroup #ifndef __LIB3MF_RESOURCEDATAGROUP #define __LIB3MF_RESOURCEDATAGROUP - #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif -#include "Model/Classes/NMR_KeyStoreResourceDataGroup.h" -#include "Model/Classes/NMR_KeyStore.h" +// Include custom headers here. + namespace Lib3MF { - namespace Impl { +namespace Impl { + + +/************************************************************************************************************************* + Class declaration of CResourceDataGroup +**************************************************************************************************************************/ + +class CResourceDataGroup : public virtual IResourceDataGroup, public virtual CBase { +private: + + /** + * Put private members here. + */ - /************************************************************************************************************************* - Class declaration of CResourceData - **************************************************************************************************************************/ +protected: - class CResourceDataGroup : public virtual IResourceDataGroup, public virtual CBase { - NMR::PKeyStoreResourceDataGroup m_pDataGroup; - public: - CResourceDataGroup(NMR::PKeyStoreResourceDataGroup const & dg); + /** + * Put protected members here. + */ - // Inherited via IResourceDataGroup - virtual IAccessRight * AddAccessRight(IConsumer * pConsumer, const Lib3MF::eWrappingAlgorithm eWrappingAlgorithm, const Lib3MF::eMgfAlgorithm eMgfAlgorithm, const Lib3MF::eDigestMethod eDigestMethod) override; - virtual IAccessRight * FindAccessRightByConsumer(IConsumer * pConsumerInstance) override; - virtual void RemoveAccessRight(IConsumer * pConsumerInstance) override; - virtual std::string GetKeyUUID() override; +public: + /** + * Put additional public members here. They will not be visible in the external API. + */ - inline NMR::PKeyStoreResourceDataGroup resourceDataGroup() const { - return m_pDataGroup; - } - }; - } -} + /** + * Public member functions to implement. + */ + std::string GetKeyUUID() override; -#endif // !__LIB3MF_RESOURCEDATAGROUP + IAccessRight * AddAccessRight(IConsumer* pConsumer, const Lib3MF::eWrappingAlgorithm eWrappingAlgorithm, const Lib3MF::eMgfAlgorithm eMgfAlgorithm, const Lib3MF::eDigestMethod eDigestMethod) override; + + IAccessRight * FindAccessRightByConsumer(IConsumer* pConsumer) override; + + void RemoveAccessRight(IConsumer* pConsumer) override; + +}; + +} // namespace Impl +} // namespace Lib3MF + +#ifdef _MSC_VER +#pragma warning(pop) +#endif +#endif // __LIB3MF_RESOURCEDATAGROUP diff --git a/Include/API/lib3mf_resourceidnode.hpp b/Include/API/lib3mf_resourceidnode.hpp index 2e620b41..2c1ac204 100644 --- a/Include/API/lib3mf_resourceidnode.hpp +++ b/Include/API/lib3mf_resourceidnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -67,7 +67,6 @@ class CResourceIdNode : public virtual IResourceIdNode, public virtual CImplicit public: - CResourceIdNode(NMR::PModelImplicitNode pImplicitNode); /** * Put additional public members here. They will not be visible in the external API. */ @@ -77,22 +76,10 @@ class CResourceIdNode : public virtual IResourceIdNode, public virtual CImplicit * Public member functions to implement. */ - /** - * IResourceIdNode::SetResource - Sets the Resource that the resourceid attribute of the node will point to - * @param[in] pResource - the resource - */ void SetResource(IResource* pResource) override; - /** - * IResourceIdNode::GetResource - Retrieves the resource of the node - * @return the resource - */ IResource * GetResource() override; - /** - * IResourceIdNode::GetOutputValue - Retrieves the output - * @return the output - */ IImplicitPort * GetOutputValue() override; }; diff --git a/Include/API/lib3mf_resourceiterator.hpp b/Include/API/lib3mf_resourceiterator.hpp index 42e76a97..8ef5e8d7 100644 --- a/Include/API/lib3mf_resourceiterator.hpp +++ b/Include/API/lib3mf_resourceiterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,15 +33,16 @@ Abstract: This is the class declaration of CResourceIterator #define __LIB3MF_RESOURCEITERATOR #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif - // Include custom headers here. -#include "Model/Classes/NMR_ModelResource.h" + namespace Lib3MF { namespace Impl { @@ -52,42 +53,43 @@ namespace Impl { **************************************************************************************************************************/ class CResourceIterator : public virtual IResourceIterator, public virtual CBase { - private: - NMR::PModel m_pModel; - std::vector m_pResources; - Lib3MF_int32 m_nCurrentIndex; + /** + * Put private members here. + */ protected: - virtual NMR::PModelResource GetCurrentResource(); + + /** + * Put protected members here. + */ + public: /** * Put additional public members here. They will not be visible in the external API. */ - CResourceIterator(); - void addResource(NMR::PModelResource pResource); /** * Public member functions to implement. */ - bool MoveNext (); + bool MoveNext() override; - bool MovePrevious (); + bool MovePrevious() override; - IResource * GetCurrent (); + IResource * GetCurrent() override; - IResourceIterator * Clone (); + IResourceIterator * Clone() override; - Lib3MF_uint64 Count(); + Lib3MF_uint64 Count() override; }; -} -} +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) diff --git a/Include/API/lib3mf_roundnode.hpp b/Include/API/lib3mf_roundnode.hpp index 72662118..b0e60309 100644 --- a/Include/API/lib3mf_roundnode.hpp +++ b/Include/API/lib3mf_roundnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CRoundNode : public virtual IRoundNode, public virtual COneInputNode { */ public: - CRoundNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_selectnode.hpp b/Include/API/lib3mf_selectnode.hpp index 7b0cf39c..6aec325a 100644 --- a/Include/API/lib3mf_selectnode.hpp +++ b/Include/API/lib3mf_selectnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CSelectNode : public virtual ISelectNode, public virtual COneInputNode { */ public: - CSelectNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ @@ -76,22 +76,10 @@ class CSelectNode : public virtual ISelectNode, public virtual COneInputNode { * Public member functions to implement. */ - /** - * ISelectNode::GetInputB - Retrieves the second input - * @return the second input - */ IImplicitPort * GetInputB() override; - /** - * ISelectNode::GetInputC - Retrieves the third input - * @return the third input - */ IImplicitPort * GetInputC() override; - /** - * ISelectNode::GetInputD - Retrieves the fourth input - * @return the fourth input - */ IImplicitPort * GetInputD() override; }; diff --git a/Include/API/lib3mf_signnode.hpp b/Include/API/lib3mf_signnode.hpp index 1451891e..0042636f 100644 --- a/Include/API/lib3mf_signnode.hpp +++ b/Include/API/lib3mf_signnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CSignNode : public virtual ISignNode, public virtual COneInputNode { */ public: - CSignNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_sinhnode.hpp b/Include/API/lib3mf_sinhnode.hpp index 397b75e8..b542b699 100644 --- a/Include/API/lib3mf_sinhnode.hpp +++ b/Include/API/lib3mf_sinhnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CSinhNode : public virtual ISinhNode, public virtual COneInputNode { */ public: - CSinhNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_sinnode.hpp b/Include/API/lib3mf_sinnode.hpp index 2b19cb2c..20a0ac24 100644 --- a/Include/API/lib3mf_sinnode.hpp +++ b/Include/API/lib3mf_sinnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,8 +66,7 @@ class CSinNode : public virtual ISinNode, public virtual COneInputNode { */ public: - CSinNode(NMR::PModelImplicitNode pImplicitNode); - + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_slice.hpp b/Include/API/lib3mf_slice.hpp index d3292642..120838a8 100644 --- a/Include/API/lib3mf_slice.hpp +++ b/Include/API/lib3mf_slice.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,15 +33,16 @@ Abstract: This is the class declaration of CSlice #define __LIB3MF_SLICE #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif - // Include custom headers here. -#include "Model/Classes/NMR_ModelSlice.h" + namespace Lib3MF { namespace Impl { @@ -57,7 +58,6 @@ class CSlice : public virtual ISlice, public virtual CBase { /** * Put private members here. */ - NMR::PSlice m_pSlice; protected: @@ -70,29 +70,30 @@ class CSlice : public virtual ISlice, public virtual CBase { /** * Put additional public members here. They will not be visible in the external API. */ - CSlice(NMR::PSlice); + /** * Public member functions to implement. */ - void SetVertices (const Lib3MF_uint64 nVerticesBufferSize, const sLib3MFPosition2D * pVerticesBuffer); + void SetVertices(const Lib3MF_uint64 nVerticesBufferSize, const Lib3MF::sPosition2D * pVerticesBuffer) override; + + void GetVertices(Lib3MF_uint64 nVerticesBufferSize, Lib3MF_uint64* pVerticesNeededCount, Lib3MF::sPosition2D * pVerticesBuffer) override; - void GetVertices (Lib3MF_uint64 nVerticesBufferSize, Lib3MF_uint64* pVerticesNeededCount, sLib3MFPosition2D * pVerticesBuffer); + Lib3MF_uint64 GetVertexCount() override; - Lib3MF_uint64 GetVertexCount (); + Lib3MF_uint64 AddPolygon(const Lib3MF_uint64 nIndicesBufferSize, const Lib3MF_uint32 * pIndicesBuffer) override; - Lib3MF_uint64 GetPolygonCount(); + Lib3MF_uint64 GetPolygonCount() override; - Lib3MF_uint64 AddPolygon(const Lib3MF_uint64 nIndicesBufferSize, const Lib3MF_uint32 * pIndicesBuffer); + void SetPolygonIndices(const Lib3MF_uint64 nIndex, const Lib3MF_uint64 nIndicesBufferSize, const Lib3MF_uint32 * pIndicesBuffer) override; - void SetPolygonIndices (const Lib3MF_uint64 nIndex, const Lib3MF_uint64 nIndicesBufferSize, const Lib3MF_uint32 * pIndicesBuffer); + void GetPolygonIndices(const Lib3MF_uint64 nIndex, Lib3MF_uint64 nIndicesBufferSize, Lib3MF_uint64* pIndicesNeededCount, Lib3MF_uint32 * pIndicesBuffer) override; - void GetPolygonIndices (const Lib3MF_uint64 nIndex, Lib3MF_uint64 nIndicesBufferSize, Lib3MF_uint64* pIndicesNeededCount, Lib3MF_uint32 * pIndicesBuffer); + Lib3MF_uint64 GetPolygonIndexCount(const Lib3MF_uint64 nIndex) override; - Lib3MF_uint64 GetPolygonIndexCount (const Lib3MF_uint64 nIndex); + Lib3MF_double GetZTop() override; - double GetZTop(); }; } // namespace Impl diff --git a/Include/API/lib3mf_slicestack.hpp b/Include/API/lib3mf_slicestack.hpp index 3221ddba..5d7dcbf2 100644 --- a/Include/API/lib3mf_slicestack.hpp +++ b/Include/API/lib3mf_slicestack.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,7 +42,7 @@ Abstract: This is the class declaration of CSliceStack #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelSliceStack.h" + namespace Lib3MF { namespace Impl { @@ -64,39 +64,38 @@ class CSliceStack : public virtual ISliceStack, public virtual CResource { /** * Put protected members here. */ - NMR::PModelSliceStack sliceStack(); public: /** * Put additional public members here. They will not be visible in the external API. */ - CSliceStack(NMR::PModelSliceStack pSliceStack); /** * Public member functions to implement. */ - double GetBottomZ(); + Lib3MF_double GetBottomZ() override; + + Lib3MF_uint64 GetSliceCount() override; - Lib3MF_uint64 GetSliceCount (); + ISlice * GetSlice(const Lib3MF_uint64 nSliceIndex) override; - ISlice * AddSlice(const double fZTop); + ISlice * AddSlice(const Lib3MF_double dZTop) override; - ISlice * GetSlice (const Lib3MF_uint64 nSliceIndex); + Lib3MF_uint64 GetSliceRefCount() override; - Lib3MF_uint64 GetSliceRefCount(); + void AddSliceStackReference(ISliceStack* pTheSliceStack) override; - void AddSliceStackReference(ISliceStack* pTheSliceStack) ; + ISliceStack * GetSliceStackReference(const Lib3MF_uint64 nSliceRefIndex) override; - ISliceStack * GetSliceStackReference(const Lib3MF_uint64 nSliceRefIndex); + void CollapseSliceReferences() override; - void CollapseSliceReferences(); + void SetOwnPath(const std::string & sPath) override; - virtual void SetOwnPath(const std::string & sPath); + std::string GetOwnPath() override; - virtual std::string GetOwnPath(); }; } // namespace Impl diff --git a/Include/API/lib3mf_slicestackiterator.hpp b/Include/API/lib3mf_slicestackiterator.hpp index fac9a6ff..9b6b6d86 100644 --- a/Include/API/lib3mf_slicestackiterator.hpp +++ b/Include/API/lib3mf_slicestackiterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -78,8 +78,6 @@ class CSliceStackIterator : public virtual ISliceStackIterator, public virtual C ISliceStack * GetCurrentSliceStack() override; - IResource * GetCurrent() override; - }; } // namespace Impl diff --git a/Include/API/lib3mf_sqrtnode.hpp b/Include/API/lib3mf_sqrtnode.hpp index bb8124f7..5e8d26af 100644 --- a/Include/API/lib3mf_sqrtnode.hpp +++ b/Include/API/lib3mf_sqrtnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CSqrtNode : public virtual ISqrtNode, public virtual COneInputNode { */ public: - CSqrtNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_subtractionnode.hpp b/Include/API/lib3mf_subtractionnode.hpp index 4e6eb351..5f3b7dce 100644 --- a/Include/API/lib3mf_subtractionnode.hpp +++ b/Include/API/lib3mf_subtractionnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CSubtractionNode : public virtual ISubtractionNode, public virtual CTwoInp */ public: - CSubtractionNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_tanhnode.hpp b/Include/API/lib3mf_tanhnode.hpp index a6ff9ad6..ccc7c342 100644 --- a/Include/API/lib3mf_tanhnode.hpp +++ b/Include/API/lib3mf_tanhnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CTanhNode : public virtual ITanhNode, public virtual COneInputNode { */ public: - CTanhNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_tannode.hpp b/Include/API/lib3mf_tannode.hpp index 53c0c86b..8480d66f 100644 --- a/Include/API/lib3mf_tannode.hpp +++ b/Include/API/lib3mf_tannode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CTanNode : public virtual ITanNode, public virtual COneInputNode { */ public: - CTanNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_texture2d.hpp b/Include/API/lib3mf_texture2d.hpp index 1bd41231..fc26c0c9 100644 --- a/Include/API/lib3mf_texture2d.hpp +++ b/Include/API/lib3mf_texture2d.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,7 +42,7 @@ Abstract: This is the class declaration of CTexture2D #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelTexture2D.h" + namespace Lib3MF { namespace Impl { @@ -64,40 +64,38 @@ class CTexture2D : public virtual ITexture2D, public virtual CResource { /** * Put protected members here. */ - NMR::PModelTexture2DResource texture(); - public: /** * Put additional public members here. They will not be visible in the external API. */ - CTexture2D(NMR::PModelTexture2DResource pResource); + /** * Public member functions to implement. */ - IAttachment * GetAttachment (); + IAttachment * GetAttachment() override; - void SetAttachment (IAttachment* pAttachment); + void SetAttachment(IAttachment* pAttachment) override; - eLib3MFTextureType GetContentType (); + Lib3MF::eTextureType GetContentType() override; - void SetContentType (const eLib3MFTextureType eContentType); + void SetContentType(const Lib3MF::eTextureType eContentType) override; - void GetTileStyleUV (eLib3MFTextureTileStyle & eTileStyleU, eLib3MFTextureTileStyle & eTileStyleV); + void GetTileStyleUV(Lib3MF::eTextureTileStyle & eTileStyleU, Lib3MF::eTextureTileStyle & eTileStyleV) override; - void SetTileStyleUV (const eLib3MFTextureTileStyle eTileStyleU, const eLib3MFTextureTileStyle eTileStyleV); + void SetTileStyleUV(const Lib3MF::eTextureTileStyle eTileStyleU, const Lib3MF::eTextureTileStyle eTileStyleV) override; - eLib3MFTextureFilter GetFilter (); + Lib3MF::eTextureFilter GetFilter() override; - void SetFilter (const eLib3MFTextureFilter eFilter); + void SetFilter(const Lib3MF::eTextureFilter eFilter) override; }; -} -} +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) diff --git a/Include/API/lib3mf_texture2dgroup.hpp b/Include/API/lib3mf_texture2dgroup.hpp index 65538328..ae78a00e 100644 --- a/Include/API/lib3mf_texture2dgroup.hpp +++ b/Include/API/lib3mf_texture2dgroup.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,7 +42,7 @@ Abstract: This is the class declaration of CTexture2DGroup #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelTexture2DGroup.h" + namespace Lib3MF { namespace Impl { @@ -64,31 +64,29 @@ class CTexture2DGroup : public virtual ITexture2DGroup, public virtual CResource /** * Put protected members here. */ - NMR::CModelTexture2DGroupResource& texture2DGroup(); public: /** * Put additional public members here. They will not be visible in the external API. */ - CTexture2DGroup(NMR::PModelTexture2DGroupResource pResource); /** * Public member functions to implement. */ - ITexture2D * GetTexture2D(); + Lib3MF_uint32 GetCount() override; - Lib3MF_uint32 GetCount (); + void GetAllPropertyIDs(Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) override; - void GetAllPropertyIDs (Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer); + Lib3MF_uint32 AddTex2Coord(const Lib3MF::sTex2Coord UVCoordinate) override; - Lib3MF_uint32 AddTex2Coord (const sLib3MFTex2Coord UVCoordinate); + Lib3MF::sTex2Coord GetTex2Coord(const Lib3MF_uint32 nPropertyID) override; - sLib3MFTex2Coord GetTex2Coord (const Lib3MF_uint32 nPropertyID); + void RemoveTex2Coord(const Lib3MF_uint32 nPropertyID) override; - void RemoveTex2Coord(const Lib3MF_uint32 nPropertyID); + ITexture2D * GetTexture2D() override; }; diff --git a/Include/API/lib3mf_texture2dgroupiterator.hpp b/Include/API/lib3mf_texture2dgroupiterator.hpp index 5b1fd3bc..1c053468 100644 --- a/Include/API/lib3mf_texture2dgroupiterator.hpp +++ b/Include/API/lib3mf_texture2dgroupiterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -78,8 +78,6 @@ class CTexture2DGroupIterator : public virtual ITexture2DGroupIterator, public v ITexture2DGroup * GetCurrentTexture2DGroup() override; - IResource * GetCurrent() override; - }; } // namespace Impl diff --git a/Include/API/lib3mf_texture2diterator.hpp b/Include/API/lib3mf_texture2diterator.hpp index 9096c593..049251b4 100644 --- a/Include/API/lib3mf_texture2diterator.hpp +++ b/Include/API/lib3mf_texture2diterator.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -78,7 +78,6 @@ class CTexture2DIterator : public virtual ITexture2DIterator, public virtual CRe ITexture2D * GetCurrentTexture2D() override; - IResource * GetCurrent() override; }; } // namespace Impl diff --git a/Include/API/lib3mf_transposenode.hpp b/Include/API/lib3mf_transposenode.hpp index a1c30ca6..892a86ef 100644 --- a/Include/API/lib3mf_transposenode.hpp +++ b/Include/API/lib3mf_transposenode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CTransposeNode : public virtual ITransposeNode, public virtual COneInputNo */ public: - CTransposeNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Include/API/lib3mf_twoinputnode.hpp b/Include/API/lib3mf_twoinputnode.hpp index a5322598..9cde22c0 100644 --- a/Include/API/lib3mf_twoinputnode.hpp +++ b/Include/API/lib3mf_twoinputnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,8 +66,7 @@ class CTwoInputNode : public virtual ITwoInputNode, public virtual COneInputNode */ public: - CTwoInputNode() = default; - CTwoInputNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ @@ -77,10 +76,6 @@ class CTwoInputNode : public virtual ITwoInputNode, public virtual COneInputNode * Public member functions to implement. */ - /** - * ITwoInputNode::GetInputB - Retrieves the second input - * @return the second input - */ IImplicitPort * GetInputB() override; }; diff --git a/Include/API/lib3mf_unsignedmeshnode.hpp b/Include/API/lib3mf_unsignedmeshnode.hpp index 29dbe1f9..39774ae8 100644 --- a/Include/API/lib3mf_unsignedmeshnode.hpp +++ b/Include/API/lib3mf_unsignedmeshnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,7 @@ class CUnsignedMeshNode : public virtual IUnsignedMeshNode, public virtual CImpl */ public: - CUnsignedMeshNode(NMR::PModelImplicitNode pImplicitNode); + /** * Put additional public members here. They will not be visible in the external API. */ @@ -76,22 +76,10 @@ class CUnsignedMeshNode : public virtual IUnsignedMeshNode, public virtual CImpl * Public member functions to implement. */ - /** - * IUnsignedMeshNode::GetInputMesh - Retrieves the input for the model resource id of the mesh - * @return the input port for the model resource id of the mesh - */ IImplicitPort * GetInputMesh() override; - /** - * IUnsignedMeshNode::GetInputPos - Retrieves the input for the position - * @return the input port for the position - */ IImplicitPort * GetInputPos() override; - /** - * IUnsignedMeshNode::GetOutputDistance - Retrieves the output - * @return the output port for the unsigned distance to the mesh - */ IImplicitPort * GetOutputDistance() override; }; diff --git a/Include/API/lib3mf_vectorfromscalarnode.hpp b/Include/API/lib3mf_vectorfromscalarnode.hpp index aa9d7875..f3560700 100644 --- a/Include/API/lib3mf_vectorfromscalarnode.hpp +++ b/Include/API/lib3mf_vectorfromscalarnode.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -66,7 +66,6 @@ class CVectorFromScalarNode : public virtual IVectorFromScalarNode, public virtu */ public: - CVectorFromScalarNode(NMR::PModelImplicitNode pImplicitNode); /** * Put additional public members here. They will not be visible in the external API. @@ -76,6 +75,7 @@ class CVectorFromScalarNode : public virtual IVectorFromScalarNode, public virtu /** * Public member functions to implement. */ + }; } // namespace Impl diff --git a/Include/API/lib3mf_volumedata.hpp b/Include/API/lib3mf_volumedata.hpp index d90bee8c..f8243566 100644 --- a/Include/API/lib3mf_volumedata.hpp +++ b/Include/API/lib3mf_volumedata.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -35,7 +35,6 @@ Abstract: This is the class declaration of CVolumeData #include "lib3mf_interfaces.hpp" // Parent classes -#include "lib3mf_base.hpp" #include "lib3mf_resource.hpp" #ifdef _MSC_VER #pragma warning(push) @@ -43,10 +42,7 @@ Abstract: This is the class declaration of CVolumeData #endif // Include custom headers here. -#include "Common/Mesh/NMR_Mesh.h" -#include "Model/Classes/NMR_ModelVolumeData.h" -#include "Model/Classes/NMR_ModelMeshObject.h" -#include "Model/Classes/NMR_ModelResource.h" + namespace Lib3MF { namespace Impl { @@ -62,7 +58,6 @@ class CVolumeData : public virtual IVolumeData, public virtual CResource { /** * Put private members here. */ - NMR::PModelVolumeData m_pVolumeData; protected: @@ -75,14 +70,12 @@ class CVolumeData : public virtual IVolumeData, public virtual CResource { /** * Put additional public members here. They will not be visible in the external API. */ - CVolumeData() = delete; - CVolumeData(NMR::PModelResource pResource); - // CVolumeData(NMR::PModelMeshObject pMeshObject, NMR::PModelVolumeData pVolumeData); /** * Public member functions to implement. */ + IVolumeDataComposite * GetComposite() override; IVolumeDataComposite * CreateNewComposite() override; @@ -91,7 +84,7 @@ class CVolumeData : public virtual IVolumeData, public virtual CResource { IVolumeDataColor * GetColor() override; - IVolumeDataColor* CreateNewColor(IFunction* pTheFunction) override; + IVolumeDataColor * CreateNewColor(IFunction* pTheFunction) override; void RemoveColor() override; @@ -99,10 +92,8 @@ class CVolumeData : public virtual IVolumeData, public virtual CResource { IVolumeDataProperty * GetProperty(const Lib3MF_uint32 nIndex) override; - IVolumeDataProperty* AddPropertyFromFunction( - const std::string& sName, IFunction* pTheFunction) override; + IVolumeDataProperty * AddPropertyFromFunction(const std::string & sName, IFunction* pTheFunction) override; - void RemoveProperty(const Lib3MF_uint32 nIndex) override; }; diff --git a/Include/API/lib3mf_volumedatacolor.hpp b/Include/API/lib3mf_volumedatacolor.hpp index 524ce881..05bdc453 100644 --- a/Include/API/lib3mf_volumedatacolor.hpp +++ b/Include/API/lib3mf_volumedatacolor.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,7 +42,7 @@ Abstract: This is the class declaration of CVolumeDataColor #endif // Include custom headers here. -#include "Common/Mesh/NMR_VolumeDataColor.h" + namespace Lib3MF { namespace Impl { @@ -64,15 +64,13 @@ class CVolumeDataColor : public virtual IVolumeDataColor, public virtual CFuncti /** * Put protected members here. */ - NMR::PVolumeDataColor asVolumeDataColor(); public: /** * Put additional public members here. They will not be visible in the external API. */ - CVolumeDataColor() = delete; - CVolumeDataColor(NMR::PVolumeDataColor pColor); + /** * Public member functions to implement. diff --git a/Include/API/lib3mf_volumedatacomposite.hpp b/Include/API/lib3mf_volumedatacomposite.hpp index b2f9ebf2..7bdccf7b 100644 --- a/Include/API/lib3mf_volumedatacomposite.hpp +++ b/Include/API/lib3mf_volumedatacomposite.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,7 +42,7 @@ Abstract: This is the class declaration of CVolumeDataComposite #endif // Include custom headers here. -#include "Common/Mesh/NMR_VolumeDataComposite.h" + namespace Lib3MF { namespace Impl { @@ -58,27 +58,24 @@ class CVolumeDataComposite : public virtual IVolumeDataComposite, public virtual /** * Put private members here. */ - NMR::PVolumeDataComposite m_pVolumeDataComposite; protected: /** * Put protected members here. */ - NMR::PVolumeDataComposite volumeDataComposite(); - public: /** * Put additional public members here. They will not be visible in the external API. */ - CVolumeDataComposite() = delete; - CVolumeDataComposite(NMR::PVolumeDataComposite pComposite); + /** * Public member functions to implement. */ + IBaseMaterialGroup * GetBaseMaterialGroup() override; void SetBaseMaterialGroup(IBaseMaterialGroup* pBaseMaterialGroupInstance) override; diff --git a/Include/API/lib3mf_volumedataproperty.hpp b/Include/API/lib3mf_volumedataproperty.hpp index 696ae530..530df6ac 100644 --- a/Include/API/lib3mf_volumedataproperty.hpp +++ b/Include/API/lib3mf_volumedataproperty.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,7 +42,7 @@ Abstract: This is the class declaration of CVolumeDataProperty #endif // Include custom headers here. -#include "Common/Mesh/NMR_VolumeDataProperty.h" + namespace Lib3MF { namespace Impl { @@ -64,15 +64,13 @@ class CVolumeDataProperty : public virtual IVolumeDataProperty, public virtual C /** * Put protected members here. */ - NMR::PVolumeDataProperty asVolumeDataProperty(); public: /** * Put additional public members here. They will not be visible in the external API. */ - CVolumeDataProperty() = delete; - CVolumeDataProperty(NMR::PVolumeDataProperty pProperty); + /** * Public member functions to implement. @@ -83,6 +81,7 @@ class CVolumeDataProperty : public virtual IVolumeDataProperty, public virtual C void SetIsRequired(const bool bIsRequired) override; bool IsRequired() override; + }; } // namespace Impl diff --git a/Include/API/lib3mf_writer.hpp b/Include/API/lib3mf_writer.hpp index 9aebe509..31aaf7ee 100644 --- a/Include/API/lib3mf_writer.hpp +++ b/Include/API/lib3mf_writer.hpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,41 +33,32 @@ Abstract: This is the class declaration of CWriter #define __LIB3MF_WRITER #include "lib3mf_interfaces.hpp" + +// Parent classes #include "lib3mf_base.hpp" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4250) #endif - // Include custom headers here. -#include "Model/Writer/NMR_ModelWriter.h" -#include "Model/Writer/NMR_ModelWriter_3MF_Native.h" -#include "Model/Writer/NMR_ModelWriter_STL.h" -namespace NMR { - class CExportStreamMemory; - using PExportStreamMemory = std::shared_ptr; -} namespace Lib3MF { namespace Impl { + /************************************************************************************************************************* Class declaration of CWriter **************************************************************************************************************************/ -#define LIB3MF_WRITER_MAXKEYSIZE (1UL << 31) - class CWriter : public virtual IWriter, public virtual CBase { private: /** * Put private members here. */ - NMR::PModelWriter m_pWriter; - NMR::PExportStreamMemory momentBuffer; protected: /** @@ -79,9 +70,8 @@ class CWriter : public virtual IWriter, public virtual CBase { /** * Put additional public members here. They will not be visible in the external API. */ - CWriter(std::string sWriterClass, NMR::PModel model); - NMR::CModelWriter& writer(); + /** * Public member functions to implement. */ @@ -92,18 +82,14 @@ class CWriter : public virtual IWriter, public virtual CBase { void WriteToBuffer(Lib3MF_uint64 nBufferBufferSize, Lib3MF_uint64* pBufferNeededCount, Lib3MF_uint8 * pBufferBuffer) override; - void WriteToCallback(const Lib3MFWriteCallback pTheWriteCallback, const Lib3MFSeekCallback pTheSeekCallback, const Lib3MF_pvoid pUserData) override; + void WriteToCallback(const Lib3MF::WriteCallback pTheWriteCallback, const Lib3MF::SeekCallback pTheSeekCallback, const Lib3MF_pvoid pUserData) override; - void SetProgressCallback(const Lib3MFProgressCallback pProgressCallback, const Lib3MF_pvoid pUserData) override; + void SetProgressCallback(const Lib3MF::ProgressCallback pProgressCallback, const Lib3MF_pvoid pUserData) override; Lib3MF_uint32 GetDecimalPrecision() override; void SetDecimalPrecision(const Lib3MF_uint32 nDecimalPrecision) override; - void AddKeyWrappingCallback(const std::string & sConsumerID, const Lib3MF::KeyWrappingCallback pTheCallback, const Lib3MF_pvoid pUserData) override; - - void SetContentEncryptionCallback(const Lib3MF::ContentEncryptionCallback pTheCallback, const Lib3MF_pvoid pUserData) override; - void SetStrictModeActive(const bool bStrictModeActive) override; bool GetStrictModeActive() override; @@ -112,10 +98,14 @@ class CWriter : public virtual IWriter, public virtual CBase { Lib3MF_uint32 GetWarningCount() override; + void AddKeyWrappingCallback(const std::string & sConsumerID, const Lib3MF::KeyWrappingCallback pTheCallback, const Lib3MF_pvoid pUserData) override; + + void SetContentEncryptionCallback(const Lib3MF::ContentEncryptionCallback pTheCallback, const Lib3MF_pvoid pUserData) override; + }; -} -} +} // namespace Impl +} // namespace Lib3MF #ifdef _MSC_VER #pragma warning(pop) diff --git a/Source/API/lib3mf.cpp b/Source/API/lib3mf.cpp index 4b309cab..c411457a 100644 --- a/Source/API/lib3mf.cpp +++ b/Source/API/lib3mf.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -24,12 +24,12 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -This file has been generated by the Automatic Component Toolkit (ACT) version 1.5.0. +This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.0-develop. Abstract: This is an autogenerated C++ implementation file in order to allow easy development of the 3MF Library. It needs to be generated only once. -Interface version: 2.3.2 +Interface version: 2.4.0 */ @@ -37,14 +37,7 @@ Interface version: 2.3.2 #include "lib3mf_interfaces.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_model.hpp" - -#include "NMR_Spec_Version.h" -#include "Model/Classes/NMR_ModelConstants.h" -#include "Common/3MF_ProgressMonitor.h" -#include -#include - +using namespace Lib3MF; using namespace Lib3MF::Impl; void CWrapper::GetLibraryVersion(Lib3MF_uint32 & nMajor, Lib3MF_uint32 & nMinor, Lib3MF_uint32 & nMicro) @@ -56,63 +49,25 @@ void CWrapper::GetLibraryVersion(Lib3MF_uint32 & nMajor, Lib3MF_uint32 & nMinor, bool CWrapper::GetPrereleaseInformation(std::string & sPrereleaseInfo) { - sPrereleaseInfo = LIB3MF_VERSION_PRERELEASEINFO; - return !sPrereleaseInfo.empty(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } bool CWrapper::GetBuildInformation(std::string & sBuildInformation) { - sBuildInformation = LIB3MF_VERSION_BUILDINFO; - return !sBuildInformation.empty(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - -void CWrapper::GetSpecificationVersion (const std::string & sSpecificationURL, bool & bIsSupported, Lib3MF_uint32 & nMajor, Lib3MF_uint32 & nMinor, Lib3MF_uint32 & nMicro) +void CWrapper::GetSpecificationVersion(const std::string & sSpecificationURL, bool & bIsSupported, Lib3MF_uint32 & nMajor, Lib3MF_uint32 & nMinor, Lib3MF_uint32 & nMicro) { - if (!sSpecificationURL.compare(std::string(XML_3MF_NAMESPACE_CORESPEC100))) { - nMajor = NMR_SPECVERSION_MAJOR; - nMinor = NMR_SPECVERSION_MINOR; - nMicro = NMR_SPECVERSION_MICRO; - bIsSupported = true; - } else if (!sSpecificationURL.compare( std::string(XML_3MF_NAMESPACE_MATERIALSPEC) )) { - nMajor = NMR_SPECVERSION_MATERIAL_MAJOR; - nMinor = NMR_SPECVERSION_MATERIAL_MINOR; - nMicro = NMR_SPECVERSION_MATERIAL_MICRO; - bIsSupported = true; - } else if (!sSpecificationURL.compare( std::string(XML_3MF_NAMESPACE_PRODUCTIONSPEC) )) { - nMajor = NMR_SPECVERSION_PRODUCTION_MAJOR; - nMinor = NMR_SPECVERSION_PRODUCTION_MINOR; - nMicro = NMR_SPECVERSION_PRODUCTION_MICRO; - bIsSupported = true; - } else if (!sSpecificationURL.compare( std::string(XML_3MF_NAMESPACE_BEAMLATTICESPEC) )) { - nMajor = NMR_SPECVERSION_BEAMLATTICE_MAJOR; - nMinor = NMR_SPECVERSION_BEAMLATTICE_MINOR; - nMicro = NMR_SPECVERSION_BEAMLATTICE_MICRO; - bIsSupported = true; - } - else if (!sSpecificationURL.compare(std::string(XML_3MF_NAMESPACE_SLICESPEC))) { - nMajor = NMR_SPECVERSION_SLICE_MAJOR; - nMinor = NMR_SPECVERSION_SLICE_MINOR; - nMicro = NMR_SPECVERSION_SLICE_MICRO; - bIsSupported = true; - } - else if (!sSpecificationURL.compare(std::string(XML_3MF_NAMESPACE_SECURECONTENTSPEC))) { - nMajor = NMR_SPECVERSION_SECURECONTENT_MAJOR; - nMinor = NMR_SPECVERSION_SECURECONTENT_MINOR; - nMicro = NMR_SPECVERSION_SECURECONTENT_MICRO; - bIsSupported = true; - } - else { - bIsSupported = false; - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IModel * CWrapper::CreateModel () +IModel * CWrapper::CreateModel() { - return new CModel(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CWrapper::Release (IBase* pInstance) +void CWrapper::Release(IBase* pInstance) { IBase::ReleaseBaseClassInterface(pInstance); } @@ -122,139 +77,58 @@ void CWrapper::Acquire(IBase* pInstance) IBase::AcquireBaseClassInterface(pInstance); } -NMR::ProgressIdentifier convertProgressIdentifier(const eLib3MFProgressIdentifier progressIdentifier) { - return NMR::ProgressIdentifier(progressIdentifier); - //switch (progressIdentifier) { - // case eLib3MFProgressIdentifier::eProgressIdentifierQUERYCANCELED: return NMR::PROGRESS_QUERYCANCELED; - // case eLib3MFProgressIdentifier::eProgressIdentifierDONE: return NMR::PROGRESS_DONE; - // case eLib3MFProgressIdentifier::eProgressIdentifierCLEANUP: return NMR::PROGRESS_CLEANUP; - // case eLib3MFProgressIdentifier::eProgressIdentifierREADSTREAM: return NMR::PROGRESS_READSTREAM; - // case eLib3MFProgressIdentifier::eProgressIdentifierEXTRACTOPCPACKAGE: return NMR::PROGRESS_EXTRACTOPCPACKAGE; - // case eLib3MFProgressIdentifier::eProgressIdentifierREADNONROOTMODELS: return NMR::PROGRESS_READNONROOTMODELS; - // case eLib3MFProgressIdentifier::eProgressIdentifierREADROOTMODEL: return NMR::PROGRESS_READROOTMODEL; - // case eLib3MFProgressIdentifier::eProgressIdentifierREADRESOURCES: return NMR::PROGRESS_READRESOURCES; - // case eLib3MFProgressIdentifier::eProgressIdentifierREADMESH: return NMR::PROGRESS_READMESH; - // case eLib3MFProgressIdentifier::eProgressIdentifierREADSLICES: return NMR::PROGRESS_READSLICES; - // case eLib3MFProgressIdentifier::eProgressIdentifierREADBUILD: return NMR::PROGRESS_READBUILD; - // case eLib3MFProgressIdentifier::eProgressIdentifierCREATEOPCPACKAGE: return NMR::PROGRESS_CREATEOPCPACKAGE; - // case eLib3MFProgressIdentifier::eProgressIdentifierWRITEMODELSTOSTREAM: return NMR::PROGRESS_WRITEMODELSTOSTREAM; - // case eLib3MFProgressIdentifier::eProgressIdentifierWRITEROOTMODEL: return NMR::PROGRESS_WRITEROOTMODEL; - // case eLib3MFProgressIdentifier::eProgressIdentifierWRITENONROOTMODELS: return NMR::PROGRESS_WRITENONROOTMODELS; - // case eLib3MFProgressIdentifier::eProgressIdentifierWRITEATTACHMENTS: return NMR::PROGRESS_WRITEATTACHMENTS; - // case eLib3MFProgressIdentifier::eProgressIdentifierWRITECONTENTTYPES: return NMR::PROGRESS_WRITECONTENTTYPES; - // case eLib3MFProgressIdentifier::eProgressIdentifierWRITENOBJECTS: return NMR::PROGRESS_WRITENOBJECTS; - // case eLib3MFProgressIdentifier::eProgressIdentifierWRITENODES: return NMR::PROGRESS_WRITENODES; - // case eLib3MFProgressIdentifier::eProgressIdentifierWRITETRIANGLES: return NMR::PROGRESS_WRITETRIANGLES; - // case eLib3MFProgressIdentifier::eProgressIdentifierWRITESLICES: return NMR::PROGRESS_WRITESLICES; - // default: throw ELib3MFInterfaceException(LIB3MF_ERROR_UNKOWNPROGRESSIDENTIFIER); - //} -} - -bool CWrapper::GetLastError (IBase* pInstance, std::string & sLastErrorString) +bool CWrapper::GetLastError(IBase* pInstance, std::string & sLastErrorString) { - if (pInstance != nullptr) - return pInstance->GetLastErrorMessage(sLastErrorString); - - return false; + if (pInstance) { + return pInstance->GetLastErrorMessage (sLastErrorString); + } else { + return false; + } } -void CWrapper::RetrieveProgressMessage (const eLib3MFProgressIdentifier eProrgessIdentifier, std::string & sProgressMessage) +void CWrapper::RetrieveProgressMessage(const Lib3MF::eProgressIdentifier eTheProgressIdentifier, std::string & sProgressMessage) { - NMR::CProgressMonitor::GetProgressMessage(convertProgressIdentifier(eProrgessIdentifier), sProgressMessage); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -sLib3MFColor CWrapper::RGBAToColor (const Lib3MF_uint8 nRed, const Lib3MF_uint8 nGreen, const Lib3MF_uint8 nBlue, const Lib3MF_uint8 nAlpha) +Lib3MF::sColor CWrapper::RGBAToColor(const Lib3MF_uint8 nRed, const Lib3MF_uint8 nGreen, const Lib3MF_uint8 nBlue, const Lib3MF_uint8 nAlpha) { - sLib3MFColor s; - s.m_Red = nRed; - s.m_Green = nGreen; - s.m_Blue = nBlue; - s.m_Alpha = nAlpha; - return s; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -sLib3MFColor CWrapper::FloatRGBAToColor (const Lib3MF_single fRed, const Lib3MF_single fGreen, const Lib3MF_single fBlue, const Lib3MF_single fAlpha) +Lib3MF::sColor CWrapper::FloatRGBAToColor(const Lib3MF_single fRed, const Lib3MF_single fGreen, const Lib3MF_single fBlue, const Lib3MF_single fAlpha) { - sLib3MFColor s; - s.m_Red = (Lib3MF_uint8)std::round(std::max(std::min(fRed, 1.f), 0.f) * 255.0f); - s.m_Green = (Lib3MF_uint8)std::round(std::max(std::min(fGreen, 1.f), 0.f) * 255.0f); - s.m_Blue = (Lib3MF_uint8)std::round(std::max(std::min(fBlue, 1.f), 0.f) * 255.0f); - s.m_Alpha = (Lib3MF_uint8)std::round(std::max(std::min(fAlpha, 1.f), 0.f) * 255.0f); - return s; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CWrapper::ColorToRGBA (const sLib3MFColor TheColor, Lib3MF_uint8 & nRed, Lib3MF_uint8 & nGreen, Lib3MF_uint8 & nBlue, Lib3MF_uint8 & nAlpha) +void CWrapper::ColorToRGBA(const Lib3MF::sColor TheColor, Lib3MF_uint8 & nRed, Lib3MF_uint8 & nGreen, Lib3MF_uint8 & nBlue, Lib3MF_uint8 & nAlpha) { - nRed = TheColor.m_Red; - nGreen = TheColor.m_Green; - nBlue = TheColor.m_Blue; - nAlpha = TheColor.m_Alpha; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CWrapper::ColorToFloatRGBA (const sLib3MFColor TheColor, Lib3MF_single & fRed, Lib3MF_single & fGreen, Lib3MF_single & fBlue, Lib3MF_single & fAlpha) +void CWrapper::ColorToFloatRGBA(const Lib3MF::sColor TheColor, Lib3MF_single & fRed, Lib3MF_single & fGreen, Lib3MF_single & fBlue, Lib3MF_single & fAlpha) { - fRed = TheColor.m_Red / 255.f; - fGreen = TheColor.m_Green / 255.f; - fBlue = TheColor.m_Blue / 255.f; - fAlpha = TheColor.m_Alpha / 255.f; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -sLib3MFTransform CWrapper::GetIdentityTransform () +Lib3MF::sTransform CWrapper::GetIdentityTransform() { - int i, j; - sLib3MFTransform Transform; - - for (i = 0; i < 4; i++) - for (j = 0; j < 3; j++) - Transform.m_Fields[i][j] = (i == j) ? 1.0f : 0.0f; - - return Transform; - + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -sLib3MFTransform CWrapper::GetUniformScaleTransform (const Lib3MF_single fFactor) +Lib3MF::sTransform CWrapper::GetUniformScaleTransform(const Lib3MF_single fFactor) { - int i, j; - sLib3MFTransform Transform; - - for (i = 0; i < 4; i++) - for (j = 0; j < 3; j++) - Transform.m_Fields[i][j] = (i == j) ? fFactor : 0.0f; - - return Transform; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -sLib3MFTransform CWrapper::GetScaleTransform (const Lib3MF_single fFactorX, const Lib3MF_single fFactorY, const Lib3MF_single fFactorZ) +Lib3MF::sTransform CWrapper::GetScaleTransform(const Lib3MF_single fFactorX, const Lib3MF_single fFactorY, const Lib3MF_single fFactorZ) { - int i, j; - sLib3MFTransform Transform; - - for (i = 0; i < 4; i++) - for (j = 0; j < 3; j++) - Transform.m_Fields[i][j] = (i == j) ? 1.0f : 0.0f; - - Transform.m_Fields[0][0] = fFactorX; - Transform.m_Fields[1][1] = fFactorY; - Transform.m_Fields[2][2] = fFactorZ; - - return Transform; - + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -sLib3MFTransform CWrapper::GetTranslationTransform(const Lib3MF_single fVectorX, const Lib3MF_single fVectorY, const Lib3MF_single fVectorZ) +Lib3MF::sTransform CWrapper::GetTranslationTransform(const Lib3MF_single fVectorX, const Lib3MF_single fVectorY, const Lib3MF_single fVectorZ) { - int i, j; - sLib3MFTransform Transform; - - for (i = 0; i < 3; i++) - for (j = 0; j < 3; j++) - Transform.m_Fields[i][j] = (i == j) ? 1.0f : 0.0f; - - Transform.m_Fields[3][0] = fVectorX; - Transform.m_Fields[3][1] = fVectorY; - Transform.m_Fields[3][2] = fVectorZ; - - return Transform; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_absnode.cpp b/Source/API/lib3mf_absnode.cpp index 8b842d69..7990eb82 100644 --- a/Source/API/lib3mf_absnode.cpp +++ b/Source/API/lib3mf_absnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CAbsNode */ #include "lib3mf_absnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CAbsNode + Class definition of CAbsNode **************************************************************************************************************************/ -Lib3MF::Impl::CAbsNode::CAbsNode(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode(pImplicitNode) -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_accessright.cpp b/Source/API/lib3mf_accessright.cpp index db61aa1f..8380c929 100644 --- a/Source/API/lib3mf_accessright.cpp +++ b/Source/API/lib3mf_accessright.cpp @@ -1,32 +1,62 @@ +/*++ + +Copyright (C) 2024 3MF Consortium (Original Author) + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Abstract: This is a stub class definition of CAccessRight + +*/ + #include "lib3mf_accessright.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_consumer.hpp" + +// Include custom headers here. + using namespace Lib3MF::Impl; -Lib3MF::Impl::CAccessRight::CAccessRight(NMR::PKeyStoreAccessRight ar) { - m_pAccessRight = ar; -} +/************************************************************************************************************************* + Class definition of CAccessRight +**************************************************************************************************************************/ -IConsumer * Lib3MF::Impl::CAccessRight::GetConsumer() { - return new CConsumer(m_pAccessRight->getConsumer()); +IConsumer * CAccessRight::GetConsumer() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF::eWrappingAlgorithm Lib3MF::Impl::CAccessRight::GetWrappingAlgorithm() { - NMR::eKeyStoreWrapAlgorithm ea = m_pAccessRight->getAlgorithm(); - return static_cast(ea); +Lib3MF::eWrappingAlgorithm CAccessRight::GetWrappingAlgorithm() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF::eMgfAlgorithm Lib3MF::Impl::CAccessRight::GetMgfAlgorithm() { - NMR::eKeyStoreMaskGenerationFunction mgf = m_pAccessRight->getMgf(); - return static_cast(mgf); +Lib3MF::eMgfAlgorithm CAccessRight::GetMgfAlgorithm() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF::eDigestMethod Lib3MF::Impl::CAccessRight::GetDigestMethod() { - NMR::eKeyStoreMessageDigest digest = m_pAccessRight->getDigest(); - return static_cast(digest); +Lib3MF::eDigestMethod CAccessRight::GetDigestMethod() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -NMR::PKeyStoreAccessRight Lib3MF::Impl::CAccessRight::accessRight() const { - return m_pAccessRight; -} \ No newline at end of file diff --git a/Source/API/lib3mf_additionnode.cpp b/Source/API/lib3mf_additionnode.cpp index a4fd9f02..7350facf 100644 --- a/Source/API/lib3mf_additionnode.cpp +++ b/Source/API/lib3mf_additionnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,9 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CAdditionNode **************************************************************************************************************************/ -CAdditionNode::CAdditionNode( - NMR::PModelImplicitNode pImplicitNode) - : CTwoInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_arccosnode.cpp b/Source/API/lib3mf_arccosnode.cpp index 289cca36..19baf359 100644 --- a/Source/API/lib3mf_arccosnode.cpp +++ b/Source/API/lib3mf_arccosnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CArcCosNode */ #include "lib3mf_arccosnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CArcCosNode + Class definition of CArcCosNode **************************************************************************************************************************/ -Lib3MF::Impl::CArcCosNode::CArcCosNode(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_arcsinnode.cpp b/Source/API/lib3mf_arcsinnode.cpp index 4f415168..757b99e4 100644 --- a/Source/API/lib3mf_arcsinnode.cpp +++ b/Source/API/lib3mf_arcsinnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CArcSinNode */ #include "lib3mf_arcsinnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CArcSinNode + Class definition of CArcSinNode **************************************************************************************************************************/ -Lib3MF::Impl::CArcSinNode::CArcSinNode(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_arctan2node.cpp b/Source/API/lib3mf_arctan2node.cpp index 3401ab6b..afe559e2 100644 --- a/Source/API/lib3mf_arctan2node.cpp +++ b/Source/API/lib3mf_arctan2node.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,7 +32,6 @@ Abstract: This is a stub class definition of CArcTan2Node #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_twoinputnode.hpp" using namespace Lib3MF::Impl; @@ -41,8 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CArcTan2Node **************************************************************************************************************************/ -Lib3MF::Impl::CArcTan2Node::CArcTan2Node(NMR::PModelImplicitNode pImplicitNode) -: CTwoInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_arctannode.cpp b/Source/API/lib3mf_arctannode.cpp index 2439cdd8..9ec66cd1 100644 --- a/Source/API/lib3mf_arctannode.cpp +++ b/Source/API/lib3mf_arctannode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,8 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CArcTanNode **************************************************************************************************************************/ -Lib3MF::Impl::CArcTanNode::CArcTanNode(NMR::PModelImplicitNode pImplicitNode) -: COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_attachment.cpp b/Source/API/lib3mf_attachment.cpp index 63c06861..ca2d57ad 100644 --- a/Source/API/lib3mf_attachment.cpp +++ b/Source/API/lib3mf_attachment.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,11 +32,7 @@ Abstract: This is a stub class definition of CAttachment #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "Common/Platform/NMR_ImportStream_Unique_Memory.h" -#include "Common/Platform/NMR_ImportStream_Callback.h" -#include "Common/Platform/NMR_ImportStream.h" -#include "Common/Platform/NMR_Platform.h" -#include "Common/NMR_StringUtils.h" + using namespace Lib3MF::Impl; @@ -44,31 +40,14 @@ using namespace Lib3MF::Impl; Class definition of CAttachment **************************************************************************************************************************/ -CAttachment::CAttachment(NMR::PModelAttachment pModelAttachment) - : m_pModelAttachment(pModelAttachment) -{ - -} - -std::string CAttachment::GetPath () +std::string CAttachment::GetPath() { - return m_pModelAttachment->getPathURI(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CAttachment::SetPath (const std::string & sPath) +void CAttachment::SetPath(const std::string & sPath) { - NMR::CModel * pModel = m_pModelAttachment->getModel(); - NMR::PImportStream pStream = m_pModelAttachment->getStream(); - if (pModel->getPackageThumbnail() == m_pModelAttachment) { - // different handling for package-wide attachment - pModel->removePackageThumbnail(); - m_pModelAttachment = pModel->addPackageThumbnail(sPath, pStream); - } - else { - std::string sRelationshipType = m_pModelAttachment->getRelationShipType(); - pModel->removeAttachment(m_pModelAttachment->getPathURI()); - m_pModelAttachment = pModel->addAttachment(sPath, sRelationshipType, pStream); - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IPackagePart * CAttachment::PackagePart() @@ -76,93 +55,43 @@ IPackagePart * CAttachment::PackagePart() throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -std::string CAttachment::GetRelationShipType () +std::string CAttachment::GetRelationShipType() { - return m_pModelAttachment->getRelationShipType(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CAttachment::SetRelationShipType (const std::string & sPath) +void CAttachment::SetRelationShipType(const std::string & sPath) { - m_pModelAttachment->setRelationShipType(sPath); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CAttachment::WriteToFile (const std::string & sFileName) +void CAttachment::WriteToFile(const std::string & sFileName) { - NMR::PImportStream pStream = m_pModelAttachment->getStream(); - - if (pStream.get() != nullptr) { - pStream->writeToFile(NMR::fnUTF8toUTF16(sFileName).c_str()); - } else { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDATTACHMENTSTREAM); - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CAttachment::ReadFromFile (const std::string & sFileName) +void CAttachment::ReadFromFile(const std::string & sFileName) { - NMR::PImportStream pImportStream = NMR::fnCreateImportStreamInstance(sFileName.c_str()); - - m_pModelAttachment->setStream(pImportStream); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CAttachment::ReadFromCallback(const Lib3MF::ReadCallback pTheReadCallback, const Lib3MF_uint64 nStreamSize, const Lib3MF::SeekCallback pTheSeekCallback, const Lib3MF_pvoid pUserData) { - NMR::ImportStream_ReadCallbackType lambdaReadCallback = - [pTheReadCallback](NMR::nfByte* pData, NMR::nfUint64 cbBytes, void* pUserData) - { - (*pTheReadCallback)(reinterpret_cast(pData), cbBytes, pUserData); - return 0; - }; - - NMR::ImportStream_SeekCallbackType lambdaSeekCallback = - [pTheSeekCallback](NMR::nfUint64 nPosition, void* pUserData) - { - (*pTheSeekCallback)(nPosition, pUserData); - return 0; - }; - - NMR::PImportStream pImportStream = std::make_shared( - lambdaReadCallback, lambdaSeekCallback, - pUserData, nStreamSize); - try { - m_pModelAttachment->setStream(pImportStream); - } - catch (NMR::CNMRException& e) { - if (e.getErrorCode() == NMR_USERABORTED) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_CALCULATIONABORTED); - } - else throw e; - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - -Lib3MF_uint64 CAttachment::GetStreamSize () +Lib3MF_uint64 CAttachment::GetStreamSize() { - NMR::PImportStream pStream = m_pModelAttachment->getStream(); - return pStream->retrieveSize(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CAttachment::WriteToBuffer (Lib3MF_uint64 nBufferBufferSize, Lib3MF_uint64* pBufferNeededCount, Lib3MF_uint8 * pBufferBuffer) +void CAttachment::WriteToBuffer(Lib3MF_uint64 nBufferBufferSize, Lib3MF_uint64* pBufferNeededCount, Lib3MF_uint8 * pBufferBuffer) { - NMR::PImportStream pStream = m_pModelAttachment->getStream(); - - Lib3MF_uint64 cbStreamSize = pStream->retrieveSize(); - if (pBufferNeededCount) - *pBufferNeededCount = cbStreamSize; - - if (nBufferBufferSize >= cbStreamSize) { - pStream->seekPosition(0, true); - pStream->readIntoBuffer(pBufferBuffer, cbStreamSize, true); - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CAttachment::ReadFromBuffer(const Lib3MF_uint64 nBufferBufferSize, const Lib3MF_uint8 * pBufferBuffer) { - NMR::PImportStream pImportStream = std::make_shared(pBufferBuffer, nBufferBufferSize); - m_pModelAttachment->setStream(pImportStream); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - -NMR::PModelAttachment CAttachment::getModelAttachment() -{ - return m_pModelAttachment; -} diff --git a/Source/API/lib3mf_base.cpp b/Source/API/lib3mf_base.cpp index 44203c3b..fbc953ca 100644 --- a/Source/API/lib3mf_base.cpp +++ b/Source/API/lib3mf_base.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,8 +42,8 @@ using namespace Lib3MF::Impl; bool CBase::GetLastErrorMessage(std::string & sErrorMessage) { - if (m_pErrors && !m_pErrors->empty()) { - sErrorMessage = m_pErrors->back(); + if (m_pLastError.get() != nullptr) { + sErrorMessage = *m_pLastError; return true; } else { sErrorMessage = ""; @@ -53,16 +53,15 @@ bool CBase::GetLastErrorMessage(std::string & sErrorMessage) void CBase::ClearErrorMessages() { - m_pErrors.reset(); + m_pLastError.reset(); } void CBase::RegisterErrorMessage(const std::string & sErrorMessage) { - if (!m_pErrors) { - m_pErrors.reset(new std::list()); + if (m_pLastError.get() == nullptr) { + m_pLastError.reset(new std::string()); } - m_pErrors->clear(); - m_pErrors->push_back(sErrorMessage); + *m_pLastError = sErrorMessage; } void CBase::IncRefCount() @@ -80,3 +79,8 @@ bool CBase::DecRefCount() return false; } +Lib3MF_uint64 CBase::ClassTypeId() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + diff --git a/Source/API/lib3mf_basematerialgroup.cpp b/Source/API/lib3mf_basematerialgroup.cpp index ce985a59..72666622 100644 --- a/Source/API/lib3mf_basematerialgroup.cpp +++ b/Source/API/lib3mf_basematerialgroup.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,86 +40,43 @@ using namespace Lib3MF::Impl; Class definition of CBaseMaterialGroup **************************************************************************************************************************/ -CBaseMaterialGroup::CBaseMaterialGroup(NMR::PModelBaseMaterialResource pResource) - : CResource(std::static_pointer_cast(pResource)) +Lib3MF_uint32 CBaseMaterialGroup::GetCount() { + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -NMR::CModelBaseMaterialResource& CBaseMaterialGroup::baseMaterialGroup() -{ - NMR::CModelBaseMaterialResource* pBaseMaterialGroup = dynamic_cast(resource().get()); - if (pBaseMaterialGroup == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDBASEMATERIALGROUP); - return *pBaseMaterialGroup; -} - -Lib3MF_uint32 CBaseMaterialGroup::GetCount () -{ - return baseMaterialGroup().getCount(); -} - -Lib3MF_uint32 CBaseMaterialGroup::AddMaterial(const std::string & sName, const sLib3MFColor DisplayColor) +void CBaseMaterialGroup::GetAllPropertyIDs(Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) { - NMR::nfColor cColor = DisplayColor.m_Red | (DisplayColor.m_Green << 8) | (DisplayColor.m_Blue << 16) | (DisplayColor.m_Alpha << 24); - - return baseMaterialGroup().addBaseMaterial(sName, cColor); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBaseMaterialGroup::RemoveMaterial (const Lib3MF_uint32 nPropertyID) +Lib3MF_uint32 CBaseMaterialGroup::AddMaterial(const std::string & sName, const Lib3MF::sColor DisplayColor) { - baseMaterialGroup().removeMaterial(nPropertyID); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -std::string CBaseMaterialGroup::GetName (const Lib3MF_uint32 nPropertyID) +void CBaseMaterialGroup::RemoveMaterial(const Lib3MF_uint32 nPropertyID) { - return baseMaterialGroup().getBaseMaterial(nPropertyID)->getName(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBaseMaterialGroup::SetName (const Lib3MF_uint32 nPropertyID, const std::string & sName) +std::string CBaseMaterialGroup::GetName(const Lib3MF_uint32 nPropertyID) { - baseMaterialGroup().getBaseMaterial(nPropertyID)->setName(sName); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBaseMaterialGroup::SetDisplayColor(const Lib3MF_uint32 nPropertyID, const sLib3MFColor TheColor) +void CBaseMaterialGroup::SetName(const Lib3MF_uint32 nPropertyID, const std::string & sName) { - NMR::nfColor cColor = TheColor.m_Red | (TheColor.m_Green << 8) | (TheColor.m_Blue << 16) | (TheColor.m_Alpha << 24); - baseMaterialGroup().getBaseMaterial(nPropertyID)->setColor(cColor); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -sLib3MFColor CBaseMaterialGroup::GetDisplayColor(const Lib3MF_uint32 nPropertyID) +void CBaseMaterialGroup::SetDisplayColor(const Lib3MF_uint32 nPropertyID, const Lib3MF::sColor TheColor) { - NMR::nfColor cColor = baseMaterialGroup().getBaseMaterial(nPropertyID)->getDisplayColor(); - sLib3MFColor c; - c.m_Red = (cColor) & 0xff; - c.m_Green = (cColor >> 8) & 0xff; - c.m_Blue = (cColor >> 16) & 0xff; - c.m_Alpha = (cColor >> 24) & 0xff; - return c; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBaseMaterialGroup::GetAllPropertyIDs(Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) +Lib3MF::sColor CBaseMaterialGroup::GetDisplayColor(const Lib3MF_uint32 nPropertyID) { - Lib3MF_uint32 nMaterialCount = baseMaterialGroup().getCount(); - - if (pPropertyIDsNeededCount) - *pPropertyIDsNeededCount = nMaterialCount; - - if (nPropertyIDsBufferSize >= nMaterialCount && pPropertyIDsBuffer) { - if (!baseMaterialGroup().hasResourceIndexMap()) { - baseMaterialGroup().buildResourceIndexMap(); - } - for (Lib3MF_uint32 i = 0; i < nMaterialCount; i++) { - DWORD nPropertyID; - if (baseMaterialGroup().mapResourceIndexToPropertyID(i, nPropertyID)) { - *pPropertyIDsBuffer = nPropertyID; - } - else { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDRESOURCEINDEX); - } - pPropertyIDsBuffer++; - } - } - + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - diff --git a/Source/API/lib3mf_basematerialgroupiterator.cpp b/Source/API/lib3mf_basematerialgroupiterator.cpp index 281dd80a..f489b932 100644 --- a/Source/API/lib3mf_basematerialgroupiterator.cpp +++ b/Source/API/lib3mf_basematerialgroupiterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -30,7 +30,7 @@ Abstract: This is a stub class definition of CBaseMaterialGroupIterator #include "lib3mf_basematerialgroupiterator.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_basematerialgroup.hpp" + // Include custom headers here. @@ -42,11 +42,6 @@ using namespace Lib3MF::Impl; IBaseMaterialGroup * CBaseMaterialGroupIterator::GetCurrentBaseMaterialGroup() { - // Create specific API class - return new CBaseMaterialGroup(std::dynamic_pointer_cast(GetCurrentResource())); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IResource * CBaseMaterialGroupIterator::GetCurrent() -{ - return GetCurrentBaseMaterialGroup(); -} diff --git a/Source/API/lib3mf_beamlattice.cpp b/Source/API/lib3mf_beamlattice.cpp index e2c9a8ec..05f72085 100644 --- a/Source/API/lib3mf_beamlattice.cpp +++ b/Source/API/lib3mf_beamlattice.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -31,7 +31,6 @@ Abstract: This is a stub class definition of CBeamLattice #include "lib3mf_beamlattice.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_beamset.hpp" // Include custom headers here. @@ -41,446 +40,118 @@ using namespace Lib3MF::Impl; Class definition of CBeamLattice **************************************************************************************************************************/ -CBeamLattice::CBeamLattice(NMR::PModelMeshObject pMeshObject, NMR::PModelMeshBeamLatticeAttributes pAttributes): - m_mesh(*pMeshObject->getMesh()), m_pAttributes(pAttributes), m_pMeshObject(pMeshObject) +Lib3MF_double CBeamLattice::GetMinLength() { - + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_double CBeamLattice::GetMinLength () +void CBeamLattice::SetMinLength(const Lib3MF_double dMinLength) { - return m_mesh.getBeamLatticeMinLength(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBeamLattice::SetMinLength (const Lib3MF_double dMinLength) +void CBeamLattice::GetClipping(Lib3MF::eBeamLatticeClipMode & eClipMode, Lib3MF_uint32 & nUniqueResourceID) { - return m_mesh.setBeamLatticeMinLength(dMinLength); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBeamLattice::GetClipping(eLib3MFBeamLatticeClipMode & eClipMode, Lib3MF_uint32 & nUniqueResourceID) +void CBeamLattice::SetClipping(const Lib3MF::eBeamLatticeClipMode eClipMode, const Lib3MF_uint32 nUniqueResourceID) { - if (!m_pAttributes->m_bHasClippingMeshID) { - eClipMode = eBeamLatticeClipMode::NoClipMode; - nUniqueResourceID = 0; - } - else { - eClipMode = eBeamLatticeClipMode(m_pAttributes->m_eClipMode); - nUniqueResourceID = m_pAttributes->m_pClippingMeshUniqueID->getUniqueID(); - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBeamLattice::SetClipping(const eLib3MFBeamLatticeClipMode eClipMode, const Lib3MF_uint32 nUniqueResourceID) +bool CBeamLattice::GetRepresentation(Lib3MF_uint32 & nUniqueResourceID) { - if ( ((int)eClipMode == (NMR::eModelBeamLatticeClipMode::MODELBEAMLATTICECLIPMODE_NONE)) || (nUniqueResourceID == 0) ){ - m_pAttributes->m_eClipMode = NMR::eModelBeamLatticeClipMode(eClipMode); - m_pAttributes->m_bHasClippingMeshID = false; - m_pAttributes->m_pClippingMeshUniqueID = nullptr; - } - else { - NMR::CModel* pModel = m_pMeshObject->getModel(); - - NMR::CModelMeshObject * pClippingObject = dynamic_cast(pModel->findObject(nUniqueResourceID)); - if (pClippingObject == nullptr) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - // check, if this object will be written before - NMR::nfInt32 nComp = pModel->compareObjectsByResourceID(pClippingObject, m_pMeshObject.get()); - if (nComp < 0) { // pClippingObject has been defined after m_pMeshObject - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - - m_pAttributes->m_eClipMode = NMR::eModelBeamLatticeClipMode(eClipMode);; - m_pAttributes->m_bHasClippingMeshID = true; - m_pAttributes->m_pClippingMeshUniqueID = pClippingObject->getPackageResourceID(); - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool CBeamLattice::GetRepresentation (Lib3MF_uint32 & nUniqueResourceID) +void CBeamLattice::SetRepresentation(const Lib3MF_uint32 nUniqueResourceID) { - if (m_pAttributes->m_bHasRepresentationMeshID) { - nUniqueResourceID = m_pAttributes->m_pRepresentationUniqueID->getUniqueID(); - return true; - } - else { - nUniqueResourceID = 0; - return false; - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBeamLattice::SetRepresentation (const Lib3MF_uint32 nUniqueResourceID) +void CBeamLattice::GetBallOptions(Lib3MF::eBeamLatticeBallMode & eBallMode, Lib3MF_double & dBallRadius) { - if (nUniqueResourceID == 0) { - m_pAttributes->m_bHasRepresentationMeshID = false; - m_pAttributes->m_pRepresentationUniqueID = nullptr; - } - else { - NMR::CModel* pModel = m_pMeshObject->getModel(); - - NMR::CModelMeshObject * pRepresentationObject = dynamic_cast(pModel->findObject(nUniqueResourceID)); - if (pRepresentationObject == nullptr) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - // check, if this object will be written before - NMR::nfInt32 nComp = pModel->compareObjectsByResourceID(pRepresentationObject, m_pMeshObject.get()); - if (nComp < 0) { // pClippingObject has been defined after m_pMeshObject - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - - m_pAttributes->m_bHasRepresentationMeshID = true; - m_pAttributes->m_pRepresentationUniqueID = pRepresentationObject->getPackageResourceID(); - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBeamLattice::GetBallOptions (eLib3MFBeamLatticeBallMode & eBallMode, Lib3MF_double & dBallRadius) +void CBeamLattice::SetBallOptions(const Lib3MF::eBeamLatticeBallMode eBallMode, const Lib3MF_double dBallRadius) { - eBallMode = (eLib3MFBeamLatticeBallMode)m_mesh.getBeamLatticeBallMode(); - dBallRadius = m_mesh.getDefaultBallRadius(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBeamLattice::SetBallOptions (const eLib3MFBeamLatticeBallMode eBallMode, const Lib3MF_double dBallRadius) +Lib3MF_uint32 CBeamLattice::GetBeamCount() { - if (eBallMode == eLib3MFBeamLatticeBallMode::BeamLatticeBallModeNone || dBallRadius > 0.0) { - m_mesh.setBeamLatticeBallMode((NMR::eModelBeamLatticeBallMode)eBallMode); - m_mesh.setDefaultBallRadius(dBallRadius); - } - else { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CBeamLattice::GetBeamCount () +Lib3MF::sBeam CBeamLattice::GetBeam(const Lib3MF_uint32 nIndex) { - return m_mesh.getBeamCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -sLib3MFBeam CBeamLattice::GetBeam (const Lib3MF_uint32 nIndex) +Lib3MF_uint32 CBeamLattice::AddBeam(const Lib3MF::sBeam BeamInfo) { - sLib3MFBeam beam; - NMR::MESHBEAM* meshBeam = m_mesh.getBeam(nIndex); - beam.m_CapModes[0] = (eLib3MFBeamLatticeCapMode)(meshBeam->m_capMode[0]); - beam.m_CapModes[1] = (eLib3MFBeamLatticeCapMode)meshBeam->m_capMode[1]; - - beam.m_Indices[0] = meshBeam->m_nodeindices[0]; - beam.m_Indices[1] = meshBeam->m_nodeindices[1]; - - beam.m_Radii[0] = meshBeam->m_radius[0]; - beam.m_Radii[1] = meshBeam->m_radius[1]; - return beam; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool isBeamValid(const Lib3MF_uint32 nNodeCount, const sLib3MFBeam& BeamInfo) +void CBeamLattice::SetBeam(const Lib3MF_uint32 nIndex, const Lib3MF::sBeam BeamInfo) { - for (int j = 0; j < 2; j++) { - if (BeamInfo.m_Indices[j] >= nNodeCount) - return false; - if (BeamInfo.m_Radii[j] <= 0) - return false; - } - if (BeamInfo.m_Indices[0] == BeamInfo.m_Indices[1]) - return false; - return true; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CBeamLattice::AddBeam (const sLib3MFBeam BeamInfo) +void CBeamLattice::SetBeams(const Lib3MF_uint64 nBeamInfoBufferSize, const Lib3MF::sBeam * pBeamInfoBuffer) { - if (!m_pMeshObject->isValidForBeamLattices()) - throw ELib3MFInterfaceException(LIB3MF_ERROR_BEAMLATTICE_INVALID_OBJECTTYPE); - - // Check for input validity - if (!isBeamValid(m_mesh.getNodeCount(), BeamInfo)) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - // retrieve nodes and add beam - NMR::MESHNODE * pNodes[2]; - for (int j = 0; j < 2; j++) - pNodes[j] = m_mesh.getNode(BeamInfo.m_Indices[j]); - - NMR::MESHBEAM * pMeshBeam = m_mesh.addBeam(pNodes[0], pNodes[1], BeamInfo.m_Radii[0], BeamInfo.m_Radii[1], (int)BeamInfo.m_CapModes[0], (int)BeamInfo.m_CapModes[1]); - return pMeshBeam->m_index; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBeamLattice::SetBeam (const Lib3MF_uint32 nIndex, const sLib3MFBeam BeamInfo) +void CBeamLattice::GetBeams(Lib3MF_uint64 nBeamInfoBufferSize, Lib3MF_uint64* pBeamInfoNeededCount, Lib3MF::sBeam * pBeamInfoBuffer) { - if (!isBeamValid(m_mesh.getNodeCount(), BeamInfo)) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - NMR::MESHBEAM* meshBeam = m_mesh.getBeam(nIndex); - meshBeam->m_capMode[0] = (int)BeamInfo.m_CapModes[0]; - meshBeam->m_capMode[1] = (int)BeamInfo.m_CapModes[1]; - - meshBeam->m_nodeindices[0] = BeamInfo.m_Indices[0]; - meshBeam->m_nodeindices[1] = BeamInfo.m_Indices[1]; - - meshBeam->m_radius[0] = BeamInfo.m_Radii[0]; - meshBeam->m_radius[1] = BeamInfo.m_Radii[1]; - - // Occupied nodes may have changed, need to validate - m_mesh.scanOccupiedNodes(); - m_mesh.validateBeamLatticeBalls(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBeamLattice::SetBeams(const Lib3MF_uint64 nBeamInfoBufferSize, const sLib3MFBeam * pBeamInfoBuffer) +Lib3MF_uint32 CBeamLattice::GetBallCount() { - if ((nBeamInfoBufferSize>0) && (!m_pMeshObject->isValidForBeamLattices())) - throw ELib3MFInterfaceException(LIB3MF_ERROR_BEAMLATTICE_INVALID_OBJECTTYPE); - - m_mesh.clearBeamLatticeBeams(); - - const sLib3MFBeam* pBeamInfoCurrent = pBeamInfoBuffer; - for (Lib3MF_uint32 nIndex = 0; nIndex < nBeamInfoBufferSize; nIndex++) - { - if (!isBeamValid(m_mesh.getNodeCount(), *pBeamInfoCurrent)) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - NMR::MESHNODE * pNodes[2]; - for (int j = 0; j < 2; j++) - pNodes[j] = m_mesh.getNode(pBeamInfoCurrent->m_Indices[j]); - - m_mesh.addBeam(pNodes[0], pNodes[1], pBeamInfoCurrent->m_Radii[0], pBeamInfoCurrent->m_Radii[1], (int)pBeamInfoCurrent->m_CapModes[0], (int)pBeamInfoCurrent->m_CapModes[1]); - pBeamInfoCurrent++; - } - - // Occupied nodes may have changed, need to validate - m_mesh.validateBeamLatticeBalls(); -} - -void CBeamLattice::GetBeams(Lib3MF_uint64 nBeamInfoBufferSize, Lib3MF_uint64* pBeamInfoNeededCount, sLib3MFBeam * pBeamInfoBuffer) -{ - Lib3MF_uint32 beamCount = m_mesh.getBeamCount(); - if (pBeamInfoNeededCount) - *pBeamInfoNeededCount = beamCount; - - if (nBeamInfoBufferSize >= beamCount && pBeamInfoBuffer) - { - sLib3MFBeam* beam = pBeamInfoBuffer; - for (Lib3MF_uint32 i = 0; i < beamCount; i++) - { - const NMR::MESHBEAM* meshBeam = m_mesh.getBeam(i); - beam->m_CapModes[0] = (eLib3MFBeamLatticeCapMode)meshBeam->m_capMode[0]; - beam->m_CapModes[1] = (eLib3MFBeamLatticeCapMode)meshBeam->m_capMode[1]; - - beam->m_Indices[0] = meshBeam->m_nodeindices[0]; - beam->m_Indices[1] = meshBeam->m_nodeindices[1]; - - beam->m_Radii[0] = meshBeam->m_radius[0]; - beam->m_Radii[1] = meshBeam->m_radius[1]; - beam++; - } - } -} - -Lib3MF_uint32 CBeamLattice::GetBallCount () -{ - eBeamLatticeBallMode ballMode = (eBeamLatticeBallMode)m_mesh.getBeamLatticeBallMode(); - - if (ballMode == eBeamLatticeBallMode::Mixed) { - return m_mesh.getBallCount(); - } - else if (ballMode == eBeamLatticeBallMode::All) { - return m_mesh.getOccupiedNodeCount(); - } - else { - return 0; - } -} - -sLib3MFBall CBeamLattice::GetBall (const Lib3MF_uint32 nIndex) -{ - sLib3MFBall ball; - - eBeamLatticeBallMode ballMode; - Lib3MF_double defaultBallRadius; - GetBallOptions(ballMode, defaultBallRadius); - - Lib3MF_uint32 ballCount = GetBallCount(); - if (nIndex >= ballCount) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDRESOURCEINDEX); - } - - if (ballMode == eBeamLatticeBallMode::Mixed) { - NMR::MESHBALL * meshBall = m_mesh.getBall(nIndex); - - ball.m_Index = meshBall->m_nodeindex; - - ball.m_Radius = meshBall->m_radius; - - return ball; - } - else if (ballMode == eBeamLatticeBallMode::All) { - Lib3MF_int32 ballNodeIndex = m_mesh.getOccupiedNode(nIndex)->m_index; - - Lib3MF_uint32 meshBallCount = m_mesh.getBallCount(); - for (Lib3MF_uint32 iBall = 0; iBall < meshBallCount; iBall++) { - NMR::MESHBALL * meshBall = m_mesh.getBall(iBall); - - if (meshBall->m_nodeindex == ballNodeIndex) { - ball.m_Index = meshBall->m_nodeindex; - - ball.m_Radius = meshBall->m_radius; - - return ball; - } - } - - ball.m_Index = ballNodeIndex; - - ball.m_Radius = defaultBallRadius; - - return ball; - } - else { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool isBallValid(const Lib3MF_uint32 nNodeCount, const sLib3MFBall& BallInfo) +Lib3MF::sBall CBeamLattice::GetBall(const Lib3MF_uint32 nIndex) { - if (BallInfo.m_Index >= nNodeCount) - return false; - if (BallInfo.m_Radius <= 0) - return false; - return true; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CBeamLattice::AddBall (const sLib3MFBall BallInfo) +Lib3MF_uint32 CBeamLattice::AddBall(const Lib3MF::sBall BallInfo) { - if (!m_pMeshObject->isValidForBeamLattices()) - throw ELib3MFInterfaceException(LIB3MF_ERROR_BEAMLATTICE_INVALID_OBJECTTYPE); - - // Check for input validity - if (!isBallValid(m_mesh.getNodeCount(), BallInfo)) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - // retrieve node and add ball - NMR::MESHNODE * pNode = m_mesh.getNode(BallInfo.m_Index); - - NMR::MESHBALL * pMeshBall = m_mesh.addBall(pNode, BallInfo.m_Radius); - return pMeshBall->m_index; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBeamLattice::SetBall (const Lib3MF_uint32 nIndex, const sLib3MFBall BallInfo) +void CBeamLattice::SetBall(const Lib3MF_uint32 nIndex, const Lib3MF::sBall BallInfo) { - if (!isBallValid(m_mesh.getNodeCount(), BallInfo)) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - if (!m_mesh.isNodeOccupied(BallInfo.m_Index)) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - - eBeamLatticeBallMode ballMode = (eBeamLatticeBallMode(m_mesh.getBeamLatticeBallMode())); - - if (ballMode == eBeamLatticeBallMode::Mixed) { - NMR::MESHBALL * meshBall = m_mesh.getBall(nIndex); - - meshBall->m_nodeindex = BallInfo.m_Index; - - meshBall->m_radius = BallInfo.m_Radius; - } - else if (ballMode == eBeamLatticeBallMode::All) { - Lib3MF_int32 ballNodeIndex = m_mesh.getOccupiedNode(nIndex)->m_index; - Lib3MF_uint32 meshBallCount = m_mesh.getBallCount(); - for (Lib3MF_uint32 iBall = 0; iBall < meshBallCount; iBall++) { - NMR::MESHBALL * meshBall = m_mesh.getBall(iBall); - - if (meshBall->m_nodeindex == ballNodeIndex) { - meshBall->m_nodeindex = BallInfo.m_Index; - meshBall->m_radius = BallInfo.m_Radius; - return; - } - } - - // Not in mesh, add the ball - NMR::MESHNODE * pNode = m_mesh.getNode(BallInfo.m_Index); - - m_mesh.addBall(pNode, BallInfo.m_Radius); - } - else { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBeamLattice::SetBalls (const Lib3MF_uint64 nBallInfoBufferSize, const sLib3MFBall * pBallInfoBuffer) +void CBeamLattice::SetBalls(const Lib3MF_uint64 nBallInfoBufferSize, const Lib3MF::sBall * pBallInfoBuffer) { - if ((nBallInfoBufferSize > 0) && (!m_pMeshObject->isValidForBeamLattices())) - throw ELib3MFInterfaceException(LIB3MF_ERROR_BEAMLATTICE_INVALID_OBJECTTYPE); - - m_mesh.clearBeamLatticeBalls(); - - const sLib3MFBall * pBallInfoCurrent = pBallInfoBuffer; - for (Lib3MF_uint32 nIndex = 0; nIndex < nBallInfoBufferSize; nIndex++) - { - if (!isBallValid(m_mesh.getNodeCount(), *pBallInfoCurrent)) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - NMR::MESHNODE * pNode = m_mesh.getNode(pBallInfoCurrent->m_Index); - - m_mesh.addBall(pNode, pBallInfoCurrent->m_Radius); - pBallInfoCurrent++; - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBeamLattice::GetBalls(Lib3MF_uint64 nBallInfoBufferSize, Lib3MF_uint64 * pBallInfoNeededCount, sLib3MFBall * pBallInfoBuffer) +void CBeamLattice::GetBalls(Lib3MF_uint64 nBallInfoBufferSize, Lib3MF_uint64* pBallInfoNeededCount, Lib3MF::sBall * pBallInfoBuffer) { - Lib3MF_uint32 ballCount = GetBallCount(); - if (pBallInfoNeededCount) - *pBallInfoNeededCount = ballCount; - - if (nBallInfoBufferSize >= ballCount && pBallInfoBuffer) { - eBeamLatticeBallMode ballMode; - Lib3MF_double defaultBallRadius; - GetBallOptions(ballMode, defaultBallRadius); - - if (ballMode == eBeamLatticeBallMode::Mixed) { - sLib3MFBall * ball = pBallInfoBuffer; - for (Lib3MF_uint32 iBall = 0; iBall < ballCount; iBall++) { - const NMR::MESHBALL * meshBall = m_mesh.getBall(iBall); - - ball->m_Index = meshBall->m_nodeindex; - - ball->m_Radius = meshBall->m_radius; - ball++; - } - } - else if (ballMode == eBeamLatticeBallMode::All) { - Lib3MF_uint32 meshBallCount = m_mesh.getBallCount(); - - // Sort balls that are in the mesh into a map by node index - std::map meshBallMap; - for (Lib3MF_uint32 iBall = 0; iBall < meshBallCount; iBall++) { - const NMR::MESHBALL * meshBall = m_mesh.getBall(iBall); - - meshBallMap[meshBall->m_nodeindex] = meshBall->m_radius; - } - - // Fill balls from default or mesh balls - sLib3MFBall * ball = pBallInfoBuffer; - for (Lib3MF_uint32 i = 0; i < ballCount; i++) { - Lib3MF_uint32 currNodeIndex = m_mesh.getOccupiedNode(i)->m_index; - - ball->m_Index = currNodeIndex; - ball->m_Radius = meshBallMap[currNodeIndex] > 0.0 ? meshBallMap[currNodeIndex] : defaultBallRadius; - - ball++; - } - } - else { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CBeamLattice::GetBeamSetCount () +Lib3MF_uint32 CBeamLattice::GetBeamSetCount() { - return m_mesh.getBeamSetCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IBeamSet * CBeamLattice::AddBeamSet () +IBeamSet * CBeamLattice::AddBeamSet() { - return new CBeamSet(m_mesh.addBeamSet(), m_pMeshObject); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IBeamSet * CBeamLattice::GetBeamSet (const Lib3MF_uint32 nIndex) +IBeamSet * CBeamLattice::GetBeamSet(const Lib3MF_uint32 nIndex) { - return new CBeamSet(m_mesh.getBeamSet(nIndex), m_pMeshObject); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_beamset.cpp b/Source/API/lib3mf_beamset.cpp index 42e447df..7ae9077c 100644 --- a/Source/API/lib3mf_beamset.cpp +++ b/Source/API/lib3mf_beamset.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,107 +40,53 @@ using namespace Lib3MF::Impl; Class definition of CBeamSet **************************************************************************************************************************/ -CBeamSet::CBeamSet(NMR::PBEAMSET pBeamSet, NMR::PModelMeshObject pMeshObject): - m_pBeamSet(pBeamSet), m_mesh(*pMeshObject->getMesh()) -{ - -} - void CBeamSet::SetName(const std::string & sName) { - m_pBeamSet->m_sName = sName; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } std::string CBeamSet::GetName() { - return m_pBeamSet->m_sName; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CBeamSet::SetIdentifier(const std::string & sIdentifier) { - // Ensure identifier is unique - if (sIdentifier.compare("") != 0) { - Lib3MF_uint32 nBeamSets = m_mesh.getBeamSetCount(); - for (Lib3MF_uint32 iBeamSet = 0; iBeamSet < nBeamSets; iBeamSet++) - if (sIdentifier.compare(m_mesh.getBeamSet(iBeamSet)->m_sIdentifier) == 0) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - - m_pBeamSet->m_sIdentifier = sIdentifier; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } std::string CBeamSet::GetIdentifier() { - return m_pBeamSet->m_sIdentifier; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_uint32 CBeamSet::GetReferenceCount() { - return (Lib3MF_uint32)m_pBeamSet->m_Refs.size(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CBeamSet::SetReferences(const Lib3MF_uint64 nReferencesBufferSize, const Lib3MF_uint32 * pReferencesBuffer) { - if (nReferencesBufferSize > LIB3MF_MAXBEAMCOUNT) - throw ELib3MFInterfaceException(LIB3MF_ERROR_ELEMENTCOUNTEXCEEDSLIMIT); - - m_pBeamSet->m_Refs.resize((size_t) nReferencesBufferSize); - const Lib3MF_uint32 beamCount = m_mesh.getBeamCount(); - for (size_t i = 0; i < (size_t)nReferencesBufferSize; i++) { - if (beamCount <= pReferencesBuffer[i]) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - m_pBeamSet->m_Refs[i] = Lib3MF_uint32(pReferencesBuffer[i]); - } - + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CBeamSet::GetReferences(Lib3MF_uint64 nReferencesBufferSize, Lib3MF_uint64* pReferencesNeededCount, Lib3MF_uint32 * pReferencesBuffer) { - Lib3MF_uint32 referenceCount = (Lib3MF_uint32)m_pBeamSet->m_Refs.size(); - if (pReferencesNeededCount) - *pReferencesNeededCount = referenceCount; - - if (nReferencesBufferSize >= referenceCount && pReferencesBuffer) - { - Lib3MF_uint32* pRef = pReferencesBuffer; - for (Lib3MF_uint32 i = 0; i < referenceCount; i++) - { - *pRef = m_pBeamSet->m_Refs[i]; - pRef++; - } - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_uint32 CBeamSet::GetBallReferenceCount() { - return (Lib3MF_uint32)m_pBeamSet->m_BallRefs.size(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBeamSet::SetBallReferences(const Lib3MF_uint64 nBallReferencesBufferSize, const Lib3MF_uint32* pBallReferencesBuffer) +void CBeamSet::SetBallReferences(const Lib3MF_uint64 nBallReferencesBufferSize, const Lib3MF_uint32 * pBallReferencesBuffer) { - if (nBallReferencesBufferSize > LIB3MF_MAXBEAMCOUNT) - throw ELib3MFInterfaceException(LIB3MF_ERROR_ELEMENTCOUNTEXCEEDSLIMIT); - - m_pBeamSet->m_BallRefs.resize((size_t)nBallReferencesBufferSize); - const Lib3MF_uint32 ballCount = m_mesh.getBallCount(); - for (size_t i = 0; i < (size_t)nBallReferencesBufferSize; i++) { - if (ballCount <= pBallReferencesBuffer[i]) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - m_pBeamSet->m_BallRefs[i] = Lib3MF_uint32(pBallReferencesBuffer[i]); - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBeamSet::GetBallReferences(Lib3MF_uint64 nBallReferencesBufferSize, Lib3MF_uint64* pBallReferencesNeededCount, Lib3MF_uint32* pBallReferencesBuffer) +void CBeamSet::GetBallReferences(Lib3MF_uint64 nBallReferencesBufferSize, Lib3MF_uint64* pBallReferencesNeededCount, Lib3MF_uint32 * pBallReferencesBuffer) { - Lib3MF_uint32 ballReferenceCount = GetBallReferenceCount(); - if (pBallReferencesNeededCount) - *pBallReferencesNeededCount = ballReferenceCount; - - if (nBallReferencesBufferSize >= ballReferenceCount && pBallReferencesBuffer) { - Lib3MF_uint32* pBallRef = pBallReferencesBuffer; - for (Lib3MF_uint32 i = 0; i < ballReferenceCount; i++) { - *pBallRef = m_pBeamSet->m_BallRefs[i]; - pBallRef++; - } - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } + diff --git a/Source/API/lib3mf_builditem.cpp b/Source/API/lib3mf_builditem.cpp index a7d41498..c085784e 100644 --- a/Source/API/lib3mf_builditem.cpp +++ b/Source/API/lib3mf_builditem.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -31,109 +31,67 @@ Abstract: This is a stub class definition of CBuildItem #include "lib3mf_builditem.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_utils.hpp" -#include "lib3mf_object.hpp" -#include "lib3mf_metadatagroup.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* Class definition of CBuildItem **************************************************************************************************************************/ -NMR::CModelBuildItem& CBuildItem::buildItem() -{ - return *m_pBuildItem.get(); -} - -CBuildItem::CBuildItem(NMR::PModelBuildItem pBuildItem) -{ - m_pBuildItem = pBuildItem; -} - -Lib3MF_uint32 CBuildItem::GetHandle() +IObject * CBuildItem::GetObjectResource() { - return buildItem().getHandle(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IObject * CBuildItem::GetObjectResource () +std::string CBuildItem::GetUUID(bool & bHasUUID) { - NMR::PModelResource pResource = buildItem().getModel()->findResource(buildItem().getObject()->getPackageResourceID()); - if (!pResource.get()) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDMODELRESOURCE); - - std::unique_ptr pResourceInterface(CObject::fnCreateObjectFromModelResource(pResource, true)); - if (pResourceInterface == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_RESOURCENOTFOUND); - - return pResourceInterface.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -std::string CBuildItem::GetUUID (bool & bHasUUID) +void CBuildItem::SetUUID(const std::string & sUUID) { - bHasUUID = buildItem().uuid() != nullptr; - if (bHasUUID) - return buildItem().uuid()->toString(); - return ""; -} - -void CBuildItem::SetUUID (const std::string & sUUID) -{ - NMR::PUUID pUUID = std::make_shared(sUUID); - buildItem().setUUID(pUUID); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_uint32 CBuildItem::GetObjectResourceID() { - return buildItem().getObject()->getPackageResourceID()->getUniqueID(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool CBuildItem::HasObjectTransform () +bool CBuildItem::HasObjectTransform() { - return buildItem().hasTransform(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -sLib3MFTransform CBuildItem::GetObjectTransform () +Lib3MF::sTransform CBuildItem::GetObjectTransform() { - const NMR::NMATRIX3 matrix = buildItem().getTransform(); - return MatrixToTransform(matrix); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBuildItem::SetObjectTransform (const sLib3MFTransform Transform) +void CBuildItem::SetObjectTransform(const Lib3MF::sTransform Transform) { - buildItem().setTransform(TransformToMatrix(Transform)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -std::string CBuildItem::GetPartNumber () +std::string CBuildItem::GetPartNumber() { - return buildItem().getPartNumber(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CBuildItem::SetPartNumber (const std::string & sSetPartnumber) +void CBuildItem::SetPartNumber(const std::string & sSetPartnumber) { - buildItem().setPartNumber(sSetPartnumber); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IMetaDataGroup * CBuildItem::GetMetaDataGroup () +IMetaDataGroup * CBuildItem::GetMetaDataGroup() { - return new CMetaDataGroup(buildItem().metaDataGroup()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF::sBox CBuildItem::GetOutbox() { - NMR::NOUTBOX3 sOutbox; - NMR::fnOutboxInitialize(sOutbox); - - buildItem().getObject()->extendOutbox(sOutbox, buildItem().getTransform()); - - sBox s; - s.m_MinCoordinate[0] = sOutbox.m_min.m_fields[0]; - s.m_MinCoordinate[1] = sOutbox.m_min.m_fields[1]; - s.m_MinCoordinate[2] = sOutbox.m_min.m_fields[2]; - - s.m_MaxCoordinate[0] = sOutbox.m_max.m_fields[0]; - s.m_MaxCoordinate[1] = sOutbox.m_max.m_fields[1]; - s.m_MaxCoordinate[2] = sOutbox.m_max.m_fields[2]; - return s; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } + diff --git a/Source/API/lib3mf_builditemiterator.cpp b/Source/API/lib3mf_builditemiterator.cpp index 1fafa755..cb098008 100644 --- a/Source/API/lib3mf_builditemiterator.cpp +++ b/Source/API/lib3mf_builditemiterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -31,7 +31,6 @@ Abstract: This is a stub class definition of CBuildItemIterator #include "lib3mf_builditemiterator.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_builditem.hpp" // Include custom headers here. @@ -41,73 +40,28 @@ using namespace Lib3MF::Impl; Class definition of CBuildItemIterator **************************************************************************************************************************/ -CBuildItemIterator::CBuildItemIterator() +bool CBuildItemIterator::MoveNext() { - m_nCurrentIndex = -1; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - -void CBuildItemIterator::addBuildItem(NMR::PModelBuildItem pBuildItem) -{ - m_pBuildItems.push_back(pBuildItem); -} - -bool CBuildItemIterator::MoveNext () +bool CBuildItemIterator::MovePrevious() { - // Get Resource Count - Lib3MF_int32 nBuildItemCount = (Lib3MF_int32)m_pBuildItems.size(); - m_nCurrentIndex++; - - // Check new Index - if (m_nCurrentIndex >= nBuildItemCount) { - m_nCurrentIndex = nBuildItemCount; - return false; - } - else { - return true; - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool CBuildItemIterator::MovePrevious () +IBuildItem * CBuildItemIterator::GetCurrent() { - // Get Resource Count - m_nCurrentIndex--; - - // Check new Index - if (m_nCurrentIndex <= -1) { - m_nCurrentIndex = -1; - return false; - } - else { - return true; - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IBuildItem * CBuildItemIterator::GetCurrent () +IBuildItemIterator * CBuildItemIterator::Clone() { - // Get Resource Count - Lib3MF_int32 nBuildItemCount = (Lib3MF_int32)m_pBuildItems.size(); - if ((m_nCurrentIndex < 0) || (m_nCurrentIndex >= nBuildItemCount)) - throw ELib3MFInterfaceException(LIB3MF_ERROR_ITERATORINVALIDINDEX); - - // Create specific API class - NMR::PModelBuildItem pBuildItem = m_pBuildItems[m_nCurrentIndex]; - - return new CBuildItem(pBuildItem); -} - -IBuildItemIterator * CBuildItemIterator::Clone () -{ - auto pBuildItems = std::unique_ptr(new CBuildItemIterator()); - - for (auto iIterator = m_pBuildItems.begin(); iIterator != m_pBuildItems.end(); iIterator++) - pBuildItems->addBuildItem(*iIterator); - - return pBuildItems.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_uint64 CBuildItemIterator::Count() { - return m_pBuildItems.size(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_ceilnode.cpp b/Source/API/lib3mf_ceilnode.cpp index 263aa0e0..3a17ed1b 100644 --- a/Source/API/lib3mf_ceilnode.cpp +++ b/Source/API/lib3mf_ceilnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CCeilNode */ #include "lib3mf_ceilnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CCeilNode + Class definition of CCeilNode **************************************************************************************************************************/ -Lib3MF::Impl::CCeilNode::CCeilNode(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_clampnode.cpp b/Source/API/lib3mf_clampnode.cpp index b0fdfb2f..f7a0e1c9 100644 --- a/Source/API/lib3mf_clampnode.cpp +++ b/Source/API/lib3mf_clampnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,29 +29,24 @@ Abstract: This is a stub class definition of CClampNode */ #include "lib3mf_clampnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CClampNode + Class definition of CClampNode **************************************************************************************************************************/ -IImplicitPort* CClampNode::GetInputMin() +IImplicitPort * CClampNode::GetInputMin() { - return FindInputOrThrow(NMR::InputNames::min); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImplicitPort* CClampNode::GetInputMax() +IImplicitPort * CClampNode::GetInputMax() { - return FindInputOrThrow(NMR::InputNames::max); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF::Impl::CClampNode::CClampNode(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_colorgroup.cpp b/Source/API/lib3mf_colorgroup.cpp index 0bff9d21..d23fc00e 100644 --- a/Source/API/lib3mf_colorgroup.cpp +++ b/Source/API/lib3mf_colorgroup.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,76 +40,33 @@ using namespace Lib3MF::Impl; Class definition of CColorGroup **************************************************************************************************************************/ -CColorGroup::CColorGroup(NMR::PModelColorGroupResource pResource) - : CResource(std::static_pointer_cast(pResource)) +Lib3MF_uint32 CColorGroup::GetCount() { - -} - - -NMR::CModelColorGroupResource& CColorGroup::colorGroup() -{ - NMR::CModelColorGroupResource* pColorGroup = dynamic_cast(resource().get()); - if (pColorGroup == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCOLORGROUP); - return *pColorGroup; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - -Lib3MF_uint32 CColorGroup::GetCount () +void CColorGroup::GetAllPropertyIDs(Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) { - return colorGroup().getCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CColorGroup::GetAllPropertyIDs (Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) +Lib3MF_uint32 CColorGroup::AddColor(const Lib3MF::sColor TheColor) { - Lib3MF_uint32 nCount = colorGroup().getCount(); - - if (pPropertyIDsNeededCount) - *pPropertyIDsNeededCount = nCount; - - if (nPropertyIDsBufferSize >= nCount && pPropertyIDsBuffer) { - if (!colorGroup().hasResourceIndexMap()) { - colorGroup().buildResourceIndexMap(); - } - for (Lib3MF_uint32 i = 0; i < nCount; i++) { - DWORD nPropertyID; - if (colorGroup().mapResourceIndexToPropertyID(i, nPropertyID)) { - *pPropertyIDsBuffer = nPropertyID; - } - else { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDRESOURCEINDEX); - } - pPropertyIDsBuffer++; - } - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CColorGroup::AddColor (const sLib3MFColor TheColor) +void CColorGroup::RemoveColor(const Lib3MF_uint32 nPropertyID) { - NMR::nfColor cColor = TheColor.m_Red | (TheColor.m_Green << 8) | (TheColor.m_Blue << 16) | (TheColor.m_Alpha << 24); - - return colorGroup().addColor(cColor); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CColorGroup::SetColor (const Lib3MF_uint32 nPropertyID, const sLib3MFColor TheColor) +void CColorGroup::SetColor(const Lib3MF_uint32 nPropertyID, const Lib3MF::sColor TheColor) { - NMR::nfColor cColor = TheColor.m_Red | (TheColor.m_Green << 8) | (TheColor.m_Blue << 16) | (TheColor.m_Alpha << 24); - colorGroup().setColor(nPropertyID, cColor); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -sLib3MFColor CColorGroup::GetColor (const Lib3MF_uint32 nPropertyID) +Lib3MF::sColor CColorGroup::GetColor(const Lib3MF_uint32 nPropertyID) { - NMR::nfColor cColor = colorGroup().getColor(nPropertyID); - sLib3MFColor c; - c.m_Red = (cColor) & 0xff; - c.m_Green = (cColor >> 8) & 0xff; - c.m_Blue = (cColor >> 16) & 0xff; - c.m_Alpha = (cColor >> 24) & 0xff; - return c; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CColorGroup::RemoveColor(const Lib3MF_uint32 nPropertyID) -{ - colorGroup().removeColor(nPropertyID); -} diff --git a/Source/API/lib3mf_colorgroupiterator.cpp b/Source/API/lib3mf_colorgroupiterator.cpp index d7dea699..3f90dab6 100644 --- a/Source/API/lib3mf_colorgroupiterator.cpp +++ b/Source/API/lib3mf_colorgroupiterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,7 +32,7 @@ Abstract: This is a stub class definition of CColorGroupIterator #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_colorgroup.hpp" + using namespace Lib3MF::Impl; @@ -40,13 +40,8 @@ using namespace Lib3MF::Impl; Class definition of CColorGroupIterator **************************************************************************************************************************/ -IColorGroup * CColorGroupIterator::GetCurrentColorGroup () +IColorGroup * CColorGroupIterator::GetCurrentColorGroup() { - // Create specific API class - return new CColorGroup(std::dynamic_pointer_cast(GetCurrentResource())); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IResource * CColorGroupIterator::GetCurrent() -{ - return GetCurrentColorGroup(); -} diff --git a/Source/API/lib3mf_component.cpp b/Source/API/lib3mf_component.cpp index 2230dcd1..2b308513 100644 --- a/Source/API/lib3mf_component.cpp +++ b/Source/API/lib3mf_component.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,8 +32,7 @@ Abstract: This is a stub class definition of CComponent #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_utils.hpp" -#include "lib3mf_object.hpp" + using namespace Lib3MF::Impl; @@ -41,61 +40,38 @@ using namespace Lib3MF::Impl; Class definition of CComponent **************************************************************************************************************************/ -CComponent::CComponent(NMR::PModelComponent pComponent) -{ - if (pComponent.get() == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCOMPONENT); - m_pComponent = pComponent; -} - - IObject * CComponent::GetObjectResource() { - NMR::PModelResource pModelObject = m_pComponent->getModel()->findResource(m_pComponent->getObject()->getPackageResourceID()); - if (!pModelObject.get()) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDMODELRESOURCE); - - std::unique_ptr pObject(CObject::fnCreateObjectFromModelResource(pModelObject, true)); - if (pObject == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_RESOURCENOTFOUND); - - return pObject.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_uint32 CComponent::GetObjectResourceID() { - return m_pComponent->getObject()->getPackageResourceID()->getUniqueID(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } std::string CComponent::GetUUID(bool & bHasUUID) { - NMR::PUUID pUUID = m_pComponent->uuid(); - bHasUUID = (pUUID.get() != nullptr); - if (bHasUUID) - return pUUID->toString(); - else - return ""; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CComponent::SetUUID(const std::string & sUUID) { - NMR::PUUID pUUID = std::make_shared(sUUID); - m_pComponent->setUUID(pUUID); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } bool CComponent::HasTransform() { - return m_pComponent->hasTransform(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CComponent::SetTransform (const sLib3MFTransform Transform) +Lib3MF::sTransform CComponent::GetTransform() { - m_pComponent->setTransform(TransformToMatrix(Transform)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -sLib3MFTransform CComponent::GetTransform() +void CComponent::SetTransform(const Lib3MF::sTransform Transform) { - const NMR::NMATRIX3 matrix = m_pComponent->getTransform(); - return MatrixToTransform(matrix); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_componentsobject.cpp b/Source/API/lib3mf_componentsobject.cpp index 2c6530e0..196702e6 100644 --- a/Source/API/lib3mf_componentsobject.cpp +++ b/Source/API/lib3mf_componentsobject.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -31,103 +31,27 @@ Abstract: This is a stub class definition of CComponentsObject #include "lib3mf_componentsobject.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_component.hpp" -#include "lib3mf_utils.hpp" - // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* Class definition of CComponentsObject **************************************************************************************************************************/ - -IComponentsObject* CComponentsObject::fnCreateComponentsObjectFromModelResource(NMR::PModelResource pResource, bool bFailIfUnkownClass) -{ - - if (!pResource.get()) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - NMR::CModelComponentsObject * pMeshObject = dynamic_cast (pResource.get()); - if (pMeshObject) { - return new CComponentsObject(pResource); - } - - if (bFailIfUnkownClass) - throw ELib3MFInterfaceException(NMR_ERROR_UNKNOWNMODELRESOURCE); - - return nullptr; -} - -CComponentsObject::CComponentsObject(NMR::PModelResource pResource) - : CResource(pResource), CObject(pResource) -{ -} - -NMR::CModelComponentsObject * CComponentsObject::getComponentsObject() -{ - NMR::CModelComponentsObject * pComponentsObject = dynamic_cast (resource().get()); - if (pComponentsObject == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCOMPONENTSOBJECT); - - return pComponentsObject; -} - -IComponent * CComponentsObject::AddComponent(IObject* pObjectResource, const sLib3MFTransform Transform) -{ - NMR::CModelComponentsObject * pComponentsObject = getComponentsObject(); - NMR::CModel * pModel = pComponentsObject->getModel(); - if (pModel == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDMODEL); - - // Get Resource ID - NMR::UniqueResourceID nObjectID = pObjectResource->GetResourceID(); - - if (GetResourceID() == nObjectID) - throw ELib3MFInterfaceException(LIB3MF_ERROR_FORBIDDENCYCLICREFERENCE); - - // TODO: check all ancestors to avoid circular references - - // Find class instance - NMR::CModelObject * pObject = pModel->findObject(nObjectID); - if (pObject == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_RESOURCENOTFOUND); - - // Convert Transform, if given - NMR::NMATRIX3 mMatrix = TransformToMatrix(Transform); - - // Create Model component - NMR::PModelComponent pNewComponent = std::make_shared(pObject, mMatrix); - pComponentsObject->addComponent(pNewComponent); - - return new CComponent(pNewComponent); -} - -IComponent * CComponentsObject::GetComponent (const Lib3MF_uint32 nIndex) -{ - NMR::CModelComponentsObject * pComponentsObject = getComponentsObject(); - NMR::PModelComponent pNewComponent = pComponentsObject->getComponent(nIndex); - return new CComponent(pNewComponent); -} - -Lib3MF_uint32 CComponentsObject::GetComponentCount () -{ - return getComponentsObject()->getComponentCount(); -} - -bool CComponentsObject::IsMeshObject() +IComponent * CComponentsObject::AddComponent(IObject* pObjectResource, const Lib3MF::sTransform Transform) { - return false; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool CComponentsObject::IsComponentsObject() +IComponent * CComponentsObject::GetComponent(const Lib3MF_uint32 nIndex) { - return true; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool CComponentsObject::IsLevelSetObject() +Lib3MF_uint32 CComponentsObject::GetComponentCount() { - return false; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_componentsobjectiterator.cpp b/Source/API/lib3mf_componentsobjectiterator.cpp index b6777923..97509dd9 100644 --- a/Source/API/lib3mf_componentsobjectiterator.cpp +++ b/Source/API/lib3mf_componentsobjectiterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,7 +32,7 @@ Abstract: This is a stub class definition of CComponentsObjectIterator #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_componentsobject.hpp" + using namespace Lib3MF::Impl; @@ -40,8 +40,8 @@ using namespace Lib3MF::Impl; Class definition of CComponentsObjectIterator **************************************************************************************************************************/ -IComponentsObject * CComponentsObjectIterator::GetCurrentComponentsObject () +IComponentsObject * CComponentsObjectIterator::GetCurrentComponentsObject() { - return CComponentsObject::fnCreateComponentsObjectFromModelResource(GetCurrentResource(), true); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_composematrixnode.cpp b/Source/API/lib3mf_composematrixnode.cpp index 517b7b7a..8cbfcc1b 100644 --- a/Source/API/lib3mf_composematrixnode.cpp +++ b/Source/API/lib3mf_composematrixnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,92 +42,86 @@ using namespace Lib3MF::Impl; IImplicitPort * CComposeMatrixNode::GetInputM00() { - return FindInputOrThrow(NMR::InputNames::m00); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeMatrixNode::GetInputM01() { - return FindInputOrThrow(NMR::InputNames::m01); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeMatrixNode::GetInputM02() { - return FindInputOrThrow(NMR::InputNames::m02); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeMatrixNode::GetInputM03() { - return FindInputOrThrow(NMR::InputNames::m03); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeMatrixNode::GetInputM10() { - return FindInputOrThrow(NMR::InputNames::m10); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeMatrixNode::GetInputM11() { - return FindInputOrThrow(NMR::InputNames::m11); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeMatrixNode::GetInputM12() { - return FindInputOrThrow(NMR::InputNames::m12); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeMatrixNode::GetInputM13() { - return FindInputOrThrow(NMR::InputNames::m13); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeMatrixNode::GetInputM20() { - return FindInputOrThrow(NMR::InputNames::m20); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeMatrixNode::GetInputM21() { - return FindInputOrThrow(NMR::InputNames::m21); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeMatrixNode::GetInputM22() { - return FindInputOrThrow(NMR::InputNames::m22); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeMatrixNode::GetInputM23() { - return FindInputOrThrow(NMR::InputNames::m23); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeMatrixNode::GetInputM30() { - return FindInputOrThrow(NMR::InputNames::m30); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeMatrixNode::GetInputM31() { - return FindInputOrThrow(NMR::InputNames::m31); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeMatrixNode::GetInputM32() { - return FindInputOrThrow(NMR::InputNames::m32); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeMatrixNode::GetInputM33() { - return FindInputOrThrow(NMR::InputNames::m33); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeMatrixNode::GetOutputResult() { - return FindOutputOrThrow(NMR::OutputNames::result); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF::Impl::CComposeMatrixNode::CComposeMatrixNode( - NMR::PModelImplicitNode pImplicitNode) - : CImplicitNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_composevectornode.cpp b/Source/API/lib3mf_composevectornode.cpp index bbef8adf..4bd39be7 100644 --- a/Source/API/lib3mf_composevectornode.cpp +++ b/Source/API/lib3mf_composevectornode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,27 +42,21 @@ using namespace Lib3MF::Impl; IImplicitPort * CComposeVectorNode::GetInputX() { - return FindInputOrThrow(NMR::InputNames::x); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeVectorNode::GetInputY() { - return FindInputOrThrow(NMR::InputNames::y); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeVectorNode::GetInputZ() { - return FindInputOrThrow(NMR::InputNames::z); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CComposeVectorNode::GetOutputResult() { - return FindOutputOrThrow(NMR::OutputNames::result); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF::Impl::CComposeVectorNode::CComposeVectorNode( - NMR::PModelImplicitNode pImplicitNode) - : CImplicitNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_compositematerials.cpp b/Source/API/lib3mf_compositematerials.cpp index dd9fb1b9..2e933099 100644 --- a/Source/API/lib3mf_compositematerials.cpp +++ b/Source/API/lib3mf_compositematerials.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,7 +32,7 @@ Abstract: This is a stub class definition of CCompositeMaterials #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_basematerialgroup.hpp" + using namespace Lib3MF::Impl; @@ -40,94 +40,33 @@ using namespace Lib3MF::Impl; Class definition of CCompositeMaterials **************************************************************************************************************************/ - -CCompositeMaterials::CCompositeMaterials(NMR::PModelCompositeMaterialsResource pResource) - : CResource(std::static_pointer_cast(pResource)) -{ - -} - - -NMR::CModelCompositeMaterialsResource& CCompositeMaterials::compositeMaterials() +Lib3MF_uint32 CCompositeMaterials::GetCount() { - NMR::CModelCompositeMaterialsResource* pCompositeMaterials = dynamic_cast(resource().get()); - if (pCompositeMaterials == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCOMPOSITEMATERIALS); - return *pCompositeMaterials; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CCompositeMaterials::GetCount () +void CCompositeMaterials::GetAllPropertyIDs(Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) { - return compositeMaterials().getCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CCompositeMaterials::GetAllPropertyIDs (Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) +IBaseMaterialGroup * CCompositeMaterials::GetBaseMaterialGroup() { - Lib3MF_uint32 nCompositesCount = compositeMaterials().getCount(); - - if (pPropertyIDsNeededCount) - *pPropertyIDsNeededCount = nCompositesCount; - - if (nPropertyIDsBufferSize >= nCompositesCount && pPropertyIDsBuffer) { - if (!compositeMaterials().hasResourceIndexMap()) { - compositeMaterials().buildResourceIndexMap(); - } - for (Lib3MF_uint32 i = 0; i < nCompositesCount; i++) { - DWORD nPropertyID; - if (compositeMaterials().mapResourceIndexToPropertyID(i, nPropertyID)) { - *pPropertyIDsBuffer = nPropertyID; - } - else { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDRESOURCEINDEX); - } - pPropertyIDsBuffer++; - } - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IBaseMaterialGroup * CCompositeMaterials::GetBaseMaterialGroup () +Lib3MF_uint32 CCompositeMaterials::AddComposite(const Lib3MF_uint64 nCompositeBufferSize, const Lib3MF::sCompositeConstituent * pCompositeBuffer) { - return new CBaseMaterialGroup(compositeMaterials().getBaseMaterialResource()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CCompositeMaterials::AddComposite(const Lib3MF_uint64 nCompositeBufferSize, const sLib3MFCompositeConstituent * pCompositeBuffer) +void CCompositeMaterials::RemoveComposite(const Lib3MF_uint32 nPropertyID) { - if (nCompositeBufferSize > LIB3MF_MAXCOMPOSITEMATERIALS) - throw ELib3MFInterfaceException(LIB3MF_ERROR_ELEMENTCOUNTEXCEEDSLIMIT); - - NMR::PModelComposite constituents = std::make_shared(); - constituents->resize((size_t)nCompositeBufferSize); - for (size_t i = 0; i < (size_t)nCompositeBufferSize; i++) { - (*constituents)[i].m_dMixingRatio = pCompositeBuffer[i].m_MixingRatio; - (*constituents)[i].m_nPropertyID = pCompositeBuffer[i].m_PropertyID; - } - return compositeMaterials().addComposite(constituents); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CCompositeMaterials::RemoveComposite (const Lib3MF_uint32 nPropertyID) +void CCompositeMaterials::GetComposite(const Lib3MF_uint32 nPropertyID, Lib3MF_uint64 nCompositeBufferSize, Lib3MF_uint64* pCompositeNeededCount, Lib3MF::sCompositeConstituent * pCompositeBuffer) { - compositeMaterials().removeComposite(nPropertyID); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CCompositeMaterials::GetComposite(const Lib3MF_uint32 nPropertyID, Lib3MF_uint64 nCompositeBufferSize, Lib3MF_uint64* pCompositeNeededCount, sLib3MFCompositeConstituent * pCompositeBuffer) -{ - - if (nCompositeBufferSize > LIB3MF_MAXCOMPOSITEMATERIALS) - throw ELib3MFInterfaceException(LIB3MF_ERROR_ELEMENTCOUNTEXCEEDSLIMIT); - - NMR::PModelComposite constituents = compositeMaterials().getComposite(nPropertyID); - - if (pCompositeNeededCount) { - *pCompositeNeededCount = constituents->size(); - } - - if (pCompositeBuffer && nCompositeBufferSize >= constituents->size()) { - for (size_t i = 0; i < (size_t) nCompositeBufferSize; i++) { - pCompositeBuffer[i].m_MixingRatio = (*constituents)[i].m_dMixingRatio; - pCompositeBuffer[i].m_PropertyID = (*constituents)[i].m_nPropertyID; - } - } - -} - - diff --git a/Source/API/lib3mf_compositematerialsiterator.cpp b/Source/API/lib3mf_compositematerialsiterator.cpp index 4e67e24e..4f337022 100644 --- a/Source/API/lib3mf_compositematerialsiterator.cpp +++ b/Source/API/lib3mf_compositematerialsiterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,7 +32,7 @@ Abstract: This is a stub class definition of CCompositeMaterialsIterator #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_compositematerials.hpp" + using namespace Lib3MF::Impl; @@ -40,14 +40,8 @@ using namespace Lib3MF::Impl; Class definition of CCompositeMaterialsIterator **************************************************************************************************************************/ -ICompositeMaterials * CCompositeMaterialsIterator::GetCurrentCompositeMaterials () -{ - // Create specific API class - return new CCompositeMaterials(std::dynamic_pointer_cast(GetCurrentResource())); -} - -IResource * CCompositeMaterialsIterator::GetCurrent() +ICompositeMaterials * CCompositeMaterialsIterator::GetCurrentCompositeMaterials() { - return GetCurrentCompositeMaterials(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_constantnode.cpp b/Source/API/lib3mf_constantnode.cpp index caa3a40a..f02a0b1d 100644 --- a/Source/API/lib3mf_constantnode.cpp +++ b/Source/API/lib3mf_constantnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,25 +40,18 @@ using namespace Lib3MF::Impl; Class definition of CConstantNode **************************************************************************************************************************/ -Lib3MF::Impl::CConstantNode::CConstantNode( - NMR::PModelImplicitNode pImplicitNode) - : CImplicitNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} - void CConstantNode::SetConstant(const Lib3MF_double dValue) { - m_pImplicitNode->setConstant(dValue); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_double CConstantNode::GetConstant() { - return m_pImplicitNode->getConstant(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CConstantNode::GetOutputValue() { - return FindOutputOrThrow(NMR::OutputNames::value); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_constmatnode.cpp b/Source/API/lib3mf_constmatnode.cpp index 04e9ddab..ef341bef 100644 --- a/Source/API/lib3mf_constmatnode.cpp +++ b/Source/API/lib3mf_constmatnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,25 +40,18 @@ using namespace Lib3MF::Impl; Class definition of CConstMatNode **************************************************************************************************************************/ -CConstMatNode::CConstMatNode( - NMR::PModelImplicitNode pImplicitNode) -: CImplicitNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} - void CConstMatNode::SetMatrix(const Lib3MF::sMatrix4x4 Value) { - m_pImplicitNode->setMatrix(Value); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF::sMatrix4x4 CConstMatNode::GetMatrix() { - return m_pImplicitNode->getMatrix(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CConstMatNode::GetOutputMatrix() { - return FindOutputOrThrow(NMR::OutputNames::matrix); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_constvecnode.cpp b/Source/API/lib3mf_constvecnode.cpp index 24d004f9..08e834dc 100644 --- a/Source/API/lib3mf_constvecnode.cpp +++ b/Source/API/lib3mf_constvecnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,25 +40,18 @@ using namespace Lib3MF::Impl; Class definition of CConstVecNode **************************************************************************************************************************/ -Lib3MF::Impl::CConstVecNode::CConstVecNode( - NMR::PModelImplicitNode pImplicitNode) - : CImplicitNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} - void CConstVecNode::SetVector(const Lib3MF::sVector Value) { - m_pImplicitNode->setVector(Value); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF::sVector CConstVecNode::GetVector() { - return m_pImplicitNode->getVector(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CConstVecNode::GetOutputVector() { - return FindOutputOrThrow(NMR::OutputNames::vector); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_consumer.cpp b/Source/API/lib3mf_consumer.cpp index beb85f39..18663faf 100644 --- a/Source/API/lib3mf_consumer.cpp +++ b/Source/API/lib3mf_consumer.cpp @@ -1,22 +1,57 @@ +/*++ + +Copyright (C) 2024 3MF Consortium (Original Author) + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Abstract: This is a stub class definition of CConsumer + +*/ + #include "lib3mf_consumer.hpp" #include "lib3mf_interfaceexception.hpp" -#include "Model/Classes/NMR_KeyStoreConsumer.h" + +// Include custom headers here. using namespace Lib3MF::Impl; -Lib3MF::Impl::CConsumer::CConsumer(NMR::PKeyStoreConsumer const & consumer) { - m_Consumer = consumer; -} +/************************************************************************************************************************* + Class definition of CConsumer +**************************************************************************************************************************/ -std::string Lib3MF::Impl::CConsumer::GetConsumerID() { - return m_Consumer->getConsumerID(); +std::string CConsumer::GetConsumerID() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -std::string Lib3MF::Impl::CConsumer::GetKeyID() { - return m_Consumer->getKeyID(); +std::string CConsumer::GetKeyID() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -std::string Lib3MF::Impl::CConsumer::GetKeyValue() { - return m_Consumer->getKeyValue(); +std::string CConsumer::GetKeyValue() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } + diff --git a/Source/API/lib3mf_contentencryptionparams.cpp b/Source/API/lib3mf_contentencryptionparams.cpp index f4319409..ea4b55c5 100644 --- a/Source/API/lib3mf_contentencryptionparams.cpp +++ b/Source/API/lib3mf_contentencryptionparams.cpp @@ -1,73 +1,82 @@ +/*++ + +Copyright (C) 2024 3MF Consortium (Original Author) + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Abstract: This is a stub class definition of CContentEncryptionParams + +*/ + #include "lib3mf_contentencryptionparams.hpp" #include "lib3mf_interfaceexception.hpp" +// Include custom headers here. + + using namespace Lib3MF::Impl; +/************************************************************************************************************************* + Class definition of CContentEncryptionParams +**************************************************************************************************************************/ + +Lib3MF::eEncryptionAlgorithm CContentEncryptionParams::GetEncryptionAlgorithm() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + +void CContentEncryptionParams::GetKey(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + +void CContentEncryptionParams::GetInitializationVector(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + +void CContentEncryptionParams::GetAuthenticationTag(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + +void CContentEncryptionParams::SetAuthenticationTag(const Lib3MF_uint64 nByteDataBufferSize, const Lib3MF_uint8 * pByteDataBuffer) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + +void CContentEncryptionParams::GetAdditionalAuthenticationData(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + +Lib3MF_uint64 CContentEncryptionParams::GetDescriptor() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} -namespace Lib3MF { - namespace Impl { - CContentEncryptionParams::CContentEncryptionParams(NMR::PCKeyStoreContentEncryptionParams const & p): m_pParams(p) { - if (!p) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - - Lib3MF_uint64 CContentEncryptionParams::GetDescriptor() { - return m_pParams->getDescriptor(); - } - - eEncryptionAlgorithm CContentEncryptionParams::GetEncryptionAlgorithm() { - return(eEncryptionAlgorithm)m_pParams->getEncryptionAlgorithm(); - } - - void CContentEncryptionParams::GetKey(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64 *pByteDataNeededCount, Lib3MF_uint8 *pByteDataBuffer) { - const std::vector & buf = m_pParams->getKey(); - if (nByteDataBufferSize < buf.size() || nullptr == pByteDataBuffer) - *pByteDataNeededCount = buf.size(); - else { - std::copy(buf.begin(), buf.end(), pByteDataBuffer); - } - } - - void CContentEncryptionParams::GetInitializationVector(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64 *pByteDataNeededCount, Lib3MF_uint8 *pByteDataBuffer) { - const std::vector & buf = m_pParams->getInitVector(); - if (nByteDataBufferSize < buf.size() || nullptr == pByteDataBuffer) - *pByteDataNeededCount = buf.size(); - else { - std::copy(buf.begin(), buf.end(), pByteDataBuffer); - } - } - - void CContentEncryptionParams::GetAuthenticationTag(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64 *pByteDataNeededCount, Lib3MF_uint8 *pByteDataBuffer) { - const std::vector & buf = m_pParams->getAuthTag(); - if (nByteDataBufferSize < buf.size() || nullptr == pByteDataBuffer) - *pByteDataNeededCount = buf.size(); - else { - std::copy(buf.begin(), buf.end(), pByteDataBuffer); - } - } - - void CContentEncryptionParams::SetAuthenticationTag(Lib3MF_uint64 const nByteDataBufferSize, const Lib3MF_uint8 *pByteDataBuffer) { - std::vector tag(pByteDataBuffer, pByteDataBuffer + nByteDataBufferSize); - m_pParams->setAuthTag(tag); - } - - void CContentEncryptionParams::GetAdditionalAuthenticationData(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64 *pByteDataNeededCount, Lib3MF_uint8 *pByteDataBuffer) { - const std::vector & buf = m_pParams->getAddAuthData(); - if (nByteDataBufferSize < buf.size() || nullptr == pByteDataBuffer) - *pByteDataNeededCount = buf.size(); - else { - std::copy(buf.begin(), buf.end(), pByteDataBuffer); - } - } - - void CContentEncryptionParams::SetAdditionalAuthenticationData(Lib3MF_uint64 const nByteDataBufferSize, const Lib3MF_uint8 *pByteDataBuffer) { - std::vector aad(pByteDataBuffer, pByteDataBuffer + nByteDataBufferSize); - m_pParams->setAddAuthData(aad); - } - - std::string CContentEncryptionParams::GetKeyUUID() { - return std::string(); - } - } +std::string CContentEncryptionParams::GetKeyUUID() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_coshnode.cpp b/Source/API/lib3mf_coshnode.cpp index 39f09a2d..5013aa41 100644 --- a/Source/API/lib3mf_coshnode.cpp +++ b/Source/API/lib3mf_coshnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CCoshNode */ #include "lib3mf_coshnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CCoshNode + Class definition of CCoshNode **************************************************************************************************************************/ -Lib3MF::Impl::CCoshNode::CCoshNode(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_cosnode.cpp b/Source/API/lib3mf_cosnode.cpp index cf867b53..4e9a5e82 100644 --- a/Source/API/lib3mf_cosnode.cpp +++ b/Source/API/lib3mf_cosnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,8 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CCosNode **************************************************************************************************************************/ -Lib3MF::Impl::CCosNode::CCosNode(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_crossnode.cpp b/Source/API/lib3mf_crossnode.cpp index ec4a65ef..5d767a6c 100644 --- a/Source/API/lib3mf_crossnode.cpp +++ b/Source/API/lib3mf_crossnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,8 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CCrossNode **************************************************************************************************************************/ -Lib3MF::Impl::CCrossNode::CCrossNode(NMR::PModelImplicitNode pImplicitNode) - : CTwoInputNode{pImplicitNode} - { - CImplicitNode::m_pImplicitNode = pImplicitNode; - } diff --git a/Source/API/lib3mf_decomposevectornode.cpp b/Source/API/lib3mf_decomposevectornode.cpp index e4e2d9c2..b0491e81 100644 --- a/Source/API/lib3mf_decomposevectornode.cpp +++ b/Source/API/lib3mf_decomposevectornode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,27 +42,21 @@ using namespace Lib3MF::Impl; IImplicitPort * CDecomposeVectorNode::GetInputA() { - return FindInput("A"); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CDecomposeVectorNode::GetOutputX() { - return FindOutput("x"); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CDecomposeVectorNode::GetOutputY() { - return FindOutput("y"); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CDecomposeVectorNode::GetOutputZ() { - return FindOutput("z"); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF::Impl::CDecomposeVectorNode::CDecomposeVectorNode( - NMR::PModelImplicitNode pImplicitNode) - : CImplicitNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_divisionnode.cpp b/Source/API/lib3mf_divisionnode.cpp index 6b517d3b..d2e1915e 100644 --- a/Source/API/lib3mf_divisionnode.cpp +++ b/Source/API/lib3mf_divisionnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,9 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CDivisionNode **************************************************************************************************************************/ -Lib3MF::Impl::CDivisionNode::CDivisionNode( - NMR::PModelImplicitNode pImplicitNode) - : CTwoInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_dotnode.cpp b/Source/API/lib3mf_dotnode.cpp index 7ba816cd..b2f0f0a3 100644 --- a/Source/API/lib3mf_dotnode.cpp +++ b/Source/API/lib3mf_dotnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,8 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CDotNode **************************************************************************************************************************/ -Lib3MF::Impl::CDotNode::CDotNode(NMR::PModelImplicitNode pImplicitNode) -: CTwoInputNode{pImplicitNode} - { - CImplicitNode::m_pImplicitNode = pImplicitNode; - } diff --git a/Source/API/lib3mf_expnode.cpp b/Source/API/lib3mf_expnode.cpp index fb266e4b..be2187d3 100644 --- a/Source/API/lib3mf_expnode.cpp +++ b/Source/API/lib3mf_expnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CExpNode */ #include "lib3mf_expnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CExpNode + Class definition of CExpNode **************************************************************************************************************************/ -Lib3MF::Impl::CExpNode::CExpNode(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_floornode.cpp b/Source/API/lib3mf_floornode.cpp index 8b97baa6..a280ccfb 100644 --- a/Source/API/lib3mf_floornode.cpp +++ b/Source/API/lib3mf_floornode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,8 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CFloorNode **************************************************************************************************************************/ -Lib3MF::Impl::CFloorNode::CFloorNode(NMR::PModelImplicitNode pImplicitNode) -: COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_fmodnode.cpp b/Source/API/lib3mf_fmodnode.cpp index 731ad48d..9eca888c 100644 --- a/Source/API/lib3mf_fmodnode.cpp +++ b/Source/API/lib3mf_fmodnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CFmodNode */ #include "lib3mf_fmodnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CFmodNode + Class definition of CFmodNode **************************************************************************************************************************/ -Lib3MF::Impl::CFmodNode::CFmodNode(NMR::PModelImplicitNode pImplicitNode) - : CTwoInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_fractnode.cpp b/Source/API/lib3mf_fractnode.cpp index c3e0ff2c..649cc5f3 100644 --- a/Source/API/lib3mf_fractnode.cpp +++ b/Source/API/lib3mf_fractnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CFractNode */ #include "lib3mf_fractnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CFractNode + Class definition of CFractNode **************************************************************************************************************************/ -Lib3MF::Impl::CFractNode::CFractNode(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_function.cpp b/Source/API/lib3mf_function.cpp index 18258143..fe1b6200 100644 --- a/Source/API/lib3mf_function.cpp +++ b/Source/API/lib3mf_function.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -30,8 +30,6 @@ Abstract: This is a stub class definition of CFunction #include "lib3mf_function.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_implicitport.hpp" -#include "lib3mf_implicitportiterator.hpp" // Include custom headers here. @@ -42,85 +40,53 @@ using namespace Lib3MF::Impl; Class definition of CFunction **************************************************************************************************************************/ -NMR::CModelFunction* Lib3MF::Impl::CFunction::function() -{ - NMR::CModelFunction* pFunction = dynamic_cast(resource().get()); - if (pFunction == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT); - - return pFunction; -} - -Lib3MF::Impl::CFunction::CFunction(NMR::PModelResource pResource) - : CResource(pResource) -{ -} - std::string CFunction::GetDisplayName() { - return function()->getDisplayName(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CFunction::SetDisplayName(const std::string& sDisplayName) +void CFunction::SetDisplayName(const std::string & sDisplayName) { - function()->setDisplayName(sDisplayName); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImplicitPort* CFunction::AddInput(const std::string& sIdentifier, - const std::string& sDisplayName, - const Lib3MF::eImplicitPortType eType) +IImplicitPort * CFunction::AddInput(const std::string & sIdentifier, const std::string & sDisplayName, const Lib3MF::eImplicitPortType eType) { - - return new CImplicitPort(function()->addInput(sIdentifier, sDisplayName, eType)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImplicitPortIterator* CFunction::GetInputs() +IImplicitPortIterator * CFunction::GetInputs() { - return new CImplicitPortIterator(function()->getInputs()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CFunction::RemoveInput(IImplicitPort* pInput) { - auto inputs = function()->getInputs(); - auto it = std::find_if(inputs->begin(), inputs->end(), [pInput](const NMR::PModelImplicitPort& port) { - return port->getIdentifier() == pInput->GetIdentifier(); - }); - if (it != inputs->end()) - inputs->erase(it); - else - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImplicitPort* CFunction::AddOutput(const std::string& sIdentifier, - const std::string& sDisplayName, - const Lib3MF::eImplicitPortType eType) +IImplicitPort * CFunction::AddOutput(const std::string & sIdentifier, const std::string & sDisplayName, const Lib3MF::eImplicitPortType eType) { - return new CImplicitPort(function()->addOutput(sIdentifier, sDisplayName, eType)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImplicitPortIterator* CFunction::GetOutputs() +IImplicitPortIterator * CFunction::GetOutputs() { - return new CImplicitPortIterator(function()->getOutputs()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CFunction::RemoveOutput(IImplicitPort* pOutput) { - auto outputs = function()->getOutputs(); - auto it = std::find_if(outputs->begin(), outputs->end(), [pOutput](const NMR::PModelImplicitPort& port) { - return port->getIdentifier() == pOutput->GetIdentifier(); - }); - if (it != outputs->end()) - outputs->erase(it); - else - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImplicitPort* CFunction::FindInput(const std::string& sIdentifier) +IImplicitPort * CFunction::FindInput(const std::string & sIdentifier) { - return new CImplicitPort(function()->findInput(sIdentifier)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImplicitPort* CFunction::FindOutput(const std::string& sIdentifier) +IImplicitPort * CFunction::FindOutput(const std::string & sIdentifier) { - return new CImplicitPort(function()->findOutput(sIdentifier)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } + diff --git a/Source/API/lib3mf_functioncallnode.cpp b/Source/API/lib3mf_functioncallnode.cpp index 639010af..e75fe0ed 100644 --- a/Source/API/lib3mf_functioncallnode.cpp +++ b/Source/API/lib3mf_functioncallnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,14 +40,8 @@ using namespace Lib3MF::Impl; Class definition of CFunctionCallNode **************************************************************************************************************************/ -CFunctionCallNode::CFunctionCallNode( - NMR::PModelImplicitNode pImplicitNode) - : CImplicitNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} - IImplicitPort * CFunctionCallNode::GetInputFunctionID() { - return FindInputOrThrow(NMR::InputNames::functionID); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } + diff --git a/Source/API/lib3mf_functionfromimage3d.cpp b/Source/API/lib3mf_functionfromimage3d.cpp index 21cb4ce9..2c78a6b4 100644 --- a/Source/API/lib3mf_functionfromimage3d.cpp +++ b/Source/API/lib3mf_functionfromimage3d.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,97 +32,61 @@ Abstract: This is a stub class definition of CFunctionFromImage3D #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_image3d.hpp" + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CFunctionFromImage3D + Class definition of CFunctionFromImage3D **************************************************************************************************************************/ IImage3D * CFunctionFromImage3D::GetImage3D() { - auto id = functionfromimage3d()->getImage3DUniqueResourceID(); - auto image = model()->findImage3D(id); - - - if(!image) - throw ELib3MFInterfaceException(NMR_ERROR_INVALIDMODELRESOURCE); - - return new CImage3D(image); -} - -NMR::CModelFunctionFromImage3D * Lib3MF::Impl::CFunctionFromImage3D::functionfromimage3d() -{ - auto pFunctionFromImage3D = std::dynamic_pointer_cast(resource()); - - if(!pFunctionFromImage3D) - { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT, "Resource is not a FunctionFromImage3D Object"); - } - - return pFunctionFromImage3D.get(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF::Impl::CFunctionFromImage3D::CFunctionFromImage3D(NMR::PModelResource pResource) - : CResource(pResource) - , CFunction(pResource) +void CFunctionFromImage3D::SetImage3D(IImage3D* pImage3D) { -} - -void CFunctionFromImage3D::SetImage3D(IImage3D * pImage3D) -{ - if (pImage3D == nullptr) - { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - functionfromimage3d()->setImage3DUniqueResourceID(pImage3D->GetUniqueResourceID()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CFunctionFromImage3D::SetFilter(const Lib3MF::eTextureFilter eFilter) { - functionfromimage3d()->setFilter((NMR::eModelTextureFilter) eFilter); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF::eTextureFilter CFunctionFromImage3D::GetFilter() { - return (Lib3MF::eTextureFilter) functionfromimage3d()->getFilter(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CFunctionFromImage3D::SetTileStyles(const Lib3MF::eTextureTileStyle eTileStyleU, - const Lib3MF::eTextureTileStyle eTileStyleV, - const Lib3MF::eTextureTileStyle eTileStyleW) +void CFunctionFromImage3D::SetTileStyles(const Lib3MF::eTextureTileStyle eTileStyleU, const Lib3MF::eTextureTileStyle eTileStyleV, const Lib3MF::eTextureTileStyle eTileStyleW) { - functionfromimage3d()->setTileStyleU((NMR::eModelTextureTileStyle) eTileStyleU); - functionfromimage3d()->setTileStyleV((NMR::eModelTextureTileStyle) eTileStyleV); - functionfromimage3d()->setTileStyleW((NMR::eModelTextureTileStyle) eTileStyleW); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CFunctionFromImage3D::GetTileStyles(Lib3MF::eTextureTileStyle & eTileStyleU, - Lib3MF::eTextureTileStyle & eTileStyleV, - Lib3MF::eTextureTileStyle & eTileStyleW) +void CFunctionFromImage3D::GetTileStyles(Lib3MF::eTextureTileStyle & eTileStyleU, Lib3MF::eTextureTileStyle & eTileStyleV, Lib3MF::eTextureTileStyle & eTileStyleW) { - eTileStyleU = (Lib3MF::eTextureTileStyle) functionfromimage3d()->getTileStyleU(); - eTileStyleV = (Lib3MF::eTextureTileStyle) functionfromimage3d()->getTileStyleV(); - eTileStyleW = (Lib3MF::eTextureTileStyle) functionfromimage3d()->getTileStyleW(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_double CFunctionFromImage3D::GetOffset() { - return functionfromimage3d()->getOffset(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CFunctionFromImage3D::SetOffset(const Lib3MF_double dOffset) { - functionfromimage3d()->setOffset(dOffset); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_double CFunctionFromImage3D::GetScale() { - return functionfromimage3d()->getScale(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CFunctionFromImage3D::SetScale(const Lib3MF_double dScale) { - functionfromimage3d()->setScale(dScale); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } + diff --git a/Source/API/lib3mf_functioniterator.cpp b/Source/API/lib3mf_functioniterator.cpp index 36408a72..aba5e496 100644 --- a/Source/API/lib3mf_functioniterator.cpp +++ b/Source/API/lib3mf_functioniterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -30,7 +30,6 @@ Abstract: This is a stub class definition of CFunctionIterator #include "lib3mf_functioniterator.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_implicitfunction.hpp" // Include custom headers here. @@ -43,9 +42,6 @@ using namespace Lib3MF::Impl; IFunction * CFunctionIterator::GetCurrentFunction() { - auto currentFunction = dynamic_cast(GetCurrent()); - if (currentFunction == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - return currentFunction; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_functionreference.cpp b/Source/API/lib3mf_functionreference.cpp index b9e0da67..cc57d52a 100644 --- a/Source/API/lib3mf_functionreference.cpp +++ b/Source/API/lib3mf_functionreference.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,78 +29,64 @@ Abstract: This is a stub class definition of CFunctionReference */ #include "lib3mf_functionreference.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_utils.hpp" + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CFunctionReference + Class definition of CFunctionReference **************************************************************************************************************************/ Lib3MF_uint32 CFunctionReference::GetFunctionResourceID() { - return m_pFunctionReference->getFunctionResourceID(); -} - -void CFunctionReference::SetFunctionResourceID( - const Lib3MF_uint32 nUniqueResourceID) -{ - m_pFunctionReference->setFunctionResourceID(nUniqueResourceID); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -CFunctionReference::CFunctionReference( - NMR::PFunctionReference pFunctionReference) - : m_pFunctionReference(pFunctionReference) +void CFunctionReference::SetFunctionResourceID(const Lib3MF_uint32 nUniqueResourceID) { + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CFunctionReference::SetTransform( - const Lib3MF::sTransform Transform) +Lib3MF::sTransform CFunctionReference::GetTransform() { - m_pFunctionReference->setTransform(TransformToMatrix(Transform)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - -Lib3MF::sTransform CFunctionReference::GetTransform() +void CFunctionReference::SetTransform(const Lib3MF::sTransform Transform) { - NMR::NMATRIX3 const matrix = m_pFunctionReference->getTransform(); - return MatrixToTransform(matrix); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -//std::string GetChannelName() std::string CFunctionReference::GetChannelName() { - return m_pFunctionReference->getChannelName(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CFunctionReference::SetChannelName( - const std::string & sChannelName) +void CFunctionReference::SetChannelName(const std::string & sChannelName) { - m_pFunctionReference->setChannelName(sChannelName); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CFunctionReference::SetMinFeatureSize( - const Lib3MF_double dMinFeatureSize) +void CFunctionReference::SetMinFeatureSize(const Lib3MF_double dMinFeatureSize) { - m_pFunctionReference->setMinFeatureSize(dMinFeatureSize); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_double CFunctionReference::GetMinFeatureSize() { - return m_pFunctionReference->getMinFeatureSize(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CFunctionReference::SetFallBackValue( - const Lib3MF_double dFallBackValue) +void CFunctionReference::SetFallBackValue(const Lib3MF_double dFallBackValue) { - m_pFunctionReference->setFallBackValue(dFallBackValue); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_double CFunctionReference::GetFallBackValue() { - return m_pFunctionReference->getFallBackValue(); -} \ No newline at end of file + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + diff --git a/Source/API/lib3mf_image3d.cpp b/Source/API/lib3mf_image3d.cpp index 01a02ce8..fc5d009a 100644 --- a/Source/API/lib3mf_image3d.cpp +++ b/Source/API/lib3mf_image3d.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,7 +32,7 @@ Abstract: This is a stub class definition of CImage3D #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "Model/Classes/NMR_ModelImageStack.h" + using namespace Lib3MF::Impl; @@ -40,31 +40,18 @@ using namespace Lib3MF::Impl; Class definition of CImage3D **************************************************************************************************************************/ -CImage3D::CImage3D(NMR::PModelResource pResource) - :CResource(pResource) -{} - -NMR::CModelImage3D* CImage3D::image3D() -{ - NMR::CModelImage3D* pImage3D = dynamic_cast (resource().get()); - if (pImage3D == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_RESOURCENOTFOUND); - - return pImage3D; -} - std::string CImage3D::GetName() { - return image3D()->getName(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CImage3D::SetName(const std::string & sName) { - image3D()->setName(sName); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } bool CImage3D::IsImageStack() { - return (dynamic_cast(image3D()) != nullptr); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_image3diterator.cpp b/Source/API/lib3mf_image3diterator.cpp index fc8d7e15..c347e844 100644 --- a/Source/API/lib3mf_image3diterator.cpp +++ b/Source/API/lib3mf_image3diterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,6 +42,6 @@ using namespace Lib3MF::Impl; IImage3D * CImage3DIterator::GetCurrentImage3D() { - return dynamic_cast(GetCurrent()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_imagestack.cpp b/Source/API/lib3mf_imagestack.cpp index 9eeaa243..712c84c0 100644 --- a/Source/API/lib3mf_imagestack.cpp +++ b/Source/API/lib3mf_imagestack.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -30,13 +30,9 @@ Abstract: This is a stub class definition of CImageStack #include "lib3mf_imagestack.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_attachment.hpp" -#include "Common/Platform/NMR_ImportStream_Shared_Memory.h" -#include "Common/Platform/NMR_ImportStream_Unique_Memory.h" -#include "Common/Platform/NMR_ImportStream_Native.h" +// Include custom headers here. -#include "Common/NMR_StringUtils.h" using namespace Lib3MF::Impl; @@ -44,74 +40,53 @@ using namespace Lib3MF::Impl; Class definition of CImageStack **************************************************************************************************************************/ -CImageStack::CImageStack(NMR::PModelImageStack pModelImageStack) - :CResource(pModelImageStack), CImage3D(pModelImageStack), m_pModelImageStack(pModelImageStack) -{ -} - - Lib3MF_uint32 CImageStack::GetRowCount() { - return m_pModelImageStack->getRowCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CImageStack::SetRowCount(const Lib3MF_uint32 nRowCount) { - m_pModelImageStack->setRowCount(nRowCount); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_uint32 CImageStack::GetColumnCount() { - return m_pModelImageStack->getColumnCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CImageStack::SetColumnCount(const Lib3MF_uint32 nColumnCount) { - m_pModelImageStack->setColumnCount(nColumnCount); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_uint32 CImageStack::GetSheetCount() { - return m_pModelImageStack->getSheetCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IAttachment * CImageStack::GetSheet(const Lib3MF_uint32 nIndex) { - auto pAttachment = m_pModelImageStack->getSheet(nIndex); - return new CAttachment(pAttachment); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CImageStack::SetSheet(const Lib3MF_uint32 nIndex, IAttachment* pSheet) { - if (pSheet == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - CAttachment* pAttachment = dynamic_cast (pSheet); - if (pAttachment == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - - m_pModelImageStack->setSheet(nIndex, pAttachment->getModelAttachment()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IAttachment * CImageStack::CreateEmptySheet(const Lib3MF_uint32 nIndex, const std::string & sPath) { - NMR::PImportStream pStream = std::make_shared(); - auto pAttachment = m_pModelImageStack->createSheet(nIndex, sPath, pStream); - return new CAttachment(pAttachment); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IAttachment * CImageStack::CreateSheetFromBuffer(const Lib3MF_uint32 nIndex, const std::string & sPath, const Lib3MF_uint64 nDataBufferSize, const Lib3MF_uint8 * pDataBuffer) { - NMR::PImportStream pStream = std::make_shared(pDataBuffer, nDataBufferSize); - auto pAttachment = m_pModelImageStack->createSheet(nIndex, sPath, pStream); - return new CAttachment(pAttachment); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IAttachment * CImageStack::CreateSheetFromFile(const Lib3MF_uint32 nIndex, const std::string & sPath, const std::string & sFileName) { - std::wstring sUTF16FileName = NMR::fnUTF8toUTF16(sFileName); - NMR::PImportStream pFileStream = std::make_shared(sUTF16FileName.c_str()); - auto pAttachment = m_pModelImageStack->createSheet(nIndex, sPath, pFileStream->copyToMemory()); - return new CAttachment(pAttachment); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_implicitfunction.cpp b/Source/API/lib3mf_implicitfunction.cpp index e371b82a..72005a65 100644 --- a/Source/API/lib3mf_implicitfunction.cpp +++ b/Source/API/lib3mf_implicitfunction.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,691 +29,304 @@ Abstract: This is a stub class definition of CImplicitFunction */ #include "lib3mf_implicitfunction.hpp" - -#include "lib3mf_absnode.hpp" -#include "lib3mf_additionnode.hpp" -#include "lib3mf_arccosnode.hpp" -#include "lib3mf_arcsinnode.hpp" -#include "lib3mf_arctan2node.hpp" -#include "lib3mf_ceilnode.hpp" -#include "lib3mf_clampnode.hpp" -#include "lib3mf_composematrixnode.hpp" -#include "lib3mf_composevectornode.hpp" -#include "lib3mf_constantnode.hpp" -#include "lib3mf_constmatnode.hpp" -#include "lib3mf_constvecnode.hpp" -#include "lib3mf_coshnode.hpp" -#include "lib3mf_cosnode.hpp" -#include "lib3mf_crossnode.hpp" -#include "lib3mf_decomposevectornode.hpp" -#include "lib3mf_divisionnode.hpp" -#include "lib3mf_dotnode.hpp" -#include "lib3mf_expnode.hpp" -#include "lib3mf_floornode.hpp" -#include "lib3mf_fmodnode.hpp" -#include "lib3mf_fractnode.hpp" -#include "lib3mf_functioncallnode.hpp" -#include "lib3mf_implicitnode.hpp" -#include "lib3mf_implicitport.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_inversenode.hpp" -#include "lib3mf_lengthnode.hpp" -#include "lib3mf_log10node.hpp" -#include "lib3mf_log2node.hpp" -#include "lib3mf_lognode.hpp" -#include "lib3mf_matrixfromcolumnsnode.hpp" -#include "lib3mf_matrixfromrowsnode.hpp" -#include "lib3mf_matvecmultiplicationnode.hpp" -#include "lib3mf_maxnode.hpp" -#include "lib3mf_meshnode.hpp" -#include "lib3mf_minnode.hpp" -#include "lib3mf_multiplicationnode.hpp" -#include "lib3mf_pownode.hpp" -#include "lib3mf_resourceidnode.hpp" -#include "lib3mf_roundnode.hpp" -#include "lib3mf_selectnode.hpp" -#include "lib3mf_signnode.hpp" -#include "lib3mf_sinhnode.hpp" -#include "lib3mf_sinnode.hpp" -#include "lib3mf_sqrtnode.hpp" -#include "lib3mf_subtractionnode.hpp" -#include "lib3mf_tanhnode.hpp" -#include "lib3mf_tannode.hpp" -#include "lib3mf_transposenode.hpp" -#include "lib3mf_unsignedmeshnode.hpp" -#include "lib3mf_vectorfromscalarnode.hpp" // Include custom headers here. -#include "lib3mf_implicitportiterator.hpp" -#include "lib3mf_nodeiterator.hpp" + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CImplicitFunction + Class definition of CImplicitFunction **************************************************************************************************************************/ -NMR::CModelImplicitFunction* CImplicitFunction::function() -{ - NMR::CModelImplicitFunction* pFunction = - dynamic_cast(resource().get()); - if(pFunction == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT); - - return pFunction; -} - -CImplicitFunction::CImplicitFunction(NMR::PModelResource pResource) - : CResource(pResource), CFunction(pResource) -{ -} - std::string CImplicitFunction::GetIdentifier() { - return function()->getIdentifier(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CImplicitFunction::SetIdentifier(const std::string& sIdentifier) +void CImplicitFunction::SetIdentifier(const std::string & sIdentifier) { - function()->setIdentifier(sIdentifier); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImplicitNode* CImplicitFunction::AddNode( - const Lib3MF::eImplicitNodeType eNodeType, const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IImplicitNode * CImplicitFunction::AddNode(const Lib3MF::eImplicitNodeType eNodeType, const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = function()->addNode(eNodeType, eConfiguration, sIdentifier, - sDisplayName, sTag); - return new CImplicitNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ISinNode* CImplicitFunction::AddSinNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +ISinNode * CImplicitFunction::AddSinNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Sinus, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CSinNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ICosNode* CImplicitFunction::AddCosNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +ICosNode * CImplicitFunction::AddCosNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Cosinus, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CCosNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ITanNode* CImplicitFunction::AddTanNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +ITanNode * CImplicitFunction::AddTanNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Tan, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CTanNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IArcSinNode* CImplicitFunction::AddArcSinNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IArcSinNode * CImplicitFunction::AddArcSinNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::ArcSin, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CArcSinNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IArcCosNode* CImplicitFunction::AddArcCosNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IArcCosNode * CImplicitFunction::AddArcCosNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::ArcCos, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CArcCosNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IArcTan2Node* CImplicitFunction::AddArcTan2Node( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IArcTan2Node * CImplicitFunction::AddArcTan2Node(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::ArcTan2, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CArcTan2Node(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ISinhNode* CImplicitFunction::AddSinhNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +ISinhNode * CImplicitFunction::AddSinhNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Sinh, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CSinhNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ICoshNode* CImplicitFunction::AddCoshNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +ICoshNode * CImplicitFunction::AddCoshNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Cosh, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CCoshNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ITanhNode* CImplicitFunction::AddTanhNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +ITanhNode * CImplicitFunction::AddTanhNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Tanh, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CTanhNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IRoundNode* CImplicitFunction::AddRoundNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IRoundNode * CImplicitFunction::AddRoundNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Round, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CRoundNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ICeilNode* CImplicitFunction::AddCeilNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +ICeilNode * CImplicitFunction::AddCeilNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Ceil, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CCeilNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IFloorNode* CImplicitFunction::AddFloorNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IFloorNode * CImplicitFunction::AddFloorNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Floor, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CFloorNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ISignNode* CImplicitFunction::AddSignNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +ISignNode * CImplicitFunction::AddSignNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Sign, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CSignNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IFractNode* CImplicitFunction::AddFractNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IFractNode * CImplicitFunction::AddFractNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Fract, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CFractNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IAbsNode* CImplicitFunction::AddAbsNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IAbsNode * CImplicitFunction::AddAbsNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Abs, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CAbsNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IExpNode* CImplicitFunction::AddExpNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IExpNode * CImplicitFunction::AddExpNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Exp, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CExpNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ILogNode* CImplicitFunction::AddLogNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +ILogNode * CImplicitFunction::AddLogNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Log, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CLogNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ILog2Node* CImplicitFunction::AddLog2Node( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +ILog2Node * CImplicitFunction::AddLog2Node(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Log2, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CLog2Node(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ILog10Node* CImplicitFunction::AddLog10Node( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +ILog10Node * CImplicitFunction::AddLog10Node(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Log10, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CLog10Node(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ILengthNode* CImplicitFunction::AddLengthNode(const std::string& sIdentifier, - const std::string& sDisplayName, - const std::string& sTag) +ILengthNode * CImplicitFunction::AddLengthNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Length, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, sDisplayName, sTag); - return new CLengthNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ITransposeNode* CImplicitFunction::AddTransposeNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +ITransposeNode * CImplicitFunction::AddTransposeNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Transpose, - eConfiguration, sIdentifier, sDisplayName, sTag); - return new CTransposeNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IInverseNode* CImplicitFunction::AddInverseNode(const std::string& sIdentifier, - const std::string& sDisplayName, - const std::string& sTag) +IInverseNode * CImplicitFunction::AddInverseNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Inverse, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, sDisplayName, sTag); - return new CInverseNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ISqrtNode* CImplicitFunction::AddSqrtNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +ISqrtNode * CImplicitFunction::AddSqrtNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Sqrt, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CSqrtNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IResourceIdNode* CImplicitFunction::AddResourceIdNode( - const std::string& sIdentifier, const std::string& sDisplayName, - const std::string& sTag) +IResourceIdNode * CImplicitFunction::AddResourceIdNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::ConstResourceID, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, sDisplayName, sTag); - return new CResourceIdNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IAdditionNode* CImplicitFunction::AddAdditionNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IAdditionNode * CImplicitFunction::AddAdditionNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Addition, eConfiguration, - sIdentifier, sDisplayName, sTag); - - return new CAdditionNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ISubtractionNode* CImplicitFunction::AddSubtractionNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +ISubtractionNode * CImplicitFunction::AddSubtractionNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Subtraction, - eConfiguration, sIdentifier, sDisplayName, sTag); - return new CSubtractionNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IMultiplicationNode* CImplicitFunction::AddMultiplicationNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IMultiplicationNode * CImplicitFunction::AddMultiplicationNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Multiplication, - eConfiguration, sIdentifier, sDisplayName, sTag); - return new CMultiplicationNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IDivisionNode* CImplicitFunction::AddDivisionNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IDivisionNode * CImplicitFunction::AddDivisionNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Division, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CDivisionNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IDotNode* CImplicitFunction::AddDotNode(const std::string& sIdentifier, - const std::string& sDisplayName, - const std::string& sTag) +IDotNode * CImplicitFunction::AddDotNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Dot, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, sDisplayName, sTag); - return new CDotNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ICrossNode* CImplicitFunction::AddCrossNode(const std::string& sIdentifier, - const std::string& sDisplayName, - const std::string& sTag) +ICrossNode * CImplicitFunction::AddCrossNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Cross, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, sDisplayName, sTag); - return new CCrossNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IMatVecMultiplicationNode* CImplicitFunction::AddMatVecMultiplicationNode( - const std::string& sIdentifier, const std::string& sDisplayName, - const std::string& sTag) +IMatVecMultiplicationNode * CImplicitFunction::AddMatVecMultiplicationNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::MatVecMultiplication, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, sDisplayName, sTag); - return new CMatVecMultiplicationNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IMinNode* CImplicitFunction::AddMinNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IMinNode * CImplicitFunction::AddMinNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Min, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CMinNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IMaxNode* CImplicitFunction::AddMaxNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IMaxNode * CImplicitFunction::AddMaxNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Max, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CMaxNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IFmodNode* CImplicitFunction::AddFmodNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IFmodNode * CImplicitFunction::AddFmodNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Fmod, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CFmodNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IPowNode* CImplicitFunction::AddPowNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IPowNode * CImplicitFunction::AddPowNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Pow, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CPowNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ISelectNode* CImplicitFunction::AddSelectNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +ISelectNode * CImplicitFunction::AddSelectNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Select, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CSelectNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IClampNode* CImplicitFunction::AddClampNode( - const std::string& sIdentifier, - const Lib3MF::eImplicitNodeConfiguration eConfiguration, - const std::string& sDisplayName, const std::string& sTag) +IClampNode * CImplicitFunction::AddClampNode(const std::string & sIdentifier, const Lib3MF::eImplicitNodeConfiguration eConfiguration, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Clamp, eConfiguration, - sIdentifier, sDisplayName, sTag); - return new CClampNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IComposeVectorNode* CImplicitFunction::AddComposeVectorNode( - const std::string& sIdentifier, const std::string& sDisplayName, - const std::string& sTag) +IComposeVectorNode * CImplicitFunction::AddComposeVectorNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::ComposeVector, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, sDisplayName, sTag); - return new CComposeVectorNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IVectorFromScalarNode * CImplicitFunction::AddVectorFromScalarNode(const std::string & sIdentifier, - const std::string & sDisplayName, - const std::string & sTag) +IVectorFromScalarNode * CImplicitFunction::AddVectorFromScalarNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = function()->addNode(Lib3MF::eImplicitNodeType::VectorFromScalar, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, - sDisplayName, - sTag); - return new CVectorFromScalarNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IDecomposeVectorNode* CImplicitFunction::AddDecomposeVectorNode( - const std::string& sIdentifier, const std::string& sDisplayName, - const std::string& sTag) +IDecomposeVectorNode * CImplicitFunction::AddDecomposeVectorNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::DecomposeVector, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, sDisplayName, sTag); - return new CDecomposeVectorNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IComposeMatrixNode* CImplicitFunction::AddComposeMatrixNode( - const std::string& sIdentifier, const std::string& sDisplayName, - const std::string& sTag) +IComposeMatrixNode * CImplicitFunction::AddComposeMatrixNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::ComposeMatrix, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, sDisplayName, sTag); - return new CComposeMatrixNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IMatrixFromRowsNode * CImplicitFunction::AddMatrixFromRowsNode(const std::string & sIdentifier, - const std::string & sDisplayName, - const std::string & sTag) +IMatrixFromRowsNode * CImplicitFunction::AddMatrixFromRowsNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = function()->addNode(Lib3MF::eImplicitNodeType::MatrixFromRows, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, - sDisplayName, - sTag); - return new CMatrixFromRowsNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IMatrixFromColumnsNode * CImplicitFunction::AddMatrixFromColumnsNode(const std::string & sIdentifier, - const std::string & sDisplayName, - const std::string & sTag) +IMatrixFromColumnsNode * CImplicitFunction::AddMatrixFromColumnsNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = function()->addNode(Lib3MF::eImplicitNodeType::MatrixFromColumns, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, - sDisplayName, - sTag); - return new CMatrixFromColumnsNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IConstantNode* CImplicitFunction::AddConstantNode( - const std::string& sIdentifier, const std::string& sDisplayName, - const std::string& sTag) +IConstantNode * CImplicitFunction::AddConstantNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Constant, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, sDisplayName, sTag); - return new CConstantNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IConstVecNode* CImplicitFunction::AddConstVecNode( - const std::string& sIdentifier, const std::string& sDisplayName, - const std::string& sTag) +IConstVecNode * CImplicitFunction::AddConstVecNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::ConstVec, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, sDisplayName, sTag); - return new CConstVecNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IConstMatNode* CImplicitFunction::AddConstMatNode( - const std::string& sIdentifier, const std::string& sDisplayName, - const std::string& sTag) +IConstMatNode * CImplicitFunction::AddConstMatNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::ConstMat, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, sDisplayName, sTag); - return new CConstMatNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IMeshNode* CImplicitFunction::AddMeshNode(const std::string& sIdentifier, - const std::string& sDisplayName, - const std::string& sTag) +IMeshNode * CImplicitFunction::AddMeshNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::Mesh, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, sDisplayName, sTag); - return new CMeshNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IUnsignedMeshNode * CImplicitFunction::AddUnsignedMeshNode(const std::string & sIdentifier, - const std::string & sDisplayName, - const std::string & sTag) +IUnsignedMeshNode * CImplicitFunction::AddUnsignedMeshNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = function()->addNode(Lib3MF::eImplicitNodeType::UnsignedMesh, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, - sDisplayName, - sTag); - return new CUnsignedMeshNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IFunctionCallNode* CImplicitFunction::AddFunctionCallNode( - const std::string& sIdentifier, const std::string& sDisplayName, - const std::string& sTag) +IFunctionCallNode * CImplicitFunction::AddFunctionCallNode(const std::string & sIdentifier, const std::string & sDisplayName, const std::string & sTag) { - auto newNode = - function()->addNode(Lib3MF::eImplicitNodeType::FunctionCall, - Lib3MF::eImplicitNodeConfiguration::Default, - sIdentifier, sDisplayName, sTag); - return new CFunctionCallNode(newNode); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -INodeIterator* CImplicitFunction::GetNodes() +INodeIterator * CImplicitFunction::GetNodes() { - return new CNodeIterator(function()->getNodes()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CImplicitFunction::RemoveNode(IImplicitNode* pNode) { - if(pNode == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - function()->removeNode(pNode->GetIdentifier()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CImplicitFunction::AddLink(IImplicitPort* pSource, IImplicitPort* pTarget) { - if (pSource == nullptr || pTarget == nullptr) - { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - CImplicitPort* pSourcePort = dynamic_cast(pSource); - CImplicitPort* pTargetPort = dynamic_cast(pTarget); - - if (pSourcePort == nullptr || pTargetPort == nullptr) - { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - - function()->addLink(pSourcePort->getPort(), pTargetPort->getPort()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CImplicitFunction::AddLinkByNames(const std::string& sSource, - const std::string& sTarget) +void CImplicitFunction::AddLinkByNames(const std::string & sSource, const std::string & sTarget) { - function()->addLink(sSource, sTarget); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CImplicitFunction::Clear() { - function()->clear(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CImplicitFunction::SortNodesTopologically() { - function()->sortNodesTopologically(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_implicitnode.cpp b/Source/API/lib3mf_implicitnode.cpp index aa96490c..edde24a8 100644 --- a/Source/API/lib3mf_implicitnode.cpp +++ b/Source/API/lib3mf_implicitnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,130 +29,84 @@ Abstract: This is a stub class definition of CImplicitNode */ #include "lib3mf_implicitnode.hpp" -#include "lib3mf_implicitport.hpp" -#include "lib3mf_implicitportiterator.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_meshobject.hpp" -#include // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CImplicitNode + Class definition of CImplicitNode **************************************************************************************************************************/ std::string CImplicitNode::GetIdentifier() { - if (!m_pImplicitNode) - { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - return m_pImplicitNode->getIdentifier(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CImplicitNode::SetIdentifier(const std::string & sIdentifier) { - m_pImplicitNode->setIdentifier(sIdentifier); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } std::string CImplicitNode::GetDisplayName() { - return m_pImplicitNode->getDisplayName(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CImplicitNode::SetDisplayName(const std::string& sDisplayName) +void CImplicitNode::SetDisplayName(const std::string & sDisplayName) { - m_pImplicitNode->setDisplayName(sDisplayName); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } std::string CImplicitNode::GetTag() { - return m_pImplicitNode->getTag(); -} - -void CImplicitNode::SetTag(const std::string& sTag) -{ - m_pImplicitNode->setTag(sTag); -} - -IImplicitPort* Lib3MF::Impl::CImplicitNode::FindInputOrThrow( - const std::string& sIdentifier) -{ - auto pPort = FindInput(sIdentifier); - if (!pPort) - { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - return pPort; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImplicitPort* Lib3MF::Impl::CImplicitNode::FindOutputOrThrow( - const std::string& sIdentifier) -{ - auto pPort = FindOutput(sIdentifier); - if (!pPort) - { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - return pPort; -} - -CImplicitNode::CImplicitNode(NMR::PModelImplicitNode pImplicitNode) - : m_pImplicitNode{pImplicitNode} +void CImplicitNode::SetTag(const std::string & sTag) { + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF::eImplicitNodeType CImplicitNode::GetNodeType() { - return m_pImplicitNode->getNodeType(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImplicitPort * CImplicitNode::AddInput(const std::string & sIdentifier, - const std::string & sDisplayName) +IImplicitPort * CImplicitNode::AddInput(const std::string & sIdentifier, const std::string & sDisplayName) { - return new CImplicitPort(m_pImplicitNode->addInput(sIdentifier, sDisplayName)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImplicitPort * CImplicitNode::AddOutput(const std::string & sIdentifier, - const std::string & sDisplayName) +IImplicitPortIterator * CImplicitNode::GetInputs() { - return new CImplicitPort(m_pImplicitNode->addOutput(sIdentifier, sDisplayName)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImplicitPortIterator * CImplicitNode::GetOutputs() +IImplicitPort * CImplicitNode::AddOutput(const std::string & sIdentifier, const std::string & sDisplayName) { - return new CImplicitPortIterator(m_pImplicitNode->getOutputs()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImplicitPortIterator * CImplicitNode::GetInputs() +IImplicitPortIterator * CImplicitNode::GetOutputs() { - return new CImplicitPortIterator(m_pImplicitNode->getInputs()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CImplicitNode::FindInput(const std::string & sIdentifier) { - auto pPort = m_pImplicitNode->findInput(sIdentifier); - if (!pPort) - { - return nullptr; - } - return new CImplicitPort(pPort); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CImplicitNode::FindOutput(const std::string & sIdentifier) { - auto pPort = m_pImplicitNode->findOutput(sIdentifier); - if (!pPort) - { - return nullptr; - } - return new CImplicitPort(pPort); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool Lib3MF::Impl::CImplicitNode::AreTypesValid() +bool CImplicitNode::AreTypesValid() { - return m_pImplicitNode->arePortsValid(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_implicitport.cpp b/Source/API/lib3mf_implicitport.cpp index 184aacf2..060fb114 100644 --- a/Source/API/lib3mf_implicitport.cpp +++ b/Source/API/lib3mf_implicitport.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -30,62 +30,53 @@ Abstract: This is a stub class definition of CImplicitPort #include "lib3mf_implicitport.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_types.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CImplicitPort + Class definition of CImplicitPort **************************************************************************************************************************/ -Lib3MF::Impl::CImplicitPort::CImplicitPort(NMR::PModelImplicitPort pImplicitPort) - : m_pImplicitPort(pImplicitPort) -{ -} - std::string CImplicitPort::GetIdentifier() { - return m_pImplicitPort->getIdentifier(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CImplicitPort::SetIdentifier(const std::string & sIdentifier) { - m_pImplicitPort->setIdentifier(sIdentifier); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } std::string CImplicitPort::GetDisplayName() { - return m_pImplicitPort->getDisplayName(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CImplicitPort::SetDisplayName(const std::string & sDisplayName) { - m_pImplicitPort->setDisplayName(sDisplayName); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CImplicitPort::SetType(const Lib3MF::eImplicitPortType eType) +void CImplicitPort::SetType(const Lib3MF::eImplicitPortType eImplicitPortType) { - m_pImplicitPort->setType(eType); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF::eImplicitPortType CImplicitPort::GetType() { - return m_pImplicitPort->getType(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } std::string CImplicitPort::GetReference() { - return m_pImplicitPort->getReference(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CImplicitPort::SetReference(const std::string & sReference) { - m_pImplicitPort->setReference(sReference); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -NMR::PModelImplicitPort Lib3MF::Impl::CImplicitPort::getPort() -{ - return m_pImplicitPort; -} diff --git a/Source/API/lib3mf_implicitportiterator.cpp b/Source/API/lib3mf_implicitportiterator.cpp index 64f9e98b..7b21635d 100644 --- a/Source/API/lib3mf_implicitportiterator.cpp +++ b/Source/API/lib3mf_implicitportiterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,7 +32,7 @@ Abstract: This is a stub class definition of CImplicitPortIterator #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_implicitport.hpp" + using namespace Lib3MF::Impl; @@ -40,18 +40,8 @@ using namespace Lib3MF::Impl; Class definition of CImplicitPortIterator **************************************************************************************************************************/ -Lib3MF::Impl::CImplicitPortIterator::CImplicitPortIterator(NMR::PPorts pPorts) : m_pPorts(pPorts) -{ -} - -Lib3MF_uint64 Lib3MF::Impl::CImplicitPortIterator::Count() -{ - return static_cast(m_pPorts->size()); -} - IImplicitPort * CImplicitPortIterator::GetCurrent() { - throwIfInvalidIndex(); - return new CImplicitPort(m_pPorts->at(static_cast(getCurrentIndex()))); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_inversenode.cpp b/Source/API/lib3mf_inversenode.cpp index 6275b7ba..53edce0f 100644 --- a/Source/API/lib3mf_inversenode.cpp +++ b/Source/API/lib3mf_inversenode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,7 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CInverseNode **************************************************************************************************************************/ -Lib3MF::Impl::CInverseNode::CInverseNode(NMR::PModelImplicitNode pImplicitNode) -: COneInputNode(std::move(pImplicitNode)) -{ -} diff --git a/Source/API/lib3mf_iterator.cpp b/Source/API/lib3mf_iterator.cpp index 8a4e7e7b..9622c2b3 100644 --- a/Source/API/lib3mf_iterator.cpp +++ b/Source/API/lib3mf_iterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,54 +33,25 @@ Abstract: This is a stub class definition of CIterator // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CIterator + Class definition of CIterator **************************************************************************************************************************/ bool CIterator::MoveNext() { - auto const numItems = static_cast(Count()); - m_nCurrentIndex++; - - if (m_nCurrentIndex >= numItems) - { - m_nCurrentIndex = numItems; - return false; - } - else - { - return true; - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } bool CIterator::MovePrevious() { - m_nCurrentIndex--; - if (m_nCurrentIndex <= -1) - { - m_nCurrentIndex = -1; - return false; - } - else - { - return true; - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_uint64 CIterator::Count() { - throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); -} - -Lib3MF_int64 Lib3MF::Impl::CIterator::getCurrentIndex() -{ - return m_nCurrentIndex; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void Lib3MF::Impl::CIterator::throwIfInvalidIndex() -{ - if ((m_nCurrentIndex < 0) || (m_nCurrentIndex >= static_cast(Count()))) - throw ELib3MFInterfaceException(LIB3MF_ERROR_ITERATORINVALIDINDEX); -} diff --git a/Source/API/lib3mf_keystore.cpp b/Source/API/lib3mf_keystore.cpp index a2b28aa3..08019ed2 100644 --- a/Source/API/lib3mf_keystore.cpp +++ b/Source/API/lib3mf_keystore.cpp @@ -1,161 +1,127 @@ -#include "lib3mf_types.hpp" +/*++ + +Copyright (C) 2024 3MF Consortium (Original Author) + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Abstract: This is a stub class definition of CKeyStore + +*/ + #include "lib3mf_keystore.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_consumer.hpp" -#include "lib3mf_resourcedatagroup.hpp" -#include "lib3mf_resourcedata.hpp" -#include "lib3mf_packagepart.hpp" -#include "lib3mf_utils.hpp" -#include "Model/Classes/NMR_KeyStoreFactory.h" -#include "Model/Classes/NMR_PackageResourceID.h" -#include "Model/Classes/NMR_Model.h" -#include "Common/NMR_SecureContentTypes.h" -#include "Common/NMR_Types.h" +// Include custom headers here. -#include using namespace Lib3MF::Impl; -Lib3MF::Impl::CKeyStore::CKeyStore(NMR::PModel const & pModel) - :m_pModel(pModel) +/************************************************************************************************************************* + Class definition of CKeyStore +**************************************************************************************************************************/ + +IConsumer * CKeyStore::AddConsumer(const std::string & sConsumerID, const std::string & sKeyID, const std::string & sKeyValue) { - if (nullptr == pModel) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDKEYSTORE); - m_pKeyStore = pModel->getKeyStore(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IConsumer * Lib3MF::Impl::CKeyStore::AddConsumer(const std::string & sConsumerID, const std::string & sKeyID, const std::string & sKeyValue) +Lib3MF_uint64 CKeyStore::GetConsumerCount() { - NMR::PKeyStoreConsumer consumer = NMR::CKeyStoreFactory::makeConsumer(sConsumerID); - consumer->setKeyID(sKeyID); - consumer->setKeyValue(sKeyValue); - m_pKeyStore->addConsumer(consumer); - return new CConsumer(consumer); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint64 Lib3MF::Impl::CKeyStore::GetConsumerCount() +IConsumer * CKeyStore::GetConsumer(const Lib3MF_uint64 nConsumerIndex) { - return m_pKeyStore->getConsumerCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IConsumer * Lib3MF::Impl::CKeyStore::GetConsumer(const Lib3MF_uint64 nConsumerIndex) +void CKeyStore::RemoveConsumer(IConsumer* pConsumer) { - NMR::PKeyStoreConsumer consumer = m_pKeyStore->getConsumer(nConsumerIndex); - return new CConsumer(consumer); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IConsumer * Lib3MF::Impl::CKeyStore::FindConsumer(const std::string & sConsumerID) +IConsumer * CKeyStore::FindConsumer(const std::string & sConsumerID) { - NMR::PKeyStoreConsumer consumer = m_pKeyStore->findConsumerById(sConsumerID); - if (!consumer) - return nullptr; - return new CConsumer(consumer); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void Lib3MF::Impl::CKeyStore::RemoveConsumer(IConsumer * pConsumerInstance) +Lib3MF_uint64 CKeyStore::GetResourceDataGroupCount() { - CConsumer * pConsumer = dynamic_cast(pConsumerInstance); - if (!pConsumer) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDKEYSTORECONSUMER); - } - m_pKeyStore->removeConsumer(pConsumer->consumer()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -std::string Lib3MF::Impl::CKeyStore::GetUUID(bool & bHasUUID) { - bHasUUID = m_pKeyStore->getUUID() != nullptr; - if (bHasUUID) - return m_pKeyStore->getUUID()->toString(); - return ""; +IResourceDataGroup * CKeyStore::AddResourceDataGroup() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void Lib3MF::Impl::CKeyStore::SetUUID(const std::string & sUUID) +IResourceDataGroup * CKeyStore::GetResourceDataGroup(const Lib3MF_uint64 nResourceDataIndex) { - NMR::PUUID pUUID = std::make_shared(sUUID); - m_pKeyStore->setUUID(pUUID); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint64 Lib3MF::Impl::CKeyStore::GetResourceDataGroupCount() +void CKeyStore::RemoveResourceDataGroup(IResourceDataGroup* pResourceDataGroup) { - return (Lib3MF_uint32)m_pKeyStore->getResourceDataGroupCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IResourceDataGroup * Lib3MF::Impl::CKeyStore::GetResourceDataGroup(const Lib3MF_uint64 nResourceDataIndex) +IResourceDataGroup * CKeyStore::FindResourceDataGroup(IPackagePart* pPartPath) { - NMR::PKeyStoreResourceDataGroup dg = m_pKeyStore->getResourceDataGroup(nResourceDataIndex); - return new CResourceDataGroup(dg); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IResourceDataGroup * Lib3MF::Impl::CKeyStore::AddResourceDataGroup() { - //this is not ideal, as key size is determined by the encryptionalgorithm inside resourcedata. - //in any case, the spec does not state what happens if different resource datas have different algorithms, - //but resourcedatagroups are supposed to group the same key for a group of resources... - //so far, this should work as aes256 is the only thing we support. - std::vector key((size_t) NMR::fnGetAlgorithmKeySize(NMR::eKeyStoreEncryptAlgorithm::AES256_GCM), 0); - m_pModel->generateRandomBytes(key.data(), key.size()); - NMR::PKeyStoreResourceDataGroup dg = NMR::CKeyStoreFactory::makeResourceDataGroup(std::make_shared(), key); - m_pKeyStore->addResourceDataGroup(dg); - return new CResourceDataGroup(dg); +IResourceData * CKeyStore::AddResourceData(IResourceDataGroup* pResourceDataGroup, IPackagePart* pPartPath, const Lib3MF::eEncryptionAlgorithm eAlgorithm, const Lib3MF::eCompression eCompression, const Lib3MF_uint64 nAdditionalAuthenticationDataBufferSize, const Lib3MF_uint8 * pAdditionalAuthenticationDataBuffer) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void Lib3MF::Impl::CKeyStore::RemoveResourceDataGroup(IResourceDataGroup * pTheResourceDataGroup) { - CResourceDataGroup * dg = dynamic_cast(pTheResourceDataGroup); - if (!dg) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - m_pKeyStore->removeResourceDataGroup(dg->resourceDataGroup()); +void CKeyStore::RemoveResourceData(IResourceData* pResourceData) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF::Impl::IResourceDataGroup * Lib3MF::Impl::CKeyStore::FindResourceDataGroup(Lib3MF::Impl::IPackagePart *pPartPath) { - NMR::PPackageModelPath pPath = m_pModel->findOrCreateModelPath(pPartPath->GetPath()); - if (!pPath) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - NMR::PKeyStoreResourceDataGroup dg = m_pKeyStore->findResourceDataGroupByResourceDataPath(pPath); - if (!dg) - return nullptr; - return new CResourceDataGroup(dg); +IResourceData * CKeyStore::FindResourceData(IPackagePart* pResourcePath) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF::Impl::IResourceData * Lib3MF::Impl::CKeyStore::AddResourceData(Lib3MF::Impl::IResourceDataGroup *pResourceDataGroup, Lib3MF::Impl::IPackagePart *pPartPath, Lib3MF::eEncryptionAlgorithm eAlgorithm, Lib3MF::eCompression eCompression, Lib3MF_uint64 nAdditionalAuthenticationDataBufferSize, const Lib3MF_uint8 *pAdditionalAuthenticationDataBuffer) { - bool compression = translateCompression(eCompression); - NMR::eKeyStoreEncryptAlgorithm algorithm = translateEncryptionAlgorithm(eAlgorithm); - CResourceDataGroup * dg = dynamic_cast(pResourceDataGroup); - if (!dg) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - //pPartPath might have different implementations, so asking model get us right to what we need. - NMR::PPackageModelPath pPath = m_pModel->findOrCreateModelPath(pPartPath->GetPath()); - if (!pPath) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - std::vector aad(pAdditionalAuthenticationDataBuffer, pAdditionalAuthenticationDataBuffer + nAdditionalAuthenticationDataBufferSize); - NMR::PKeyStoreCEKParams params = NMR::CKeyStoreFactory::makeCEKParams(compression, algorithm, aad); - NMR::PKeyStoreResourceData rd = NMR::CKeyStoreFactory::makeResourceData(dg->resourceDataGroup(), pPath, params); - m_pKeyStore->addResourceData(rd); - return new CResourceData(rd); +Lib3MF_uint64 CKeyStore::GetResourceDataCount() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void Lib3MF::Impl::CKeyStore::RemoveResourceData(Lib3MF::Impl::IResourceData *pResourceData) { - CResourceData * rd = dynamic_cast(pResourceData); - if (!rd) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - m_pKeyStore->removeResourceData(rd->resourceData()); +IResourceData * CKeyStore::GetResourceData(const Lib3MF_uint64 nResourceDataIndex) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint64 Lib3MF::Impl::CKeyStore::GetResourceDataCount() { - return m_pKeyStore->getResourceDataCount(); +std::string CKeyStore::GetUUID(bool & bHasUUID) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF::Impl::IResourceData * Lib3MF::Impl::CKeyStore::GetResourceData(Lib3MF_uint64 nResourceDataIndex) { - NMR::PKeyStoreResourceData rd = m_pKeyStore->getResourceData(nResourceDataIndex); - return new CResourceData(rd); +void CKeyStore::SetUUID(const std::string & sUUID) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IResourceData * Lib3MF::Impl::CKeyStore::FindResourceData(IPackagePart * pResourcePath) { - NMR::PPackageModelPath pPath = m_pModel->findOrCreateModelPath(pResourcePath->GetPath()); - if (!pPath) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - NMR::PKeyStoreResourceData rd = m_pKeyStore->findResourceData(pPath); - if (!rd) - return nullptr; - return new CResourceData(rd); -} diff --git a/Source/API/lib3mf_lengthnode.cpp b/Source/API/lib3mf_lengthnode.cpp index 94819e54..3fc5a62f 100644 --- a/Source/API/lib3mf_lengthnode.cpp +++ b/Source/API/lib3mf_lengthnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CLengthNode */ #include "lib3mf_lengthnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CLengthNode + Class definition of CLengthNode **************************************************************************************************************************/ -Lib3MF::Impl::CLengthNode::CLengthNode(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_levelset.cpp b/Source/API/lib3mf_levelset.cpp index f73d39f5..2f79437b 100644 --- a/Source/API/lib3mf_levelset.cpp +++ b/Source/API/lib3mf_levelset.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,13 +32,6 @@ Abstract: This is a stub class definition of CLevelSet #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_meshobject.hpp" -#include "lib3mf_utils.hpp" -#include "lib3mf_function.hpp" -#include "lib3mf_volumedata.hpp" -#include "Model/Classes/NMR_ModelLevelSetObject.h" -#include "Model/Classes/NMR_ModelFunction.h" -#include "Model/Classes/NMR_ModelMeshObject.h" using namespace Lib3MF::Impl; @@ -47,232 +40,83 @@ using namespace Lib3MF::Impl; Class definition of CLevelSet **************************************************************************************************************************/ - -ILevelSet* CLevelSet::fnCreateLevelSetFromModelResource(NMR::PModelResource pResource, bool bFailIfUnkownClass) { - - if (!pResource.get()) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - NMR::CModelLevelSetObject * LevelSetObject = dynamic_cast (pResource.get()); - if (LevelSetObject) { - return new CLevelSet(pResource); - } - - if (bFailIfUnkownClass) - throw ELib3MFInterfaceException(NMR_ERROR_UNKNOWNMODELRESOURCE); - - return nullptr; -} - - - IFunction * CLevelSet::GetFunction() { - auto levelSet = levelSetObject(); - auto function = levelSet->getFunction(); - if (!function) - { - return nullptr; - } - return new CFunction(function); -} - -NMR::PModelLevelSetObject -Lib3MF::Impl::CLevelSet::levelSetObject() -{ - NMR::PModelLevelSetObject pLevelSet = std::dynamic_pointer_cast(resource()); - if (pLevelSet.get() == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT, "Resource is not a LevelSet Object"); - return pLevelSet; -} - -CLevelSet::CLevelSet(NMR::PModelResource pResource) - : CResource(pResource), CObject(pResource) -{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CLevelSet::SetFunction(IFunction* pTheFunction) { - if(pTheFunction == nullptr) - { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - - NMR::CModel* pModel = levelSetObject()->getModel(); - if(pModel == nullptr) - { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT, "LevelSet Object has no Model"); - } - - NMR::PModelFunction pFunction = - std::dynamic_pointer_cast( - pModel->findResource(pTheFunction->GetUniqueResourceID())); - - if(!pFunction) - { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - levelSetObject()->setFunction(pFunction); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF::sTransform CLevelSet::GetTransform() { - return MatrixToTransform(levelSetObject()->getTransform()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CLevelSet::SetTransform(const Lib3MF::sTransform Transform) { - levelSetObject()->setTransform(TransformToMatrix(Transform)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } std::string CLevelSet::GetChannelName() { - return levelSetObject()->getChannelName(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CLevelSet::SetChannelName(const std::string & sChannelName) { - levelSetObject()->setChannelName(sChannelName); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CLevelSet::SetMinFeatureSize(const Lib3MF_double dMinFeatureSize) { - levelSetObject()->setMinFeatureSize(dMinFeatureSize); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_double CLevelSet::GetMinFeatureSize() { - return levelSetObject()->getMinFeatureSize(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CLevelSet::SetFallBackValue(const Lib3MF_double dFallBackValue) { - levelSetObject()->setFallBackValue(dFallBackValue); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_double CLevelSet::GetFallBackValue() { - return levelSetObject()->getFallBackValue(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CLevelSet::SetMeshBBoxOnly(const bool bMeshBBoxOnly) { - levelSetObject()->setMeshBBoxOnly(bMeshBBoxOnly); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } bool CLevelSet::GetMeshBBoxOnly() { - return levelSetObject()->getMeshBBoxOnly(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CLevelSet::SetMesh(IMeshObject* pTheMesh) { - if(pTheMesh == nullptr) - { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - - NMR::CModel* pModel = levelSetObject()->getModel(); - if(pModel == nullptr) - { - throw ELib3MFInterfaceException( - LIB3MF_ERROR_INVALIDOBJECT, - "LevelSet Object " + - std::to_string(levelSetObject() - ->getPackageResourceID() - ->getModelResourceID()) + - " has no Model"); - } - - NMR::PModelMeshObject pMesh = - std::dynamic_pointer_cast( - pModel->findResource(pTheMesh->GetUniqueResourceID())); - - if(!pMesh) - { - throw ELib3MFInterfaceException( - LIB3MF_ERROR_INVALIDPARAM, - "Referenced Mesh Object not found with resource ID: " + - std::to_string(pTheMesh->GetModelResourceID())); - } - levelSetObject()->setMesh(pMesh); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IMeshObject * CLevelSet::GetMesh() { - NMR::PModelMeshObject meshObject = levelSetObject()->getMesh(); - - if(!meshObject) - { - throw ELib3MFInterfaceException( - LIB3MF_ERROR_INVALIDOBJECT, - "Referenced Mesh Object of the levelset with the id " + - std::to_string(levelSetObject() - ->getPackageResourceID() - ->getModelResourceID()) + - " could not be found"); - } - - return new CMeshObject(meshObject); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CLevelSet::SetVolumeData(IVolumeData* pTheVolumeData) -{ - NMR::CModel * pModel = levelSetObject()->getModel(); - if (pModel == nullptr) - throw ELib3MFInterfaceException( - LIB3MF_ERROR_INVALIDOBJECT, - "LevelSet Object " + - std::to_string(levelSetObject() - ->getPackageResourceID() - ->getModelResourceID()) + - " has no parent Model"); - - NMR::PModelResource pResource = pModel->findResource(pTheVolumeData->GetResourceID()); - if (pResource == nullptr) - throw ELib3MFInterfaceException( - LIB3MF_ERROR_INVALIDOBJECT, - "Referenced VolumeData Resource with ID " + - std::to_string(pTheVolumeData->GetModelResourceID()) + - " not found"); - - NMR::PModelVolumeData pVolumeData = std::dynamic_pointer_cast(pResource); - - if(pVolumeData == nullptr) - throw ELib3MFInterfaceException( - LIB3MF_ERROR_INVALIDOBJECT, - "Referenced Resource " + - std::to_string(pTheVolumeData->GetModelResourceID()) + - " by levelset " + - std::to_string(levelSetObject() - ->getPackageResourceID() - ->getModelResourceID()) + - " is not of type VolumeData"); - - levelSetObject()->setVolumeData(pVolumeData); -} - -bool CLevelSet::IsMeshObject() -{ - return false; -} - -bool Lib3MF::Impl::CLevelSet::IsComponentsObject() +IVolumeData * CLevelSet::GetVolumeData() { - return false; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool CLevelSet::IsLevelSetObject() +void CLevelSet::SetVolumeData(IVolumeData* pTheVolumeData) { - return true; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IVolumeData * CLevelSet::GetVolumeData() -{ - NMR::PModelVolumeData pVolumeData = levelSetObject()->getVolumeData(); - if (!pVolumeData) - { - return nullptr; - } - return new CVolumeData(pVolumeData); -} \ No newline at end of file diff --git a/Source/API/lib3mf_levelsetiterator.cpp b/Source/API/lib3mf_levelsetiterator.cpp index 0814f728..9990150c 100644 --- a/Source/API/lib3mf_levelsetiterator.cpp +++ b/Source/API/lib3mf_levelsetiterator.cpp @@ -32,7 +32,6 @@ Abstract: This is a stub class definition of CLevelSetIterator #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_levelset.hpp" using namespace Lib3MF::Impl; @@ -43,6 +42,6 @@ using namespace Lib3MF::Impl; ILevelSet * CLevelSetIterator::GetCurrentLevelSet() { - return CLevelSet::fnCreateLevelSetFromModelResource(GetCurrentResource(), true); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_log10node.cpp b/Source/API/lib3mf_log10node.cpp index e69e3485..4e8c6b3c 100644 --- a/Source/API/lib3mf_log10node.cpp +++ b/Source/API/lib3mf_log10node.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CLog10Node */ #include "lib3mf_log10node.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CLog10Node + Class definition of CLog10Node **************************************************************************************************************************/ -Lib3MF::Impl::CLog10Node::CLog10Node(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_log2node.cpp b/Source/API/lib3mf_log2node.cpp index c37f0a21..3e17960e 100644 --- a/Source/API/lib3mf_log2node.cpp +++ b/Source/API/lib3mf_log2node.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,8 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CLog2Node **************************************************************************************************************************/ -Lib3MF::Impl::CLog2Node::CLog2Node(NMR::PModelImplicitNode pImplicitNode) -: COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_lognode.cpp b/Source/API/lib3mf_lognode.cpp index c20b37a2..49a2c0de 100644 --- a/Source/API/lib3mf_lognode.cpp +++ b/Source/API/lib3mf_lognode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,8 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CLogNode **************************************************************************************************************************/ -Lib3MF::Impl::CLogNode::CLogNode(NMR::PModelImplicitNode pImplicitNode) -: COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_materialmapping.cpp b/Source/API/lib3mf_materialmapping.cpp index 55a7fe55..4445397b 100644 --- a/Source/API/lib3mf_materialmapping.cpp +++ b/Source/API/lib3mf_materialmapping.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. diff --git a/Source/API/lib3mf_matrixfromcolumnsnode.cpp b/Source/API/lib3mf_matrixfromcolumnsnode.cpp index d9d023ef..83a9a972 100644 --- a/Source/API/lib3mf_matrixfromcolumnsnode.cpp +++ b/Source/API/lib3mf_matrixfromcolumnsnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -39,35 +39,29 @@ using namespace Lib3MF::Impl; /************************************************************************************************************************* Class definition of CMatrixFromColumnsNode **************************************************************************************************************************/ -CMatrixFromColumnsNode:: - CMatrixFromColumnsNode(NMR::PModelImplicitNode pImplicitNode) - : CImplicitNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} IImplicitPort * CMatrixFromColumnsNode::GetInputA() { - return FindInputOrThrow(NMR::InputNames::A); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CMatrixFromColumnsNode::GetInputB() { - return FindInputOrThrow(NMR::InputNames::B); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CMatrixFromColumnsNode::GetInputC() { - return FindInputOrThrow(NMR::InputNames::C); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CMatrixFromColumnsNode::GetInputD() { - return FindInputOrThrow(NMR::InputNames::D); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CMatrixFromColumnsNode::GetOutputResult() { - return FindOutputOrThrow(NMR::OutputNames::result); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_matrixfromrowsnode.cpp b/Source/API/lib3mf_matrixfromrowsnode.cpp index 7f34568f..3afc6bc3 100644 --- a/Source/API/lib3mf_matrixfromrowsnode.cpp +++ b/Source/API/lib3mf_matrixfromrowsnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,36 +40,28 @@ using namespace Lib3MF::Impl; Class definition of CMatrixFromRowsNode **************************************************************************************************************************/ -CMatrixFromRowsNode:: - CMatrixFromRowsNode(NMR::PModelImplicitNode pImplicitNode) - : CImplicitNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} - - IImplicitPort * CMatrixFromRowsNode::GetInputA() { - return FindInputOrThrow(NMR::InputNames::A); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CMatrixFromRowsNode::GetInputB() { - return FindInputOrThrow(NMR::InputNames::B); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CMatrixFromRowsNode::GetInputC() { - return FindInputOrThrow(NMR::InputNames::C); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CMatrixFromRowsNode::GetInputD() { - return FindInputOrThrow(NMR::InputNames::D); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CMatrixFromRowsNode::GetOutputResult() { - return FindOutputOrThrow(NMR::OutputNames::result); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_matvecmultiplicationnode.cpp b/Source/API/lib3mf_matvecmultiplicationnode.cpp index eb113be9..154e80ee 100644 --- a/Source/API/lib3mf_matvecmultiplicationnode.cpp +++ b/Source/API/lib3mf_matvecmultiplicationnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,20 +29,14 @@ Abstract: This is a stub class definition of CMatVecMultiplicationNode */ #include "lib3mf_matvecmultiplicationnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CMatVecMultiplicationNode + Class definition of CMatVecMultiplicationNode **************************************************************************************************************************/ -Lib3MF::Impl::CMatVecMultiplicationNode::CMatVecMultiplicationNode( - NMR::PModelImplicitNode pImplicitNode) - : CTwoInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_maxnode.cpp b/Source/API/lib3mf_maxnode.cpp index f93b5e00..fd2b054f 100644 --- a/Source/API/lib3mf_maxnode.cpp +++ b/Source/API/lib3mf_maxnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CMaxNode */ #include "lib3mf_maxnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CMaxNode + Class definition of CMaxNode **************************************************************************************************************************/ -Lib3MF::Impl::CMaxNode::CMaxNode(NMR::PModelImplicitNode pImplicitNode) - : CTwoInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_meshnode.cpp b/Source/API/lib3mf_meshnode.cpp index b919756a..759d38b3 100644 --- a/Source/API/lib3mf_meshnode.cpp +++ b/Source/API/lib3mf_meshnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,25 +40,18 @@ using namespace Lib3MF::Impl; Class definition of CMeshNode **************************************************************************************************************************/ -CMeshNode::CMeshNode(NMR::PModelImplicitNode pImplicitNode) - : CImplicitNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} - IImplicitPort * CMeshNode::GetInputMesh() { - return FindInputOrThrow(NMR::InputNames::mesh); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CMeshNode::GetInputPos() { - return FindInputOrThrow(NMR::InputNames::pos); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - IImplicitPort * CMeshNode::GetOutputDistance() { - return FindOutputOrThrow(NMR::OutputNames::distance); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_meshobject.cpp b/Source/API/lib3mf_meshobject.cpp index ca2f92a2..c8a9d278 100644 --- a/Source/API/lib3mf_meshobject.cpp +++ b/Source/API/lib3mf_meshobject.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -27,401 +27,126 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Abstract: This is a stub class definition of CMeshObject */ + #include "lib3mf_meshobject.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_beamlattice.hpp" -#include "lib3mf_volumedata.hpp" // Include custom headers here. -#include "Common/MeshInformation/NMR_MeshInformation_Properties.h" -#include "Model/Classes/NMR_ModelVolumeData.h" -#include "Model/Classes/NMR_ModelResource.h" -#include using namespace Lib3MF::Impl; /************************************************************************************************************************* Class definition of CMeshObject - **************************************************************************************************************************/ - -IMeshObject* CMeshObject::fnCreateMeshObjectFromModelResource(NMR::PModelResource pResource, bool bFailIfUnkownClass) { - - if (!pResource.get()) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - NMR::CModelMeshObject * pMeshObject = dynamic_cast (pResource.get()); - if (pMeshObject) { - return new CMeshObject(pResource); - } - - if (bFailIfUnkownClass) - throw ELib3MFInterfaceException(NMR_ERROR_UNKNOWNMODELRESOURCE); - - return nullptr; -} - -NMR::CMeshInformation_Properties* CMeshObject::getMeshInformationProperties() -{ - auto pMesh = mesh(); - auto pInformationHandler = pMesh->createMeshInformationHandler(); - NMR::CMeshInformation_Properties * pInformation = dynamic_cast (pInformationHandler->getInformationByType(0, NMR::emiProperties)); - - if (pInformation == nullptr) { - NMR::PMeshInformation_Properties pNewInformation = std::make_shared(pMesh->getFaceCount()); - pInformationHandler->addInformation(pNewInformation); - - pInformation = pNewInformation.get(); - } - return pInformation; -} +**************************************************************************************************************************/ -CMeshObject::CMeshObject(NMR::PModelResource pResource) - : CResource(pResource), CObject(pResource) +Lib3MF_uint32 CMeshObject::GetVertexCount() { - -} - -NMR::PModelMeshObject CMeshObject::meshObject() -{ - NMR::PModelMeshObject pMesh = std::dynamic_pointer_cast(resource()); - if (pMesh == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT); - return pMesh; -} - -NMR::CMesh* CMeshObject::mesh() -{ - return meshObject()->getMesh(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CMeshObject::GetVertexCount () +Lib3MF_uint32 CMeshObject::GetTriangleCount() { - return mesh()->getNodeCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CMeshObject::GetTriangleCount () +Lib3MF::sPosition CMeshObject::GetVertex(const Lib3MF_uint32 nIndex) { - return mesh()->getFaceCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CMeshObject::SetVertex (const Lib3MF_uint32 nIndex, const sLib3MFPosition Coordinates) +void CMeshObject::SetVertex(const Lib3MF_uint32 nIndex, const Lib3MF::sPosition Coordinates) { - NMR::MESHNODE* node = mesh()->getNode(nIndex); - node->m_position.m_fields[0] = Coordinates.m_Coordinates[0]; - node->m_position.m_fields[1] = Coordinates.m_Coordinates[1]; - node->m_position.m_fields[2] = Coordinates.m_Coordinates[2]; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -sLib3MFPosition CMeshObject::GetVertex(const Lib3MF_uint32 nIndex) +Lib3MF_uint32 CMeshObject::AddVertex(const Lib3MF::sPosition Coordinates) { - NMR::MESHNODE* node = mesh()->getNode(nIndex); - sLib3MFPosition pos; - pos.m_Coordinates[0] = node->m_position.m_fields[0]; - pos.m_Coordinates[1] = node->m_position.m_fields[1]; - pos.m_Coordinates[2] = node->m_position.m_fields[2]; - return pos; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CMeshObject::AddVertex (const sLib3MFPosition Coordinates) +void CMeshObject::GetVertices(Lib3MF_uint64 nVerticesBufferSize, Lib3MF_uint64* pVerticesNeededCount, Lib3MF::sPosition * pVerticesBuffer) { - return mesh()->addNode(Coordinates.m_Coordinates[0], Coordinates.m_Coordinates[1], Coordinates.m_Coordinates[2])->m_index; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CMeshObject::GetVertices(Lib3MF_uint64 nVerticesBufferSize, Lib3MF_uint64* pVerticesNeededCount, sLib3MFPosition * pVerticesBuffer) +Lib3MF::sTriangle CMeshObject::GetTriangle(const Lib3MF_uint32 nIndex) { - Lib3MF_uint32 nodeCount = mesh()->getNodeCount(); - if (pVerticesNeededCount) - *pVerticesNeededCount = nodeCount; - - if (nVerticesBufferSize >= nodeCount && pVerticesBuffer) - { - for (Lib3MF_uint32 i = 0; i < nodeCount; i++) - { - const NMR::MESHNODE* node = mesh()->getNode(i); - pVerticesBuffer[i].m_Coordinates[0] = node->m_position.m_fields[0]; - pVerticesBuffer[i].m_Coordinates[1] = node->m_position.m_fields[1]; - pVerticesBuffer[i].m_Coordinates[2] = node->m_position.m_fields[2]; - } - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -sLib3MFTriangle CMeshObject::GetTriangle (const Lib3MF_uint32 nIndex) +void CMeshObject::SetTriangle(const Lib3MF_uint32 nIndex, const Lib3MF::sTriangle Indices) { - sLib3MFTriangle t; - NMR::MESHFACE* mf = mesh()->getFace(nIndex); - - t.m_Indices[0] = mf->m_nodeindices[0]; - t.m_Indices[1] = mf->m_nodeindices[1]; - t.m_Indices[2] = mf->m_nodeindices[2]; - - return t; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CMeshObject::SetTriangle (const Lib3MF_uint32 nIndex, const sLib3MFTriangle Indices) +Lib3MF_uint32 CMeshObject::AddTriangle(const Lib3MF::sTriangle Indices) { - NMR::MESHFACE* mf = mesh()->getFace(nIndex); - - mf->m_nodeindices[0] = Indices.m_Indices[0]; - mf->m_nodeindices[1] = Indices.m_Indices[1]; - mf->m_nodeindices[2] = Indices.m_Indices[2]; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CMeshObject::AddTriangle(const sLib3MFTriangle Indices) +void CMeshObject::GetTriangleIndices(Lib3MF_uint64 nIndicesBufferSize, Lib3MF_uint64* pIndicesNeededCount, Lib3MF::sTriangle * pIndicesBuffer) { - return mesh()->addFace(Indices.m_Indices[0], Indices.m_Indices[1], Indices.m_Indices[2])->m_index; -} - -void CMeshObject::GetTriangleIndices (Lib3MF_uint64 nIndicesBufferSize, Lib3MF_uint64* pIndicesNeededCount, sLib3MFTriangle * pIndicesBuffer) -{ - Lib3MF_uint32 faceCount = mesh()->getFaceCount(); - if (pIndicesNeededCount) - *pIndicesNeededCount = faceCount; - - if (nIndicesBufferSize >= faceCount && pIndicesBuffer) - { - for (Lib3MF_uint32 i = 0; i < faceCount; i++) - { - const NMR::MESHFACE* face = mesh()->getFace(i); - pIndicesBuffer[i].m_Indices[0] = face->m_nodeindices[0]; - pIndicesBuffer[i].m_Indices[1] = face->m_nodeindices[1]; - pIndicesBuffer[i].m_Indices[2] = face->m_nodeindices[2]; - } - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CMeshObject::SetObjectLevelProperty(const Lib3MF_uint32 nUniqueResourceID, const Lib3MF_uint32 nPropertyID) { - NMR::CMeshInformation_Properties * pInformation = getMeshInformationProperties(); - - NMR::MESHINFORMATION_PROPERTIES * pDefaultData = new NMR::MESHINFORMATION_PROPERTIES; - pDefaultData->m_nUniqueResourceID = nUniqueResourceID; - pDefaultData->m_nPropertyIDs[0] = nPropertyID; - pDefaultData->m_nPropertyIDs[1] = nPropertyID; - pDefaultData->m_nPropertyIDs[2] = nPropertyID; - - pInformation->setDefaultData((NMR::MESHINFORMATIONFACEDATA*)pDefaultData); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } bool CMeshObject::GetObjectLevelProperty(Lib3MF_uint32 & nUniqueResourceID, Lib3MF_uint32 & nPropertyID) { - NMR::CMeshInformation_Properties * pInformation = getMeshInformationProperties(); - - NMR::MESHINFORMATION_PROPERTIES * pDefaultData = (NMR::MESHINFORMATION_PROPERTIES*)pInformation->getDefaultData(); - if (pDefaultData) { - nUniqueResourceID = pDefaultData->m_nUniqueResourceID; - nPropertyID = pDefaultData->m_nPropertyIDs[0]; - return true; - } - return false; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CMeshObject::SetTriangleProperties(const Lib3MF_uint32 nIndex, const sLib3MFTriangleProperties Properties) +void CMeshObject::SetTriangleProperties(const Lib3MF_uint32 nIndex, const Lib3MF::sTriangleProperties Properties) { - NMR::CMeshInformation_Properties * pInformation = getMeshInformationProperties(); - - NMR::MESHINFORMATION_PROPERTIES * pFaceData = (NMR::MESHINFORMATION_PROPERTIES*)pInformation->getFaceData(nIndex); - if (pFaceData != nullptr) { - pFaceData->m_nUniqueResourceID = Properties.m_ResourceID; - for (unsigned j = 0; j < 3; j++) { - pFaceData->m_nPropertyIDs[j] = Properties.m_PropertyIDs[j]; - } - } - + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CMeshObject::GetTriangleProperties(const Lib3MF_uint32 nIndex, sLib3MFTriangleProperties & sProperty) +void CMeshObject::GetTriangleProperties(const Lib3MF_uint32 nIndex, Lib3MF::sTriangleProperties & sProperty) { - NMR::CMeshInformation_Properties * pInformation = getMeshInformationProperties(); - - NMR::MESHINFORMATION_PROPERTIES * pFaceData = (NMR::MESHINFORMATION_PROPERTIES*)pInformation->getFaceData(nIndex); - if (pFaceData != nullptr) { - sProperty.m_ResourceID = pFaceData->m_nUniqueResourceID; - for (unsigned j = 0; j < 3; j++) { - sProperty.m_PropertyIDs[j] = pFaceData->m_nPropertyIDs[j]; - } - - } - else { - sProperty.m_ResourceID = 0; - for (unsigned j = 0; j < 3; j++) { - sProperty.m_PropertyIDs[j] = 0; - } - - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CMeshObject::SetAllTriangleProperties(const Lib3MF_uint64 nPropertiesArrayBufferSize, const sLib3MFTriangleProperties * pPropertiesArrayBuffer) +void CMeshObject::SetAllTriangleProperties(const Lib3MF_uint64 nPropertiesArrayBufferSize, const Lib3MF::sTriangleProperties * pPropertiesArrayBuffer) { - auto pMesh = mesh(); - uint32_t nFaceCount = pMesh->getFaceCount(); - - if (nPropertiesArrayBufferSize != nFaceCount) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPROPERTYCOUNT); - if (pPropertiesArrayBuffer == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - NMR::CMeshInformation_Properties * pInformation = getMeshInformationProperties(); - - const sLib3MFTriangleProperties * pProperty = pPropertiesArrayBuffer; - - for (uint32_t nIndex = 0; nIndex < nFaceCount; nIndex++) { - NMR::MESHINFORMATION_PROPERTIES * pFaceData = (NMR::MESHINFORMATION_PROPERTIES*)pInformation->getFaceData(nIndex); - if (pFaceData != nullptr) { - pFaceData->m_nUniqueResourceID = pProperty->m_ResourceID; - for (unsigned j = 0; j < 3; j++) { - pFaceData->m_nPropertyIDs[j] = pProperty->m_PropertyIDs[j]; - } - } - pProperty++; - } - - // Prepare an object-level property, if it makes sense to do so - if ((nFaceCount > 0) && (pInformation->getDefaultData() == nullptr)) { - NMR::MESHINFORMATION_PROPERTIES * pFaceData = (NMR::MESHINFORMATION_PROPERTIES*)pInformation->getFaceData(0); - std::unique_ptr pDefaultFaceData(new NMR::MESHINFORMATION_PROPERTIES); - pDefaultFaceData->m_nUniqueResourceID = pFaceData->m_nUniqueResourceID; - for (unsigned j = 0; j < 3; j++) { - pDefaultFaceData->m_nPropertyIDs[j] = pFaceData->m_nPropertyIDs[j]; - } - pInformation->setDefaultData((NMR::MESHINFORMATIONFACEDATA*)pDefaultFaceData.release()); - } - + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CMeshObject::GetAllTriangleProperties(Lib3MF_uint64 nPropertiesArrayBufferSize, Lib3MF_uint64* pPropertiesArrayNeededCount, sLib3MFTriangleProperties * pPropertiesArrayBuffer) +void CMeshObject::GetAllTriangleProperties(Lib3MF_uint64 nPropertiesArrayBufferSize, Lib3MF_uint64* pPropertiesArrayNeededCount, Lib3MF::sTriangleProperties * pPropertiesArrayBuffer) { - auto pMesh = mesh(); - uint32_t nFaceCount = pMesh->getFaceCount(); - - if (pPropertiesArrayNeededCount) - *pPropertiesArrayNeededCount = nFaceCount; - - if (nPropertiesArrayBufferSize >= nFaceCount && pPropertiesArrayBuffer) - { - NMR::CMeshInformation_Properties * pInformation = getMeshInformationProperties(); - - sLib3MFTriangleProperties * pProperty = pPropertiesArrayBuffer; - - uint32_t nIndex; - for (nIndex = 0; nIndex < nFaceCount; nIndex++) { - - NMR::MESHINFORMATION_PROPERTIES * pFaceData = (NMR::MESHINFORMATION_PROPERTIES*)pInformation->getFaceData(nIndex); - if (pFaceData != nullptr) { - pProperty->m_ResourceID = pFaceData->m_nUniqueResourceID; - for (unsigned j = 0; j < 3; j++) { - pProperty->m_PropertyIDs[j] = pFaceData->m_nPropertyIDs[j]; - } - } - pProperty++; - } - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CMeshObject::ClearAllProperties() { - mesh()->clearMeshInformationHandler(); -} - -void CMeshObject::SetGeometry(const Lib3MF_uint64 nVerticesBufferSize, const sLib3MFPosition * pVerticesBuffer, const Lib3MF_uint64 nIndicesBufferSize, const sLib3MFTriangle * pIndicesBuffer) -{ - if ( ((!pVerticesBuffer) && (nVerticesBufferSize>0)) || ((!pIndicesBuffer) && (nIndicesBufferSize>0))) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - NMR::CMesh * pMesh = mesh(); - - // Clear old mesh - pMesh->clear(); - - // Rebuild Mesh Coordinates - const sLib3MFPosition * pVertex = pVerticesBuffer; - for (Lib3MF_uint64 nIndex = 0; nIndex < nVerticesBufferSize; nIndex++) { - for (int j = 0; j < 3; j++) { - if (std::fabs(pVertex->m_Coordinates[j]) > NMR_MESH_MAXCOORDINATE) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - pMesh->addNode(pVertex->m_Coordinates[0], pVertex->m_Coordinates[1], pVertex->m_Coordinates[2]); - - pVertex++; - } - - // Rebuild Mesh Faces - const sLib3MFTriangle * pTriangle = pIndicesBuffer; - for (Lib3MF_uint64 nIndex = 0; nIndex < nIndicesBufferSize; nIndex++) { - NMR::MESHNODE * pNodes[3]; - - for (int j = 0; j < 3; j++) { - if (pTriangle->m_Indices[j] >= nVerticesBufferSize) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - pNodes[j] = pMesh->getNode(pTriangle->m_Indices[j]); - } - - if ((pTriangle->m_Indices[0] == pTriangle->m_Indices[1]) || - (pTriangle->m_Indices[0] == pTriangle->m_Indices[2]) || - (pTriangle->m_Indices[1] == pTriangle->m_Indices[2])) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - pMesh->addFace(pNodes[0], pNodes[1], pNodes[2]); - - pTriangle++; - } -} - -bool CMeshObject::IsManifoldAndOriented () -{ - return meshObject()->isManifoldAndOriented(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool CMeshObject::IsMeshObject() +void CMeshObject::SetGeometry(const Lib3MF_uint64 nVerticesBufferSize, const Lib3MF::sPosition * pVerticesBuffer, const Lib3MF_uint64 nIndicesBufferSize, const Lib3MF::sTriangle * pIndicesBuffer) { - return true; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool CMeshObject::IsComponentsObject() +bool CMeshObject::IsManifoldAndOriented() { - return false; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool CMeshObject::IsLevelSetObject() +IBeamLattice * CMeshObject::BeamLattice() { - return false; -} - -bool CMeshObject::IsValid() -{ - return meshObject()->isValid(); -} - -IBeamLattice* CMeshObject::BeamLattice() -{ - return new CBeamLattice(meshObject(), meshObject()->getBeamLatticeAttributes()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IVolumeData * CMeshObject::GetVolumeData() { - auto volumeData = meshObject()->getVolumeData(); - if (!volumeData) - { - return nullptr; - } - return new CVolumeData(std::dynamic_pointer_cast(meshObject()->getVolumeData())); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CMeshObject::SetVolumeData(IVolumeData* pTheVolumeData) { - NMR::CModel * pModel = meshObject()->getModel(); - if (pModel == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT); - - NMR::PModelResource pResource = pModel->findResource(pTheVolumeData->GetResourceID()); - - if (pResource == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT, "Referenced VolumeData Resource with ID " + std::to_string(pTheVolumeData->GetModelResourceID()) + " not found"); - - NMR::PModelVolumeData pVolumeData = std::dynamic_pointer_cast(pResource); - - if (pVolumeData == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT, "Referenced Resource is not of type VolumeData"); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} - meshObject()->setVolumeData(pVolumeData); -} \ No newline at end of file diff --git a/Source/API/lib3mf_meshobjectiterator.cpp b/Source/API/lib3mf_meshobjectiterator.cpp index 3dffbdcb..b6f9f7a2 100644 --- a/Source/API/lib3mf_meshobjectiterator.cpp +++ b/Source/API/lib3mf_meshobjectiterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,16 +32,16 @@ Abstract: This is a stub class definition of CMeshObjectIterator #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_meshobject.hpp" + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CObjectIterator + Class definition of CMeshObjectIterator **************************************************************************************************************************/ -IMeshObject * CMeshObjectIterator::GetCurrentMeshObject () +IMeshObject * CMeshObjectIterator::GetCurrentMeshObject() { - return CMeshObject::fnCreateMeshObjectFromModelResource(GetCurrentResource(), true); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_metadata.cpp b/Source/API/lib3mf_metadata.cpp index 664ead94..09f5a5c7 100644 --- a/Source/API/lib3mf_metadata.cpp +++ b/Source/API/lib3mf_metadata.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,64 +40,58 @@ using namespace Lib3MF::Impl; Class definition of CMetaData **************************************************************************************************************************/ -CMetaData::CMetaData(NMR::PModelMetaData pMetaData) - :m_pMetaData(pMetaData) +std::string CMetaData::GetNameSpace() { + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - -std::string CMetaData::GetNameSpace () -{ - return m_pMetaData->getNameSpace(); -} - -void CMetaData::SetNameSpace (const std::string & sNameSpace) +void CMetaData::SetNameSpace(const std::string & sNameSpace) { - m_pMetaData->setNameSpace(sNameSpace); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } std::string CMetaData::GetName() { - return m_pMetaData->getName(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -std::string CMetaData::GetKey() +void CMetaData::SetName(const std::string & sName) { - return m_pMetaData->getKey(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CMetaData::SetName (const std::string & sName) +std::string CMetaData::GetKey() { - m_pMetaData->setName(sName); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool CMetaData::GetMustPreserve () +bool CMetaData::GetMustPreserve() { - return m_pMetaData->getPreserve(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CMetaData::SetMustPreserve (const bool bMustPreserve) +void CMetaData::SetMustPreserve(const bool bMustPreserve) { - m_pMetaData->setPreserve(bMustPreserve); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -std::string CMetaData::GetType () +std::string CMetaData::GetType() { - return m_pMetaData->getType(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CMetaData::SetType (const std::string & sType) +void CMetaData::SetType(const std::string & sType) { - m_pMetaData->setType(sType); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -std::string CMetaData::GetValue () +std::string CMetaData::GetValue() { - return m_pMetaData->getValue(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CMetaData::SetValue (const std::string & sValue) +void CMetaData::SetValue(const std::string & sValue) { - m_pMetaData->setValue(sValue); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_metadatagroup.cpp b/Source/API/lib3mf_metadatagroup.cpp index cbf19132..206f1d62 100644 --- a/Source/API/lib3mf_metadatagroup.cpp +++ b/Source/API/lib3mf_metadatagroup.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -31,7 +31,6 @@ Abstract: This is a stub class definition of CMetaDataGroup #include "lib3mf_metadatagroup.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_metadata.hpp" // Include custom headers here. @@ -41,60 +40,33 @@ using namespace Lib3MF::Impl; Class definition of CMetaDataGroup **************************************************************************************************************************/ -CMetaDataGroup::CMetaDataGroup(NMR::PModelMetaDataGroup pMetaDataGroup) - : m_pModelMetaDataGroup(pMetaDataGroup) +Lib3MF_uint32 CMetaDataGroup::GetMetaDataCount() { - -} - -Lib3MF_uint32 CMetaDataGroup::GetMetaDataCount () -{ - return m_pModelMetaDataGroup->getMetaDataCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IMetaData * CMetaDataGroup::GetMetaData (const Lib3MF_uint32 nIndex) +IMetaData * CMetaDataGroup::GetMetaData(const Lib3MF_uint32 nIndex) { - return new CMetaData(m_pModelMetaDataGroup->getMetaData(nIndex)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IMetaData * CMetaDataGroup::GetMetaDataByKey (const std::string & sNameSpace, const std::string & sName) +IMetaData * CMetaDataGroup::GetMetaDataByKey(const std::string & sNameSpace, const std::string & sName) { - for (NMR::nfUint32 i = 0; i < m_pModelMetaDataGroup->getMetaDataCount(); i++) { - NMR::PModelMetaData pMetaData = m_pModelMetaDataGroup->getMetaData(i); - if (sNameSpace.empty()) { - if (pMetaData->getName() == sName) { - return new CMetaData(pMetaData); - } - } - else { - if (pMetaData->getKey() == sNameSpace + ":" + sName) { - return new CMetaData(pMetaData); - } - } - } - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CMetaDataGroup::RemoveMetaDataByIndex (const Lib3MF_uint32 nIndex) +void CMetaDataGroup::RemoveMetaDataByIndex(const Lib3MF_uint32 nIndex) { - m_pModelMetaDataGroup->removeMetaData(nIndex); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CMetaDataGroup::RemoveMetaData(IMetaData* pTheMetaData) { - for (NMR::nfUint32 i = 0; i < m_pModelMetaDataGroup->getMetaDataCount(); i++) { - NMR::PModelMetaData pMetaData = m_pModelMetaDataGroup->getMetaData(i); - if (pTheMetaData->GetName() == pMetaData->getName()) { - m_pModelMetaDataGroup->removeMetaData(i); - return; - } - } - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IMetaData * CMetaDataGroup::AddMetaData(const std::string & sNameSpace, const std::string & sName, const std::string & sValue, const std::string & sType, const bool bMustPreserve) { - NMR::PModelMetaData pModelMetaData = m_pModelMetaDataGroup->addMetaData(sNameSpace, sName, sValue, sType, bMustPreserve); - return new CMetaData(pModelMetaData); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_minnode.cpp b/Source/API/lib3mf_minnode.cpp index 1dce2a39..fec8193a 100644 --- a/Source/API/lib3mf_minnode.cpp +++ b/Source/API/lib3mf_minnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,8 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CMinNode **************************************************************************************************************************/ -Lib3MF::Impl::CMinNode::CMinNode(NMR::PModelImplicitNode pImplicitNode) -: CTwoInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_model.cpp b/Source/API/lib3mf_model.cpp index 8bffb590..fcee1c06 100644 --- a/Source/API/lib3mf_model.cpp +++ b/Source/API/lib3mf_model.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -31,59 +31,8 @@ Abstract: This is a stub class definition of CModel #include "lib3mf_model.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_reader.hpp" -#include "lib3mf_writer.hpp" - -#include "lib3mf_builditem.hpp" -#include "lib3mf_builditemiterator.hpp" -#include "lib3mf_meshobject.hpp" -#include "lib3mf_objectiterator.hpp" -#include "lib3mf_meshobjectiterator.hpp" -#include "lib3mf_resourceiterator.hpp" -#include "lib3mf_componentsobject.hpp" -#include "lib3mf_componentsobjectiterator.hpp" -#include "lib3mf_basematerialgroup.hpp" -#include "lib3mf_metadatagroup.hpp" -#include "lib3mf_attachment.hpp" -#include "lib3mf_slicestack.hpp" -#include "lib3mf_slicestackiterator.hpp" -#include "lib3mf_texture2d.hpp" -#include "lib3mf_texture2diterator.hpp" -#include "lib3mf_basematerialgroupiterator.hpp" -#include "lib3mf_colorgroup.hpp" -#include "lib3mf_colorgroupiterator.hpp" -#include "lib3mf_texture2dgroup.hpp" -#include "lib3mf_texture2dgroupiterator.hpp" -#include "lib3mf_compositematerials.hpp" -#include "lib3mf_compositematerialsiterator.hpp" -#include "lib3mf_multipropertygroup.hpp" -#include "lib3mf_multipropertygroupiterator.hpp" -#include "lib3mf_packagepart.hpp" -#include "lib3mf_keystore.hpp" -#include "lib3mf_image3d.hpp" -#include "lib3mf_imagestack.hpp" -#include "lib3mf_image3diterator.hpp" -#include "lib3mf_implicitfunction.hpp" -#include "lib3mf_functioniterator.hpp" -#include "lib3mf_functionfromimage3d.hpp" -#include "lib3mf_volumedata.hpp" -#include "lib3mf_levelset.hpp" -#include "lib3mf_levelsetiterator.hpp" - // Include custom headers here. -#include "Model/Classes/NMR_ModelMeshObject.h" -#include "Model/Classes/NMR_ModelComponentsObject.h" -#include "Common/Platform/NMR_ImportStream_Unique_Memory.h" -#include "Model/Classes/NMR_ModelColorGroup.h" -#include "Model/Classes/NMR_ModelTexture2DGroup.h" -#include "Model/Classes/NMR_ModelMultiPropertyGroup.h" -#include "Model/Classes/NMR_ModelImageStack.h" -#include "Model/Classes/NMR_ModelImplicitFunction.h" -#include "Model/Classes/NMR_ModelFunctionFromImage3D.h" -#include "Model/Classes/NMR_ModelVolumeData.h" -#include "Model/Classes/NMR_ModelLevelSetObject.h" -#include "Common/NMR_SecureContentTypes.h" -#include "lib3mf_utils.hpp" + using namespace Lib3MF::Impl; @@ -91,858 +40,363 @@ using namespace Lib3MF::Impl; Class definition of CModel **************************************************************************************************************************/ - -CModel::CModel() -{ - m_model = std::make_shared(); +IPackagePart * CModel::RootModelPart() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CModel::mergeModel(NMR::CModel& sourceModel, - NMR::CModel& targetModel) +IPackagePart * CModel::FindOrCreatePackagePart(const std::string & sAbsolutePath) { - NMR::UniqueResourceIDMapping oldToNewUniqueResourceIDs; - targetModel.mergeModelAttachments(&sourceModel); - targetModel.mergeTextures2D(&sourceModel, oldToNewUniqueResourceIDs); - targetModel.mergeBaseMaterials(&sourceModel, oldToNewUniqueResourceIDs); - targetModel.mergeColorGroups(&sourceModel, oldToNewUniqueResourceIDs); - targetModel.mergeTexture2DGroups(&sourceModel, oldToNewUniqueResourceIDs); - targetModel.mergeCompositeMaterials(&sourceModel, oldToNewUniqueResourceIDs); - targetModel.mergeMultiPropertyGroups(&sourceModel, oldToNewUniqueResourceIDs); - targetModel.mergeImage3Ds(&sourceModel, oldToNewUniqueResourceIDs); - targetModel.mergeFunctions(&sourceModel, oldToNewUniqueResourceIDs); - targetModel.mergeMetaData(&sourceModel); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -NMR::CModel& CModel::model() +void CModel::SetUnit(const Lib3MF::eModelUnit eUnit) { - return *m_model; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IResource* CModel::createIResourceFromModelResource(NMR::PModelResource pResource, bool bFailIfUnkownClass) +Lib3MF::eModelUnit CModel::GetUnit() { - // this is really ugly and should be automated by mapping of Lib3MF::Impl-class to NMR-class - if (!pResource.get()) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - if (auto p = std::dynamic_pointer_cast(pResource)) { - return new CTexture2D(p); - } - if (auto p = std::dynamic_pointer_cast(pResource)) { - return new CBaseMaterialGroup(p); - } - if (auto p = std::dynamic_pointer_cast(pResource)) { - return new CColorGroup(p); - } - - if (auto p = std::dynamic_pointer_cast(pResource)) { - return new CMeshObject(p); - } - if (auto p = std::dynamic_pointer_cast(pResource)) { - return new CComponentsObject(p); - } - - if (auto p = std::dynamic_pointer_cast(pResource)) { - return new CCompositeMaterials(p); - } - - if (auto p = std::dynamic_pointer_cast(pResource)) { - return new CMultiPropertyGroup(p); - } - - if (auto p = std::dynamic_pointer_cast(pResource)) { - return new CTexture2DGroup(p); - } - if (auto p = std::dynamic_pointer_cast(pResource)) { - return new CTexture2D(p); - } - - if (auto p = std::dynamic_pointer_cast(pResource)) { - return new CSliceStack(p); - } - - if (auto p = std::dynamic_pointer_cast(pResource)) { - return new CImageStack(p); - } - if (auto p = std::dynamic_pointer_cast(pResource)) { - return new CImage3D(p); - } - - if (auto p= std::dynamic_pointer_cast(pResource)) { - return new CImplicitFunction(p); - } - - if(auto p = std::dynamic_pointer_cast( - pResource)) - { - return new CFunctionFromImage3D(p); - } - - if (auto p = std::dynamic_pointer_cast(pResource)) { - return new CVolumeData(p); - } - - if (auto p = std::dynamic_pointer_cast(pResource)) { - return new CLevelSet(p); - } - - if (bFailIfUnkownClass) - throw ELib3MFInterfaceException(NMR_ERROR_UNKNOWNMODELRESOURCE); - - return nullptr; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IPackagePart* CModel::RootModelPart() -{ - return new CPackagePart(model().rootModelPath()); +std::string CModel::GetLanguage() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IPackagePart * CModel::FindOrCreatePackagePart(const std::string & sAbsolutePath) +void CModel::SetLanguage(const std::string & sLanguage) { - return new CPackagePart(model().findOrCreateModelPath(sAbsolutePath)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CModel::SetUnit (const eLib3MFModelUnit eUnit) +IWriter * CModel::QueryWriter(const std::string & sWriterClass) { - model().setUnit(NMR::eModelUnit(eUnit)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -eLib3MFModelUnit CModel::GetUnit () +IReader * CModel::QueryReader(const std::string & sReaderClass) { - return eLib3MFModelUnit(model().getUnit()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -std::string CModel::GetLanguage () +IResource * CModel::GetResourceByID(const Lib3MF_uint32 nUniqueResourceID) { - return model().getLanguage(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CModel::SetLanguage (const std::string & sLanguage) +ITexture2D * CModel::GetTexture2DByID(const Lib3MF_uint32 nUniqueResourceID) { - model().setLanguage(sLanguage); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IWriter * CModel::QueryWriter (const std::string & sWriterClass) +Lib3MF::ePropertyType CModel::GetPropertyTypeByID(const Lib3MF_uint32 nUniqueResourceID) { - return new CWriter(sWriterClass, m_model); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IReader * CModel::QueryReader (const std::string & sReaderClass) +IBaseMaterialGroup * CModel::GetBaseMaterialGroupByID(const Lib3MF_uint32 nUniqueResourceID) { - return new CReader(sReaderClass, m_model); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IResource* CModel::GetResourceByID(const Lib3MF_uint32 nUniqueResourceID) +ITexture2DGroup * CModel::GetTexture2DGroupByID(const Lib3MF_uint32 nUniqueResourceID) { - NMR::PModelResource pResource = model().findResource(nUniqueResourceID); - if (pResource) { - return createIResourceFromModelResource(pResource, true); - } - else - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDRESOURCE); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ITexture2D * CModel::GetTexture2DByID(const Lib3MF_uint32 nUniqueResourceID) +ICompositeMaterials * CModel::GetCompositeMaterialsByID(const Lib3MF_uint32 nUniqueResourceID) { - NMR::PModelTexture2DResource pTexture2DResource = model().findTexture2D(nUniqueResourceID); - if (pTexture2DResource) { - return new CTexture2D(pTexture2DResource); - } - else - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDTEXTURERESOURCE); -} - -eLib3MFPropertyType CModel::GetPropertyTypeByID(const Lib3MF_uint32 nUniqueResourceID) -{ - NMR::PModelResource pResource = model().findResource(nUniqueResourceID); - if (!pResource) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_RESOURCENOTFOUND); - } - - if (dynamic_cast(pResource.get())) { - return ePropertyType::BaseMaterial; - } - else if ((dynamic_cast(pResource.get()))) { - return ePropertyType::Colors; - } - else if ((dynamic_cast(pResource.get()))) { - return ePropertyType::TexCoord; - } - else if ((dynamic_cast(pResource.get()))) { - return ePropertyType::Composite; - } - else if ((dynamic_cast(pResource.get()))) { - return ePropertyType::Multi; - } - else - return ePropertyType::NoPropertyType; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IBaseMaterialGroup * CModel::GetBaseMaterialGroupByID(const Lib3MF_uint32 nUniqueResourceID) +IMultiPropertyGroup * CModel::GetMultiPropertyGroupByID(const Lib3MF_uint32 nUniqueResourceID) { - NMR::PPackageResourceID pID = model().findPackageResourceID(nUniqueResourceID); - if (pID) { - NMR::PModelBaseMaterialResource pBaseMaterialResource = model().findBaseMaterial(pID); - if (pBaseMaterialResource) { - return new CBaseMaterialGroup(pBaseMaterialResource); - } - else - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDBASEMATERIALGROUP); - } - else { - throw ELib3MFInterfaceException(LIB3MF_ERROR_RESOURCENOTFOUND); - } - + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IMeshObject * CModel::GetMeshObjectByID(const Lib3MF_uint32 nUniqueResourceID) { - NMR::PModelResource pObjectResource = model().findResource(nUniqueResourceID); - if (dynamic_cast(pObjectResource.get())) { - return new CMeshObject(pObjectResource); - } - else - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDMESHOBJECT); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IComponentsObject * CModel::GetComponentsObjectByID(const Lib3MF_uint32 nUniqueResourceID) { - NMR::PModelResource pObjectResource = model().findResource(nUniqueResourceID); - if (dynamic_cast(pObjectResource.get())) { - return new CComponentsObject(pObjectResource); - } - else - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCOMPONENTSOBJECT); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IColorGroup * CModel::GetColorGroupByID(const Lib3MF_uint32 nUniqueResourceID) { - NMR::PModelResource pResource = model().findResource(nUniqueResourceID); - if (dynamic_cast(pResource.get())) { - return new CColorGroup(std::dynamic_pointer_cast(pResource)); - } - else - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCOLORGROUP); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } ISliceStack * CModel::GetSliceStackByID(const Lib3MF_uint32 nUniqueResourceID) { - NMR::PModelResource pResource = model().findResource(nUniqueResourceID); - if (dynamic_cast(pResource.get())) { - return new CSliceStack(std::dynamic_pointer_cast(pResource)); - } - else - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDSLICESTACKRESOURCE); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ILevelSet* CModel::GetLevelSetByID(const Lib3MF_uint32 nUniqueResourceID) +ILevelSet * CModel::GetLevelSetByID(const Lib3MF_uint32 nUniqueResourceID) { - NMR::PModelResource pResource = model().findResource(nUniqueResourceID); - if (dynamic_cast(pResource.get())) { - return new CLevelSet(std::dynamic_pointer_cast(pResource)); - } - else - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDLEVELSET); - + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ITexture2DGroup * CModel::GetTexture2DGroupByID(const Lib3MF_uint32 nUniqueResourceID) +std::string CModel::GetBuildUUID(bool & bHasUUID) { - NMR::PModelResource pResource = model().findResource(nUniqueResourceID); - if (dynamic_cast(pResource.get())) { - return new CTexture2DGroup(std::dynamic_pointer_cast(pResource)); - } - else - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDTEXTURE2DGROUP); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ICompositeMaterials * CModel::GetCompositeMaterialsByID(const Lib3MF_uint32 nUniqueResourceID) +void CModel::SetBuildUUID(const std::string & sUUID) { - NMR::PModelResource pResource = model().findResource(nUniqueResourceID); - if (dynamic_cast(pResource.get())) { - return new CCompositeMaterials(std::dynamic_pointer_cast(pResource)); - } - else - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCOMPOSITEMATERIALS); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IMultiPropertyGroup * CModel::GetMultiPropertyGroupByID(const Lib3MF_uint32 nUniqueResourceID) +IBuildItemIterator * CModel::GetBuildItems() { - NMR::PModelResource pResource = model().findResource(nUniqueResourceID); - if (dynamic_cast(pResource.get())) { - return new CMultiPropertyGroup(std::dynamic_pointer_cast(pResource)); - } - else - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDMULTIPROPERTYGROUP); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -std::string CModel::GetBuildUUID (bool & bHasUUID) -{ - NMR::PUUID buildUUID = model().buildUUID(); - bHasUUID = buildUUID.get() != nullptr; - if (bHasUUID) - return buildUUID->toString(); - return ""; -} - -void CModel::SetBuildUUID (const std::string & sUUID) -{ - NMR::PUUID pUUID = std::make_shared(sUUID); - model().setBuildUUID(pUUID); -} - -IBuildItemIterator * CModel::GetBuildItems () +Lib3MF::sBox CModel::GetOutbox() { - auto pResult = std::unique_ptr(new CBuildItemIterator()); - Lib3MF_uint32 nBuildItemCount = m_model->getBuildItemCount(); - Lib3MF_uint32 nIdx; - - for (nIdx = 0; nIdx < nBuildItemCount; nIdx++) - pResult->addBuildItem(m_model->getBuildItem(nIdx)); - - return pResult.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IResourceIterator * CModel::GetResources () +IResourceIterator * CModel::GetResources() { - auto pResult = std::unique_ptr(new CResourceIterator()); - Lib3MF_uint32 nResourcesCount = model().getResourceCount(); - - for (Lib3MF_uint32 nIdx = 0; nIdx < nResourcesCount; nIdx++) { - auto resource = model().getResource(nIdx); - pResult->addResource(resource); - } - return pResult.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IObjectIterator * CModel::GetObjects () +IObjectIterator * CModel::GetObjects() { - auto pResult = std::unique_ptr(new CObjectIterator()); - Lib3MF_uint32 nObjectsCount = model().getObjectCount(); - - for (Lib3MF_uint32 nIdx = 0; nIdx < nObjectsCount; nIdx++) { - auto resource = model().getObjectResource(nIdx); - pResult->addResource(resource); - } - return pResult.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IMeshObjectIterator * CModel::GetMeshObjects () +IMeshObjectIterator * CModel::GetMeshObjects() { - auto pResult = std::unique_ptr(new CMeshObjectIterator()); - Lib3MF_uint32 nObjectsCount = model().getObjectCount(); - - for (Lib3MF_uint32 nIdx = 0; nIdx < nObjectsCount; nIdx++) { - auto resource = model().getObjectResource(nIdx); - if (dynamic_cast(resource.get())) - pResult->addResource(resource); - } - return pResult.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IComponentsObjectIterator * CModel::GetComponentsObjects() { - auto pResult = std::unique_ptr(new CComponentsObjectIterator()); - Lib3MF_uint32 nObjectsCount = model().getObjectCount(); - - for (Lib3MF_uint32 nIdx = 0; nIdx < nObjectsCount; nIdx++) { - auto resource = model().getObjectResource(nIdx); - if (dynamic_cast(resource.get())) - pResult->addResource(resource); - } - return pResult.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } ITexture2DIterator * CModel::GetTexture2Ds() { - auto pResult = std::unique_ptr(new CTexture2DIterator()); - Lib3MF_uint32 nCount = model().getTexture2DCount(); - - for (Lib3MF_uint32 nIdx = 0; nIdx < nCount; nIdx++) { - auto resource = model().getTexture2DResource(nIdx); - if (dynamic_cast(resource.get())) - pResult->addResource(resource); - } - return pResult.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IBaseMaterialGroupIterator * CModel::GetBaseMaterialGroups() { - auto pResult = std::unique_ptr(new CBaseMaterialGroupIterator()); - Lib3MF_uint32 nCount = model().getBaseMaterialCount(); - - for (Lib3MF_uint32 nIdx = 0; nIdx < nCount; nIdx++) { - auto resource = model().getBaseMaterialResource(nIdx); - if (dynamic_cast(resource.get())) - pResult->addResource(resource); - } - return pResult.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IColorGroupIterator * CModel::GetColorGroups() { - auto pResult = std::unique_ptr(new CColorGroupIterator()); - Lib3MF_uint32 nCount = model().getColorGroupCount(); - - for (Lib3MF_uint32 nIdx = 0; nIdx < nCount; nIdx++) { - auto resource = model().getColorGroupResource(nIdx); - if (dynamic_cast(resource.get())) - pResult->addResource(resource); - } - return pResult.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } ITexture2DGroupIterator * CModel::GetTexture2DGroups() { - auto pResult = std::unique_ptr(new CTexture2DGroupIterator()); - Lib3MF_uint32 nCount = model().getTexture2DGroupCount(); - - for (Lib3MF_uint32 nIdx = 0; nIdx < nCount; nIdx++) { - auto resource = model().getTexture2DGroupResource(nIdx); - if (dynamic_cast(resource.get())) - pResult->addResource(resource); - } - return pResult.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } ICompositeMaterialsIterator * CModel::GetCompositeMaterials() { - auto pResult = std::unique_ptr(new CCompositeMaterialsIterator()); - Lib3MF_uint32 nCount = model().getCompositeMaterialsCount(); - - for (Lib3MF_uint32 nIdx = 0; nIdx < nCount; nIdx++) { - auto resource = model().getCompositeMaterialsResource(nIdx); - if (dynamic_cast(resource.get())) - pResult->addResource(resource); - } - return pResult.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IMultiPropertyGroupIterator * CModel::GetMultiPropertyGroups() { - auto pResult = std::unique_ptr(new CMultiPropertyGroupIterator()); - Lib3MF_uint32 nCount = model().getMultiPropertyGroupCount(); - - for (Lib3MF_uint32 nIdx = 0; nIdx < nCount; nIdx++) { - auto resource = model().getMultiPropertyGroupResource(nIdx); - if (dynamic_cast(resource.get())) - pResult->addResource(resource); - } - return pResult.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - ISliceStackIterator * CModel::GetSliceStacks() { - auto pResult = std::unique_ptr(new CSliceStackIterator()); - Lib3MF_uint32 nCount = model().getSliceStackCount(); - - for (Lib3MF_uint32 nIdx = 0; nIdx < nCount; nIdx++) { - auto resource = model().getSliceStackResource(nIdx); - if (dynamic_cast(resource.get())) - pResult->addResource(resource); - } - return pResult.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IModel * CModel::MergeToModel () +IImage3DIterator * CModel::GetImage3Ds() { - // Create merged mesh - NMR::PMesh pMesh = std::make_shared(); - model().mergeToMesh(pMesh.get()); - - auto pOutModel = std::unique_ptr(new CModel()); - - // Copy relevant resources to new model - NMR::CModel& newModel = pOutModel->model(); - - NMR::UniqueResourceIDMapping oldToNewUniqueResourceIDs; - - newModel.mergeModelAttachments(&model()); - newModel.mergeTextures2D(&model(), oldToNewUniqueResourceIDs); - newModel.mergeBaseMaterials(&model(), oldToNewUniqueResourceIDs); - newModel.mergeColorGroups(&model(), oldToNewUniqueResourceIDs); - newModel.mergeTexture2DGroups(&model(), oldToNewUniqueResourceIDs); - newModel.mergeCompositeMaterials(&model(), oldToNewUniqueResourceIDs); - newModel.mergeMultiPropertyGroups(&model(), oldToNewUniqueResourceIDs); - newModel.mergeImage3Ds(&model(), oldToNewUniqueResourceIDs); - newModel.mergeFunctions(&model(), oldToNewUniqueResourceIDs); - - newModel.mergeMetaData(&model()); - - pMesh->patchMeshInformationResources(oldToNewUniqueResourceIDs); - - newModel.setUnit(model().getUnit()); - newModel.setLanguage(model().getLanguage()); - - NMR::PModelMeshObject pMeshObject = std::make_shared(newModel.generateResourceID(), &newModel, pMesh); - newModel.addResource(pMeshObject); - - NMR::PModelBuildItem pBuildItem = std::make_shared(pMeshObject.get(), model().createHandle()); - newModel.addBuildItem(pBuildItem); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} - return pOutModel.release(); +IModel * CModel::MergeToModel() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CModel::MergeFromModel(IModel* pModelInstance) { - CModel* pLib3MFModel = dynamic_cast (pModelInstance); - if (!pLib3MFModel) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - mergeModel(pLib3MFModel->model(), model()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IMeshObject * CModel::AddMeshObject () +IMeshObject * CModel::AddMeshObject() { - NMR::ModelResourceID NewResourceID = model().generateResourceID(); - NMR::PMesh pNewMesh = std::make_shared(); - NMR::PModelMeshObject pNewResource = std::make_shared(NewResourceID, &model(), pNewMesh); - - model().addResource(pNewResource); - return new CMeshObject(pNewResource); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IComponentsObject * CModel::AddComponentsObject () +IComponentsObject * CModel::AddComponentsObject() { - NMR::ModelResourceID NewResourceID = model().generateResourceID(); - NMR::PModelComponentsObject pNewResource = std::make_shared(NewResourceID, &model()); - - model().addResource(pNewResource); - return new CComponentsObject(pNewResource); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } ISliceStack * CModel::AddSliceStack(const Lib3MF_double dZBottom) { - NMR::ModelResourceID NewResourceID = model().generateResourceID(); - NMR::PModelSliceStack pNewResource = std::make_shared(NewResourceID, &model(), dZBottom); - - model().addResource(pNewResource); - - return new CSliceStack(pNewResource); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - -ITexture2D * CModel::AddTexture2DFromAttachment (IAttachment* pTextureAttachment) +ITexture2D * CModel::AddTexture2DFromAttachment(IAttachment* pTextureAttachment) { - NMR::PModelAttachment attachment = model().findModelAttachment(pTextureAttachment->GetPath()); - - NMR::PModelTexture2DResource pResource = NMR::CModelTexture2DResource::make(model().generateResourceID(), &model(), attachment); - model().addResource(pResource); - - return new CTexture2D(pResource); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IBaseMaterialGroup * CModel::AddBaseMaterialGroup () +IBaseMaterialGroup * CModel::AddBaseMaterialGroup() { - NMR::PModelBaseMaterialResource pResource = std::make_shared(model().generateResourceID(), &model()); - model().addResource(pResource); - - return new CBaseMaterialGroup(pResource); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IColorGroup * CModel::AddColorGroup() { - NMR::PModelColorGroupResource pResource = std::make_shared(model().generateResourceID(), &model()); - model().addResource(pResource); - - return new CColorGroup(pResource); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } ITexture2DGroup * CModel::AddTexture2DGroup(ITexture2D* pTexture2DInstance) { - NMR::UniqueResourceID nTexture2DID = pTexture2DInstance->GetResourceID(); - - // Find class instance - NMR::PModelTexture2DResource pModelTexture2DObject = model().findTexture2D(nTexture2DID); - if (pModelTexture2DObject == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_RESOURCENOTFOUND); - - NMR::PModelTexture2DGroupResource pResource = std::make_shared(model().generateResourceID(), &model(), pModelTexture2DObject); - model().addResource(pResource); - - return new CTexture2DGroup(pResource); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } ICompositeMaterials * CModel::AddCompositeMaterials(IBaseMaterialGroup* pBaseMaterialGroupInstance) { - NMR::UniqueResourceID nBaseMaterialGroupID = pBaseMaterialGroupInstance->GetUniqueResourceID(); - NMR::PPackageResourceID pID = model().findPackageResourceID(nBaseMaterialGroupID); - // Find class instance - NMR::PModelBaseMaterialResource pModelBaseMaterialGroup = model().findBaseMaterial(pID); - if (pModelBaseMaterialGroup == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_RESOURCENOTFOUND); - - NMR::PModelCompositeMaterialsResource pResource = std::make_shared(model().generateResourceID(), &model(), pModelBaseMaterialGroup); - model().addResource(pResource); - - return new CCompositeMaterials(pResource); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IMultiPropertyGroup * CModel::AddMultiPropertyGroup() { - NMR::PModelMultiPropertyGroupResource pResource = std::make_shared(model().generateResourceID(), &model()); - model().addResource(pResource); - - return new CMultiPropertyGroup(pResource); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IBuildItem * CModel::AddBuildItem (IObject* pObject, const sLib3MFTransform Transform) +IImageStack * CModel::AddImageStack(const Lib3MF_uint32 nColumnCount, const Lib3MF_uint32 nRowCount, const Lib3MF_uint32 nSheetCount) { - // Get Resource ID - NMR::UniqueResourceID nObjectID = pObject->GetResourceID(); - - // Find class instance - NMR::CModelObject * pModelObject = model().findObject(nObjectID); - if (pModelObject == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_RESOURCENOTFOUND); - - // Create Build item instance - NMR::PModelBuildItem pModelBuildItem = std::make_shared(pModelObject, TransformToMatrix(Transform), model().createHandle()); - model().addBuildItem(pModelBuildItem); - - return new CBuildItem(pModelBuildItem); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CModel::RemoveBuildItem (IBuildItem* pBuildItemInstance) +IImageStack * CModel::GetImageStackByID(const Lib3MF_uint32 nUniqueResourceID) { - CBuildItem* pLib3MFBuildItem = dynamic_cast (pBuildItemInstance); - if (!pLib3MFBuildItem) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDBUILDITEM); - model().removeBuildItem(pLib3MFBuildItem->GetHandle(), true); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IMetaDataGroup * CModel::GetMetaDataGroup () +IBuildItem * CModel::AddBuildItem(IObject* pObject, const Lib3MF::sTransform Transform) { - return new CMetaDataGroup(model().getMetaDataGroup()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IAttachment * CModel::AddAttachment (const std::string & sURI, const std::string & sRelationShipType) +void CModel::RemoveBuildItem(IBuildItem* pBuildItemInstance) { - NMR::PImportStream pStream = std::make_shared(); - - NMR::PModelAttachment pModelAttachment(model().addAttachment(sURI, sRelationShipType, pStream)); - - return new CAttachment(pModelAttachment); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IAttachment * CModel::GetAttachment (const Lib3MF_uint32 nIndex) +IMetaDataGroup * CModel::GetMetaDataGroup() { - NMR::PModelAttachment pAttachment = m_model->getModelAttachment(nIndex); - return new CAttachment(pAttachment); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IAttachment * CModel::FindAttachment (const std::string & sURI) +IAttachment * CModel::AddAttachment(const std::string & sURI, const std::string & sRelationShipType) { - NMR::PModelAttachment pAttachment = m_model->findModelAttachment(sURI); - - if (pAttachment.get() == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_ATTACHMENTNOTFOUND); - - return new CAttachment(pAttachment); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CModel::RemoveAttachment(IAttachment* pAttachmentInstance) { - m_model->removeAttachment(pAttachmentInstance->GetPath()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CModel::GetAttachmentCount () +IAttachment * CModel::GetAttachment(const Lib3MF_uint32 nIndex) { - return m_model->getAttachmentCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool CModel::HasPackageThumbnailAttachment() +IAttachment * CModel::FindAttachment(const std::string & sURI) { - return m_model->getPackageThumbnail() != nullptr; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IAttachment * CModel::CreatePackageThumbnailAttachment() +Lib3MF_uint32 CModel::GetAttachmentCount() { - NMR::PModelAttachment pModelAttachment; - if (HasPackageThumbnailAttachment()) - { - pModelAttachment = m_model->getPackageThumbnail(); - } - else { - pModelAttachment = m_model->addPackageThumbnail(); - } - if (pModelAttachment) { - return new CAttachment(pModelAttachment); - } - else { - throw ELib3MFInterfaceException(LIB3MF_ERROR_ATTACHMENTNOTFOUND); - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IAttachment * CModel::GetPackageThumbnailAttachment() -{ - if (HasPackageThumbnailAttachment()) - { - return new CAttachment(m_model->getPackageThumbnail()); - } - else { - return nullptr; - } -} - -void CModel::RemovePackageThumbnailAttachment() -{ - m_model->removePackageThumbnail(); -} - -void CModel::AddCustomContentType (const std::string & sExtension, const std::string & sContentType) +bool CModel::HasPackageThumbnailAttachment() { - m_model->addCustomContentType(sExtension, sContentType); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CModel::RemoveCustomContentType (const std::string & sExtension) +IAttachment * CModel::CreatePackageThumbnailAttachment() { - m_model->removeCustomContentType(sExtension); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF::sBox CModel::GetOutbox() +IAttachment * CModel::GetPackageThumbnailAttachment() { - NMR::NOUTBOX3 sOutbox; - NMR::fnOutboxInitialize(sOutbox); - - for (NMR::nfUint32 iBuildItem = 0; iBuildItem < model().getBuildItemCount(); iBuildItem++) { - auto pBuildItem = model().getBuildItem(iBuildItem); - pBuildItem->getObject()->extendOutbox(sOutbox, pBuildItem->getTransform()); - } - - sBox s; - s.m_MinCoordinate[0] = sOutbox.m_min.m_fields[0]; - s.m_MinCoordinate[1] = sOutbox.m_min.m_fields[1]; - s.m_MinCoordinate[2] = sOutbox.m_min.m_fields[2]; - - s.m_MaxCoordinate[0] = sOutbox.m_max.m_fields[0]; - s.m_MaxCoordinate[1] = sOutbox.m_max.m_fields[1]; - s.m_MaxCoordinate[2] = sOutbox.m_max.m_fields[2]; - return s; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImageStack * CModel::AddImageStack(const Lib3MF_uint32 nSizeX, const Lib3MF_uint32 nSizeY, const Lib3MF_uint32 nSheetCount) +void CModel::RemovePackageThumbnailAttachment() { - NMR::PModelImageStack pResource = NMR::CModelImageStack::make(model().generateResourceID(), &model(), nSizeX, nSizeY, nSheetCount); - model().addResource(pResource); - - return new CImageStack(pResource); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImageStack* CModel::GetImageStackByID(const Lib3MF_uint32 nUniqueResourceID) +void CModel::AddCustomContentType(const std::string & sExtension, const std::string & sContentType) { - NMR::PModelImageStack pImageStackResource = model().findImageStack(nUniqueResourceID); - if (pImageStackResource) { - return new CImageStack(pImageStackResource); - } - else - throw ELib3MFInterfaceException(LIB3MF_ERROR_RESOURCENOTFOUND); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImage3DIterator * CModel::GetImage3Ds() +void CModel::RemoveCustomContentType(const std::string & sExtension) { - auto pResult = std::unique_ptr(new CImage3DIterator()); - Lib3MF_uint32 nImage3DCount = model().getImage3DCount(); - - for (Lib3MF_uint32 nIdx = 0; nIdx < nImage3DCount; nIdx++) { - auto resource = model().getImage3DResource(nIdx); - pResult->addResource(resource); - } - return pResult.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IKeyStore * Lib3MF::Impl::CModel::GetKeyStore() +void CModel::SetRandomNumberCallback(const Lib3MF::RandomNumberCallback pTheCallback, const Lib3MF_pvoid pUserData) { - return new CKeyStore(m_model); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void Lib3MF::Impl::CModel::SetRandomNumberCallback(Lib3MF::RandomNumberCallback pTheCallback, Lib3MF_pvoid pUserData) +IKeyStore * CModel::GetKeyStore() { - if (nullptr == pTheCallback) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - NMR::CryptoRandGenDescriptor descriptor; - descriptor.m_pUserData = pUserData; - descriptor.m_fnRNG = [pTheCallback](NMR::nfByte * buffer, NMR::nfUint64 size, void * userData) { - Lib3MF_uint64 generated = 0; - (*pTheCallback)((Lib3MF_uint64)buffer, size, userData, &generated); - if (generated > 0) - return generated; - throw NMR::CNMRException(NMR_ERROR_CALCULATIONTERMINATED); - }; - - m_model->setCryptoRandCallback(descriptor); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IFunctionIterator * CModel::GetFunctions() { - auto pResult = std::unique_ptr(new CFunctionIterator()); - Lib3MF_uint32 nFunctionCount = model().getFunctionCount(); - - for (Lib3MF_uint32 nIdx = 0; nIdx < nFunctionCount; nIdx++) { - auto resource = model().getFunctionResource(nIdx); - pResult->addResource(resource); - } - return pResult.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IImplicitFunction* CModel::AddImplicitFunction() +IImplicitFunction * CModel::AddImplicitFunction() { - NMR::ModelResourceID NewResourceID = model().generateResourceID(); - NMR::PModelImplicitFunction pNewResource = std::make_shared(NewResourceID, &model()); - - model().addResource(pNewResource); - - return new CImplicitFunction(pNewResource); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IFunctionFromImage3D* CModel::AddFunctionFromImage3D(IImage3D* pImage3DInstance) +IFunctionFromImage3D * CModel::AddFunctionFromImage3D(IImage3D* pImage3DInstance) { - NMR::ModelResourceID NewResourceID = model().generateResourceID(); - NMR::PModelFunctionFromImage3D pNewResource = std::make_shared(NewResourceID, &model()); - pNewResource->setImage3DUniqueResourceID(pImage3DInstance->GetUniqueResourceID()); - model().addResource(pNewResource); - auto newFunc = new CFunctionFromImage3D(pNewResource); - return newFunc; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - IVolumeData * CModel::AddVolumeData() { - NMR::ModelResourceID NewResourceID = model().generateResourceID(); - NMR::PModelVolumeData pNewResource = std::make_shared(NewResourceID, &model()); - - model().addResource(pNewResource); - - return new CVolumeData(pNewResource); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -ILevelSet* CModel::AddLevelSet() +ILevelSet * CModel::AddLevelSet() { - NMR::ModelResourceID NewResourceID = model().generateResourceID(); - NMR::PModelLevelSetObject pNewResource = std::make_shared(NewResourceID, &model()); - - model().addResource(pNewResource); - - return new CLevelSet(pNewResource); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } ILevelSetIterator * CModel::GetLevelSets() { - auto pResult = std::unique_ptr(new CLevelSetIterator()); - Lib3MF_uint32 nObjectsCount = model().getObjectCount(); - - for (Lib3MF_uint32 nIdx = 0; nIdx < nObjectsCount; nIdx++) { - auto resource = model().getObjectResource(nIdx); - if (dynamic_cast(resource.get())) - pResult->addResource(resource); - } - return pResult.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CModel::RemoveResource(IResource* pResource) { - CResource* pLib3MFResource = dynamic_cast (pResource); - if (!pLib3MFResource) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDRESOURCE); - model().removeResource(pLib3MFResource->resource()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } + diff --git a/Source/API/lib3mf_modnode.cpp b/Source/API/lib3mf_modnode.cpp index bc59edb5..1f4482e2 100644 --- a/Source/API/lib3mf_modnode.cpp +++ b/Source/API/lib3mf_modnode.cpp @@ -40,8 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CModNode **************************************************************************************************************************/ -Lib3MF::Impl::CModNode::CModNode(NMR::PModelImplicitNode pImplicitNode) - : CTwoInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_multiplicationnode.cpp b/Source/API/lib3mf_multiplicationnode.cpp index 3004465d..60d8e7d5 100644 --- a/Source/API/lib3mf_multiplicationnode.cpp +++ b/Source/API/lib3mf_multiplicationnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,9 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CMultiplicationNode **************************************************************************************************************************/ -Lib3MF::Impl::CMultiplicationNode::CMultiplicationNode( - NMR::PModelImplicitNode pImplicitNode) - : CTwoInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_multipropertygroup.cpp b/Source/API/lib3mf_multipropertygroup.cpp index 867114e4..adc9ebae 100644 --- a/Source/API/lib3mf_multipropertygroup.cpp +++ b/Source/API/lib3mf_multipropertygroup.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,124 +40,53 @@ using namespace Lib3MF::Impl; Class definition of CMultiPropertyGroup **************************************************************************************************************************/ -CMultiPropertyGroup::CMultiPropertyGroup(NMR::PModelMultiPropertyGroupResource pResource) - : CResource(std::static_pointer_cast(pResource)) +Lib3MF_uint32 CMultiPropertyGroup::GetCount() { - + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - -NMR::CModelMultiPropertyGroupResource& CMultiPropertyGroup::multiPropertyGroup() +void CMultiPropertyGroup::GetAllPropertyIDs(Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) { - NMR::CModelMultiPropertyGroupResource* pMultiPropertyGroup = dynamic_cast(resource().get()); - if (pMultiPropertyGroup == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDMULTIPROPERTYGROUP); - return *pMultiPropertyGroup; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CMultiPropertyGroup::GetCount () +Lib3MF_uint32 CMultiPropertyGroup::AddMultiProperty(const Lib3MF_uint64 nPropertyIDsBufferSize, const Lib3MF_uint32 * pPropertyIDsBuffer) { - return multiPropertyGroup().getCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CMultiPropertyGroup::GetAllPropertyIDs (Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) +void CMultiPropertyGroup::SetMultiProperty(const Lib3MF_uint32 nPropertyID, const Lib3MF_uint64 nPropertyIDsBufferSize, const Lib3MF_uint32 * pPropertyIDsBuffer) { - Lib3MF_uint32 nMultiMaterialCount = multiPropertyGroup().getCount(); - - if (pPropertyIDsNeededCount) - *pPropertyIDsNeededCount = nMultiMaterialCount; - - if (nPropertyIDsBufferSize >= nMultiMaterialCount && pPropertyIDsBuffer) { - if (!multiPropertyGroup().hasResourceIndexMap()) { - multiPropertyGroup().buildResourceIndexMap(); - } - for (Lib3MF_uint32 i = 0; i < nMultiMaterialCount; i++) { - DWORD nPropertyID; - if (multiPropertyGroup().mapResourceIndexToPropertyID(i, nPropertyID)) { - *pPropertyIDsBuffer = nPropertyID; - } - else { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDRESOURCEINDEX); - } - pPropertyIDsBuffer++; - } - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CMultiPropertyGroup::AddMultiProperty (const Lib3MF_uint64 nPropertyIDsBufferSize, const Lib3MF_uint32 * pPropertyIDsBuffer) +void CMultiPropertyGroup::GetMultiProperty(const Lib3MF_uint32 nPropertyID, Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) { - if (nPropertyIDsBufferSize > LIB3MF_MAXMULTIPROPERTIES) - throw ELib3MFInterfaceException(LIB3MF_ERROR_ELEMENTCOUNTEXCEEDSLIMIT); - - NMR::PModelMultiProperty multiProperty = std::make_shared(); - multiProperty->resize((size_t)nPropertyIDsBufferSize); - for (size_t i = 0; i < (size_t) nPropertyIDsBufferSize; i++) { - (*multiProperty)[i] = pPropertyIDsBuffer[i]; - } - return multiPropertyGroup().addMultiProperty(multiProperty); -} - -void CMultiPropertyGroup::SetMultiProperty (const Lib3MF_uint32 nPropertyID, const Lib3MF_uint64 nPropertyIDsBufferSize, const Lib3MF_uint32 * pPropertyIDsBuffer) -{ - if (nPropertyIDsBufferSize > LIB3MF_MAXMULTIPROPERTIES) - throw ELib3MFInterfaceException(LIB3MF_ERROR_ELEMENTCOUNTEXCEEDSLIMIT); - - NMR::PModelMultiProperty multiProperty = std::make_shared(); - multiProperty->resize((size_t)nPropertyIDsBufferSize); - for (size_t i = 0; i < (size_t)nPropertyIDsBufferSize; i++) { - (*multiProperty)[i] = pPropertyIDsBuffer[i]; - } - multiPropertyGroup().setMultiProperty(nPropertyID, multiProperty); -} - -void CMultiPropertyGroup::GetMultiProperty (const Lib3MF_uint32 nPropertyID, Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) -{ - NMR::PModelMultiProperty multiProperty = multiPropertyGroup().getMultiProperty(nPropertyID); - - if (pPropertyIDsNeededCount) { - *pPropertyIDsNeededCount = multiProperty->size(); - } - - if (pPropertyIDsBuffer) { - - if (nPropertyIDsBufferSize < multiProperty->size()) - throw ELib3MFInterfaceException(LIB3MF_ERROR_BUFFERTOOSMALL); - - if (nPropertyIDsBufferSize > LIB3MF_MAXMULTIPROPERTIES) - throw ELib3MFInterfaceException(LIB3MF_ERROR_ELEMENTCOUNTEXCEEDSLIMIT); - - for (size_t i = 0; i < (size_t)nPropertyIDsBufferSize; i++) { - pPropertyIDsBuffer[i] = (*multiProperty)[i]; - } - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CMultiPropertyGroup::RemoveMultiProperty (const Lib3MF_uint32 nPropertyID) +void CMultiPropertyGroup::RemoveMultiProperty(const Lib3MF_uint32 nPropertyID) { - multiPropertyGroup().removeMultiProperty(nPropertyID); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CMultiPropertyGroup::GetLayerCount () +Lib3MF_uint32 CMultiPropertyGroup::GetLayerCount() { - return multiPropertyGroup().getLayerCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CMultiPropertyGroup::AddLayer (const sLib3MFMultiPropertyLayer TheLayer) +Lib3MF_uint32 CMultiPropertyGroup::AddLayer(const Lib3MF::sMultiPropertyLayer TheLayer) { - return multiPropertyGroup().addLayer(NMR::MODELMULTIPROPERTYLAYER{ TheLayer.m_ResourceID, NMR::eModelBlendMethod(TheLayer.m_TheBlendMethod)}); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -sLib3MFMultiPropertyLayer CMultiPropertyGroup::GetLayer (const Lib3MF_uint32 nLayerIndex) +Lib3MF::sMultiPropertyLayer CMultiPropertyGroup::GetLayer(const Lib3MF_uint32 nLayerIndex) { - NMR::MODELMULTIPROPERTYLAYER sLayer = multiPropertyGroup().getLayer(nLayerIndex); - sLib3MFMultiPropertyLayer outLayer; - outLayer.m_ResourceID = sLayer.m_nUniqueResourceID; - outLayer.m_TheBlendMethod = (eLib3MFBlendMethod)sLayer.m_nMethod; - return outLayer; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CMultiPropertyGroup::RemoveLayer (const Lib3MF_uint32 nLayerIndex) +void CMultiPropertyGroup::RemoveLayer(const Lib3MF_uint32 nLayerIndex) { - multiPropertyGroup().removeLayer(nLayerIndex); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_multipropertygroupiterator.cpp b/Source/API/lib3mf_multipropertygroupiterator.cpp index add39350..31d5e1bf 100644 --- a/Source/API/lib3mf_multipropertygroupiterator.cpp +++ b/Source/API/lib3mf_multipropertygroupiterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,7 +32,7 @@ Abstract: This is a stub class definition of CMultiPropertyGroupIterator #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_multipropertygroup.hpp" + using namespace Lib3MF::Impl; @@ -40,12 +40,8 @@ using namespace Lib3MF::Impl; Class definition of CMultiPropertyGroupIterator **************************************************************************************************************************/ -IMultiPropertyGroup * CMultiPropertyGroupIterator::GetCurrentMultiPropertyGroup () +IMultiPropertyGroup * CMultiPropertyGroupIterator::GetCurrentMultiPropertyGroup() { - return new CMultiPropertyGroup(std::dynamic_pointer_cast(GetCurrentResource())); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IResource * CMultiPropertyGroupIterator::GetCurrent() -{ - return GetCurrentMultiPropertyGroup(); -} diff --git a/Source/API/lib3mf_nodeiterator.cpp b/Source/API/lib3mf_nodeiterator.cpp index 52b99421..843334ba 100644 --- a/Source/API/lib3mf_nodeiterator.cpp +++ b/Source/API/lib3mf_nodeiterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,250 +32,16 @@ Abstract: This is a stub class definition of CNodeIterator #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_absnode.hpp" -#include "lib3mf_additionnode.hpp" -#include "lib3mf_arccosnode.hpp" -#include "lib3mf_arcsinnode.hpp" -#include "lib3mf_arctan2node.hpp" -#include "lib3mf_arctannode.hpp" -#include "lib3mf_ceilnode.hpp" -#include "lib3mf_clampnode.hpp" -#include "lib3mf_composematrixnode.hpp" -#include "lib3mf_composevectornode.hpp" -#include "lib3mf_constantnode.hpp" -#include "lib3mf_constmatnode.hpp" -#include "lib3mf_constvecnode.hpp" -#include "lib3mf_coshnode.hpp" -#include "lib3mf_cosnode.hpp" -#include "lib3mf_crossnode.hpp" -#include "lib3mf_decomposevectornode.hpp" -#include "lib3mf_divisionnode.hpp" -#include "lib3mf_dotnode.hpp" -#include "lib3mf_expnode.hpp" -#include "lib3mf_floornode.hpp" -#include "lib3mf_fmodnode.hpp" -#include "lib3mf_fractnode.hpp" -#include "lib3mf_functioncallnode.hpp" -#include "lib3mf_inversenode.hpp" -#include "lib3mf_lengthnode.hpp" -#include "lib3mf_log10node.hpp" -#include "lib3mf_log2node.hpp" -#include "lib3mf_lognode.hpp" -#include "lib3mf_matrixfromcolumnsnode.hpp" -#include "lib3mf_matrixfromrowsnode.hpp" -#include "lib3mf_matvecmultiplicationnode.hpp" -#include "lib3mf_maxnode.hpp" -#include "lib3mf_meshnode.hpp" -#include "lib3mf_minnode.hpp" -#include "lib3mf_multiplicationnode.hpp" -#include "lib3mf_pownode.hpp" -#include "lib3mf_resourceidnode.hpp" -#include "lib3mf_roundnode.hpp" -#include "lib3mf_selectnode.hpp" -#include "lib3mf_signnode.hpp" -#include "lib3mf_sinhnode.hpp" -#include "lib3mf_sinnode.hpp" -#include "lib3mf_sqrtnode.hpp" -#include "lib3mf_subtractionnode.hpp" -#include "lib3mf_tanhnode.hpp" -#include "lib3mf_tannode.hpp" -#include "lib3mf_transposenode.hpp" -#include "lib3mf_unsignedmeshnode.hpp" -#include "lib3mf_vectorfromscalarnode.hpp" -#include "lib3mf_modnode.hpp" using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CNodeIterator + Class definition of CNodeIterator **************************************************************************************************************************/ IImplicitNode * CNodeIterator::GetCurrent() { - throwIfInvalidIndex(); - auto pModelNode = m_pNodes->at(static_cast(getCurrentIndex())); - auto pNode = implicitNodeFromModelImplicitNode(pModelNode); - if (!pNode) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - return pNode; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -// enum class eImplicitNodeType : Lib3MF_int32 { -// Addition = 1, /** Adds to values (scalar or vector) */ -// Subtraction = 2, /** Subtracts two values (scalar or vector) */ -// Multiplication = 3, /** Multiplies two values (scalar or vector) */ -// Division = 4, /** Divides two values (scalar or vector) */ -// Constant = 5, /** A constant scalar value */ -// ConstVec = 6, /** A constant vector value */ -// ConstMat = 7, /** A constant matrix value */ -// ComposeVector = 8, /** Creates a vector from three scalar values */ -// DecomposeVector = 9, /** Decomposes a vector into three scalar values */ -// ComposeMatrix = 10, /** Creates a matrix from nine scalar values */ -// ComposeMatrixFromColumnVectors = 11, /** Creates a matrix from three column vector values */ -// ComposeMatrixFromRowVectors = 12, /** Creates a matrix from three row vector values */ -// Dot = 13, /** Calculates the dot product of two vector values */ -// Cross = 14, /** Calculates the cross product of two vector values */ -// MatVecMultiplication = 15, /** Multiplies a matrix with a vector */ -// Transpose = 16, /** Transposes a matrix */ -// Inverse = 17, /** Computes the inverse of a matrix */ -// Sinus = 18, /** Calculates the sinus */ -// Cosinus = 19, /** Calculates the cosinus */ -// Tan = 20, /** Calculates the tangent */ -// ArcSin = 21, /** Calculates the arcsinus */ -// ArcCos = 22, /** Calculates the arccosinus */ -// ArcTan = 23, /** Calculates the arctangent */ -// ArcTan2 = 24, /** Calculates the arctangent */ -// Min = 25, /** Calculates the minimum tow values */ -// Max = 26, /** Calculates the maximum of two values */ -// Abs = 27, /** Calcul the absolute value */ -// Fmod = 28, /** Calculates the modulo of two values */ -// Pow = 29, /** Calculates the power A^B */ -// Sqrt = 30, /** Calculates the square root */ -// Exp = 31, /** Exponential function */ -// Log = 32, /** Natural logarithmus */ -// Log2 = 33, /** Logarithmus to the base 2 */ -// Log10 = 34, /** Logarithmus to the base 10 */ -// Select = 35, /** If A is less B returns C, else D */ -// Clamp = 36, /** Clamps the input value to min and max */ -// Sinh = 37, /** Calculates the hyperbolic sine */ -// Cosh = 38, /** Calculates the hyperbolic cosine */ -// Tanh = 39, /** Calculates the hyperbolic tangent */ -// Round = 40, /** Rounds a scalar value to the nearest integer */ -// Ceil = 41, /** Rounds a scalar value up to the nearest integer */ -// Floor = 42, /** Rounds a scalar value down to the nearest integer */ -// Sign = 43, /** Returns the sign */ -// Fract = 44, /** Returns the fractional part */ -// FunctionCall = 45, /** Calls a function */ -// Mesh = 46, /** Calculates the signed distance to a mesh */ -// Length = 47, /** Calculates the length of a vector */ -// Resource = 48 /** Selects a resource (function, mesh etc.) */ -// }; - -IImplicitNode* Lib3MF::Impl::CNodeIterator::implicitNodeFromModelImplicitNode( - NMR::PModelImplicitNode pNode) -{ - if (!pNode) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - - switch (pNode->getNodeType()) - { - case eImplicitNodeType::Addition: - return new CAdditionNode(pNode); - case eImplicitNodeType::Subtraction: - return new CSubtractionNode(pNode); - case eImplicitNodeType::Multiplication: - return new CMultiplicationNode(pNode); - case eImplicitNodeType::Division: - return new CDivisionNode(pNode); - case eImplicitNodeType::Constant: - return new CConstantNode(pNode); - case eImplicitNodeType::ConstVec: - return new CConstVecNode(pNode); - case eImplicitNodeType::ConstMat: - return new CConstMatNode(pNode); - case eImplicitNodeType::ComposeVector: - return new CComposeVectorNode(pNode); - case eImplicitNodeType::VectorFromScalar: - return new CVectorFromScalarNode(pNode); - case eImplicitNodeType::DecomposeVector: - return new CDecomposeVectorNode(pNode); - case eImplicitNodeType::ComposeMatrix: - return new CComposeMatrixNode(pNode); - case eImplicitNodeType::MatrixFromColumns: - return new CMatrixFromColumnsNode(pNode); - case eImplicitNodeType::MatrixFromRows: - return new CMatrixFromRowsNode(pNode); - case eImplicitNodeType::Dot: - return new CDotNode(pNode); - case eImplicitNodeType::Cross: - return new CCrossNode(pNode); - case eImplicitNodeType::MatVecMultiplication: - return new CMatVecMultiplicationNode(pNode); - case eImplicitNodeType::Transpose: - return new CTransposeNode(pNode); - case eImplicitNodeType::Inverse: - return new CInverseNode(pNode); - case eImplicitNodeType::Sinus: - return new CSinNode(pNode); - case eImplicitNodeType::Cosinus: - return new CCosNode(pNode); - case eImplicitNodeType::Tan: - return new CTanNode(pNode); - case eImplicitNodeType::ArcSin: - return new CArcSinNode(pNode); - case eImplicitNodeType::ArcCos: - return new CArcCosNode(pNode); - case eImplicitNodeType::ArcTan: - return new CArcTanNode(pNode); - case eImplicitNodeType::ArcTan2: - return new CArcTan2Node(pNode); - case eImplicitNodeType::Min: - return new CMinNode(pNode); - case eImplicitNodeType::Max: - return new CMaxNode(pNode); - case eImplicitNodeType::Abs: - return new CAbsNode(pNode); - case eImplicitNodeType::Fmod: - return new CFmodNode(pNode); - case eImplicitNodeType::Pow: - return new CPowNode(pNode); - case eImplicitNodeType::Sqrt: - return new CSqrtNode(pNode); - case eImplicitNodeType::Exp: - return new CExpNode(pNode); - case eImplicitNodeType::Log: - return new CLogNode(pNode); - case eImplicitNodeType::Log2: - return new CLog2Node(pNode); - case eImplicitNodeType::Log10: - return new CLog10Node(pNode); - case eImplicitNodeType::Select: - return new CSelectNode(pNode); - case eImplicitNodeType::Clamp: - return new CClampNode(pNode); - case eImplicitNodeType::Sinh: - return new CSinhNode(pNode); - case eImplicitNodeType::Cosh: - return new CCoshNode(pNode); - case eImplicitNodeType::Tanh: - return new CTanhNode(pNode); - case eImplicitNodeType::Round: - return new CRoundNode(pNode); - case eImplicitNodeType::Ceil: - return new CCeilNode(pNode); - case eImplicitNodeType::Floor: - return new CFloorNode(pNode); - case eImplicitNodeType::Sign: - return new CSignNode(pNode); - case eImplicitNodeType::Fract: - return new CFractNode(pNode); - case eImplicitNodeType::FunctionCall: - return new CFunctionCallNode(pNode); - case eImplicitNodeType::Mesh: - return new CMeshNode(pNode); - case eImplicitNodeType::UnsignedMesh: - return new CUnsignedMeshNode(pNode); - case eImplicitNodeType::Length: - return new CLengthNode(pNode); - case eImplicitNodeType::ConstResourceID: - return new CResourceIdNode(pNode); - case eImplicitNodeType::Mod: - return new CModNode(pNode); - - default: - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - -} - -Lib3MF::Impl::CNodeIterator::CNodeIterator(NMR::PImplicitNodes pNodes) - : m_pNodes(pNodes) -{ -} - -Lib3MF_uint64 Lib3MF::Impl::CNodeIterator::Count() -{ - return static_cast(m_pNodes->size()); -} diff --git a/Source/API/lib3mf_object.cpp b/Source/API/lib3mf_object.cpp index 12ef901c..9c6f46ab 100644 --- a/Source/API/lib3mf_object.cpp +++ b/Source/API/lib3mf_object.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -31,17 +31,8 @@ Abstract: This is a stub class definition of CObject #include "lib3mf_object.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_meshobject.hpp" -#include "lib3mf_levelset.hpp" -#include "lib3mf_componentsobject.hpp" -#include "lib3mf_metadatagroup.hpp" -#include "lib3mf_slicestack.hpp" -#include "lib3mf_attachment.hpp" - // Include custom headers here. -#include "Model/Classes/NMR_ModelMeshObject.h" -#include "Model/Classes/NMR_ModelLevelSetObject.h" -#include "Model/Classes/NMR_ModelComponentsObject.h" + using namespace Lib3MF::Impl; @@ -49,222 +40,118 @@ using namespace Lib3MF::Impl; Class definition of CObject **************************************************************************************************************************/ -NMR::CModelObject* CObject::object() -{ - NMR::CModelObject* pObject = dynamic_cast(resource().get()); - if (pObject == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT); - return pObject; -} - -IObject* CObject::fnCreateObjectFromModelResource(NMR::PModelResource pResource, bool bFailIfUnkownClass) { - - if (!pResource.get()) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - NMR::CModelMeshObject * pMeshObject = dynamic_cast (pResource.get()); - if (pMeshObject) { - return new CMeshObject(pResource); - } - - NMR::CModelLevelSetObject * PILevelSet = dynamic_cast (pResource.get()); - if (PILevelSet) { - return new CLevelSet(pResource); - } - - NMR::CModelComponentsObject * pComponentsResource = dynamic_cast (pResource.get()); - if (pComponentsResource) { - return new CComponentsObject(pResource); - } - - if (bFailIfUnkownClass) - throw ELib3MFInterfaceException(NMR_ERROR_UNKNOWNMODELRESOURCE); - - return nullptr; -} - -CObject::CObject(NMR::PModelResource pResource) - :CResource(pResource) +Lib3MF::eObjectType CObject::GetType() { + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - -eLib3MFObjectType CObject::GetType () +void CObject::SetType(const Lib3MF::eObjectType eObjectType) { - return eLib3MFObjectType(object()->getObjectType()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CObject::SetType (const eLib3MFObjectType eObjectType) +std::string CObject::GetName() { - object()->setObjectType(NMR::eModelObjectType(eObjectType)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -std::string CObject::GetName () +void CObject::SetName(const std::string & sName) { - return object()->getName(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CObject::SetName (const std::string & sName) +std::string CObject::GetPartNumber() { - object()->setName(sName); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -std::string CObject::GetPartNumber () +void CObject::SetPartNumber(const std::string & sPartNumber) { - return object()->getPartNumber(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CObject::SetPartNumber (const std::string & sPartNumber) +bool CObject::IsMeshObject() { - object()->setPartNumber(sPartNumber); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool CObject::IsMeshObject () +bool CObject::IsComponentsObject() { - // overwritten by child class - throw ELib3MFInterfaceException(LIB3MF_ERROR_SHOULDNOTBECALLED); -} - -bool CObject::IsComponentsObject () -{ - // overwritten by child class - throw ELib3MFInterfaceException(LIB3MF_ERROR_SHOULDNOTBECALLED); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } bool CObject::IsLevelSetObject() { - // overwritten by child class - throw ELib3MFInterfaceException(LIB3MF_ERROR_SHOULDNOTBECALLED); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - -IMeshObject * CObject::AsMeshObject() +bool CObject::IsValid() { - if (dynamic_cast(resource().get())) - { - return new CMeshObject(resource()); - } - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); -} - -IComponentsObject * CObject::AsComponentsObject() -{ - if (dynamic_cast(resource().get())) - { - return new CComponentsObject(resource()); - } - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); -} - -bool CObject::IsValid () -{ - // Implemented by base class - throw ELib3MFInterfaceException (LIB3MF_ERROR_SHOULDNOTBECALLED); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CObject::SetAttachmentAsThumbnail(IAttachment* pAttachment) { - auto pModelAttachment = object()->getModel()->findModelAttachment(pAttachment->GetPath()); - if (!pModelAttachment) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_ATTACHMENTNOTFOUND); - } - object()->setThumbnailAttachment(pModelAttachment, true); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IAttachment * CObject::GetThumbnailAttachment() { - if (object()->getThumbnailAttachment()) { - return new CAttachment(object()->getThumbnailAttachment()); - } - return nullptr; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CObject::ClearThumbnailAttachment() { - object()->clearThumbnailAttachment(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - -IMetaDataGroup * CObject::GetMetaDataGroup () +Lib3MF::sBox CObject::GetOutbox() { - return new CMetaDataGroup(object()->metaDataGroup()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } std::string CObject::GetUUID(bool & bHasUUID) { - NMR::PUUID pUUID = object()->uuid(); - bHasUUID = (pUUID.get() != nullptr); - if (bHasUUID) - return pUUID->toString(); - else - return ""; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CObject::SetUUID(const std::string & sUUID) { - NMR::PUUID pUUID = std::make_shared(sUUID); - object()->setUUID(pUUID); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CObject::SetSlicesMeshResolution(const eLib3MFSlicesMeshResolution eMeshResolution) +IMetaDataGroup * CObject::GetMetaDataGroup() { - object()->setSlicesMeshResolution(NMR::eModelSlicesMeshResolution(eMeshResolution)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -eLib3MFSlicesMeshResolution CObject::GetSlicesMeshResolution() +void CObject::SetSlicesMeshResolution(const Lib3MF::eSlicesMeshResolution eMeshResolution) { - return eLib3MFSlicesMeshResolution(object()->slicesMeshResolution()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + +Lib3MF::eSlicesMeshResolution CObject::GetSlicesMeshResolution() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } bool CObject::HasSlices(const bool bRecursive) { - return object()->hasSlices(bRecursive); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CObject::ClearSliceStack() { - object()->assignSliceStack(nullptr); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } ISliceStack * CObject::GetSliceStack() { - NMR::PModelSliceStack pSliceStackResource = object()->getSliceStack(); - if (pSliceStackResource) - return new CSliceStack(pSliceStackResource); - else - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDSLICESTACKRESOURCE); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CObject::AssignSliceStack(ISliceStack* pSliceStackInstance) { - NMR::ModelResourceID nID = pSliceStackInstance->GetResourceID(); - std::shared_ptr pPackagePart(pSliceStackInstance->PackagePart()); - std::string sPath = pPackagePart->GetPath(); - - NMR::PModelSliceStack pSliceStackResource = std::dynamic_pointer_cast - ( object()->getModel()->findResource(sPath, nID) ); - if (!pSliceStackResource) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDSLICESTACKRESOURCE); - - object()->assignSliceStack(pSliceStackResource); -} - -Lib3MF::sBox CObject::GetOutbox() -{ - NMR::NOUTBOX3 oOutbox; - NMR::fnOutboxInitialize(oOutbox); - - object()->extendOutbox(oOutbox, NMR::fnMATRIX3_identity()); - - sBox s; - s.m_MinCoordinate[0] = oOutbox.m_min.m_fields[0]; - s.m_MinCoordinate[1] = oOutbox.m_min.m_fields[1]; - s.m_MinCoordinate[2] = oOutbox.m_min.m_fields[2]; - - s.m_MaxCoordinate[0] = oOutbox.m_max.m_fields[0]; - s.m_MaxCoordinate[1] = oOutbox.m_max.m_fields[1]; - s.m_MaxCoordinate[2] = oOutbox.m_max.m_fields[2]; - - return s; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_objectiterator.cpp b/Source/API/lib3mf_objectiterator.cpp index c0102d03..f4da3585 100644 --- a/Source/API/lib3mf_objectiterator.cpp +++ b/Source/API/lib3mf_objectiterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,7 +32,7 @@ Abstract: This is a stub class definition of CObjectIterator #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_object.hpp" + using namespace Lib3MF::Impl; @@ -40,12 +40,8 @@ using namespace Lib3MF::Impl; Class definition of CObjectIterator **************************************************************************************************************************/ -IObject * CObjectIterator::GetCurrentObject () +IObject * CObjectIterator::GetCurrentObject() { - return CObject::fnCreateObjectFromModelResource(GetCurrentResource(), true); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IResource * CObjectIterator::GetCurrent() -{ - return GetCurrentObject(); -} diff --git a/Source/API/lib3mf_oneinputnode.cpp b/Source/API/lib3mf_oneinputnode.cpp index 94bcc4d8..50aae06a 100644 --- a/Source/API/lib3mf_oneinputnode.cpp +++ b/Source/API/lib3mf_oneinputnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,16 +42,11 @@ using namespace Lib3MF::Impl; IImplicitPort * COneInputNode::GetInputA() { - return FindInputOrThrow(NMR::InputNames::A); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * COneInputNode::GetOutputResult() { - return FindOutputOrThrow(NMR::OutputNames::result); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -COneInputNode::COneInputNode( - NMR::PModelImplicitNode pImplicitNode) : CImplicitNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_packagepart.cpp b/Source/API/lib3mf_packagepart.cpp index e07cef89..f8112c21 100644 --- a/Source/API/lib3mf_packagepart.cpp +++ b/Source/API/lib3mf_packagepart.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,9 +33,6 @@ Abstract: This is a stub class definition of CPackagePart // Include custom headers here. -#include "Model/Classes/NMR_PackageResourceID.h" - - using namespace Lib3MF::Impl; @@ -43,19 +40,13 @@ using namespace Lib3MF::Impl; Class definition of CPackagePart **************************************************************************************************************************/ -CPackagePart::CPackagePart(NMR::PPackageModelPath pPath) - : m_pPath(pPath) -{ - if (!pPath.get()) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); -} - std::string CPackagePart::GetPath() { - return m_pPath->getPath(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CPackagePart::SetPath(const std::string & sPath) { - m_pPath->setPath(sPath); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } + diff --git a/Source/API/lib3mf_pownode.cpp b/Source/API/lib3mf_pownode.cpp index 28716b14..c95c7133 100644 --- a/Source/API/lib3mf_pownode.cpp +++ b/Source/API/lib3mf_pownode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CPowNode */ #include "lib3mf_pownode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CPowNode + Class definition of CPowNode **************************************************************************************************************************/ -Lib3MF::Impl::CPowNode::CPowNode(NMR::PModelImplicitNode pImplicitNode) - : CTwoInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_reader.cpp b/Source/API/lib3mf_reader.cpp index 2f4e4f6d..cfd58e06 100644 --- a/Source/API/lib3mf_reader.cpp +++ b/Source/API/lib3mf_reader.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,17 +29,9 @@ Abstract: This is a stub class definition of CReader */ #include "lib3mf_reader.hpp" +#include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_interfaceexception.hpp" -#include "lib3mf_accessright.hpp" -#include "lib3mf_contentencryptionparams.hpp" -#include "Common/Platform/NMR_Platform.h" -#include "Common/Platform/NMR_ImportStream_Shared_Memory.h" -#include "Common/Platform/NMR_ImportStream_Callback.h" -#include "Common/NMR_SecureContentTypes.h" -#include "Common/NMR_SecureContext.h" -#include "Model/Classes/NMR_KeyStore.h" using namespace Lib3MF::Impl; @@ -48,186 +40,63 @@ using namespace Lib3MF::Impl; Class definition of CReader **************************************************************************************************************************/ -CReader::CReader(std::string sReaderClass, NMR::PModel model) +void CReader::ReadFromFile(const std::string & sFilename) { - m_pReader = nullptr; - - // Create specified writer instance - if (sReaderClass.compare("3mf") == 0) { - m_pReader = std::make_shared(model); - - } - else if (sReaderClass.compare("stl") == 0) { - m_pReader = std::make_shared(model); - } - - if (!m_pReader) - throw ELib3MFInterfaceException(LIB3MF_ERROR_READERCLASSUNKNOWN); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -NMR::CModelReader& CReader::reader() +void CReader::ReadFromBuffer(const Lib3MF_uint64 nBufferBufferSize, const Lib3MF_uint8 * pBufferBuffer) { - return *m_pReader; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CReader::ReadFromFile (const std::string & sFilename) +void CReader::ReadFromCallback(const Lib3MF::ReadCallback pTheReadCallback, const Lib3MF_uint64 nStreamSize, const Lib3MF::SeekCallback pTheSeekCallback, const Lib3MF_pvoid pUserData) { - NMR::PImportStream pImportStream = NMR::fnCreateImportStreamInstance(sFilename.c_str()); - - try { - reader().readStream(pImportStream); - } - catch (NMR::CNMRException&e) { - if (e.getErrorCode() == NMR_USERABORTED) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_CALCULATIONABORTED); - } - else throw e; - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CReader::ReadFromBuffer (const Lib3MF_uint64 nBufferBufferSize, const Lib3MF_uint8 * pBufferBuffer) +void CReader::SetProgressCallback(const Lib3MF::ProgressCallback pProgressCallback, const Lib3MF_pvoid pUserData) { - NMR::PImportStream pImportStream = std::make_shared(pBufferBuffer, nBufferBufferSize); - - try { - reader().readStream(pImportStream); - } - catch (NMR::CNMRException&e) { - if (e.getErrorCode() == NMR_USERABORTED) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_CALCULATIONABORTED); - } - else throw e; - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CReader::ReadFromCallback(const Lib3MFReadCallback pTheReadCallback, const Lib3MF_uint64 nStreamSize, const Lib3MFSeekCallback pTheSeekCallback, const Lib3MF_pvoid pUserData) +void CReader::AddRelationToRead(const std::string & sRelationShipType) { - - NMR::ImportStream_ReadCallbackType lambdaReadCallback = - [pTheReadCallback](NMR::nfByte* pData, NMR::nfUint64 cbBytes, void* pUserData) - { - (*pTheReadCallback)(reinterpret_cast(pData), cbBytes, pUserData); - return 0; - }; - - NMR::ImportStream_SeekCallbackType lambdaSeekCallback = - [pTheSeekCallback](NMR::nfUint64 nPosition, void* pUserData) - { - (*pTheSeekCallback)(nPosition, pUserData); - return 0; - }; - - NMR::PImportStream pImportStream = std::make_shared( - lambdaReadCallback, lambdaSeekCallback, - pUserData, nStreamSize); - try { - reader().readStream(pImportStream); - } - catch (NMR::CNMRException&e) { - if (e.getErrorCode() == NMR_USERABORTED) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_CALCULATIONABORTED); - } - else throw e; - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CReader::SetProgressCallback(const Lib3MFProgressCallback pProgressCallback, const Lib3MF_pvoid pUserData) +void CReader::RemoveRelationToRead(const std::string & sRelationShipType) { - NMR::Lib3MFProgressCallback lambdaCallback = - [pProgressCallback](int progressStep, NMR::ProgressIdentifier identifier, void* pUserData) - { - bool ret; - (*pProgressCallback)(&ret, progressStep / 100.0f, eLib3MFProgressIdentifier(identifier), pUserData); - return ret; - }; - m_pReader->SetProgressCallback(lambdaCallback, pUserData); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CReader::AddRelationToRead (const std::string & sRelationShipType) +void CReader::SetStrictModeActive(const bool bStrictModeActive) { - reader().addRelationToRead(sRelationShipType); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CReader::RemoveRelationToRead (const std::string & sRelationShipType) +bool CReader::GetStrictModeActive() { - reader().removeRelationToRead(sRelationShipType); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CReader::SetStrictModeActive (const bool bStrictModeActive) +std::string CReader::GetWarning(const Lib3MF_uint32 nIndex, Lib3MF_uint32 & nErrorCode) { - if (bStrictModeActive) - reader().warnings()->setCriticalWarningLevel(NMR::mrwInvalidOptionalValue); - else - reader().warnings()->setCriticalWarningLevel(NMR::mrwFatal); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool CReader::GetStrictModeActive () +Lib3MF_uint32 CReader::GetWarningCount() { - return reader().warnings()->getCriticalWarningLevel() == NMR::mrwInvalidOptionalValue; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -std::string CReader::GetWarning (const Lib3MF_uint32 nIndex, Lib3MF_uint32 & nErrorCode) +void CReader::AddKeyWrappingCallback(const std::string & sConsumerID, const Lib3MF::KeyWrappingCallback pTheCallback, const Lib3MF_pvoid pUserData) { - auto warning = reader().warnings()->getWarning(nIndex); - nErrorCode = warning->getErrorCode(); - return warning->getMessage(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CReader::GetWarningCount () +void CReader::SetContentEncryptionCallback(const Lib3MF::ContentEncryptionCallback pTheCallback, const Lib3MF_pvoid pUserData) { - return reader().warnings()->getWarningCount(); -} - -void Lib3MF::Impl::CReader::AddKeyWrappingCallback(const std::string &sConsumerID, const Lib3MF::KeyWrappingCallback pTheCallback, const Lib3MF_pvoid pUserData) { - NMR::KeyWrappingDescriptor descriptor; - descriptor.m_sKekDecryptData.m_pUserData = pUserData; - descriptor.m_fnWrap = - [this, pTheCallback]( - std::vector const & cipher, - std::vector & plain, - NMR::KeyWrappingContext & ctx) { - - std::shared_ptr pAccessRight = std::make_shared(ctx.m_pAccessRight); - IBase * pBaseEntity(nullptr); - pBaseEntity = pAccessRight.get(); - Lib3MF_AccessRight entityHandle = pBaseEntity; - - //figure out the size of the key. - Lib3MF_uint64 needed = 0; - Lib3MF_uint64 result = 0; - (*pTheCallback)(entityHandle, cipher.size(), cipher.data(), - 0, &needed, nullptr, ctx.m_pUserData, &result); - if (result == 0) - throw ELib3MFInterfaceException(LIB3MF_ERROR_CALCULATIONABORTED); - - if (needed > LIB3MF_READER_MAXKEYSIZE) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDKEYSIZE); - - plain.resize((size_t)needed, 0); - - result = 0; - (*pTheCallback)(entityHandle, cipher.size(), cipher.data(), - plain.size(), nullptr, plain.data(), ctx.m_pUserData, &result); - if (result == 0) - throw ELib3MFInterfaceException(LIB3MF_ERROR_CALCULATIONABORTED); - return (NMR::nfUint64)result; - }; - reader().secureContext()->addKekCtx(sConsumerID, descriptor); -} -void Lib3MF::Impl::CReader::SetContentEncryptionCallback(const Lib3MF::ContentEncryptionCallback pTheCallback, const Lib3MF_pvoid pUserData) { - NMR::ContentEncryptionDescriptor descriptor; - descriptor.m_sDekDecryptData.m_pUserData = pUserData; - descriptor.m_fnCrypt = [this, pTheCallback](NMR::nfUint64 size, NMR::nfByte const * cipher, NMR::nfByte * plain, NMR::ContentEncryptionContext & ctx) { - std::shared_ptr pCekParams = std::make_shared(ctx.m_sParams); - IBase * pBaseEntity(nullptr); - pBaseEntity = pCekParams.get(); - Lib3MF_ContentEncryptionParams entityHandle = pBaseEntity; - Lib3MF_uint64 result = 0; - (*pTheCallback)(entityHandle, (Lib3MF_uint64)size, cipher, (Lib3MF_uint64)size, nullptr, plain, ctx.m_pUserData, &result); - if (result == 0) - throw ELib3MFInterfaceException(LIB3MF_ERROR_CALCULATIONABORTED); - return (NMR::nfUint64)result; - }; - reader().secureContext()->setDekCtx(descriptor); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_resource.cpp b/Source/API/lib3mf_resource.cpp index d05afdda..bf008ca6 100644 --- a/Source/API/lib3mf_resource.cpp +++ b/Source/API/lib3mf_resource.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,10 +32,7 @@ Abstract: This is a stub class definition of CResource #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_packagepart.hpp" -#include "Model/Classes/NMR_ModelObject.h" -#include "lib3mf_object.hpp" -#include + using namespace Lib3MF::Impl; @@ -43,75 +40,28 @@ using namespace Lib3MF::Impl; Class definition of CResource **************************************************************************************************************************/ - -NMR::PModelResource CResource::resource() -{ - if (m_pResource.get() == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT); - - return m_pResource; -} - -NMR::CModel* CResource::model() -{ - if (m_pResource.get() == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT); - - - if (m_pResource->getModel() == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDMODEL); - - return m_pResource->getModel(); -} - -CResource::CResource(NMR::PModelResource pResource) -{ - if (pResource.get() == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDMODELRESOURCE); - m_pResource = pResource; -} - Lib3MF_uint32 CResource::GetResourceID() { - return m_pResource->getPackageResourceID()->getUniqueID(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_uint32 CResource::GetUniqueResourceID() { - return m_pResource->getPackageResourceID()->getUniqueID(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CResource::GetModelResourceID() -{ - return m_pResource->getPackageResourceID()->getModelResourceID(); -} - -IObject * CResource::AsObject() +IPackagePart * CResource::PackagePart() { - if (dynamic_cast(m_pResource.get())) - { - return new CObject(m_pResource); - } - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IPackagePart * CResource::PackagePart() +void CResource::SetPackagePart(IPackagePart* pPackagePart) { - return new CPackagePart(m_pResource->getPackageResourceID()->getPackageModelPath()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CResource::SetPackagePart(IPackagePart* pPackagePart) +Lib3MF_uint32 CResource::GetModelResourceID() { - std::string sPath = pPackagePart->GetPath(); - NMR::ModelResourceID nID = m_pResource->getPackageResourceID()->getModelResourceID(); - NMR::PPackageResourceID pTargetPackageResourceID = m_pResource->getModel()->findPackageResourceID(sPath, nID); - if (pTargetPackageResourceID) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDMODELRESOURCE); - } - NMR::PPackageResourceID pIDOld = m_pResource->getPackageResourceID(); - NMR::PPackageResourceID pID = m_pResource->getModel()->generatePackageResourceID(sPath, nID); - m_pResource->setPackageResourceID(pID); - - m_pResource->getModel()->removePackageResourceID(pIDOld); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_resourcedata.cpp b/Source/API/lib3mf_resourcedata.cpp index 00ffd546..c302d77d 100644 --- a/Source/API/lib3mf_resourcedata.cpp +++ b/Source/API/lib3mf_resourcedata.cpp @@ -1,38 +1,62 @@ +/*++ + +Copyright (C) 2024 3MF Consortium (Original Author) + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Abstract: This is a stub class definition of CResourceData + +*/ + #include "lib3mf_resourcedata.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_consumer.hpp" -#include "lib3mf_packagepart.hpp" -#include "lib3mf_utils.hpp" - -namespace Lib3MF { - namespace Impl { - Lib3MF::Impl::CResourceData::CResourceData(NMR::PKeyStoreResourceData resourceData) - :m_pResourceData(resourceData) - { - if (!resourceData) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - - Lib3MF::eEncryptionAlgorithm Lib3MF::Impl::CResourceData::GetEncryptionAlgorithm() { - NMR::eKeyStoreEncryptAlgorithm ea = m_pResourceData->getEncryptionAlgorithm(); - return static_cast(ea); - } - - Lib3MF::eCompression Lib3MF::Impl::CResourceData::GetCompression() { - return translateCompression(m_pResourceData->isCompressed()); - } - - IPackagePart * CResourceData::GetPath() { - return new CPackagePart(m_pResourceData->packagePath()); - } - - void CResourceData::GetAdditionalAuthenticationData(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64 * pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) { - std::vector const & aad = m_pResourceData->getAddAuthData(); - if (nByteDataBufferSize < aad.size()) { - *pByteDataNeededCount = aad.size(); - } else { - std::copy(aad.begin(), aad.end(), pByteDataBuffer); - } - } - } -} \ No newline at end of file + +// Include custom headers here. + + +using namespace Lib3MF::Impl; + +/************************************************************************************************************************* + Class definition of CResourceData +**************************************************************************************************************************/ + +IPackagePart * CResourceData::GetPath() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + +Lib3MF::eEncryptionAlgorithm CResourceData::GetEncryptionAlgorithm() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + +Lib3MF::eCompression CResourceData::GetCompression() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + +void CResourceData::GetAdditionalAuthenticationData(Lib3MF_uint64 nByteDataBufferSize, Lib3MF_uint64* pByteDataNeededCount, Lib3MF_uint8 * pByteDataBuffer) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + diff --git a/Source/API/lib3mf_resourcedatagroup.cpp b/Source/API/lib3mf_resourcedatagroup.cpp index e26f4eea..13087f1d 100644 --- a/Source/API/lib3mf_resourcedatagroup.cpp +++ b/Source/API/lib3mf_resourcedatagroup.cpp @@ -1,47 +1,62 @@ +/*++ +Copyright (C) 2024 3MF Consortium (Original Author) + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Abstract: This is a stub class definition of CResourceDataGroup + +*/ #include "lib3mf_resourcedatagroup.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_consumer.hpp" -#include "lib3mf_accessright.hpp" - -#include "Model/Classes/NMR_KeyStoreFactory.h" -namespace Lib3MF { - namespace Impl { - CResourceDataGroup::CResourceDataGroup(NMR::PKeyStoreResourceDataGroup const & dg) - : m_pDataGroup(dg) - { - if (!dg) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - - IAccessRight * CResourceDataGroup::AddAccessRight(IConsumer * pConsumer, const Lib3MF::eWrappingAlgorithm eWrappingAlgorithm, const Lib3MF::eMgfAlgorithm eMgfAlgorithm, const Lib3MF::eDigestMethod eDigestMethod) { - CConsumer * c = dynamic_cast(pConsumer); - if (nullptr == c) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - NMR::PKeyStoreAccessRight ar = NMR::CKeyStoreFactory::makeAccessRight( - c->consumer(), - (NMR::eKeyStoreWrapAlgorithm)eWrappingAlgorithm, - (NMR::eKeyStoreMaskGenerationFunction)eMgfAlgorithm, - (NMR::eKeyStoreMessageDigest)eDigestMethod); - m_pDataGroup->addAccessRight(ar); - return new CAccessRight(ar); - } - - IAccessRight * CResourceDataGroup::FindAccessRightByConsumer(IConsumer * pConsumerInstance) { - NMR::PKeyStoreAccessRight ar = m_pDataGroup->findAccessRightByConsumerID(pConsumerInstance->GetConsumerID()); - if (!ar) - return nullptr; - return new CAccessRight(ar); - } - - void CResourceDataGroup::RemoveAccessRight(IConsumer * pConsumerInstance) { - m_pDataGroup->removeAccessRight(pConsumerInstance->GetConsumerID()); - } - - std::string CResourceDataGroup::GetKeyUUID() { - return m_pDataGroup->getKeyUUID()->toString(); - } - } -} \ No newline at end of file +// Include custom headers here. + + +using namespace Lib3MF::Impl; + +/************************************************************************************************************************* + Class definition of CResourceDataGroup +**************************************************************************************************************************/ + +std::string CResourceDataGroup::GetKeyUUID() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + +IAccessRight * CResourceDataGroup::AddAccessRight(IConsumer* pConsumer, const Lib3MF::eWrappingAlgorithm eWrappingAlgorithm, const Lib3MF::eMgfAlgorithm eMgfAlgorithm, const Lib3MF::eDigestMethod eDigestMethod) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + +IAccessRight * CResourceDataGroup::FindAccessRightByConsumer(IConsumer* pConsumer) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + +void CResourceDataGroup::RemoveAccessRight(IConsumer* pConsumer) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + diff --git a/Source/API/lib3mf_resourceidnode.cpp b/Source/API/lib3mf_resourceidnode.cpp index 8d7ac3cd..641e58a6 100644 --- a/Source/API/lib3mf_resourceidnode.cpp +++ b/Source/API/lib3mf_resourceidnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -30,7 +30,6 @@ Abstract: This is a stub class definition of CResourceIdNode #include "lib3mf_resourceidnode.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_resource.hpp" // Include custom headers here. @@ -41,23 +40,18 @@ using namespace Lib3MF::Impl; Class definition of CResourceIdNode **************************************************************************************************************************/ -Lib3MF::Impl::CResourceIdNode::CResourceIdNode( - NMR::PModelImplicitNode pImplicitNode) : CImplicitNode(std::move(pImplicitNode)) -{ -} - void CResourceIdNode::SetResource(IResource* pResource) { - m_pImplicitNode->setModelResourceID(pResource->GetModelResourceID()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IResource * CResourceIdNode::GetResource() { - return new CResource(m_pImplicitNode->getResource()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CResourceIdNode::GetOutputValue() { - return FindOutputOrThrow(NMR::OutputNames::value); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_resourceiterator.cpp b/Source/API/lib3mf_resourceiterator.cpp index 7a21aee1..39da6c8b 100644 --- a/Source/API/lib3mf_resourceiterator.cpp +++ b/Source/API/lib3mf_resourceiterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -28,8 +28,6 @@ Abstract: This is a stub class definition of CResourceIterator */ -#include "lib3mf_resource.hpp" -#include "lib3mf_model.hpp" #include "lib3mf_resourceiterator.hpp" #include "lib3mf_interfaceexception.hpp" @@ -42,78 +40,28 @@ using namespace Lib3MF::Impl; Class definition of CResourceIterator **************************************************************************************************************************/ -CResourceIterator::CResourceIterator() +bool CResourceIterator::MoveNext() { - m_nCurrentIndex = -1; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CResourceIterator::addResource(NMR::PModelResource pResource) +bool CResourceIterator::MovePrevious() { - if (pResource.get() == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - m_pResources.push_back(pResource); -} - -bool CResourceIterator::MoveNext () -{ - // Get Resource Count - Lib3MF_int32 nBuildItemCount = (Lib3MF_int32)m_pResources.size(); - m_nCurrentIndex++; - - // Check new Index - if (m_nCurrentIndex >= nBuildItemCount) { - m_nCurrentIndex = nBuildItemCount; - return false; - } - else { - return true; - } -} - -bool CResourceIterator::MovePrevious () -{ - // Get Resource Count - m_nCurrentIndex--; - - // Check new Index - if (m_nCurrentIndex <= -1) { - m_nCurrentIndex = -1; - return false; - } - else { - return true; - } -} - -NMR::PModelResource CResourceIterator::GetCurrentResource() -{ - // Get Resource Count - Lib3MF_int32 nBuildItemCount = (Lib3MF_int32)m_pResources.size(); - if ((m_nCurrentIndex < 0) || (m_nCurrentIndex >= nBuildItemCount)) - throw ELib3MFInterfaceException(LIB3MF_ERROR_ITERATORINVALIDINDEX); - - return m_pResources[m_nCurrentIndex]; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IResource * CResourceIterator::GetCurrent () +IResource * CResourceIterator::GetCurrent() { - // Create specific API class - return CModel::createIResourceFromModelResource(GetCurrentResource(), true); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IResourceIterator * CResourceIterator::Clone () +IResourceIterator * CResourceIterator::Clone() { - auto pResources = std::unique_ptr(new CResourceIterator()); - - for (auto iIterator = m_pResources.begin(); iIterator != m_pResources.end(); iIterator++) - pResources->addResource(*iIterator); - - return pResources.release(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_uint64 CResourceIterator::Count() { - return m_pResources.size(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_roundnode.cpp b/Source/API/lib3mf_roundnode.cpp index fcff1e87..219b1e36 100644 --- a/Source/API/lib3mf_roundnode.cpp +++ b/Source/API/lib3mf_roundnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CRoundNode */ #include "lib3mf_roundnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CRoundNode + Class definition of CRoundNode **************************************************************************************************************************/ -Lib3MF::Impl::CRoundNode::CRoundNode(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_selectnode.cpp b/Source/API/lib3mf_selectnode.cpp index 1c251135..c1e16b00 100644 --- a/Source/API/lib3mf_selectnode.cpp +++ b/Source/API/lib3mf_selectnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,21 +42,16 @@ using namespace Lib3MF::Impl; IImplicitPort * CSelectNode::GetInputB() { - return FindInputOrThrow(NMR::InputNames::B); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CSelectNode::GetInputC() { - return FindInputOrThrow(NMR::InputNames::C); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CSelectNode::GetInputD() { - return FindInputOrThrow(NMR::InputNames::D); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF::Impl::CSelectNode::CSelectNode(NMR::PModelImplicitNode pImplicitNode) -: COneInputNode{pImplicitNode} - { - CImplicitNode::m_pImplicitNode = pImplicitNode; - } diff --git a/Source/API/lib3mf_signnode.cpp b/Source/API/lib3mf_signnode.cpp index 5d9a72f9..0e936892 100644 --- a/Source/API/lib3mf_signnode.cpp +++ b/Source/API/lib3mf_signnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,8 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CSignNode **************************************************************************************************************************/ -Lib3MF::Impl::CSignNode::CSignNode(NMR::PModelImplicitNode pImplicitNode) -: COneInputNode{pImplicitNode} - { - CImplicitNode::m_pImplicitNode = pImplicitNode; - } diff --git a/Source/API/lib3mf_sinhnode.cpp b/Source/API/lib3mf_sinhnode.cpp index 4c8011dd..0d2f8365 100644 --- a/Source/API/lib3mf_sinhnode.cpp +++ b/Source/API/lib3mf_sinhnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CSinhNode */ #include "lib3mf_sinhnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CSinhNode + Class definition of CSinhNode **************************************************************************************************************************/ -Lib3MF::Impl::CSinhNode::CSinhNode(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_sinnode.cpp b/Source/API/lib3mf_sinnode.cpp index ac3f2f77..5da8b0e8 100644 --- a/Source/API/lib3mf_sinnode.cpp +++ b/Source/API/lib3mf_sinnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,7 +32,7 @@ Abstract: This is a stub class definition of CSinNode #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_oneinputnode.hpp" + using namespace Lib3MF::Impl; @@ -40,9 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CSinNode **************************************************************************************************************************/ -Lib3MF::Impl::CSinNode::CSinNode(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} - diff --git a/Source/API/lib3mf_slice.cpp b/Source/API/lib3mf_slice.cpp index 194b67b7..92b96b43 100644 --- a/Source/API/lib3mf_slice.cpp +++ b/Source/API/lib3mf_slice.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,85 +40,48 @@ using namespace Lib3MF::Impl; Class definition of CSlice **************************************************************************************************************************/ -CSlice::CSlice(NMR::PSlice pSlice) - :m_pSlice(pSlice) +void CSlice::SetVertices(const Lib3MF_uint64 nVerticesBufferSize, const Lib3MF::sPosition2D * pVerticesBuffer) { - + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CSlice::SetVertices (const Lib3MF_uint64 nVerticesBufferSize, const sLib3MFPosition2D * pVerticesBuffer) +void CSlice::GetVertices(Lib3MF_uint64 nVerticesBufferSize, Lib3MF_uint64* pVerticesNeededCount, Lib3MF::sPosition2D * pVerticesBuffer) { - m_pSlice->Clear(); - for (Lib3MF_uint64 index = 0; index < nVerticesBufferSize; index++) { - m_pSlice->addVertex(pVerticesBuffer->m_Coordinates[0], pVerticesBuffer->m_Coordinates[1]); - pVerticesBuffer++; - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CSlice::GetVertices (Lib3MF_uint64 nVerticesBufferSize, Lib3MF_uint64* pVerticesNeededCount, sLib3MFPosition2D * pVerticesBuffer) +Lib3MF_uint64 CSlice::GetVertexCount() { - Lib3MF_uint64 vertexCount = m_pSlice->getVertexCount(); - if (pVerticesNeededCount) - *pVerticesNeededCount = vertexCount; - - if (nVerticesBufferSize >= vertexCount && pVerticesBuffer) - { - for (Lib3MF_uint32 i = 0; i < vertexCount; i++) - { - const NMR::SLICENODE* node = m_pSlice->getNode(i); - pVerticesBuffer[i].m_Coordinates[0] = node->m_position.m_fields[0]; - pVerticesBuffer[i].m_Coordinates[1] = node->m_position.m_fields[1]; - } - } -} - -Lib3MF_uint64 CSlice::GetVertexCount () -{ - return m_pSlice->getVertexCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_uint64 CSlice::AddPolygon(const Lib3MF_uint64 nIndicesBufferSize, const Lib3MF_uint32 * pIndicesBuffer) { - Lib3MF_uint32 index = m_pSlice->beginPolygon(); - SetPolygonIndices(index, nIndicesBufferSize, pIndicesBuffer); - return index; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint64 CSlice::GetPolygonCount () +Lib3MF_uint64 CSlice::GetPolygonCount() { - return m_pSlice->getPolygonCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CSlice::SetPolygonIndices (const Lib3MF_uint64 nIndex, const Lib3MF_uint64 nIndicesBufferSize, const Lib3MF_uint32 * pIndicesBuffer) +void CSlice::SetPolygonIndices(const Lib3MF_uint64 nIndex, const Lib3MF_uint64 nIndicesBufferSize, const Lib3MF_uint32 * pIndicesBuffer) { - m_pSlice->clearPolygon(NMR::nfUint32(nIndex)); - - for (Lib3MF_uint64 i=0; i< nIndicesBufferSize; i++) - m_pSlice->addPolygonIndex(NMR::nfUint32(nIndex), pIndicesBuffer[i]); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CSlice::GetPolygonIndices (const Lib3MF_uint64 nIndex, Lib3MF_uint64 nIndicesBufferSize, Lib3MF_uint64* pIndicesNeededCount, Lib3MF_uint32 * pIndicesBuffer) +void CSlice::GetPolygonIndices(const Lib3MF_uint64 nIndex, Lib3MF_uint64 nIndicesBufferSize, Lib3MF_uint64* pIndicesNeededCount, Lib3MF_uint32 * pIndicesBuffer) { - Lib3MF_uint64 indexCount = m_pSlice->getPolygonIndexCount(NMR::nfUint32(nIndex)); - if (pIndicesNeededCount) - *pIndicesNeededCount = indexCount; - - if (nIndicesBufferSize >= indexCount && pIndicesBuffer) - { - for (Lib3MF_uint32 i = 0; i < indexCount; i++) - { - pIndicesBuffer[i] = m_pSlice->getPolygonIndex(NMR::nfUint32(nIndex), i); - } - } - + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint64 CSlice::GetPolygonIndexCount (const Lib3MF_uint64 nIndex) +Lib3MF_uint64 CSlice::GetPolygonIndexCount(const Lib3MF_uint64 nIndex) { - return m_pSlice->getPolygonIndexCount(NMR::nfUint32(nIndex)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -double CSlice::GetZTop() +Lib3MF_double CSlice::GetZTop() { - return m_pSlice->getTopZ(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } + diff --git a/Source/API/lib3mf_slicestack.cpp b/Source/API/lib3mf_slicestack.cpp index 2e2cec29..e328a54f 100644 --- a/Source/API/lib3mf_slicestack.cpp +++ b/Source/API/lib3mf_slicestack.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -31,7 +31,6 @@ Abstract: This is a stub class definition of CSliceStack #include "lib3mf_slicestack.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_slice.hpp" // Include custom headers here. @@ -41,76 +40,53 @@ using namespace Lib3MF::Impl; Class definition of CSliceStack **************************************************************************************************************************/ -CSliceStack::CSliceStack(NMR::PModelSliceStack pSliceStack): - CResource(pSliceStack) +Lib3MF_double CSliceStack::GetBottomZ() { + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -NMR::PModelSliceStack CSliceStack::sliceStack() +Lib3MF_uint64 CSliceStack::GetSliceCount() { - return std::dynamic_pointer_cast(resource()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -double CSliceStack::GetBottomZ() +ISlice * CSliceStack::GetSlice(const Lib3MF_uint64 nSliceIndex) { - return sliceStack()->getZBottom(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint64 CSliceStack::GetSliceCount () +ISlice * CSliceStack::AddSlice(const Lib3MF_double dZTop) { - return sliceStack()->getSliceCount(); -} - -ISlice * CSliceStack::GetSlice (const Lib3MF_uint64 nSliceIndex) -{ - NMR::PSlice pSlice = sliceStack()->getSlice(Lib3MF_uint32(nSliceIndex)); - return new CSlice(pSlice); -} - -ISlice * CSliceStack::AddSlice (const double fZTop) -{ - NMR::PSlice pSlice = sliceStack()->AddSlice(fZTop); - return new CSlice(pSlice); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_uint64 CSliceStack::GetSliceRefCount() { - return sliceStack()->getSliceRefCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CSliceStack::AddSliceStackReference(ISliceStack* pTheSliceStack) { - NMR::ModelResourceID nID = pTheSliceStack->GetResourceID(); - - std::shared_ptr pPackagePart(pTheSliceStack->PackagePart()); - std::string sPath = pPackagePart->GetPath(); - - NMR::PModelResource pResource = sliceStack()->getModel()->findResource(sPath, nID); - NMR::PModelSliceStack pModelSliceStack = std::dynamic_pointer_cast(pResource); - if (!pModelSliceStack) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDSLICESTACKRESOURCE); - - sliceStack()->AddSliceRef(pModelSliceStack); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } ISliceStack * CSliceStack::GetSliceStackReference(const Lib3MF_uint64 nSliceRefIndex) { - NMR::PModelSliceStack pModelSliceStack = sliceStack()->getSliceRef(Lib3MF_uint32(nSliceRefIndex)); - return new CSliceStack(pModelSliceStack); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CSliceStack::CollapseSliceReferences() { - sliceStack()->CollapseSliceReferences(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CSliceStack::SetOwnPath(const std::string & sPath) { - sliceStack()->SetOwnPath(sPath); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } std::string CSliceStack::GetOwnPath() { - return sliceStack()->OwnPath(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_slicestackiterator.cpp b/Source/API/lib3mf_slicestackiterator.cpp index a646c945..e0a5d29a 100644 --- a/Source/API/lib3mf_slicestackiterator.cpp +++ b/Source/API/lib3mf_slicestackiterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,7 +32,7 @@ Abstract: This is a stub class definition of CSliceStackIterator #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_slicestack.hpp" + using namespace Lib3MF::Impl; @@ -40,12 +40,8 @@ using namespace Lib3MF::Impl; Class definition of CSliceStackIterator **************************************************************************************************************************/ -ISliceStack * CSliceStackIterator::GetCurrentSliceStack () +ISliceStack * CSliceStackIterator::GetCurrentSliceStack() { - return new CSliceStack(std::dynamic_pointer_cast(GetCurrentResource())); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IResource * CSliceStackIterator::GetCurrent() -{ - return GetCurrentSliceStack(); -} diff --git a/Source/API/lib3mf_sqrtnode.cpp b/Source/API/lib3mf_sqrtnode.cpp index d3e70daf..32f32246 100644 --- a/Source/API/lib3mf_sqrtnode.cpp +++ b/Source/API/lib3mf_sqrtnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CSqrtNode */ #include "lib3mf_sqrtnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CSqrtNode + Class definition of CSqrtNode **************************************************************************************************************************/ -Lib3MF::Impl::CSqrtNode::CSqrtNode(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_subtractionnode.cpp b/Source/API/lib3mf_subtractionnode.cpp index 63333a8b..c70b1f67 100644 --- a/Source/API/lib3mf_subtractionnode.cpp +++ b/Source/API/lib3mf_subtractionnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,20 +29,14 @@ Abstract: This is a stub class definition of CSubtractionNode */ #include "lib3mf_subtractionnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CSubtractionNode + Class definition of CSubtractionNode **************************************************************************************************************************/ -Lib3MF::Impl::CSubtractionNode::CSubtractionNode( - NMR::PModelImplicitNode pImplicitNode) - : CTwoInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_tanhnode.cpp b/Source/API/lib3mf_tanhnode.cpp index 7d78e0e9..0ba47d8b 100644 --- a/Source/API/lib3mf_tanhnode.cpp +++ b/Source/API/lib3mf_tanhnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CTanhNode */ #include "lib3mf_tanhnode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CTanhNode + Class definition of CTanhNode **************************************************************************************************************************/ -Lib3MF::Impl::CTanhNode::CTanhNode(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_tannode.cpp b/Source/API/lib3mf_tannode.cpp index d9b29e81..6466d3a4 100644 --- a/Source/API/lib3mf_tannode.cpp +++ b/Source/API/lib3mf_tannode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,19 +29,14 @@ Abstract: This is a stub class definition of CTanNode */ #include "lib3mf_tannode.hpp" - #include "lib3mf_interfaceexception.hpp" // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CTanNode + Class definition of CTanNode **************************************************************************************************************************/ -Lib3MF::Impl::CTanNode::CTanNode(NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_texture2d.cpp b/Source/API/lib3mf_texture2d.cpp index 8f7741e6..2e302a17 100644 --- a/Source/API/lib3mf_texture2d.cpp +++ b/Source/API/lib3mf_texture2d.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -30,7 +30,6 @@ Abstract: This is a stub class definition of CTexture2D #include "lib3mf_texture2d.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_attachment.hpp" // Include custom headers here. @@ -41,61 +40,43 @@ using namespace Lib3MF::Impl; Class definition of CTexture2D **************************************************************************************************************************/ - -CTexture2D::CTexture2D(NMR::PModelTexture2DResource pResource) - :CResource(pResource) -{ -} - -NMR::PModelTexture2DResource CTexture2D::texture() -{ - NMR::PModelTexture2DResource pTexture = std::dynamic_pointer_cast(resource()); - if (!pTexture) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDTEXTURERESOURCE); - return pTexture; -} - - -IAttachment * CTexture2D::GetAttachment () +IAttachment * CTexture2D::GetAttachment() { - return new CAttachment(texture()->getAttachment()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CTexture2D::SetAttachment (IAttachment* pAttachment) +void CTexture2D::SetAttachment(IAttachment* pAttachment) { - NMR::PModelAttachment attachment = texture()->getModel()->findModelAttachment(pAttachment->GetPath()); - texture()->setAttachment(attachment); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -eLib3MFTextureType CTexture2D::GetContentType () +Lib3MF::eTextureType CTexture2D::GetContentType() { - return (eLib3MFTextureType)(texture()->getContentType()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CTexture2D::SetContentType (const eLib3MFTextureType eContentType) +void CTexture2D::SetContentType(const Lib3MF::eTextureType eContentType) { - texture()->setContentType(NMR::eModelTexture2DType(eContentType)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CTexture2D::GetTileStyleUV (eLib3MFTextureTileStyle & eTileStyleU, eLib3MFTextureTileStyle & eTileStyleV) +void CTexture2D::GetTileStyleUV(Lib3MF::eTextureTileStyle & eTileStyleU, Lib3MF::eTextureTileStyle & eTileStyleV) { - eTileStyleU = eLib3MFTextureTileStyle(texture()->getTileStyleU()); - eTileStyleV = eLib3MFTextureTileStyle(texture()->getTileStyleV()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CTexture2D::SetTileStyleUV (const eLib3MFTextureTileStyle eTileStyleU, const eLib3MFTextureTileStyle eTileStyleV) +void CTexture2D::SetTileStyleUV(const Lib3MF::eTextureTileStyle eTileStyleU, const Lib3MF::eTextureTileStyle eTileStyleV) { - texture()->setTileStyleU(NMR::eModelTextureTileStyle(eTileStyleU)); - texture()->setTileStyleV(NMR::eModelTextureTileStyle(eTileStyleV)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -eLib3MFTextureFilter CTexture2D::GetFilter () +Lib3MF::eTextureFilter CTexture2D::GetFilter() { - return eLib3MFTextureFilter(texture()->getFilter()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CTexture2D::SetFilter (const eLib3MFTextureFilter eFilter) +void CTexture2D::SetFilter(const Lib3MF::eTextureFilter eFilter) { - texture()->setFilter(NMR::eModelTextureFilter(eFilter)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_texture2dgroup.cpp b/Source/API/lib3mf_texture2dgroup.cpp index 4e626f2a..503d701b 100644 --- a/Source/API/lib3mf_texture2dgroup.cpp +++ b/Source/API/lib3mf_texture2dgroup.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -32,7 +32,7 @@ Abstract: This is a stub class definition of CTexture2DGroup #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_texture2d.hpp" + using namespace Lib3MF::Impl; @@ -40,67 +40,33 @@ using namespace Lib3MF::Impl; Class definition of CTexture2DGroup **************************************************************************************************************************/ -NMR::CModelTexture2DGroupResource& CTexture2DGroup::texture2DGroup() -{ - NMR::CModelTexture2DGroupResource* pTexture2dGroup = dynamic_cast(resource().get()); - if (pTexture2dGroup == nullptr) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDTEXTURE2DGROUP); - return *pTexture2dGroup; -} - -CTexture2DGroup::CTexture2DGroup(NMR::PModelTexture2DGroupResource pResource) - : CResource(std::static_pointer_cast(pResource)) -{ - -} - -ITexture2D * CTexture2DGroup::GetTexture2D() +Lib3MF_uint32 CTexture2DGroup::GetCount() { - return new CTexture2D(texture2DGroup().getTexture2D()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CTexture2DGroup::GetCount () +void CTexture2DGroup::GetAllPropertyIDs(Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) { - return texture2DGroup().getCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CTexture2DGroup::GetAllPropertyIDs (Lib3MF_uint64 nPropertyIDsBufferSize, Lib3MF_uint64* pPropertyIDsNeededCount, Lib3MF_uint32 * pPropertyIDsBuffer) +Lib3MF_uint32 CTexture2DGroup::AddTex2Coord(const Lib3MF::sTex2Coord UVCoordinate) { - Lib3MF_uint32 nCount = texture2DGroup().getCount(); - - if (pPropertyIDsNeededCount) - *pPropertyIDsNeededCount = nCount; - - if (nPropertyIDsBufferSize >= nCount && pPropertyIDsBuffer) { - if (!texture2DGroup().hasResourceIndexMap()) { - texture2DGroup().buildResourceIndexMap(); - } - for (Lib3MF_uint32 i = 0; i < nCount; i++) { - DWORD nPropertyID; - if (texture2DGroup().mapResourceIndexToPropertyID(i, nPropertyID)) { - *pPropertyIDsBuffer = nPropertyID; - } - else { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDRESOURCEINDEX); - } - pPropertyIDsBuffer++; - } - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CTexture2DGroup::AddTex2Coord (const sLib3MFTex2Coord UVCoordinate) +Lib3MF::sTex2Coord CTexture2DGroup::GetTex2Coord(const Lib3MF_uint32 nPropertyID) { - return texture2DGroup().addUVCoordinate(NMR::MODELTEXTURE2DCOORDINATE({ UVCoordinate.m_U, UVCoordinate.m_V })); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -sLib3MFTex2Coord CTexture2DGroup::GetTex2Coord (const Lib3MF_uint32 nPropertyID) +void CTexture2DGroup::RemoveTex2Coord(const Lib3MF_uint32 nPropertyID) { - NMR::MODELTEXTURE2DCOORDINATE coord = texture2DGroup().getUVCoordinate(nPropertyID); - return sLib3MFTex2Coord({ coord.m_dU, coord.m_dV}); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CTexture2DGroup::RemoveTex2Coord(const Lib3MF_uint32 nPropertyID) +ITexture2D * CTexture2DGroup::GetTexture2D() { - texture2DGroup().removePropertyID(nPropertyID); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_texture2dgroupiterator.cpp b/Source/API/lib3mf_texture2dgroupiterator.cpp index e5ee0a2e..d66cfea3 100644 --- a/Source/API/lib3mf_texture2dgroupiterator.cpp +++ b/Source/API/lib3mf_texture2dgroupiterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -24,28 +24,24 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Abstract: This is a stub class definition of CTexture2DIterator +Abstract: This is a stub class definition of CTexture2DGroupIterator */ #include "lib3mf_texture2dgroupiterator.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_texture2dgroup.hpp" + // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CTexture2DIterator + Class definition of CTexture2DGroupIterator **************************************************************************************************************************/ ITexture2DGroup * CTexture2DGroupIterator::GetCurrentTexture2DGroup() { - // Create specific API class - return new CTexture2DGroup(std::dynamic_pointer_cast(GetCurrentResource())); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IResource * CTexture2DGroupIterator::GetCurrent() -{ - return GetCurrentTexture2DGroup(); -} diff --git a/Source/API/lib3mf_texture2diterator.cpp b/Source/API/lib3mf_texture2diterator.cpp index 58408e7c..14f2ec47 100644 --- a/Source/API/lib3mf_texture2diterator.cpp +++ b/Source/API/lib3mf_texture2diterator.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -30,7 +30,6 @@ Abstract: This is a stub class definition of CTexture2DIterator #include "lib3mf_texture2diterator.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_texture2d.hpp" // Include custom headers here. @@ -41,14 +40,8 @@ using namespace Lib3MF::Impl; Class definition of CTexture2DIterator **************************************************************************************************************************/ -ITexture2D * CTexture2DIterator::GetCurrentTexture2D () +ITexture2D * CTexture2DIterator::GetCurrentTexture2D() { - // Create specific API class - return new CTexture2D(std::dynamic_pointer_cast(GetCurrentResource())); -} - -IResource * CTexture2DIterator::GetCurrent() -{ - return GetCurrentTexture2D(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_transposenode.cpp b/Source/API/lib3mf_transposenode.cpp index ae4705ea..880f8197 100644 --- a/Source/API/lib3mf_transposenode.cpp +++ b/Source/API/lib3mf_transposenode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,9 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CTransposeNode **************************************************************************************************************************/ -Lib3MF::Impl::CTransposeNode::CTransposeNode( - NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_twoinputnode.cpp b/Source/API/lib3mf_twoinputnode.cpp index ae97e136..b1e4a37e 100644 --- a/Source/API/lib3mf_twoinputnode.cpp +++ b/Source/API/lib3mf_twoinputnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -42,13 +42,6 @@ using namespace Lib3MF::Impl; IImplicitPort * CTwoInputNode::GetInputB() { - return FindInput("B"); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - -Lib3MF::Impl::CTwoInputNode::CTwoInputNode( - NMR::PModelImplicitNode pImplicitNode) - : COneInputNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_unsignedmeshnode.cpp b/Source/API/lib3mf_unsignedmeshnode.cpp index 6d0f9a93..369180ce 100644 --- a/Source/API/lib3mf_unsignedmeshnode.cpp +++ b/Source/API/lib3mf_unsignedmeshnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -39,25 +39,19 @@ using namespace Lib3MF::Impl; /************************************************************************************************************************* Class definition of CUnsignedMeshNode **************************************************************************************************************************/ -CUnsignedMeshNode:: - CUnsignedMeshNode(NMR::PModelImplicitNode pImplicitNode) - : CImplicitNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} IImplicitPort * CUnsignedMeshNode::GetInputMesh() { - return FindInputOrThrow(NMR::InputNames::mesh); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CUnsignedMeshNode::GetInputPos() { - return FindInputOrThrow(NMR::InputNames::pos); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IImplicitPort * CUnsignedMeshNode::GetOutputDistance() { - return FindOutputOrThrow(NMR::OutputNames::distance); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } diff --git a/Source/API/lib3mf_vectorfromscalarnode.cpp b/Source/API/lib3mf_vectorfromscalarnode.cpp index 2f313a75..8c270eaf 100644 --- a/Source/API/lib3mf_vectorfromscalarnode.cpp +++ b/Source/API/lib3mf_vectorfromscalarnode.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2023 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,9 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CVectorFromScalarNode **************************************************************************************************************************/ -CVectorFromScalarNode:: - CVectorFromScalarNode(NMR::PModelImplicitNode pImplicitNode) - : CImplicitNode{pImplicitNode} -{ - CImplicitNode::m_pImplicitNode = pImplicitNode; -} diff --git a/Source/API/lib3mf_volumedata.cpp b/Source/API/lib3mf_volumedata.cpp index adac4da5..e650ddba 100644 --- a/Source/API/lib3mf_volumedata.cpp +++ b/Source/API/lib3mf_volumedata.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -31,14 +31,8 @@ Abstract: This is a stub class definition of CVolumeData #include "lib3mf_volumedata.hpp" #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_volumedataproperty.hpp" -#include "lib3mf_volumedatacolor.hpp" -#include "lib3mf_volumedatacomposite.hpp" - // Include custom headers here. -#include "Model/Classes/NMR_ModelMeshObject.h" -#include "Model/Classes/NMR_ModelResource.h" -#include "Model/Classes/NMR_ModelFunction.h" + using namespace Lib3MF::Impl; @@ -46,116 +40,53 @@ using namespace Lib3MF::Impl; Class definition of CVolumeData **************************************************************************************************************************/ - -CVolumeData::CVolumeData(NMR::PModelResource pResource) - : CResource(pResource) -{ - if (!pResource.get()) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - - m_pVolumeData = std::dynamic_pointer_cast(pResource); - if (!m_pVolumeData) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); -} - - IVolumeDataComposite * CVolumeData::GetComposite() { - auto pComposite = m_pVolumeData->getComposite(); - if (!pComposite) { - return nullptr; - } - return new CVolumeDataComposite(pComposite); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IVolumeDataComposite * CVolumeData::CreateNewComposite() { - auto pComposite = m_pVolumeData->createComposite(); - if (!pComposite) { - return nullptr; - } - return new CVolumeDataComposite(pComposite); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CVolumeData::RemoveComposite() { - m_pVolumeData->removeComposite(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IVolumeDataColor * CVolumeData::GetColor() { - auto pColor = m_pVolumeData->getColor(); - if (!pColor) { - return nullptr; - } - return new CVolumeDataColor(pColor); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + +IVolumeDataColor * CVolumeData::CreateNewColor(IFunction* pTheFunction) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CVolumeData::RemoveColor() { - m_pVolumeData->removeColor(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_uint32 CVolumeData::GetPropertyCount() { - return m_pVolumeData->getPropertyCount(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } IVolumeDataProperty * CVolumeData::GetProperty(const Lib3MF_uint32 nIndex) { - NMR::PVolumeDataProperty pProperty = m_pVolumeData->getProperty(nIndex); - if (!pProperty) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - return new CVolumeDataProperty(pProperty); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CVolumeData::RemoveProperty(const Lib3MF_uint32 nIndex) +IVolumeDataProperty * CVolumeData::AddPropertyFromFunction(const std::string & sName, IFunction* pTheFunction) { - auto pProperty = m_pVolumeData->getProperty(nIndex); - if (!pProperty) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - m_pVolumeData->removeProperty(pProperty->getName()); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } - -IVolumeDataColor* Lib3MF::Impl::CVolumeData::CreateNewColor( - IFunction* pTheFunction) +void CVolumeData::RemoveProperty(const Lib3MF_uint32 nIndex) { - NMR::CModel* pModel = m_pVolumeData->getModel(); - - NMR::PModelResource pResource = pModel->findResource(pTheFunction->GetUniqueResourceID()); - NMR::PModelFunction pFunction = std::dynamic_pointer_cast(pResource); - - if (!pFunction) - { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - - NMR::PVolumeDataColor pColor = m_pVolumeData->createColor(pFunction); - if(!pColor) - { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - return new CVolumeDataColor(pColor); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -IVolumeDataProperty * Lib3MF::Impl::CVolumeData::AddPropertyFromFunction(const std::string & sName, IFunction * pTheFunction) -{ - NMR::CModel* pModel = m_pVolumeData->getModel(); - - NMR::PModelResource pResource = pModel->findResource(pTheFunction->GetUniqueResourceID()); - NMR::PModelFunction pFunction = std::dynamic_pointer_cast(pResource); - - if (!pFunction) - { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - - NMR::PVolumeDataProperty pProperty = m_pVolumeData->addProperty(sName, pFunction); - if(!pProperty) - { - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - } - return new CVolumeDataProperty(pProperty); -} diff --git a/Source/API/lib3mf_volumedatacolor.cpp b/Source/API/lib3mf_volumedatacolor.cpp index f6c6c2ac..2b8f2967 100644 --- a/Source/API/lib3mf_volumedatacolor.cpp +++ b/Source/API/lib3mf_volumedatacolor.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,9 +40,3 @@ using namespace Lib3MF::Impl; Class definition of CVolumeDataColor **************************************************************************************************************************/ -CVolumeDataColor::CVolumeDataColor(NMR::PVolumeDataColor pColor) - : CFunctionReference(pColor) -{ - -} - diff --git a/Source/API/lib3mf_volumedatacomposite.cpp b/Source/API/lib3mf_volumedatacomposite.cpp index 0a73086f..98d2131e 100644 --- a/Source/API/lib3mf_volumedatacomposite.cpp +++ b/Source/API/lib3mf_volumedatacomposite.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -33,25 +33,13 @@ Abstract: This is a stub class definition of CVolumeDataComposite // Include custom headers here. + using namespace Lib3MF::Impl; /************************************************************************************************************************* Class definition of CVolumeDataComposite **************************************************************************************************************************/ -CVolumeDataComposite::CVolumeDataComposite(NMR::PVolumeDataComposite pComposite): - m_pVolumeDataComposite(pComposite) -{ - -} - -NMR::PVolumeDataComposite CVolumeDataComposite::volumeDataComposite() -{ - if (!m_pVolumeDataComposite) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - return m_pVolumeDataComposite; -} - IBaseMaterialGroup * CVolumeDataComposite::GetBaseMaterialGroup() { throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); diff --git a/Source/API/lib3mf_volumedataproperty.cpp b/Source/API/lib3mf_volumedataproperty.cpp index 68f2fceb..5d613a29 100644 --- a/Source/API/lib3mf_volumedataproperty.cpp +++ b/Source/API/lib3mf_volumedataproperty.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -40,30 +40,18 @@ using namespace Lib3MF::Impl; Class definition of CVolumeDataProperty **************************************************************************************************************************/ -CVolumeDataProperty::CVolumeDataProperty(NMR::PVolumeDataProperty pProperty) - : CFunctionReference(pProperty) -{ -} - -NMR::PVolumeDataProperty CVolumeDataProperty::asVolumeDataProperty() -{ - NMR::PVolumeDataProperty pProperty = std::dynamic_pointer_cast(m_pFunctionReference); - if (pProperty) - return pProperty; - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); -} - std::string CVolumeDataProperty::GetName() { - return asVolumeDataProperty()->getName(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CVolumeDataProperty::SetIsRequired(const bool bIsRequired) { - asVolumeDataProperty()->setIsRequired(bIsRequired); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } bool CVolumeDataProperty::IsRequired() { - return asVolumeDataProperty()->isRequired(); -} \ No newline at end of file + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} + diff --git a/Source/API/lib3mf_writer.cpp b/Source/API/lib3mf_writer.cpp index 27d4ac9b..e88206d6 100644 --- a/Source/API/lib3mf_writer.cpp +++ b/Source/API/lib3mf_writer.cpp @@ -1,6 +1,6 @@ /*++ -Copyright (C) 2019 3MF Consortium (Original Author) +Copyright (C) 2024 3MF Consortium (Original Author) All rights reserved. @@ -29,20 +29,9 @@ Abstract: This is a stub class definition of CWriter */ #include "lib3mf_writer.hpp" - -// Include custom headers here. #include "lib3mf_interfaceexception.hpp" -#include "lib3mf_accessright.hpp" -#include "lib3mf_contentencryptionparams.hpp" -#include "Common/Platform/NMR_Platform.h" -#include "Common/Platform/NMR_ExportStream_Callback.h" -#include "Common/Platform/NMR_ExportStream_Memory.h" -#include "Common/Platform/NMR_ExportStream_Dummy.h" -#include "Common/NMR_SecureContentTypes.h" -#include "Common/NMR_SecureContext.h" -#include "Model/Classes/NMR_KeyStore.h" -#include "Common/NMR_ModelWarnings.h" +// Include custom headers here. using namespace Lib3MF::Impl; @@ -51,221 +40,68 @@ using namespace Lib3MF::Impl; Class definition of CWriter **************************************************************************************************************************/ -CWriter::CWriter(std::string sWriterClass, NMR::PModel model) +void CWriter::WriteToFile(const std::string & sFilename) { - m_pWriter = nullptr; - - // Create specified writer instance - if (sWriterClass.compare("3mf") == 0) { - m_pWriter = std::make_shared(model); - } - else if (sWriterClass.compare("stl") == 0) { - m_pWriter = std::make_shared(model); - } - - if (!m_pWriter) - throw ELib3MFInterfaceException(LIB3MF_ERROR_WRITERCLASSUNKNOWN); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -NMR::CModelWriter& CWriter::writer() +Lib3MF_uint64 CWriter::GetStreamSize() { - return *m_pWriter; + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CWriter::WriteToFile (const std::string & sFilename) -{ - setlocale(LC_ALL, "C"); - NMR::PExportStream pStream = NMR::fnCreateExportStreamInstance(sFilename.c_str()); - try { - writer().exportToStream(pStream); - } - catch (NMR::CNMRException&e) { - if (e.getErrorCode() == NMR_USERABORTED) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_CALCULATIONABORTED); - } else if (e.getErrorCode() == NMR_ERROR_DEKDESCRIPTORNOTFOUND - || e.getErrorCode() == NMR_ERROR_KEKDESCRIPTORNOTFOUND) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_SECURECONTEXTNOTREGISTERED); - } else throw e; - } -} - -Lib3MF_uint64 CWriter::GetStreamSize () -{ - // Write to a special dummy stream just to calculate the size - NMR::PExportStreamDummy pStream = std::make_shared(); - try { - writer().exportToStream(pStream); - } - catch (NMR::CNMRException&e) { - if (e.getErrorCode() == NMR_USERABORTED) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_CALCULATIONABORTED); - } else if (e.getErrorCode() == NMR_ERROR_DEKDESCRIPTORNOTFOUND - || e.getErrorCode() == NMR_ERROR_KEKDESCRIPTORNOTFOUND) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_SECURECONTEXTNOTREGISTERED); - } else throw e; - } - - return pStream->getDataSize(); -} - -#include - void CWriter::WriteToBuffer(Lib3MF_uint64 nBufferBufferSize, Lib3MF_uint64* pBufferNeededCount, Lib3MF_uint8 * pBufferBuffer) { - NMR::PExportStreamMemory pStream; - if (!momentBuffer || momentBuffer->getDataSize() > nBufferBufferSize) { - pStream = std::make_shared(); - try { - writer().exportToStream(pStream); - } catch (NMR::CNMRException&e) { - if (e.getErrorCode() == NMR_USERABORTED) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_CALCULATIONABORTED); - } else if (e.getErrorCode() == NMR_ERROR_DEKDESCRIPTORNOTFOUND - || e.getErrorCode() == NMR_ERROR_KEKDESCRIPTORNOTFOUND) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_SECURECONTEXTNOTREGISTERED); - } else throw e; - } - } else { - pStream = momentBuffer; - } - - Lib3MF_uint64 cbStreamSize = pStream->getDataSize(); - if (pBufferNeededCount) - *pBufferNeededCount = cbStreamSize; - - if (nBufferBufferSize >= cbStreamSize) { - // TODO eliminate this copy, perhaps by allowing CExportStreamMemory to use existing buffers - memcpy(pBufferBuffer, pStream->getData(), static_cast(cbStreamSize)); - momentBuffer.reset(); - } else { - momentBuffer = pStream; - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CWriter::WriteToCallback(const Lib3MFWriteCallback pTheWriteCallback, const Lib3MFSeekCallback pTheSeekCallback, const Lib3MF_pvoid pUserData) +void CWriter::WriteToCallback(const Lib3MF::WriteCallback pTheWriteCallback, const Lib3MF::SeekCallback pTheSeekCallback, const Lib3MF_pvoid pUserData) { - NMR::ExportStream_WriteCallbackType lambdaWriteCallback = - [pTheWriteCallback](NMR::nfByte* pData, NMR::nfUint64 cbBytes, void* pUserData) - { - (*pTheWriteCallback)(reinterpret_cast(pData), cbBytes, pUserData ); - return 0; - }; - - NMR::ExportStream_SeekCallbackType lambdaSeekCallback = - [pTheSeekCallback](NMR::nfUint64 nPosition, void* pUserData) - { - (*pTheSeekCallback)(nPosition, pUserData); - return 0; - }; - - NMR::PExportStream pStream = std::make_shared(lambdaWriteCallback, lambdaSeekCallback, pUserData); - try { - writer().exportToStream(pStream); - } - catch (NMR::CNMRException&e) { - if (e.getErrorCode() == NMR_USERABORTED) { - throw ELib3MFInterfaceException(LIB3MF_ERROR_CALCULATIONABORTED); - } - else throw e; - } + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CWriter::SetProgressCallback(const Lib3MFProgressCallback callback, const Lib3MF_pvoid pUserData) +void CWriter::SetProgressCallback(const Lib3MF::ProgressCallback pProgressCallback, const Lib3MF_pvoid pUserData) { - NMR::Lib3MFProgressCallback lambdaCallback = - [callback](int progressStep, NMR::ProgressIdentifier identifier, void* pUserData) - { - bool ret; - (*callback)(&ret, progressStep /100.0f, eLib3MFProgressIdentifier(identifier), pUserData); - return ret; - }; - m_pWriter->SetProgressCallback(lambdaCallback, reinterpret_cast(pUserData)); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } Lib3MF_uint32 CWriter::GetDecimalPrecision() { - return m_pWriter->GetDecimalPrecision(); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } void CWriter::SetDecimalPrecision(const Lib3MF_uint32 nDecimalPrecision) { - m_pWriter->SetDecimalPrecision(nDecimalPrecision); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void Lib3MF::Impl::CWriter::AddKeyWrappingCallback(const std::string & sConsumerID, const Lib3MF::KeyWrappingCallback pTheCallback, const Lib3MF_pvoid pUserData){ - NMR::KeyWrappingDescriptor descriptor; - descriptor.m_sKekDecryptData.m_pUserData = pUserData; - descriptor.m_fnWrap = - [this, pTheCallback]( - std::vector const & plain, - std::vector & cipher, - NMR::KeyWrappingContext & ctx) { - - std::shared_ptr pAccessRight = std::make_shared(ctx.m_pAccessRight); - IBase * pBaseEntity(nullptr); - pBaseEntity = pAccessRight.get(); - Lib3MF_AccessRight entityHandle = pBaseEntity; - - Lib3MF_uint64 needed = 0; - Lib3MF_uint64 result = 0; - (*pTheCallback)(entityHandle, plain.size(), plain.data(), 0, - &needed, nullptr, ctx.m_pUserData, &result); - if (result == 0) - throw ELib3MFInterfaceException(LIB3MF_ERROR_CALCULATIONABORTED); - - if (needed > LIB3MF_WRITER_MAXKEYSIZE) - throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDKEYSIZE); - cipher.resize((size_t)needed, 0); +void CWriter::SetStrictModeActive(const bool bStrictModeActive) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); +} - result = 0; - (*pTheCallback)(entityHandle, plain.size(), plain.data(), plain.size(), - nullptr, cipher.data(), ctx.m_pUserData, &result); - if (result == 0) - throw ELib3MFInterfaceException(LIB3MF_ERROR_CALCULATIONABORTED); - return (NMR::nfUint64)result; - }; - writer().secureContext()->addKekCtx(sConsumerID, descriptor); +bool CWriter::GetStrictModeActive() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void Lib3MF::Impl::CWriter::SetContentEncryptionCallback(const Lib3MF::ContentEncryptionCallback pTheCallback, const Lib3MF_pvoid pUserData) +std::string CWriter::GetWarning(const Lib3MF_uint32 nIndex, Lib3MF_uint32 & nErrorCode) { - NMR::ContentEncryptionDescriptor descriptor; - descriptor.m_sDekDecryptData.m_pUserData = pUserData; - descriptor.m_fnCrypt = [this, pTheCallback]( - NMR::nfUint64 size, - NMR::nfByte const * plain, - NMR::nfByte * cipher, - NMR::ContentEncryptionContext & ctx) { - std::shared_ptr pCekParams = std::make_shared(ctx.m_sParams); - IBase * pBaseEntity(nullptr); - pBaseEntity = pCekParams.get(); - Lib3MF_ContentEncryptionParams entityHandle = pBaseEntity; - Lib3MF_uint64 result = 0; - (*pTheCallback)(entityHandle, (Lib3MF_uint64)size, plain, (Lib3MF_uint64)size, nullptr, cipher, ctx.m_pUserData, &result); - if (result == 0) - throw ELib3MFInterfaceException(LIB3MF_ERROR_CALCULATIONABORTED); - return (NMR::nfUint64)result; - }; - m_pWriter->secureContext()->setDekCtx(descriptor); + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -void CWriter::SetStrictModeActive(const bool bStrictModeActive) { - if (bStrictModeActive) - writer().warnings()->setCriticalWarningLevel(NMR::mrwInvalidOptionalValue); - else - writer().warnings()->setCriticalWarningLevel(NMR::mrwFatal); +Lib3MF_uint32 CWriter::GetWarningCount() +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -bool CWriter::GetStrictModeActive() { - return writer().warnings()->getCriticalWarningLevel() == NMR::mrwInvalidOptionalValue; +void CWriter::AddKeyWrappingCallback(const std::string & sConsumerID, const Lib3MF::KeyWrappingCallback pTheCallback, const Lib3MF_pvoid pUserData) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -std::string CWriter::GetWarning(const Lib3MF_uint32 nIndex, Lib3MF_uint32 & nErrorCode) { - auto warning = writer().warnings()->getWarning(nIndex); - nErrorCode = warning->getErrorCode(); - return warning->getMessage(); +void CWriter::SetContentEncryptionCallback(const Lib3MF::ContentEncryptionCallback pTheCallback, const Lib3MF_pvoid pUserData) +{ + throw ELib3MFInterfaceException(LIB3MF_ERROR_NOTIMPLEMENTED); } -Lib3MF_uint32 CWriter::GetWarningCount() { - return writer().warnings()->getWarningCount(); -} \ No newline at end of file