File indexing completed on 2025-01-19 09:45:51
0001 /* 0002 SPDX-FileCopyrightText: 2009 Prakash Mohan <prakash.mohan@kdemail.net> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #pragma once 0007 0008 #include "oal/oal.h" 0009 0010 #include <QString> 0011 0012 /** 0013 * @class Eyepiece 0014 * 0015 * Information on user eye pieces 0016 */ 0017 class OAL::Eyepiece 0018 { 0019 public: 0020 Eyepiece(const QString &id, const QString &model, const QString &vendor, double fov, const QString &fovUnit, 0021 double focalLength) 0022 { 0023 setEyepiece(id, model, vendor, fov, fovUnit, focalLength); 0024 } 0025 QString id() const 0026 { 0027 return m_Id; 0028 } 0029 QString name() const 0030 { 0031 return m_Name; 0032 } 0033 QString model() const 0034 { 0035 return m_Model; 0036 } 0037 QString vendor() const 0038 { 0039 return m_Vendor; 0040 } 0041 QString fovUnit() const 0042 { 0043 return m_AppFovUnit; 0044 } 0045 double appFov() const 0046 { 0047 return m_AppFOV; 0048 } 0049 double focalLength() const 0050 { 0051 return m_FocalLength; 0052 } 0053 void setEyepiece(const QString &_id, const QString &_model, const QString &_vendor, double _fov, 0054 const QString &_fovUnit, double _focalLength); 0055 0056 private: 0057 QString m_Id, m_Model, m_AppFovUnit, m_Vendor, m_Name; 0058 double m_AppFOV, m_FocalLength; 0059 };