LoadLensDBDialog Class Reference

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

List of all members.

Public Member Functions

 LoadLensDBDialog (wxWindow *parent)
 Constructor, read from xrc ressource; restore last uses settings, size and position.
void SetCameraMaker (std::string camMaker)
std::string GetCameraMaker () const
void SetCameraModel (std::string camModel)
std::string GetCameraModel () const
void SetLensName (std::string lensname)
std::string GetLensName () const
bool ActivateSelectedLens ()
 activates the lens in database for query information
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.
void OnSearch (wxCommandEvent &e)
 handler for searching for lenses in database
void OnCheckChanged (wxCommandEvent &e)

Private Attributes

wxListBox * m_lenslist
wxCheckBox * m_fuzzySearch
wxCheckBox * m_loadDistortion
wxCheckBox * m_loadVignetting
double m_focal
double m_aperture
double m_distance
HuginBase::LensDB::LensDBList m_dblenslist


Detailed Description

dialog for loading lens parameter from lensfun database

Definition at line 37 of file wxLensDB.cpp.


Constructor & Destructor Documentation

LoadLensDBDialog::OnCheckChanged LoadLensDBDialog::OnCheckChanged LoadLensDBDialog::LoadLensDBDialog wxWindow *  parent  ) 
 

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

Definition at line 86 of file wxLensDB.cpp.


Member Function Documentation

bool LoadLensDBDialog::ActivateSelectedLens  ) 
 

activates the lens in database for query information

Definition at line 171 of file wxLensDB.cpp.

References HuginBase::LensDB::LensDBList::GetLens(), HuginBase::LensDB::LensDB::GetSingleton(), m_dblenslist, and m_lenslist.

Referenced by ApplyLensDBParameters().

double LoadLensDBDialog::GetAperture  )  const
 

Definition at line 202 of file wxLensDB.cpp.

Referenced by ApplyLensDBParameters().

std::string LoadLensDBDialog::GetCameraMaker  )  const
 

Definition at line 138 of file wxLensDB.cpp.

References makefile::string.

Referenced by OnSearch().

std::string LoadLensDBDialog::GetCameraModel  )  const
 

Definition at line 151 of file wxLensDB.cpp.

References makefile::string.

Referenced by OnSearch().

double LoadLensDBDialog::GetFocalLength  )  const
 

Definition at line 191 of file wxLensDB.cpp.

Referenced by ApplyLensDBParameters().

std::string LoadLensDBDialog::GetLensName  )  const
 

Definition at line 166 of file wxLensDB.cpp.

References makefile::string.

Referenced by OnSearch().

bool LoadLensDBDialog::GetLoadDistortion  )  const
 

Definition at line 218 of file wxLensDB.cpp.

References m_loadDistortion.

Referenced by ApplyLensDBParameters().

bool LoadLensDBDialog::GetLoadVignetting  )  const
 

Definition at line 223 of file wxLensDB.cpp.

References m_loadVignetting.

Referenced by ApplyLensDBParameters().

double LoadLensDBDialog::GetSubjectDistance  )  const
 

Definition at line 213 of file wxLensDB.cpp.

Referenced by ApplyLensDBParameters().

void LoadLensDBDialog::OnCheckChanged wxCommandEvent &  e  )  [protected]
 

Definition at line 313 of file wxLensDB.cpp.

References m_lenslist, m_loadDistortion, and m_loadVignetting.

void LoadLensDBDialog::OnOk wxCommandEvent &  e  )  [protected]
 

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

Definition at line 239 of file wxLensDB.cpp.

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

void LoadLensDBDialog::OnSearch wxCommandEvent &  e  )  [protected]
 

handler for searching for lenses in database

Definition at line 280 of file wxLensDB.cpp.

References GetCameraMaker(), GetCameraModel(), HuginBase::LensDB::LensDBList::GetLensCount(), HuginBase::LensDB::LensDBList::GetLensName(), GetLensName(), HuginBase::LensDB::LensDB::GetSingleton(), m_dblenslist, and m_lenslist.

Referenced by SetLensName().

void LoadLensDBDialog::SetAperture double  aperture  ) 
 

Definition at line 196 of file wxLensDB.cpp.

References m_aperture.

Referenced by ApplyLensDBParameters().

void LoadLensDBDialog::SetCameraMaker std::string  camMaker  ) 
 

Definition at line 130 of file wxLensDB.cpp.

Referenced by ApplyLensDBParameters().

void LoadLensDBDialog::SetCameraModel std::string  camModel  ) 
 

Definition at line 143 of file wxLensDB.cpp.

Referenced by ApplyLensDBParameters().

void LoadLensDBDialog::SetFocalLength double  focal  ) 
 

Definition at line 185 of file wxLensDB.cpp.

References m_focal.

Referenced by ApplyLensDBParameters().

void LoadLensDBDialog::SetLensName std::string  lensname  ) 
 

Definition at line 156 of file wxLensDB.cpp.

References OnSearch().

Referenced by ApplyLensDBParameters().

void LoadLensDBDialog::SetSubjectDistance double  distance  ) 
 

Definition at line 207 of file wxLensDB.cpp.

References m_distance.

Referenced by ApplyLensDBParameters().


Member Data Documentation

double LoadLensDBDialog::m_aperture [private]
 

Definition at line 72 of file wxLensDB.cpp.

Referenced by OnOk(), and SetAperture().

HuginBase::LensDB::LensDBList LoadLensDBDialog::m_dblenslist [private]
 

Definition at line 74 of file wxLensDB.cpp.

Referenced by ActivateSelectedLens(), and OnSearch().

double LoadLensDBDialog::m_distance [private]
 

Definition at line 73 of file wxLensDB.cpp.

Referenced by OnOk(), and SetSubjectDistance().

double LoadLensDBDialog::m_focal [private]
 

Definition at line 71 of file wxLensDB.cpp.

Referenced by OnOk(), and SetFocalLength().

wxCheckBox* LoadLensDBDialog::m_fuzzySearch [private]
 

Definition at line 68 of file wxLensDB.cpp.

wxListBox* LoadLensDBDialog::m_lenslist [private]
 

Definition at line 67 of file wxLensDB.cpp.

Referenced by ActivateSelectedLens(), OnCheckChanged(), OnOk(), and OnSearch().

wxCheckBox* LoadLensDBDialog::m_loadDistortion [private]
 

Definition at line 69 of file wxLensDB.cpp.

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

wxCheckBox* LoadLensDBDialog::m_loadVignetting [private]
 

Definition at line 70 of file wxLensDB.cpp.

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


The documentation for this class was generated from the following file:
Generated on Wed Apr 23 01:25:48 2014 for Hugintrunk by  doxygen 1.3.9.1