mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-27 14:39:20 -06:00
Feature/time frame (#642)
* First implementation of time frames * Add TimeFrameUnion. Only show solar system 1850-2150. * Consider dependencies when determining whether time frame is active * Code review fixes.
This commit is contained in:
@@ -50,6 +50,7 @@
|
||||
#include <openspace/scene/scene.h>
|
||||
#include <openspace/scene/rotation.h>
|
||||
#include <openspace/scene/scale.h>
|
||||
#include <openspace/scene/timeframe.h>
|
||||
#include <openspace/scene/sceneinitializer.h>
|
||||
#include <openspace/scene/translation.h>
|
||||
#include <openspace/scripting/scriptscheduler.h>
|
||||
@@ -202,6 +203,10 @@ OpenSpaceEngine::OpenSpaceEngine(std::string programName,
|
||||
std::make_unique<ghoul::TemplateFactory<Scale>>(),
|
||||
"Scale"
|
||||
);
|
||||
FactoryManager::ref().addFactory(
|
||||
std::make_unique<ghoul::TemplateFactory<TimeFrame>>(),
|
||||
"TimeFrame"
|
||||
);
|
||||
FactoryManager::ref().addFactory(
|
||||
std::make_unique<ghoul::TemplateFactory<Task>>(),
|
||||
"Task"
|
||||
|
||||
Reference in New Issue
Block a user