MCPcopy Create free account
hub / github.com/assimp/assimp / SetProgressHandler

Method SetProgressHandler

code/Common/Exporter.cpp:317–334  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

315
316// ------------------------------------------------------------------------------------------------
317void Exporter::SetProgressHandler(ProgressHandler* pHandler) {
318 ai_assert(nullptr != pimpl);
319
320 if ( nullptr == pHandler) {
321 // Release pointer in the possession of the caller
322 pimpl->mProgressHandler = new DefaultProgressHandler();
323 pimpl->mIsDefaultProgressHandler = true;
324 return;
325 }
326
327 if (pimpl->mProgressHandler == pHandler) {
328 return;
329 }
330
331 delete pimpl->mProgressHandler;
332 pimpl->mProgressHandler = pHandler;
333 pimpl->mIsDefaultProgressHandler = false;
334}
335
336// ------------------------------------------------------------------------------------------------
337const aiExportDataBlob* Exporter::ExportToBlob( const aiScene* pScene, const char* pFormatId,

Callers 3

ImportModelFunction · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected