Start changing camera write and restore functions.

This commit is contained in:
Kalle Bladin
2016-06-29 10:45:26 -04:00
parent 9256f79e48
commit 5807919ac7
4 changed files with 61 additions and 2 deletions
@@ -196,6 +196,7 @@ public:
void saveCameraPosition(const std::string& filepath = "");
void restoreCameraPosition(const std::string& filepath = "");
void setCameraState(const ghoul::Dictionary& cameraDict);
private:
void setInteractionMode(std::shared_ptr<InteractionMode> interactionMode);
+4 -2
View File
@@ -123,10 +123,12 @@ namespace openspace {
void preSynchronization();
void serialize(SyncBuffer* syncBuffer);
void deserialize(SyncBuffer* syncBuffer);
void serialize(std::ostream& os) const;
void deserialize(std::istream& is);
void setStateFromDictionary(const ghoul::Dictionary& cameraDict);
ghoul::Dictionary getStateDictionary();
/**
Handles SGCT's internal matrices. Also caches a calculated viewProjection
matrix. This is the data that is different for different cameras within