HFOVDialog Class Reference

A dialog for HFOV. More...

#include <HFOVDialog.h>

List of all members.

Public Member Functions

 HFOVDialog (wxWindow *parent, PT::SrcPanoImage &srcImg, double focalLength, double cropFactor)
 ctor.
virtual ~HFOVDialog ()
 dtor.
PT::SrcPanoImage GetSrcImage ()
double GetCropFactor ()
double GetFocalLength ()

Private Member Functions

void OnTypeChanged (wxCommandEvent &e)
void OnHFOVChanged (wxCommandEvent &e)
void OnFocalLengthChanged (wxCommandEvent &e)
void OnCropFactorChanged (wxCommandEvent &e)
void OnLoadLensParameters (wxCommandEvent &e)
void OnOk (wxCommandEvent &e)

Private Attributes

wxTextCtrl * m_cropText
wxTextCtrl * m_focalLengthText
wxTextCtrl * m_hfovText
wxChoice * m_projChoice
wxButton * m_okButton
PT::SrcPanoImage m_srcImg
wxString m_focalLengthStr
double m_focalLength
wxString m_cropFactorStr
double m_cropFactor
wxString m_HFOVStr
double m_HFOV


Detailed Description

A dialog for HFOV.

Also allows cancellation

Definition at line 36 of file HFOVDialog.h.


Constructor & Destructor Documentation

HFOVDialog::HFOVDialog wxWindow *  parent,
PT::SrcPanoImage &  srcImg,
double  focalLength,
double  cropFactor
 

ctor.

virtual HFOVDialog::~HFOVDialog  )  [inline, virtual]
 

dtor.

Definition at line 44 of file HFOVDialog.h.


Member Function Documentation

double HFOVDialog::GetCropFactor  ) 
 

Definition at line 365 of file HFOVDialog.cpp.

Referenced by getLensDataFromUser().

double HFOVDialog::GetFocalLength  ) 
 

Definition at line 370 of file HFOVDialog.cpp.

SrcPanoImage HFOVDialog::GetSrcImage  ) 
 

Definition at line 357 of file HFOVDialog.cpp.

References m_cropFactor, m_focalLength, m_HFOV, and m_srcImg.

Referenced by getLensDataFromUser().

void HFOVDialog::OnCropFactorChanged wxCommandEvent &  e  )  [private]
 

Definition at line 224 of file HFOVDialog.cpp.

References PT::calcHFOV(), DEBUG_DEBUG, hugin_utils::doubleTowxString(), m_cropFactor, m_cropFactorStr, m_cropText, m_focalLength, m_HFOV, m_HFOVStr, m_hfovText, m_okButton, m_srcImg, and str2double().

void HFOVDialog::OnFocalLengthChanged wxCommandEvent &  e  )  [private]
 

Definition at line 182 of file HFOVDialog.cpp.

References PT::calcHFOV(), DEBUG_DEBUG, hugin_utils::doubleTowxString(), m_cropFactor, m_focalLength, m_focalLengthStr, m_focalLengthText, m_HFOV, m_HFOVStr, m_hfovText, m_okButton, m_srcImg, and str2double().

void HFOVDialog::OnHFOVChanged wxCommandEvent &  e  )  [private]
 

Definition at line 127 of file HFOVDialog.cpp.

References PT::calcFocalLength(), DEBUG_DEBUG, hugin_utils::doubleTowxString(), m_cropFactor, m_focalLength, m_focalLengthStr, m_focalLengthText, m_HFOV, m_HFOVStr, m_hfovText, m_okButton, m_srcImg, and str2double().

void HFOVDialog::OnLoadLensParameters wxCommandEvent &  e  )  [private]
 

Definition at line 267 of file HFOVDialog.cpp.

References PT::calcFocalLength(), const_map_get(), hugin_utils::doubleTowxString(), hugin_utils::FDiff2D, HuginBase::Lens::getCropFactor(), HuginBase::Lens::getFocalLength(), HuginBase::Lens::getHFOV(), HuginBase::Lens::getProjection(), LoadLensParametersChoose(), m_cropFactor, m_cropFactorStr, m_cropText, m_focalLength, m_focalLengthStr, m_focalLengthText, m_HFOV, m_HFOVStr, m_hfovText, m_okButton, m_projChoice, m_srcImg, SelectProjection(), HuginBase::Lens::setHFOV(), HuginBase::Lens::setImageSize(), HuginBase::Lens::setProjection(), HuginBase::Lens::variables, hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

