mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-14 07:49:35 -06:00
More cleanup of Gui code
Added IswaGroup properties to the iSWA properties list Enable sorting the performance measurements by total time
This commit is contained in:
@@ -70,6 +70,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef OPENSPACE_MODULE_ISWA_ENABLED
|
||||
#include <modules/iswa/rendering/iswagroup.h>
|
||||
#include <modules/iswa/util/iswamanager.h>
|
||||
#endif
|
||||
|
||||
@@ -458,7 +459,23 @@ bool OpenSpaceEngine::initialize() {
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
#ifdef OPENSPACE_MODULE_ISWA_ENABLED
|
||||
OsEng.gui()._iswa.setSource(
|
||||
[&]() {
|
||||
const auto& groups = IswaManager::ref().groups();
|
||||
std::vector<properties::PropertyOwner*> res;
|
||||
std::transform(
|
||||
groups.begin(),
|
||||
groups.end(),
|
||||
std::back_inserter(res),
|
||||
[](const auto& val) {
|
||||
return val.second.get();
|
||||
}
|
||||
);
|
||||
return res;
|
||||
}
|
||||
);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user