mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-21 10:28:44 -05:00
Update branch to work with changes in develop
This commit is contained in:
@@ -44,6 +44,8 @@
|
||||
#include <openspace/util/factorymanager.h>
|
||||
#include <openspace/util/task.h>
|
||||
#include <openspace/scene/translation.h>
|
||||
#include <openspace/scene/rotation.h>
|
||||
#include <openspace/scene/scale.h>
|
||||
#include <openspace/engine/moduleengine.h>
|
||||
|
||||
namespace {
|
||||
@@ -80,6 +82,16 @@ int main(int argc, char** argv) {
|
||||
"Translation"
|
||||
);
|
||||
|
||||
FactoryManager::ref().addFactory(
|
||||
std::make_unique<ghoul::TemplateFactory<Rotation>>(),
|
||||
"Rotation"
|
||||
);
|
||||
|
||||
FactoryManager::ref().addFactory(
|
||||
std::make_unique<ghoul::TemplateFactory<Scale>>(),
|
||||
"Scale"
|
||||
);
|
||||
|
||||
openspace::ConfigurationManager configuration;
|
||||
std::string configurationFile = configuration.findConfiguration(ConfigurationFile);
|
||||
configuration.loadFromFile(configurationFile);
|
||||
|
||||
@@ -29,22 +29,36 @@
|
||||
|
||||
namespace openspace {
|
||||
|
||||
/*MilkywayConversionTask::MilkywayConversionTask(
|
||||
const std::string& inFilenamePrefix,
|
||||
const std::string& inFilenameSuffix,
|
||||
size_t inFirstIndex,
|
||||
size_t inNSlices,
|
||||
const std::string& outFilename,
|
||||
const glm::ivec3& outDimensions)
|
||||
: _inFilenamePrefix(inFilenamePrefix)
|
||||
, _inFilenameSuffix(inFilenameSuffix)
|
||||
, _inFirstIndex(inFirstIndex)
|
||||
, _inNSlices(inNSlices)
|
||||
, _outFilename(outFilename)
|
||||
, _outDimensions(outDimensions) {}*/
|
||||
|
||||
|
||||
MilkywayConversionTask::MilkywayConversionTask(const ghoul::Dictionary& dictionary) {
|
||||
std::string inFilenamePrefix;
|
||||
if (dictionary.getValue("InFilenamePrefix", inFilenamePrefix)) {
|
||||
_inFilenamePrefix = inFilenamePrefix;
|
||||
}
|
||||
|
||||
std::string inFilenamePrefix;
|
||||
if (dictionary.getValue("InFilenameSuffix", inFilenameSuffix)) {
|
||||
_inFilenameSuffix = inFilenameSuffix;
|
||||
}
|
||||
|
||||
size_t inFirstIndex;
|
||||
if (dictionary.getValue("InFirstIndex", inFirstIndex)) {
|
||||
_inFirstIndex = inFirstIndex;
|
||||
}
|
||||
|
||||
size_t inNSlices;
|
||||
if (dictionary.getValue("InNSlices", inNSlices)) {
|
||||
_inNSlices = inNSlices;
|
||||
}
|
||||
|
||||
std::string outFilename;
|
||||
if (dictionary.getValue("OutFilename", outFilename)) {
|
||||
_outFilename = outFilename;
|
||||
}
|
||||
|
||||
glm::ivec3 outDimensions;
|
||||
if (dictionary.getValue("OutDimensions", outDimensions)) {
|
||||
_outDimensions = outDimensions;
|
||||
}
|
||||
}
|
||||
|
||||
MilkywayConversionTask::~MilkywayConversionTask() {}
|
||||
|
||||
Reference in New Issue
Block a user