mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-26 05:58:48 -05:00
Feature/dashboard (#431)
Merging Dashboard branch that introduces the Dashboard, DashboardItem and moves most of the screen rendering code into a component-based layout that can also be displayed as a screenspace renderable * Add Onscreen Dashboard * Add Dashboard class * Add DashboardItem classes and subclasses * Added font and fontsize customization to dashboarditems * Add default dashboard specifications to all scenes * Add tests.scene to test dashboard items * Add configuration options to DashboardItemDistance * Fix distance conversion to correctly use singular or plural values * Make DashboardItems unique when adding them to a dashboard * Correctly position test with different font sizes * Add Dashboard Item that enables spacing between other items * Add performance measurement to dashboard rendering * Add method to DashboardItemDistance that computes distance to surface * Add DashboardItemAngle that computes and prints the angle between three objects * Add DashboardItemInstruments that shows the instruments on New Horizons * Add ability to OpenSpaceModules to return a list of Luascripts defined by child objects * Make it possible for ScreenSpaceDashboard to work with its own dashboard or the main one
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
|
||||
#include <modules/spacecraftinstruments/spacecraftinstrumentsmodule.h>
|
||||
|
||||
#include <modules/spacecraftinstruments/dashboard/dashboarditeminstruments.h>
|
||||
|
||||
#include <modules/spacecraftinstruments/rendering/renderablecrawlingline.h>
|
||||
#include <modules/spacecraftinstruments/rendering/renderablefov.h>
|
||||
#include <modules/spacecraftinstruments/rendering/renderablemodelprojection.h>
|
||||
@@ -53,6 +55,11 @@ void SpacecraftInstrumentsModule::internalInitialize() {
|
||||
"Decoder"
|
||||
);
|
||||
|
||||
auto fDashboard = FactoryManager::ref().factory<DashboardItem>();
|
||||
ghoul_assert(fDashboard, "Dashboard factory was not created");
|
||||
|
||||
fDashboard->registerClass<DashboardItemInstruments>("DashboardItemInstruments");
|
||||
|
||||
auto fRenderable = FactoryManager::ref().factory<Renderable>();
|
||||
ghoul_assert(fRenderable, "No renderable factory existed");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user