mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-07 04:49:00 -06:00
Some more changes to the RenderableStars class
This commit is contained in:
@@ -47,33 +47,40 @@ public:
|
||||
void update(const UpdateData& data) override;
|
||||
|
||||
private:
|
||||
class DataSource {
|
||||
public:
|
||||
const std::vector<float>& data() const;
|
||||
//class DataSource {
|
||||
//public:
|
||||
// const std::vector<float>& data() const;
|
||||
|
||||
virtual bool loadData() = 0;
|
||||
// virtual bool loadData() = 0;
|
||||
|
||||
protected:
|
||||
std::vector<float> _data;
|
||||
};
|
||||
//protected:
|
||||
// std::vector<float> _data;
|
||||
//};
|
||||
|
||||
class SpeckDataSource : public DataSource {
|
||||
public:
|
||||
SpeckDataSource(const ghoul::Dictionary& dictionary);
|
||||
//class SpeckDataSource : public DataSource {
|
||||
//public:
|
||||
// SpeckDataSource(const ghoul::Dictionary& dictionary);
|
||||
|
||||
bool loadData() override;
|
||||
// bool loadData() override;
|
||||
|
||||
private:
|
||||
bool readSpeckFile();
|
||||
bool loadCachedFile(const std::string& file);
|
||||
bool saveCachedFile(const std::string& file) const;
|
||||
//private:
|
||||
// bool readSpeckFile();
|
||||
// bool loadCachedFile(const std::string& file);
|
||||
// bool saveCachedFile(const std::string& file) const;
|
||||
|
||||
std::string _file;
|
||||
};
|
||||
// std::string _file;
|
||||
//};
|
||||
|
||||
|
||||
void loadTexture();
|
||||
|
||||
const std::vector<float>& data() const;
|
||||
|
||||
bool loadData();
|
||||
bool readSpeckFile();
|
||||
bool loadCachedFile(const std::string& file);
|
||||
bool saveCachedFile(const std::string& file) const;
|
||||
|
||||
void generateBufferObjects(const void* data);
|
||||
|
||||
properties::StringProperty _colorTexturePath;
|
||||
@@ -85,7 +92,7 @@ private:
|
||||
|
||||
std::string _speckPath;
|
||||
|
||||
DataSource* _source;
|
||||
std::vector<float> _data;
|
||||
|
||||
//GLint vertsToDraw;
|
||||
|
||||
|
||||
@@ -88,13 +88,8 @@ namespace modelgeometry {
|
||||
} // namespace modelgeometry
|
||||
|
||||
namespace renderablestars {
|
||||
const std::string keyDataSource = "DataSource";
|
||||
const std::string keyFile = "File";
|
||||
const std::string keyTexture = "Texture";
|
||||
|
||||
namespace datasource {
|
||||
const std::string keyType = "Type";
|
||||
const std::string keyFile = "File";
|
||||
} // namespace datasource
|
||||
} // namespace renderablestars
|
||||
|
||||
namespace renderablevolumegl {
|
||||
|
||||
Reference in New Issue
Block a user