~registry/stellarium/socis2015-de430

« back to all changes in this revision

Viewing changes to plugins/Oculars/src/CCD.hpp

  • Committer: georg-zotti
  • Date: 2015-12-14 13:02:24 UTC
  • mfrom: (7721.1.367 trunk)
  • Revision ID: georg.zotti@univie.ac.at-20151214130224-g5sqnc31ghcmw0ux
merge-in trunk r8088

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
        Q_PROPERTY(double chipHeight READ chipHeight WRITE setChipHeight)
38
38
        Q_PROPERTY(double pixelWidth READ pixelWidth WRITE setPixelWidth)
39
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)
40
46
public:
41
47
        CCD();
42
48
        Q_INVOKABLE CCD(const QObject& other);
60
66
        void setPixelWidth(double width);
61
67
        double pixelHeight() const;
62
68
        void setPixelHeight(double height);
 
69
        double chipRotAngle() const;
 
70
        void setChipRotAngle(double angle);
 
71
        bool hasOAG() const;
 
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);
63
81
 
64
82
        /**
65
83
          * The formula for this calculation comes from the Yerkes observatory.
67
85
          */
68
86
        double getActualFOVx(Telescope *telescope, Lens *lens) const;
69
87
        double getActualFOVy(Telescope *telescope, Lens *lens) const;
 
88
        double getInnerOAGRadius(Telescope *telescope, Lens *lens) const;
 
89
        double getOuterOAGRadius(Telescope *telescope, Lens *lens) const;
 
90
        double getOAGActualFOVx(Telescope *telescope, Lens *lens) const;
70
91
        QMap<int, QString> propertyMap();
71
92
private:
72
93
        QString m_name;
82
103
        double m_pixelWidth;
83
104
        //! width of 1 pixel in micron (micrometer)
84
105
        double m_pixelHeight;
 
106
        //! chip rotation angle around its axis (degrees)
 
107
        double m_chipRotAngle;
 
108
        //! Show off axis guider view
 
109
        bool m_has_oag;
 
110
        //! OAG prism height (milimeters)
 
111
        double m_oag_prismHeight;
 
112
        //! OAG prism width (milimeters)
 
113
        double m_oag_prismWidth;
 
114
        //! OAG prisrm distance from the axis center (mimileters)
 
115
        double m_oag_prismDistance;
 
116
        //! OAG prisrm position angle (degrees)
 
117
        double m_oag_prismPosAngle;
85
118
};
86
119
 
87
120