Turn vertical fov into properties to ensure that the fov is synchronized on all nodes

This commit is contained in:
Ylva Selling
2022-09-22 05:10:05 -04:00
parent a88ea892db
commit a49e37fedc
5 changed files with 39 additions and 4 deletions
@@ -61,8 +61,7 @@ private:
properties::FloatProperty _crossHairSize;
properties::FloatProperty _showRectangleThreshold;
properties::FloatProperty _lineWidth;
double _verticalFov = 10.0;
properties::DoubleProperty _verticalFov;
glm::ivec3 _borderColor = glm::ivec3(230);
float _ratio = 1.f;
+3 -1
View File
@@ -26,6 +26,7 @@
#define __OPENSPACE_MODULE_SKYBROWSER___WWTCOMMUNICATOR___H__
#include <modules/skybrowser/include/browser.h>
#include <openspace/properties/scalar/doubleproperty.h>
#include <deque>
@@ -69,7 +70,8 @@ protected:
void setIdInBrowser(const std::string& id) const;
std::deque<std::pair<int, double>>::iterator findSelectedImage(int i);
double _verticalFov = 10.0f;
properties::DoubleProperty _verticalFov;
glm::ivec3 _borderColor = glm::ivec3(70);
glm::dvec2 _equatorialAim = glm::dvec2(0.0);
double _targetRoll = 0.0;