HFOVDialog Class Reference

A dialog for HFOV. More...

#include <HFOVDialog.h>

List of all members.

Public Member Functions

 HFOVDialog (wxWindow *parent, HuginBase::SrcPanoImage &srcImg)
 ctor.
virtual ~HFOVDialog ()
 dtor.
HuginBase::SrcPanoImage GetSrcImage ()
double GetCropFactor ()
double GetFocalLength ()
 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)
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
HuginBase::SrcPanoImage m_srcImg
wxString m_focalLengthStr
double m_focalLength
wxString m_cropFactorStr
double m_cropFactor
wxString m_HFOVStr
double m_HFOV
wxTextCtrl * m_cropText
wxTextCtrl * m_focalLengthText
wxTextCtrl * m_hfovText
wxChoice * m_projChoice
wxButton * m_okButton
PT::SrcPanoImage m_srcImg


Detailed Description

A dialog for HFOV.

Also allows cancellation

Definition at line 37 of file HFOVDialog.h.


Constructor & Destructor Documentation

HFOVDialog::HFOVDialog ( wxWindow *  parent,
HuginBase::SrcPanoImage srcImg 
)

ctor.

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

dtor.

Definition at line 45 of file HFOVDialog.h.

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 (  ) 

double HFOVDialog::GetCropFactor (  ) 

Definition at line 362 of file HFOVDialog.cpp.

References m_cropFactor.

Referenced by PanoCommand::getLensDataFromUser().

double HFOVDialog::GetFocalLength (  ) 

double HFOVDialog::GetFocalLength (  ) 

Definition at line 367 of file HFOVDialog.cpp.

References m_focalLength.

PT::SrcPanoImage HFOVDialog::GetSrcImage (  ) 

SrcPanoImage HFOVDialog::GetSrcImage (  ) 

Definition at line 355 of file HFOVDialog.cpp.

References m_cropFactor, m_HFOV, m_srcImg, HuginBase::BaseSrcPanoImage::setCropFactor(), and HuginBase::BaseSrcPanoImage::setHFOV().

Referenced by PanoCommand::getLensDataFromUser().

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

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

Definition at line 223 of file HFOVDialog.cpp.

References HuginBase::SrcPanoImage::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]

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

Definition at line 181 of file HFOVDialog.cpp.

References HuginBase::SrcPanoImage::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]

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

Definition at line 126 of file HFOVDialog.cpp.

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

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

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

Definition at line 266 of file HFOVDialog.cpp.

References HuginBase::SrcPanoImage::calcFocalLength(), const_map_get(), HuginBase::BaseSrcPanoImage::CROP_CIRCLE, HuginBase::BaseSrcPanoImage::CROP_RECTANGLE, hugin_utils::doubleTowxString(), HuginBase::Lens::getCropFactor(), HuginBase::Lens::getHFOV(), HuginBase::Lens::getProjection(), HuginBase::SrcPanoImage::isCircularCrop(), 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, HuginBase::BaseSrcPanoImage::NO_CROP, HuginBase::BaseSrcPanoImage::Projection, SelectListValue(), HuginBase::BaseSrcPanoImage::setCropFactor(), HuginBase::SrcPanoImage::setCropMode(), HuginBase::BaseSrcPanoImage::setCropRect(), HuginBase::BaseSrcPanoImage::setEMoRParams(), HuginBase::BaseSrcPanoImage::setHFOV(), HuginBase::Lens::setImageSize(), HuginBase::BaseSrcPanoImage::setProjection(), HuginBase::BaseSrcPanoImage::setRadialDistortion(), HuginBase::BaseSrcPanoImage::setRadialDistortionCenterShift(), HuginBase::BaseSrcPanoImage::setRadialVigCorrCenterShift(), HuginBase::BaseSrcPanoImage::setRadialVigCorrCoeff(), HuginBase::BaseSrcPanoImage::setShear(), HuginBase::BaseSrcPanoImage::setWhiteBalanceBlue(), HuginBase::BaseSrcPanoImage::setWhiteBalanceRed(), HuginBase::Lens::variables, hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

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

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

Definition at line 372 of file HFOVDialog.cpp.

References HuginBase::BaseSrcPanoImage::FISHEYE_ORTHOGRAPHIC, m_HFOV, and m_srcImg.

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

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

Definition at line 113 of file HFOVDialog.cpp.

References HuginBase::SrcPanoImage::calcHFOV(), DEBUG_DEBUG, hugin_utils::doubleTowxString(), GetSelectedValue(), m_cropFactor, m_focalLength, m_HFOV, m_HFOVStr, m_hfovText, m_projChoice, m_srcImg, HuginBase::BaseSrcPanoImage::Projection, and HuginBase::BaseSrcPanoImage::setProjection().


Member Data Documentation

double HFOVDialog::m_cropFactor [private]

Definition at line 70 of file HFOVDialog.h.

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

wxString HFOVDialog::m_cropFactorStr [private]

Definition at line 69 of file HFOVDialog.h.

Referenced by OnCropFactorChanged(), and OnLoadLensParameters().

wxTextCtrl* HFOVDialog::m_cropText [private]

Definition at line 59 of file HFOVDialog.h.

wxTextCtrl* HFOVDialog::m_cropText [private]

Definition at line 60 of file HFOVDialog.h.

Referenced by OnCropFactorChanged(), and OnLoadLensParameters().

double HFOVDialog::m_focalLength [private]

Definition at line 68 of file HFOVDialog.h.

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

wxString HFOVDialog::m_focalLengthStr [private]

Definition at line 67 of file HFOVDialog.h.

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

wxTextCtrl* HFOVDialog::m_focalLengthText [private]

Definition at line 60 of file HFOVDialog.h.

wxTextCtrl* HFOVDialog::m_focalLengthText [private]

Definition at line 61 of file HFOVDialog.h.

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

double HFOVDialog::m_HFOV [private]

Definition at line 72 of file HFOVDialog.h.

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

wxString HFOVDialog::m_HFOVStr [private]

Definition at line 71 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.

wxTextCtrl* HFOVDialog::m_hfovText [private]

Definition at line 62 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.

wxButton* HFOVDialog::m_okButton [private]

Definition at line 64 of file HFOVDialog.h.

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

wxChoice* HFOVDialog::m_projChoice [private]

Definition at line 62 of file HFOVDialog.h.

wxChoice* HFOVDialog::m_projChoice [private]

Definition at line 63 of file HFOVDialog.h.

Referenced by OnLoadLensParameters(), and OnTypeChanged().

PT::SrcPanoImage HFOVDialog::m_srcImg [private]

Definition at line 65 of file HFOVDialog.h.

HuginBase::SrcPanoImage HFOVDialog::m_srcImg [private]

Definition at line 66 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 2 Sep 2015 for Hugintrunk by  doxygen 1.4.7