CCD.hpp   CCD.hpp 
/* /*
* portions Copyright (C) 2010 Bernhard Reutner-Fischer * Copyright (C) 2010 Timothy Reaves
* portions Copyright (C) 2010 Timothy Reaves
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
skipping to change at line 35 skipping to change at line 34
#include <QSettings> #include <QSettings>
class Telescope; class Telescope;
class CCD : public QObject class CCD : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(QString name READ name WRITE setName) Q_PROPERTY(QString name READ name WRITE setName)
Q_PROPERTY(int resolutionX READ resolutionX WRITE setResolutionX) Q_PROPERTY(int resolutionX READ resolutionX WRITE setResolutionX)
Q_PROPERTY(int resolutionY READ resolutionY WRITE setResolutionY) Q_PROPERTY(int resolutionY READ resolutionY WRITE setResolutionY)
Q_PROPERTY(float chipWidth READ chipWidth WRITE setChipWidth) Q_PROPERTY(double chipWidth READ chipWidth WRITE setChipWidth)
Q_PROPERTY(float chipHeight READ chipHeight WRITE setChipHeight) Q_PROPERTY(double chipHeight READ chipHeight WRITE setChipHeight)
Q_PROPERTY(float pixelWidth READ pixelWidth WRITE setPixelWidth) Q_PROPERTY(double pixelWidth READ pixelWidth WRITE setPixelWidth)
Q_PROPERTY(float pixelHeight READ pixelHeight WRITE setPixelHeight) Q_PROPERTY(double pixelHeight READ pixelHeight WRITE setPixelHeight)
public: public:
CCD(); CCD();
Q_INVOKABLE CCD(const QObject& other); Q_INVOKABLE CCD(const QObject& other);
virtual ~CCD(); virtual ~CCD();
static CCD* ccdFromSettings(QSettings* theSettings, int ccdIndex); static CCD* ccdFromSettings(QSettings* theSettings, int ccdIndex);
static CCD* ccdModel(); static CCD* ccdModel();
QString name() const; QString name() const;
void setName(QString name); void setName(QString name);
int getCCDID(); int getCCDID();
int resolutionX() const; int resolutionX() const;
void setResolutionX(int resolution); void setResolutionX(int resolution);
int resolutionY() const; int resolutionY() const;
void setResolutionY(int resolution); void setResolutionY(int resolution);
float chipWidth() const; double chipWidth() const;
void setChipWidth(float width); void setChipWidth(double width);
float chipHeight() const; double chipHeight() const;
void setChipHeight(float height); void setChipHeight(double height);
float pixelWidth() const; double pixelWidth() const;
void setPixelWidth(float width); void setPixelWidth(double width);
float pixelHeight() const; double pixelHeight() const;
void setPixelHeight(float height); void setPixelHeight(double height);
float getActualFOVx(Telescope *telescope) const; /**
float getActualFOVy(Telescope *telescope) const; * The formula for this calculation comes from the Yerkes observato
ry.
* fov degrees = 2PI/360degrees * chipDimension mm / telescope FL m
m
*/
double getActualFOVx(Telescope *telescope) const;
double getActualFOVy(Telescope *telescope) const;
QMap<int, QString> propertyMap(); QMap<int, QString> propertyMap();
private: private:
int ccdID;
QString m_name; QString m_name;
//! total resolution width in pixels //! total resolution width in pixels
int m_resolutionX; int m_resolutionX;
//! total resolution height in pixels //! total resolution height in pixels
int m_resolutionY; int m_resolutionY;
//! chip width in millimeters //! chip width in millimeters
float m_chipWidth; double m_chipWidth;
//! chip height in millimeters //! chip height in millimeters
float m_chipHeight; double m_chipHeight;
//! height of 1 pixel in micron (micrometer) //! height of 1 pixel in micron (micrometer)
float m_pixelWidth; double m_pixelWidth;
//! width of 1 pixel in micron (micrometer) //! width of 1 pixel in micron (micrometer)
float m_pixelHeight; double m_pixelHeight;
}; };
#endif /* CCD_HPP_ */ #endif /* CCD_HPP_ */
 End of changes. 10 change blocks. 
24 lines changed or deleted 28 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/