Документ взят из кэша поисковой машины. Адрес оригинального документа : http://astro.uni-altai.ru/~aw/stellarium/api/CCD_8hpp_source.html
Дата изменения: Unknown
Дата индексирования: Fri Feb 28 07:25:07 2014
Кодировка:

Поисковые слова: volcano pele
Stellarium: /home/aw/devel/stellarium/trunk/plugins/Oculars/src/CCD.hpp Source File
Stellarium 0.12.3
CCD.hpp
1 /*
2  * Copyright (C) 2010 Timothy Reaves
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
17  */
18 
19 #ifndef CCD_HPP_
20 #define CCD_HPP_
21 
22 #include <QObject>
23 #include <QString>
24 #include <QSettings>
25 
26 class Telescope;
27 class Lens;
28 
29 class CCD : public QObject
30 {
31  Q_OBJECT
32  Q_PROPERTY(QString name READ name WRITE setName)
33  Q_PROPERTY(int resolutionX READ resolutionX WRITE setResolutionX)
34  Q_PROPERTY(int resolutionY READ resolutionY WRITE setResolutionY)
35  Q_PROPERTY(double chipWidth READ chipWidth WRITE setChipWidth)
36  Q_PROPERTY(double chipHeight READ chipHeight WRITE setChipHeight)
37  Q_PROPERTY(double pixelWidth READ pixelWidth WRITE setPixelWidth)
38  Q_PROPERTY(double pixelHeight READ pixelHeight WRITE setPixelHeight)
39 public:
40  CCD();
41  Q_INVOKABLE CCD(const QObject& other);
42  virtual ~CCD();
43  static CCD* ccdFromSettings(QSettings* theSettings, int ccdIndex);
44  static CCD* ccdModel();
45 
46  QString name() const;
47  void setName(QString name);
48  int getCCDID();
49  int resolutionX() const;
50  void setResolutionX(int resolution);
51  int resolutionY() const;
52  void setResolutionY(int resolution);
53  double chipWidth() const;
54  void setChipWidth(double width);
55  double chipHeight() const;
56  void setChipHeight(double height);
57  double pixelWidth() const;
58  void setPixelWidth(double width);
59  double pixelHeight() const;
60  void setPixelHeight(double height);
61 
66  double getActualFOVx(Telescope *telescope, Lens *lens) const;
67  double getActualFOVy(Telescope *telescope, Lens *lens) const;
68  QMap<int, QString> propertyMap();
69 private:
70  QString m_name;
72  int m_resolutionX;
74  int m_resolutionY;
76  double m_chipWidth;
78  double m_chipHeight;
80  double m_pixelWidth;
82  double m_pixelHeight;
83 };
84 
85 
86 #endif /* CCD_HPP_ */