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

dialog for saving lens parameter into lens database More...

Inheritance diagram for SaveLensDBDialog:
Inheritance graph

Public Member Functions

 SaveLensDBDialog (wxWindow *parent)
 Constructor, read from xrc ressource; restore last uses settings, size and position. More...
 
void SetCameraMaker (std::string maker)
 
std::string GetCameraMaker () const
 
void SetCameraModel (std::string model)
 
std::string GetCameraModel () const
 
void SetLensName (std::string lensname)
 
std::string GetLensName () const
 
std::string GetLensMaker () const
 
void SetFocalLength (double focal)
 
double GetFocalLength () const
 
void SetAperture (double aperture)
 
double GetAperture () const
 
void SetSubjectDistance (double distance)
 
double GetSubjectDistance () const
 
bool GetSaveDistortion () const
 
bool GetSaveVignetting () const
 
void DeactivateSaveVignetting ()
 

Protected Member Functions

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

Private Attributes

wxCheckBox * m_saveDistortion
 
wxCheckBox * m_saveVignetting
 
double m_focal { 0 }
 
double m_aperture { 0 }
 
double m_distance { 0 }
 

Detailed Description

dialog for saving lens parameter into lens database

Definition at line 348 of file wxLensDB.cpp.

Constructor & Destructor Documentation

SaveLensDBDialog::SaveLensDBDialog ( wxWindow *  parent)
explicit

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

Definition at line 383 of file wxLensDB.cpp.

References vigra_ext::EMoR::h, m_saveDistortion, m_saveVignetting, OnCheckChanged(), and OnOk().

Member Function Documentation

void SaveLensDBDialog::DeactivateSaveVignetting ( )

Definition at line 514 of file wxLensDB.cpp.

References m_saveVignetting.

Referenced by SaveLensParameters().

double SaveLensDBDialog::GetAperture ( ) const

Definition at line 488 of file wxLensDB.cpp.

References m_aperture.

Referenced by SaveLensParameters().

std::string SaveLensDBDialog::GetCameraMaker ( ) const

Definition at line 435 of file wxLensDB.cpp.

Referenced by OnOk(), and SaveLensParameters().

std::string SaveLensDBDialog::GetCameraModel ( ) const

Definition at line 448 of file wxLensDB.cpp.

Referenced by OnOk(), and SaveLensParameters().

double SaveLensDBDialog::GetFocalLength ( ) const

Definition at line 477 of file wxLensDB.cpp.

References m_focal.

Referenced by SaveLensParameters().

std::string SaveLensDBDialog::GetLensMaker ( ) const

Definition at line 466 of file wxLensDB.cpp.

std::string SaveLensDBDialog::GetLensName ( ) const

Definition at line 461 of file wxLensDB.cpp.

Referenced by OnOk(), and SaveLensParameters().

bool SaveLensDBDialog::GetSaveDistortion ( ) const

Definition at line 504 of file wxLensDB.cpp.

References m_saveDistortion.

Referenced by SaveLensParameters().

bool SaveLensDBDialog::GetSaveVignetting ( ) const

Definition at line 509 of file wxLensDB.cpp.

References m_saveVignetting.

Referenced by SaveLensParameters().

double SaveLensDBDialog::GetSubjectDistance ( ) const

Definition at line 499 of file wxLensDB.cpp.

References m_distance.

Referenced by SaveLensParameters().

void SaveLensDBDialog::OnCheckChanged ( wxCommandEvent &  e)
protected

Definition at line 579 of file wxLensDB.cpp.

References m_saveDistortion, and m_saveVignetting.

Referenced by SaveLensDBDialog().

void SaveLensDBDialog::OnOk ( wxCommandEvent &  e)
protected

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

Definition at line 520 of file wxLensDB.cpp.

References GetCameraMaker(), GetCameraModel(), GetLensName(), hugin_utils::HuginMessageBox(), m_aperture, m_distance, m_focal, m_saveDistortion, m_saveVignetting, and str2double().

Referenced by SaveLensDBDialog().

void SaveLensDBDialog::SetAperture ( double  aperture)

Definition at line 482 of file wxLensDB.cpp.

References hugin_utils::doubleTowxString(), and m_aperture.

Referenced by SaveLensParameters().

void SaveLensDBDialog::SetCameraMaker ( std::string  maker)

Definition at line 427 of file wxLensDB.cpp.

Referenced by SaveLensParameters().

void SaveLensDBDialog::SetCameraModel ( std::string  model)

Definition at line 440 of file wxLensDB.cpp.

Referenced by SaveLensParameters().

void SaveLensDBDialog::SetFocalLength ( double  focal)

Definition at line 471 of file wxLensDB.cpp.

References hugin_utils::doubleTowxString(), and m_focal.

Referenced by SaveLensParameters().

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

Definition at line 453 of file wxLensDB.cpp.

Referenced by SaveLensParameters().

void SaveLensDBDialog::SetSubjectDistance ( double  distance)

Definition at line 493 of file wxLensDB.cpp.

References hugin_utils::doubleTowxString(), and m_distance.

Referenced by SaveLensParameters().

Member Data Documentation

double SaveLensDBDialog::m_aperture { 0 }
private

Definition at line 379 of file wxLensDB.cpp.

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

double SaveLensDBDialog::m_distance { 0 }
private

Definition at line 380 of file wxLensDB.cpp.

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

double SaveLensDBDialog::m_focal { 0 }
private

Definition at line 378 of file wxLensDB.cpp.

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

wxCheckBox* SaveLensDBDialog::m_saveDistortion
private

Definition at line 376 of file wxLensDB.cpp.

Referenced by GetSaveDistortion(), OnCheckChanged(), OnOk(), and SaveLensDBDialog().

wxCheckBox* SaveLensDBDialog::m_saveVignetting
private

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