mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 09:20:26 -05:00
Change camera dictionary state representation to consider position, rotation and focus node.
This commit is contained in:
@@ -160,6 +160,7 @@ public:
|
||||
void setCamera(Camera* camera);
|
||||
|
||||
// Interaction mode setters
|
||||
void setStateFromDictionary(const ghoul::Dictionary& cameraDict);
|
||||
void setInteractionModeToOrbital();
|
||||
void setInteractionModeToGlobeBrowsing();
|
||||
|
||||
@@ -175,6 +176,7 @@ public:
|
||||
void update(double deltaTime);
|
||||
|
||||
// Accessors
|
||||
ghoul::Dictionary getStateDictionary();
|
||||
SceneGraphNode* const focusNode() const;
|
||||
Camera* const camera() const;
|
||||
const InputState& inputState() const;
|
||||
|
||||
@@ -127,8 +127,6 @@ namespace openspace {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user