[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

hugin1/hugin/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 "common/utils.h"
00031 #include "PT/Panorama.h"
00032 #include "PT/PanoImage.h"
00033 
00036 void FillLensProjectionList(wxControlWithItems* list);
00038 void SelectProjection(wxControlWithItems* list,size_t new_projection);
00040 size_t GetSelectedProjection(wxControlWithItems* list);
00041 
00046 class HFOVDialog : public wxDialog
00047 {
00048 public:
00051     HFOVDialog(wxWindow * parent, PT::SrcPanoImage & srcImg, double focalLength, double cropFactor);
00054     virtual ~HFOVDialog() {};
00055 
00056     PT::SrcPanoImage GetSrcImage();
00057     double GetCropFactor();
00058     double GetFocalLength();
00059 
00060 private:
00061 
00062     void OnTypeChanged(wxCommandEvent & e);
00063     void OnHFOVChanged(wxCommandEvent & e);
00064     void OnFocalLengthChanged(wxCommandEvent & e);
00065     void OnCropFactorChanged(wxCommandEvent & e);
00066     void OnLoadLensParameters(wxCommandEvent & e);
00067 
00068     wxTextCtrl * m_cropText;
00069     wxTextCtrl * m_focalLengthText;
00070     wxTextCtrl * m_hfovText;
00071     wxChoice   * m_projChoice;
00072     wxButton   * m_okButton;
00073 
00074     PT::SrcPanoImage m_srcImg;
00075     wxString m_focalLengthStr;
00076     double m_focalLength;
00077     wxString m_cropFactorStr;
00078     double m_cropFactor;
00079     wxString m_HFOVStr;
00080     double m_HFOV;
00081 
00082 //    bool m_ignoreHFOV;
00083 //    bool m_ignoreCrop;
00084 //    bool m_ignoreFL;
00085 
00086     DECLARE_EVENT_TABLE()
00087 };
00088 
00089 
00090 #endif // _HFOVDIALOG_H

Generated on Mon Sep 20 01:01:25 2010 for Hugintrunk by doxygen 1.3.9.1