CCD.hpp   CCD.hpp 
/* /*
* Copyright (C) 2010 Bernhard Reutner-Fischer * portions Copyright (C) 2010 Bernhard Reutner-Fischer
* * portions Copyright (C) 2010 Timothy Reaves
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License * This program is free software; you can redistribute it and/or
* as published by the Free Software Foundation; either version 2 * modify it under the terms of the GNU General Public License
* of the License, or (at your option) any later version. * as published by the Free Software Foundation; either version 2
* * of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful,
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* GNU General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* * GNU General Public License for more details.
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software * You should have received a copy of the GNU General Public License
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, * along with this program; if not, write to the Free Software
USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U
*/ SA.
*/
#ifndef CCD_HPP_ #ifndef CCD_HPP_
#define CCD_HPP_ #define CCD_HPP_
#include <QObject> #include <QObject>
#include <QString> #include <QString>
#include <QSqlRecord> #include <QSettings>
class Ocular; class Telescope;
class CCD : public QObject class CCD : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(QString name READ name WRITE setName)
Q_PROPERTY(int resolutionX READ resolutionX WRITE setResolutionX)
Q_PROPERTY(int resolutionY READ resolutionY WRITE setResolutionY)
Q_PROPERTY(float chipWidth READ chipWidth WRITE setChipWidth)
Q_PROPERTY(float chipHeight READ chipHeight WRITE setChipHeight)
Q_PROPERTY(float pixelWidth READ pixelWidth WRITE setPixelWidth)
Q_PROPERTY(float pixelHeight READ pixelHeight WRITE setPixelHeight)
public: public:
CCD(QSqlRecord record); CCD();
Q_INVOKABLE CCD(const QObject& other);
virtual ~CCD(); virtual ~CCD();
const QString getName() {return name;}; static CCD* ccdFromSettings(QSettings* theSettings, int ccdIndex);
int getCCDID() {return CCDID;}; static CCD* ccdModel();
int getResolutionX() {return resolution_x;};
int getResolutionY() {return resolution_y;};
float getChipWidth() {return chip_width;};
float getChipHeight() {return chip_height;};
float getPixelWidth() {return pixel_width;};
float getPixelHeight() {return pixel_height;};
float getActualFOVx(Ocular *ocular); QString name() const;
float getActualFOVy(Ocular *ocular); void setName(QString name);
int getCCDID();
int resolutionX() const;
void setResolutionX(int resolution);
int resolutionY() const;
void setResolutionY(int resolution);
float chipWidth() const;
void setChipWidth(float width);
float chipHeight() const;
void setChipHeight(float height);
float pixelWidth() const;
void setPixelWidth(float width);
float pixelHeight() const;
void setPixelHeight(float height);
float getActualFOVx(Telescope *telescope) const;
float getActualFOVy(Telescope *telescope) const;
QMap<int, QString> propertyMap();
private: private:
int CCDID; int ccdID;
QString name; QString m_name;
//! total resolution width in pixels //! total resolution width in pixels
int resolution_x; int m_resolutionX;
//! total resolution height in pixels //! total resolution height in pixels
int resolution_y; int m_resolutionY;
//! chip width in millimeters //! chip width in millimeters
float chip_width; float m_chipWidth;
//! chip height in millimeters //! chip height in millimeters
float chip_height; float m_chipHeight;
//! height of 1 pixel in micron (micrometer) //! height of 1 pixel in micron (micrometer)
float pixel_width; float m_pixelWidth;
//! width of 1 pixel in micron (micrometer) //! width of 1 pixel in micron (micrometer)
float pixel_height; float m_pixelHeight;
}; };
#endif /* CCD_HPP_ */ #endif /* CCD_HPP_ */
 End of changes. 14 change blocks. 
38 lines changed or deleted 58 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/