Add InteractionHandler to global property gui

Add property to interactionhandler to enable/disable rotational and zoom friction
This commit is contained in:
Alexander Bock
2016-06-29 22:42:12 +02:00
parent 2f9b873f1c
commit 5a5ffd76bb
6 changed files with 61 additions and 13 deletions

View File

@@ -261,6 +261,10 @@ public:
~OrbitalInteractionMode();
virtual void update(double deltaTime);
void setRotationalFriction(bool friction);
void setZoomFriction(bool friction);
protected:
void updateMouseStatesFromInput(double deltaTime);
void updateCameraStateFromMouseStates();
@@ -274,6 +278,9 @@ protected:
glm::dquat _localCameraRotation;
glm::dquat _globalCameraRotation;
bool _rotationalFriction;
bool _zoomFriction;
};
#ifdef OPENSPACE_MODULE_GLOBEBROWSING_ENABLED
@@ -360,6 +367,9 @@ private:
// Properties
properties::StringProperty _origin;
properties::StringProperty _coordinateSystem;
properties::BoolProperty _rotationalFriction;
properties::BoolProperty _zoomFriction;
};
#endif // USE_OLD_INTERACTIONHANDLER