mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
Added if-statements for onChange-messaging. Renderable updated to receive point data, position is wrong.
This commit is contained in:
@@ -56,14 +56,19 @@ public:
|
||||
static documentation::Documentation Documentation();
|
||||
|
||||
protected:
|
||||
struct Vertex {
|
||||
float location[3];
|
||||
};
|
||||
void createDataSlice();
|
||||
bool loadData();
|
||||
bool loadSpeckData();
|
||||
bool readSpeckFile();
|
||||
bool readPointData();
|
||||
bool loadCachedFile(const std::string& file);
|
||||
bool saveCachedFile(const std::string& file) const;
|
||||
|
||||
bool _hasSpeckFile = false;
|
||||
bool _hasPointData = false;
|
||||
bool _isDirty = true;
|
||||
|
||||
std::unique_ptr<ghoul::opengl::ProgramObject> _shaderProgram = nullptr;
|
||||
@@ -74,8 +79,10 @@ protected:
|
||||
properties::Vec3Property _color;
|
||||
|
||||
std::string _speckFile;
|
||||
std::vector<std::vector<float>> _pointData;
|
||||
std::vector<float> _fullData;
|
||||
std::vector<float> _slicedData;
|
||||
std::vector<Vertex> _vertexArray;
|
||||
|
||||
int _nValuesPerPoints = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user