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(
double hasOAG READ hasOAG WRITE setHasOAG)
42 Q_PROPERTY(
double prismHeight READ prismHeight WRITE setPrismHeight)
43 Q_PROPERTY(
double prismWidth READ prismWidth WRITE setPrismWidth)
44 Q_PROPERTY(
double prismDistance READ prismDistance WRITE setPrismDistance)
45 Q_PROPERTY(
double prismPosAngle READ prismPosAngle WRITE setPrismPosAngle)
48 Q_INVOKABLE
CCD(
const QObject& other);
50 static CCD* ccdFromSettings(QSettings* theSettings,
int ccdIndex);
51 void writeToSettings(QSettings * settings,
const int index);
52 static CCD* ccdModel();
55 void setName(QString name);
57 int resolutionX()
const;
58 void setResolutionX(
int resolution);
59 int resolutionY()
const;
60 void setResolutionY(
int resolution);
61 double chipWidth()
const;
62 void setChipWidth(
double width);
63 double chipHeight()
const;
64 void setChipHeight(
double height);
65 double pixelWidth()
const;
66 void setPixelWidth(
double width);
67 double pixelHeight()
const;
68 void setPixelHeight(
double height);
69 double chipRotAngle()
const;
70 void setChipRotAngle(
double angle);
72 void setHasOAG(
bool oag);
73 double prismDistance()
const;
74 void setPrismDistance(
double distance);
75 double prismHeight()
const;
76 void setPrismHeight(
double height);
77 double prismWidth()
const;
78 void setPrismWidth(
double width);
79 double prismPosAngle()
const;
80 void setPrismPosAngle(
double angle);
88 double getInnerOAGRadius(
Telescope *telescope,
Lens *lens)
const;
89 double getOuterOAGRadius(
Telescope *telescope,
Lens *lens)
const;
90 double getOAGActualFOVx(
Telescope *telescope,
Lens *lens)
const;
91 QMap<int, QString> propertyMap();
105 double m_pixelHeight;
107 double m_chipRotAngle;
111 double m_oag_prismHeight;
113 double m_oag_prismWidth;
115 double m_oag_prismDistance;
117 double m_oag_prismPosAngle;
double getActualFOVx(Telescope *telescope, Lens *lens) const
The formula for this calculation comes from the Yerkes observatory.