mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-24 21:19:46 -06:00
Add pseudo code for Loader
This commit is contained in:
committed by
Matthias Berg
parent
eda1df8b5b
commit
699b307e4a
@@ -30,6 +30,10 @@
|
||||
|
||||
namespace openspace {
|
||||
|
||||
/**
|
||||
* Own reader, writer, loader
|
||||
* Have functions like getDataItemList that gets list from reader
|
||||
*/
|
||||
class DataLoaderModule : public OpenSpaceModule {
|
||||
public:
|
||||
constexpr static const char* Name = "DataLoader";
|
||||
|
||||
@@ -22,3 +22,24 @@
|
||||
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
|
||||
****************************************************************************************/
|
||||
|
||||
#include <modules/dataloader/loader.h>
|
||||
|
||||
namespace openspace::dataloader {
|
||||
|
||||
Loader::Loader() : PropertyOwner({ "Loader" }) {};
|
||||
|
||||
void Loader::addInternalDataItemProperties() {
|
||||
// Get list of internal data items
|
||||
|
||||
// Iterate data items
|
||||
// Initialize trigger property with data item name (are they unique?)
|
||||
// Set onChange method to call loadDataItem with the path as argument
|
||||
// addProperty()
|
||||
}
|
||||
|
||||
// addDataItemProperty();
|
||||
// removeDataItemProperties();
|
||||
// loadDataItem(std::string absPathToItem);
|
||||
// createVolumeDataItem(std::string absPath);
|
||||
|
||||
}
|
||||
|
||||
@@ -45,6 +45,8 @@ class Loader : public properties::PropertyOwner {
|
||||
// Load a data item with an abs path to the item under its data type subfolder in data/.internal
|
||||
void loadDataItem(std::string absPathToItem);
|
||||
|
||||
void createVolumeDataItem(std::string absPath);
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ void Reader::readVolumeDataItems() {
|
||||
|
||||
void Reader::loadData() {
|
||||
|
||||
char filePath = "";
|
||||
// char filePath = "";
|
||||
// Linux
|
||||
#ifdef _linux
|
||||
system("thunar /home/mberg");
|
||||
|
||||
Reference in New Issue
Block a user