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

Method LoadAll

code/Common/BaseImporter.cpp:624–650  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

622
623// ------------------------------------------------------------------------------------------------
624void BatchLoader::LoadAll() {
625 // no threaded implementation for the moment
626 for (LoadReqIt it = m_data->requests.begin(); it != m_data->requests.end(); ++it) {
627 // force validation in debug builds
628 unsigned int pp = (*it).flags;
629 if (m_data->validate) {
630 pp |= aiProcess_ValidateDataStructure;
631 }
632
633 // setup config properties if necessary
634 ImporterPimpl *pimpl = m_data->pImporter->Pimpl();
635 pimpl->mFloatProperties = (*it).map.floats;
636 pimpl->mIntProperties = (*it).map.ints;
637 pimpl->mStringProperties = (*it).map.strings;
638 pimpl->mMatrixProperties = (*it).map.matrices;
639
640 if (!DefaultLogger::isNullLogger()) {
641 ASSIMP_LOG_INFO("%%% BEGIN EXTERNAL FILE %%%");
642 ASSIMP_LOG_INFO("File: ", (*it).file);
643 }
644 m_data->pImporter->ReadFile((*it).file, pp);
645 (*it).scene = m_data->pImporter->GetOrphanedScene();
646 (*it).loaded = true;
647
648 ASSIMP_LOG_INFO("%%% END EXTERNAL FILE %%%");
649 }
650}

Callers 3

InternReadFileMethod · 0.80
ReadMultipartFileMethod · 0.80
InternReadFileMethod · 0.80

Calls 4

GetOrphanedSceneMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
ReadFileMethod · 0.45

Tested by

no test coverage detected