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
 
double m_distance
 
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 78 of file wxLensDB.cpp.

References vigra_ext::EMoR::h.

Member Function Documentation

void LoadLensDBDialog::FillLensList ( )
private

Definition at line 121 of file wxLensDB.cpp.

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

double LoadLensDBDialog::GetAperture ( ) const

Definition at line 176 of file wxLensDB.cpp.

References m_aperture.

Referenced by ApplyLensDBParameters().

double LoadLensDBDialog::GetFocalLength ( ) const

Definition at line 165 of file wxLensDB.cpp.

References m_focal.

Referenced by ApplyLensDBParameters().

std::string LoadLensDBDialog::GetLensName ( ) const

Definition at line 154 of file wxLensDB.cpp.

References m_lenslist, and m_lensNames.

Referenced by ApplyLensDBParameters().

bool LoadLensDBDialog::GetLoadDistortion ( ) const

Definition at line 192 of file wxLensDB.cpp.

References m_loadDistortion.

Referenced by ApplyLensDBParameters().

bool LoadLensDBDialog::GetLoadVignetting ( ) const

Definition at line 197 of file wxLensDB.cpp.

References m_loadVignetting.

Referenced by ApplyLensDBParameters().

double LoadLensDBDialog::GetSubjectDistance ( ) const

Definition at line 187 of file wxLensDB.cpp.

References m_distance.

Referenced by ApplyLensDBParameters().

void LoadLensDBDialog::OnCheckChanged ( wxCommandEvent &  e)
protected

Definition at line 269 of file wxLensDB.cpp.

References m_lenslist, m_loadDistortion, and m_loadVignetting.

Referenced by SetLensName().

void LoadLensDBDialog::OnOk ( wxCommandEvent &  e)
protected

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

Definition at line 213 of file wxLensDB.cpp.

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

void LoadLensDBDialog::SetAperture ( double  aperture)

Definition at line 170 of file wxLensDB.cpp.

References hugin_utils::doubleTowxString(), and m_aperture.

Referenced by ApplyLensDBParameters().

void LoadLensDBDialog::SetFocalLength ( double  focal)

Definition at line 159 of file wxLensDB.cpp.

References hugin_utils::doubleTowxString(), and m_focal.

Referenced by ApplyLensDBParameters().

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

Definition at line 140 of file wxLensDB.cpp.

References m_lenslist, m_lensNames, and OnCheckChanged().

Referenced by ApplyLensDBParameters().

void LoadLensDBDialog::SetSubjectDistance ( double  distance)

Definition at line 181 of file wxLensDB.cpp.

References hugin_utils::doubleTowxString(), and m_distance.

Referenced by ApplyLensDBParameters().

Member Data Documentation

double LoadLensDBDialog::m_aperture
private

Definition at line 65 of file wxLensDB.cpp.

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

double LoadLensDBDialog::m_distance
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

Definition at line 61 of file wxLensDB.cpp.

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

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(), OnCheckChanged(), and OnOk().

wxCheckBox* LoadLensDBDialog::m_loadVignetting
private

Definition at line 63 of file wxLensDB.cpp.

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


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