Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
LoadLensDBDialog Class Reference

dialog for loading lens parameter from lens database More...

Inheritance diagram for LoadLensDBDialog:
Inheritance graph

Public Member Functions

 LoadLensDBDialog (wxWindow *parent)
 Constructor, read from xrc ressource; restore last uses settings, size and position. More...
 
void SetLensName (std::string lensname)
 
std::string GetLensName () const
 
void SetFocalLength (double focal)
 
double GetFocalLength () const
 
void SetAperture (double aperture)
 
double GetAperture () const
 
void SetSubjectDistance (double distance)
 
double GetSubjectDistance () const
 
bool GetLoadDistortion () const
 
bool GetLoadVignetting () const
 

Protected Member Functions

void OnOk (wxCommandEvent &e)
 Saves current state of all checkboxes when closing dialog with Ok. More...
 
void OnCheckChanged (wxCommandEvent &e)
 

Private Member Functions

void FillLensList ()
 

Private Attributes

wxChoice * m_lenslist
 
wxCheckBox * m_loadDistortion
 
wxCheckBox * m_loadVignetting
 
double m_focal
 
double m_aperture { 0 }
 
double m_distance { 0 }
 
HuginBase::LensDB::LensList m_lensNames
 

Detailed Description

dialog for loading lens parameter from lens database

Definition at line 38 of file wxLensDB.cpp.

Constructor & Destructor Documentation

LoadLensDBDialog::LoadLensDBDialog ( wxWindow *  parent)
explicit

Constructor, read from xrc ressource; restore last uses settings, size and position.

Definition at line 70 of file wxLensDB.cpp.

References FillLensList(), vigra_ext::EMoR::h, m_lenslist, m_loadDistortion, m_loadVignetting, OnCheckChanged(), and OnOk().

Member Function Documentation

void LoadLensDBDialog::FillLensList ( )
private

Definition at line 117 of file wxLensDB.cpp.

References HuginBase::LensDB::LensDB::GetSingleton(), m_lenslist, and m_lensNames.

Referenced by LoadLensDBDialog().

double LoadLensDBDialog::GetAperture ( ) const

Definition at line 172 of file wxLensDB.cpp.

References m_aperture.

Referenced by ApplyLensDBParameters().

double LoadLensDBDialog::GetFocalLength ( ) const

Definition at line 161 of file wxLensDB.cpp.

References m_focal.

Referenced by ApplyLensDBParameters().

std::string LoadLensDBDialog::GetLensName ( ) const

Definition at line 150 of file wxLensDB.cpp.

References m_lenslist, and m_lensNames.

Referenced by ApplyLensDBParameters().

bool LoadLensDBDialog::GetLoadDistortion ( ) const

Definition at line 188 of file wxLensDB.cpp.

References m_loadDistortion.

Referenced by ApplyLensDBParameters().

bool LoadLensDBDialog::GetLoadVignetting ( ) const

Definition at line 193 of file wxLensDB.cpp.

References m_loadVignetting.

Referenced by ApplyLensDBParameters().

double LoadLensDBDialog::GetSubjectDistance ( ) const

Definition at line 183 of file wxLensDB.cpp.

References m_distance.

Referenced by ApplyLensDBParameters().

void LoadLensDBDialog::OnCheckChanged ( wxCommandEvent &  e)
protected

Definition at line 265 of file wxLensDB.cpp.

References m_lenslist, m_loadDistortion, and m_loadVignetting.

Referenced by LoadLensDBDialog(), and SetLensName().

void LoadLensDBDialog::OnOk ( wxCommandEvent &  e)
protected

Saves current state of all checkboxes when closing dialog with Ok.

Definition at line 209 of file wxLensDB.cpp.

References m_aperture, m_distance, m_focal, m_lenslist, m_loadDistortion, m_loadVignetting, and str2double().

Referenced by LoadLensDBDialog().

void LoadLensDBDialog::SetAperture ( double  aperture)

Definition at line 166 of file wxLensDB.cpp.

References hugin_utils::doubleTowxString(), and m_aperture.

Referenced by ApplyLensDBParameters().

void LoadLensDBDialog::SetFocalLength ( double  focal)

Definition at line 155 of file wxLensDB.cpp.

References hugin_utils::doubleTowxString(), and m_focal.

Referenced by ApplyLensDBParameters().

void LoadLensDBDialog::SetLensName ( std::string  lensname)

Definition at line 136 of file wxLensDB.cpp.

References m_lenslist, m_lensNames, and OnCheckChanged().

Referenced by ApplyLensDBParameters().

void LoadLensDBDialog::SetSubjectDistance ( double  distance)

Definition at line 177 of file wxLensDB.cpp.

References hugin_utils::doubleTowxString(), and m_distance.

Referenced by ApplyLensDBParameters().

Member Data Documentation

double LoadLensDBDialog::m_aperture { 0 }
private

Definition at line 65 of file wxLensDB.cpp.

Referenced by GetAperture(), OnOk(), and SetAperture().

double LoadLensDBDialog::m_distance { 0 }
private

Definition at line 66 of file wxLensDB.cpp.

Referenced by GetSubjectDistance(), OnOk(), and SetSubjectDistance().

double LoadLensDBDialog::m_focal
private

Definition at line 64 of file wxLensDB.cpp.

Referenced by GetFocalLength(), OnOk(), and SetFocalLength().

wxChoice* LoadLensDBDialog::m_lenslist
private
HuginBase::LensDB::LensList LoadLensDBDialog::m_lensNames
private

Definition at line 67 of file wxLensDB.cpp.

Referenced by FillLensList(), GetLensName(), and SetLensName().

wxCheckBox* LoadLensDBDialog::m_loadDistortion
private

Definition at line 62 of file wxLensDB.cpp.

Referenced by GetLoadDistortion(), LoadLensDBDialog(), OnCheckChanged(), and OnOk().

wxCheckBox* LoadLensDBDialog::m_loadVignetting
private

Definition at line 63 of file wxLensDB.cpp.

Referenced by GetLoadVignetting(), LoadLensDBDialog(), OnCheckChanged(), and OnOk().


The documentation for this class was generated from the following file: