mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-19 11:29:08 -06:00
Add browser ratio to the skybrowser topic
This commit is contained in:
@@ -123,6 +123,7 @@ void SkyBrowserTopic::sendBrowserData() {
|
||||
target.setValue("roll", pair->targetRoll());
|
||||
target.setValue("color", pair->borderColor());
|
||||
target.setValue("cartesianDirection", cartesian);
|
||||
target.setValue("ratio", static_cast<double>(pair->browserRatio()));
|
||||
target.setValue("isImageCollectionLoaded", pair->isImageCollectionLoaded());
|
||||
target.setValue("isFacingCamera", pair->isFacingCamera());
|
||||
target.setValue("isUsingRae", pair->isUsingRadiusAzimuthElevation());
|
||||
|
||||
@@ -90,6 +90,7 @@ public:
|
||||
std::string targetRenderableId() const;
|
||||
std::string targetNodeId() const;
|
||||
glm::vec2 size() const;
|
||||
float browserRatio() const;
|
||||
|
||||
SceneGraphNode* targetNode() const;
|
||||
ScreenSpaceSkyBrowser* browser() const;
|
||||
|
||||
@@ -178,6 +178,10 @@ glm::vec2 TargetBrowserPair::size() const {
|
||||
return _browser->size();
|
||||
}
|
||||
|
||||
float TargetBrowserPair::browserRatio() const {
|
||||
return _browser->browserRatio();
|
||||
}
|
||||
|
||||
double TargetBrowserPair::verticalFov() const {
|
||||
return _browser->verticalFov();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user