assimp/code/AssetLib/FBX
Jan Krassnigg 1e93280f47 Infrastructure for reporting progress
This commit adds two classes:
* ProgressTracker
* ProgressScope

The first is for users to implement, and to instantiate when they desire
to get informed about the overall progress.

The second is to be added to all functions that may take a considerable
amount of time, such that they can report back how far along they are.

These are much more convenient to use than the existing ProgressHandler.
ProgressScope is designed such that it only requires "local knowledge"
about upcoming and finished work. Scopes are nested and combined to
form the final global progress.

The active ProgressTracker is stored in a thread_local pointer.
This is a consicius decision since in assimp there is often no 'context'
passed through. The ProgressTracker may be needed anywhere, and it would
be tedious and a huge change to pass it through to every function.
Therefore, using a thread_local variable makes it accessible everywhere,
without a major interface change. Since assimmp is single-threaded,
but may be run in parallel on multiple threads, a thread_local is a
good trade-off, in my opinion.

This change only adds few uses of ProgressScope, to generally show how
it would be used. Also for our use cases these where the most pressing
places to add progress reporting, so this already covers loading from FBX
files pretty well.
2023-08-01 14:06:12 +02:00
..
FBXAnimation.cpp Generate container for skeleton during FBX-Import 2022-04-28 21:12:26 +02:00
FBXBinaryTokenizer.cpp Merge branch 'master' into FlorianBorn71-SmallAllocationFixInFBXLoader 2023-05-15 14:28:46 +02:00
FBXCommon.h Fixed bug when exporting binary FBX 2022-12-08 14:59:25 +01:00
FBXCompileConfig.h Some minor findings 2022-04-19 23:37:16 +02:00
FBXConverter.cpp Infrastructure for reporting progress 2023-08-01 14:06:12 +02:00
FBXConverter.h Revert "FBXConverter : import FbxCamera correctly" 2023-04-05 12:19:39 +02:00
FBXDeformer.cpp bugfix remove duplicated data. 2023-03-04 16:25:56 +08:00
FBXDocument.cpp Merge branch 'SmallAllocationFixInFBXLoader' of https://github.com/FlorianBorn71/assimp into FlorianBorn71-SmallAllocationFixInFBXLoader 2023-05-15 09:30:57 +02:00
FBXDocument.h Changed #define FBX_FOV_UNKNOWN to const float kFovUnknown 2023-07-23 12:05:01 -07:00
FBXDocumentUtil.cpp Bugfix: fix not initialized member attributes 2022-05-21 19:08:43 +02:00
FBXDocumentUtil.h Apply various clang-tidy checks for smartprs and modern C++ types 2022-11-08 11:03:55 -05:00
FBXExportNode.cpp Fixed bug when exporting binary FBX 2022-12-08 14:59:25 +01:00
FBXExportNode.h Tidy Up Constructors and Destructors 2023-01-16 21:47:11 +01:00
FBXExportProperty.cpp Update copyrights 2022-01-10 21:13:43 +01:00
FBXExportProperty.h Update copyrights 2022-01-10 21:13:43 +01:00
FBXExporter.cpp Apply various clang-tidy checks for smartprs and modern C++ types 2022-11-08 11:03:55 -05:00
FBXExporter.h Update copyrights 2022-01-10 21:13:43 +01:00
FBXImportSettings.h First concepts 2022-04-05 20:07:22 +02:00
FBXImporter.cpp Infrastructure for reporting progress 2023-08-01 14:06:12 +02:00
FBXImporter.h First concepts 2022-04-05 20:07:22 +02:00
FBXMaterial.cpp Fix warning related to missing-variable-declarations, remove unused global variables. 2023-04-19 23:24:40 +08:00
FBXMeshGeometry.cpp bugfix remove duplicated data. 2023-03-04 16:25:56 +08:00
FBXMeshGeometry.h bugfix remove duplicated data. 2023-03-04 16:25:56 +08:00
FBXModel.cpp Fix missing members and do some small refactorings. 2022-03-09 10:51:37 +01:00
FBXNodeAttribute.cpp Generate container for skeleton during FBX-Import 2022-04-28 21:12:26 +02:00
FBXParser.cpp Merge branch 'master' into FlorianBorn71-SmallAllocationFixInFBXLoader 2023-05-15 14:28:46 +02:00
FBXParser.h Fix: Fix the build. 2023-05-15 11:02:58 +02:00
FBXProperties.cpp Explicitly default all empty dtors 2022-08-25 11:32:59 -04:00
FBXProperties.h Update copyrights 2022-01-10 21:13:43 +01:00
FBXTokenizer.cpp Merge branch 'master' into SmallAllocationFixInFBXLoader 2022-09-08 20:15:52 +02:00
FBXTokenizer.h Merge branch 'SmallAllocationFixInFBXLoader' of https://github.com/FlorianBorn71/assimp into FlorianBorn71-SmallAllocationFixInFBXLoader 2023-05-15 09:30:57 +02:00
FBXUtil.cpp Update copyrights 2022-01-10 21:13:43 +01:00
FBXUtil.h Proper destruction of individual objects 2022-04-20 16:11:09 +02:00