mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-08 04:31:08 -06:00
Compile fixes related to change in documentation namespace
Configuration fix, making the default scene default again
This commit is contained in:
@@ -23,19 +23,21 @@
|
||||
****************************************************************************************/
|
||||
|
||||
#include <modules/galaxy/tasks/milkywayconversiontask.h>
|
||||
|
||||
#include <modules/volume/textureslicevolumereader.h>
|
||||
#include <modules/volume/rawvolumewriter.h>
|
||||
#include <modules/volume/volumesampler.h>
|
||||
|
||||
namespace {
|
||||
char* KeyInFilenamePrefix = "InFilenamePrefix";
|
||||
char* KeyInFilenameSuffix = "InFilenameSuffix";
|
||||
char* KeyInFirstIndex = "InFirstIndex";
|
||||
char* KeyInNSlices = "InNSlices";
|
||||
char* KeyOutFilename = "OutFilename";
|
||||
char* KeyOutDimensions = "OutDimensions";
|
||||
}
|
||||
#include <openspace/documentation/documentation.h>
|
||||
|
||||
namespace {
|
||||
const char* KeyInFilenamePrefix = "InFilenamePrefix";
|
||||
const char* KeyInFilenameSuffix = "InFilenameSuffix";
|
||||
const char* KeyInFirstIndex = "InFirstIndex";
|
||||
const char* KeyInNSlices = "InNSlices";
|
||||
const char* KeyOutFilename = "OutFilename";
|
||||
const char* KeyOutDimensions = "OutDimensions";
|
||||
} // namespace
|
||||
|
||||
namespace openspace {
|
||||
|
||||
@@ -45,7 +47,7 @@ MilkywayConversionTask::MilkywayConversionTask(const ghoul::Dictionary& dictiona
|
||||
_inFilenamePrefix = inFilenamePrefix;
|
||||
}
|
||||
|
||||
std::string inFilenamePrefix;
|
||||
std::string inFilenameSuffix;
|
||||
if (dictionary.getValue(KeyInFilenameSuffix, inFilenameSuffix)) {
|
||||
_inFilenameSuffix = inFilenameSuffix;
|
||||
}
|
||||
@@ -103,9 +105,9 @@ void MilkywayConversionTask::perform(const Task::ProgressCallback& progressCallb
|
||||
rawWriter.write(sampleFunction, progressCallback);
|
||||
}
|
||||
|
||||
Documentation MilkywayConversionTask::documentation()
|
||||
documentation::Documentation MilkywayConversionTask::documentation()
|
||||
{
|
||||
return Documentation();
|
||||
return documentation::Documentation();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -35,6 +35,8 @@
|
||||
|
||||
namespace openspace {
|
||||
|
||||
namespace documentation { struct Documentation; }
|
||||
|
||||
/**
|
||||
* Converts a set of exr image slices to a raw volume
|
||||
* with floating point RGBA data (32 bit per channel).
|
||||
@@ -45,7 +47,8 @@ public:
|
||||
virtual ~MilkywayConversionTask();
|
||||
std::string description() override;
|
||||
void perform(const Task::ProgressCallback& onProgress) override;
|
||||
static Documentation documentation();
|
||||
static documentation::Documentation documentation();
|
||||
|
||||
private:
|
||||
std::string _inFilenamePrefix;
|
||||
std::string _inFilenameSuffix;
|
||||
|
||||
@@ -23,9 +23,13 @@
|
||||
****************************************************************************************/
|
||||
|
||||
#include <modules/galaxy/tasks/milkywaypointsconversiontask.h>
|
||||
|
||||
#include <modules/volume/textureslicevolumereader.h>
|
||||
#include <modules/volume/rawvolumewriter.h>
|
||||
#include <modules/volume/volumesampler.h>
|
||||
|
||||
#include <openspace/documentation/documentation.h>
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
@@ -79,15 +83,15 @@ void MilkywayPointsConversionTask::perform(const Task::ProgressCallback & progre
|
||||
}
|
||||
|
||||
out.write(reinterpret_cast<char*>(&nPoints), sizeof(int64_t));
|
||||
out.write(reinterpret_cast<char*>(pointData), nFloats * sizeof(float));
|
||||
out.write(reinterpret_cast<char*>(pointData.data()), nFloats * sizeof(float));
|
||||
|
||||
in.close();
|
||||
out.close();
|
||||
}
|
||||
|
||||
Documentation MilkywayPointsConversionTask::documentation()
|
||||
documentation::Documentation MilkywayPointsConversionTask::documentation()
|
||||
{
|
||||
return Documentation();
|
||||
return documentation::Documentation();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -35,6 +35,8 @@
|
||||
|
||||
namespace openspace {
|
||||
|
||||
namespace documentation { struct Documentation; }
|
||||
|
||||
/**
|
||||
* Converts ascii based point data
|
||||
* int64_t n
|
||||
@@ -47,7 +49,8 @@ public:
|
||||
virtual ~MilkywayPointsConversionTask();
|
||||
std::string description() override;
|
||||
void perform(const Task::ProgressCallback& progressCallback) override;
|
||||
static Documentation documentation();
|
||||
static documentation::Documentation documentation();
|
||||
|
||||
private:
|
||||
std::string _inFilename;
|
||||
std::string _outFilename;
|
||||
|
||||
@@ -23,19 +23,20 @@ return {
|
||||
|
||||
-- Sets the scene that is to be loaded by OpenSpace. A scene file is a description
|
||||
-- of all entities that will be visible during an instance of OpenSpace
|
||||
Scene = "${SCENE}/volumes.scene",
|
||||
Task = "${TASKS}/default.task",
|
||||
Scene = "${SCENE}/default.scene",
|
||||
-- Scene = "${SCENE}/globebrowsing.scene",
|
||||
-- Scene = "${SCENE}/rosetta.scene",
|
||||
-- Scene = "${SCENE}/dawn.scene",
|
||||
-- Scene = "${SCENE}/newhorizons.scene",
|
||||
-- Scene = "${SCENE}/osirisrex.scene",
|
||||
|
||||
Task = "${TASKS}/default.task",
|
||||
|
||||
Paths = {
|
||||
SGCT = "${BASE_PATH}/config/sgct",
|
||||
SCRIPTS = "${BASE_PATH}/scripts",
|
||||
SHADERS = "${BASE_PATH}/shaders",
|
||||
OPENSPACE_DATA = "${BASE_PATH}/data",
|
||||
OPENSPACE_DATA = "${BASE_PATH}/data-minimal",
|
||||
SCENE = "${OPENSPACE_DATA}/scene",
|
||||
TASKS = "${OPENSPACE_DATA}/tasks",
|
||||
SPICE = "${OPENSPACE_DATA}/spice",
|
||||
|
||||
Reference in New Issue
Block a user