30 class CCD :
public QObject
33 Q_PROPERTY(QString name READ name WRITE setName)
34 Q_PROPERTY(
int resolutionX READ resolutionX WRITE setResolutionX)
35 Q_PROPERTY(
int resolutionY READ resolutionY WRITE setResolutionY)
36 Q_PROPERTY(
double chipWidth READ chipWidth WRITE setChipWidth)
37 Q_PROPERTY(
double chipHeight READ chipHeight WRITE setChipHeight)
38 Q_PROPERTY(
double pixelWidth READ pixelWidth WRITE setPixelWidth)
39 Q_PROPERTY(
double pixelHeight READ pixelHeight WRITE setPixelHeight)
40 Q_PROPERTY(
double chipRotAngle READ chipRotAngle WRITE setChipRotAngle)
41 Q_PROPERTY(
int binningX READ binningX WRITE setBinningX)
42 Q_PROPERTY(
int binningY READ binningY WRITE setBinningY)
43 Q_PROPERTY(
double hasOAG READ hasOAG WRITE setHasOAG)
44 Q_PROPERTY(
double prismHeight READ prismHeight WRITE setPrismHeight)
45 Q_PROPERTY(
double prismWidth READ prismWidth WRITE setPrismWidth)
46 Q_PROPERTY(
double prismDistance READ prismDistance WRITE setPrismDistance)
47 Q_PROPERTY(
double prismPosAngle READ prismPosAngle WRITE setPrismPosAngle)
51 Q_INVOKABLE
CCD(
const QObject& other);
53 static CCD* ccdFromSettings(QSettings* theSettings,
int ccdIndex);
54 void writeToSettings(QSettings * settings,
const int index);
55 static CCD* ccdModel();
58 void setName(QString name);
60 int resolutionX()
const;
61 void setResolutionX(
int resolution);
62 int resolutionY()
const;
63 void setResolutionY(
int resolution);
64 double chipWidth()
const;
65 void setChipWidth(
double width);
66 double chipHeight()
const;
67 void setChipHeight(
double height);
68 double pixelWidth()
const;
69 void setPixelWidth(
double width);
70 double pixelHeight()
const;
71 void setPixelHeight(
double height);
72 double chipRotAngle()
const;
73 void setChipRotAngle(
double angle);
75 void setBinningX(
int binning);
77 void setBinningY(
int binning);
79 void setHasOAG(
bool oag);
80 double prismDistance()
const;
81 void setPrismDistance(
double distance);
82 double prismHeight()
const;
83 void setPrismHeight(
double height);
84 double prismWidth()
const;
85 void setPrismWidth(
double width);
86 double prismPosAngle()
const;
87 void setPrismPosAngle(
double angle);
95 double getInnerOAGRadius(
Telescope *telescope,
Lens *lens)
const;
96 double getOuterOAGRadius(
Telescope *telescope,
Lens *lens)
const;
97 double getOAGActualFOVx(
Telescope *telescope,
Lens *lens)
const;
98 QMap<int, QString> propertyMap();
112 double m_pixelHeight;
114 double m_chipRotAngle;
122 double m_oag_prismHeight;
124 double m_oag_prismWidth;
126 double m_oag_prismDistance;
128 double m_oag_prismPosAngle;
double getActualFOVx(Telescope *telescope, Lens *lens) const
The formula for this calculation comes from the Yerkes observatory.