Kstars

dslrlens.h
1/*
2 SPDX-FileCopyrightText: 2021 Jasem Mutlaq
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6#pragma once
7
8#include "oal/oal.h"
9
10#include <QString>
11
12/**
13 * @class OAL::DSLRLens
14 *
15 * Information on DSLR lens used in astrophotography
16 */
18{
19 public:
20 DSLRLens(const QString &id, const QString &model, const QString &vendor, double focalLength, double focalRatio)
21 {
22 setDSLRLens(id, model, vendor, focalLength, focalRatio);
23 }
24 QString id() const
25 {
26 return m_Id;
27 }
28 QString model() const
29 {
30 return m_Model;
31 }
32 QString vendor() const
33 {
34 return m_Vendor;
35 }
36 QString name() const
37 {
38 return m_Name;
39 }
40 double focalLength() const
41 {
42 return m_FocalLength;
43 }
44 double focalRatio() const
45 {
46 return m_FocalRatio;
47 }
48 void setDSLRLens(const QString &_id, const QString &_model, const QString &_vendor, double _focalLength, double _focalRatio);
49
50 QJsonObject toJson() const;
51
52 private:
53 QString m_Id, m_Model, m_Vendor, m_Name;
54 double m_FocalLength, m_FocalRatio;
55};
Information on DSLR lens used in astrophotography.
Definition dslrlens.h:18
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:47:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.