HFOVDialog.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00024 #ifndef _HFOVDIALOG_H
00025 #define _HFOVDIALOG_H
00026 
00027 #include "panoinc.h"
00028 #include "panoinc_WX.h"
00029 
00030 #include "PT/Panorama.h"
00031 
00036 class HFOVDialog : public wxDialog
00037 {
00038 public:
00041     HFOVDialog(wxWindow * parent, PT::SrcPanoImage & srcImg, double focalLength, double cropFactor);
00044     virtual ~HFOVDialog() {};
00045 
00046     PT::SrcPanoImage GetSrcImage();
00047     double GetCropFactor();
00048     double GetFocalLength();
00049 
00050 private:
00051 
00052     void OnTypeChanged(wxCommandEvent & e);
00053     void OnHFOVChanged(wxCommandEvent & e);
00054     void OnFocalLengthChanged(wxCommandEvent & e);
00055     void OnCropFactorChanged(wxCommandEvent & e);
00056     void OnLoadLensParameters(wxCommandEvent & e);
00057     void OnOk(wxCommandEvent & e);
00058 
00059     wxTextCtrl * m_cropText;
00060     wxTextCtrl * m_focalLengthText;
00061     wxTextCtrl * m_hfovText;
00062     wxChoice   * m_projChoice;
00063     wxButton   * m_okButton;
00064 
00065     PT::SrcPanoImage m_srcImg;
00066     wxString m_focalLengthStr;
00067     double m_focalLength;
00068     wxString m_cropFactorStr;
00069     double m_cropFactor;
00070     wxString m_HFOVStr;
00071     double m_HFOV;
00072 
00073 //    bool m_ignoreHFOV;
00074 //    bool m_ignoreCrop;
00075 //    bool m_ignoreFL;
00076 
00077     DECLARE_EVENT_TABLE()
00078 };
00079 
00080 
00081 #endif // _HFOVDIALOG_H

Generated on 24 Nov 2014 for Hugintrunk by  doxygen 1.4.7