Added if-statements for onChange-messaging. Renderable updated to receive point data, position is wrong.

This commit is contained in:
aniisaaden
2020-10-08 14:20:05 +02:00
parent 2eb943110c
commit c71465f507
7 changed files with 195 additions and 73 deletions

View File

@@ -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;