Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HFOVDialog.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
24 #ifndef _HFOVDIALOG_H
25 #define _HFOVDIALOG_H
26 
27 #include "panoinc.h"
28 #include "panoinc_WX.h"
29 
30 #include "panodata/Panorama.h"
31 #include "hugin_shared.h"
32 
37 class WXIMPEX HFOVDialog : public wxDialog
38 {
39 public:
42  HFOVDialog(wxWindow * parent, HuginBase::SrcPanoImage & srcImg);
45  virtual ~HFOVDialog() {};
46 
47  HuginBase::SrcPanoImage GetSrcImage();
48  double GetCropFactor();
49  double GetFocalLength();
50 
51 private:
52 
53  void OnTypeChanged(wxCommandEvent & e);
54  void OnHFOVChanged(wxCommandEvent & e);
55  void OnFocalLengthChanged(wxCommandEvent & e);
56  void OnCropFactorChanged(wxCommandEvent & e);
57  void OnLoadLensParameters(wxCommandEvent & e);
58  void OnOk(wxCommandEvent & e);
59 
60  wxTextCtrl * m_cropText;
61  wxTextCtrl * m_focalLengthText;
62  wxTextCtrl * m_hfovText;
63  wxChoice * m_projChoice;
64  wxButton * m_okButton;
65 
67  wxString m_focalLengthStr;
68  double m_focalLength;
69  wxString m_cropFactorStr;
70  double m_cropFactor;
71  wxString m_HFOVStr;
72  double m_HFOV;
73 
74  DECLARE_EVENT_TABLE()
75 };
76 
77 
78 #endif // _HFOVDIALOG_H
wxString m_HFOVStr
Definition: HFOVDialog.h:71
A dialog for HFOV.
Definition: HFOVDialog.h:37
double m_focalLength
Definition: HFOVDialog.h:68
include file for the hugin project
wxTextCtrl * m_cropText
Definition: HFOVDialog.h:60
wxString m_cropFactorStr
Definition: HFOVDialog.h:69
wxTextCtrl * m_hfovText
Definition: HFOVDialog.h:62
wxTextCtrl * m_focalLengthText
Definition: HFOVDialog.h:61
#define WXIMPEX
Definition: hugin_shared.h:40
wxString m_focalLengthStr
Definition: HFOVDialog.h:67
wxButton * m_okButton
Definition: HFOVDialog.h:64
include file for the hugin project
HuginBase::SrcPanoImage m_srcImg
Definition: HFOVDialog.h:66
virtual ~HFOVDialog()
dtor.
Definition: HFOVDialog.h:45
wxString GetFocalLength(const HuginBase::SrcPanoImage *img)
return focallength and focallength 35 mm as wxString
Definition: LensTools.cpp:519
All variables of a source image.
Definition: SrcPanoImage.h:194
wxChoice * m_projChoice
Definition: HFOVDialog.h:63
double m_cropFactor
Definition: HFOVDialog.h:70
double m_HFOV
Definition: HFOVDialog.h:72