Cleanup of ImageSequencer

Added caching to playbook loading
Increased performance of playbook loading
Added default placeholder image
This commit is contained in:
Alexander Bock
2015-02-19 16:21:28 +01:00
parent 11c4757073
commit f00158969c
6 changed files with 125 additions and 77 deletions

View File

@@ -88,7 +88,7 @@ private:
glm::mat4 _projectorMatrix;
// spice
std::string _sequenceDir;
std::string _sequenceFile;
std::string _instrumentID;
std::string _projectorID;
std::string _projecteeID;

View File

@@ -39,7 +39,8 @@ public:
static ImageSequencer& ref();
bool loadSequence(const std::string dir);
bool parsePlaybook(const std::string& dir, const std::string& type, std::string year = "2015");
bool parsePlaybook(const std::string& dir, const std::string& type, std::string year = "2015");
bool parsePlaybookFile(const std::string& fileName, std::string year = "2015");
void testStartTimeMap();
@@ -61,6 +62,8 @@ private:
double _nextCapture;
double _intervalLength;
std::string _defaultCaptureImage;
};
} // namespace openspace