Very large datasets can now be loaded

Use a centralized storage in the module if a dataset is too large to be feasible to pass in the dictionary
This commit is contained in:
Emma Broman
2021-02-11 16:09:11 +01:00
parent dafa7157eb
commit ad7455152f
6 changed files with 165 additions and 65 deletions

View File

@@ -27,8 +27,11 @@
#include <openspace/rendering/renderable.h>
#include <openspace/properties/scalar/boolproperty.h>
#include <openspace/properties/scalar/floatproperty.h>
#include <openspace/properties/vector/vec3property.h>
#include <ghoul/opengl/ghoul_gl.h>
#include <optional>
namespace openspace::documentation { struct Documentation; }
@@ -69,6 +72,9 @@ protected:
std::vector<float> _fullData;
std::vector<float> _slicedData;
std::optional<std::string> _dataStorageKey = std::nullopt;
int _nPoints = 0;
int _nValuesPerPoint = 0;
GLuint _vertexArrayObjectID = 0;