void HFOVDialog::OnOk wxCommandEvent &  e  )  [private]
 

Definition at line 375 of file HFOVDialog.cpp.

References m_HFOV, and m_srcImg.

void HFOVDialog::OnTypeChanged wxCommandEvent &  e  )  [private]
 

Definition at line 114 of file HFOVDialog.cpp.

References PT::calcHFOV(), DEBUG_DEBUG, hugin_utils::doubleTowxString(), GetSelectedProjection(), m_cropFactor, m_focalLength, m_HFOV, m_HFOVStr, m_hfovText, m_projChoice, and m_srcImg.


Member Data Documentation

double HFOVDialog::m_cropFactor [private]
 

Definition at line 69 of file HFOVDialog.h.

Referenced by GetSrcImage(), OnCropFactorChanged(), OnFocalLengthChanged(), OnHFOVChanged(), OnLoadLensParameters(), and OnTypeChanged().

wxString HFOVDialog::m_cropFactorStr [private]
 

Definition at line 68 of file HFOVDialog.h.

Referenced by OnCropFactorChanged(), and OnLoadLensParameters().

wxTextCtrl* HFOVDialog::m_cropText [private]
 

Definition at line 59 of file HFOVDialog.h.

Referenced by OnCropFactorChanged(), and OnLoadLensParameters().

double HFOVDialog::m_focalLength [private]
 

Definition at line 67 of file HFOVDialog.h.

Referenced by GetSrcImage(), OnCropFactorChanged(), OnFocalLengthChanged(), OnHFOVChanged(), OnLoadLensParameters(), and OnTypeChanged().

wxString HFOVDialog::m_focalLengthStr [private]
 

Definition at line 66 of file HFOVDialog.h.

Referenced by OnFocalLengthChanged(), OnHFOVChanged(), and OnLoadLensParameters().

wxTextCtrl* HFOVDialog::m_focalLengthText [private]
 

Definition at line 60 of file HFOVDialog.h.

Referenced by OnFocalLengthChanged(), OnHFOVChanged(), and OnLoadLensParameters().

double HFOVDialog::m_HFOV [private]
 

Definition at line 71 of file HFOVDialog.h.

Referenced by GetSrcImage(), OnCropFactorChanged(), OnFocalLengthChanged(), OnHFOVChanged(), OnLoadLensParameters(), OnOk(), and OnTypeChanged().

wxString HFOVDialog::m_HFOVStr [private]
 

Definition at line 70 of file HFOVDialog.h.

Referenced by OnCropFactorChanged(), OnFocalLengthChanged(), OnHFOVChanged(), OnLoadLensParameters(), and OnTypeChanged().

wxTextCtrl* HFOVDialog::m_hfovText [private]
 

Definition at line 61 of file HFOVDialog.h.

Referenced by OnCropFactorChanged(), OnFocalLengthChanged(), OnHFOVChanged(), OnLoadLensParameters(), and OnTypeChanged().

wxButton* HFOVDialog::m_okButton [private]
 

Definition at line 63 of file HFOVDialog.h.

Referenced by OnCropFactorChanged(), OnFocalLengthChanged(), OnHFOVChanged(), and OnLoadLensParameters().

wxChoice* HFOVDialog::m_projChoice [private]
 

Definition at line 62 of file HFOVDialog.h.

Referenced by OnLoadLensParameters(), and OnTypeChanged().

PT::SrcPanoImage HFOVDialog::m_srcImg [private]
 

Definition at line 65 of file HFOVDialog.h.

Referenced by GetSrcImage(), OnCropFactorChanged(), OnFocalLengthChanged(), OnHFOVChanged(), OnLoadLensParameters(), OnOk(), and OnTypeChanged().


The documentation for this class was generated from the following files:
Generated on Wed Oct 1 01:25:50 2014 for Hugintrunk by  doxygen 1.3.9.1