34 Q_PROPERTY(
bool binoculars READ isBinoculars WRITE setBinoculars)
35 Q_PROPERTY(
bool permanentCrosshair READ hasPermanentCrosshair WRITE setPermanentCrosshair)
36 Q_PROPERTY(
double appearentFOV READ appearentFOV WRITE setAppearentFOV)
37 Q_PROPERTY(
double effectiveFocalLength READ effectiveFocalLength WRITE setEffectiveFocalLength)
38 Q_PROPERTY(
double fieldStop READ fieldStop WRITE setFieldStop)
39 Q_PROPERTY(QString name READ name WRITE setName)
40 Q_PROPERTY(QString reticlePath READ reticlePath WRITE setReticlePath)
43 Q_INVOKABLE
Ocular(
const QObject& other);
45 static Ocular * ocularFromSettings(
const QSettings * theSettings,
const int ocularIndex);
46 void writeToSettings(QSettings * settings,
const int index);
47 static Ocular * ocularModel(
void);
49 bool isBinoculars(
void)
const;
50 void setBinoculars(
const bool flag);
51 bool hasPermanentCrosshair(
void)
const;
52 void setPermanentCrosshair(
const bool flag);
53 double appearentFOV(
void)
const;
54 void setAppearentFOV(
const double fov);
55 double effectiveFocalLength(
void)
const;
56 void setEffectiveFocalLength(
const double fl);
57 double fieldStop(
void)
const;
58 void setFieldStop(
const double fs);
59 QString name(
void)
const;
60 void setName(
const QString aName);
61 QString reticlePath(
void)
const;
62 void setReticlePath(
const QString path);
64 double actualFOV(
const Telescope * telescope,
const Lens *lens)
const;
65 double magnification(
const Telescope * telescope,
const Lens *lens)
const;
66 QMap<int, QString> propertyMap(
void);
70 bool m_permanetCrosshair;
71 double m_appearentFOV;
72 double m_effectiveFocalLength;
75 QString m_reticlePath;