Pass data regarding if sky browser and target are facing camera and using radius azimuth elevation to gui

This commit is contained in:
sylvass
2022-02-07 09:46:00 -05:00
parent d28de2e9ef
commit 51496956fc
7 changed files with 56 additions and 1 deletions

View File

@@ -777,10 +777,40 @@ std::string SkyBrowserModule::selectedBrowserId() {
return _selectedBrowser;
}
std::string SkyBrowserModule::selectedTargetId()
{
if (getPair(_selectedBrowser)) {
return getPair(_selectedBrowser)->targetId();
}
else {
return "";
}
}
bool SkyBrowserModule::isCameraInSolarSystem() {
return _isCameraInSolarSystem;
}
bool SkyBrowserModule::isSelectedPairUsingRae()
{
if (getPair(_selectedBrowser)) {
return getPair(_selectedBrowser)->isUsingRadiusAzimuthElevation();
}
else {
return false;
}
}
bool SkyBrowserModule::isSelectedPairFacingCamera()
{
if (getPair(_selectedBrowser)) {
return getPair(_selectedBrowser)->isFacingCamera();
}
else {
return false;
}
}
//std::vector<documentation::Documentation> SkyBrowserModule::documentations() const {
// return {
// ExoplanetsDataPreparationTask::documentation(),