Hugin trunk 0.1
Loading...
Searching...
No Matches
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.
 
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.
 
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 321 of file wxLensDB.cpp.

Constructor & Destructor Documentation

◆ SaveLensDBDialog()

SaveLensDBDialog::SaveLensDBDialog ( wxWindow *  parent)
explicit

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

Definition at line 356 of file wxLensDB.cpp.

References m_saveDistortion, m_saveVignetting, OnCheckChanged(), OnOk(), hugin_utils::RestoreFramePosition(), and threshold().

Member Function Documentation

◆ DeactivateSaveVignetting()

void SaveLensDBDialog::DeactivateSaveVignetting ( )

Definition at line 464 of file wxLensDB.cpp.

References m_saveVignetting.

◆ GetAperture()

double SaveLensDBDialog::GetAperture ( ) const

Definition at line 438 of file wxLensDB.cpp.

References m_aperture.

◆ GetCameraMaker()

std::string SaveLensDBDialog::GetCameraMaker ( ) const

Definition at line 385 of file wxLensDB.cpp.

References threshold().

Referenced by OnOk().

◆ GetCameraModel()

std::string SaveLensDBDialog::GetCameraModel ( ) const

Definition at line 398 of file wxLensDB.cpp.

References threshold().

Referenced by OnOk().

◆ GetFocalLength()

double SaveLensDBDialog::GetFocalLength ( ) const

Definition at line 427 of file wxLensDB.cpp.

References m_focal.

◆ GetLensMaker()

std::string SaveLensDBDialog::GetLensMaker ( ) const

Definition at line 416 of file wxLensDB.cpp.

References threshold().

◆ GetLensName()

std::string SaveLensDBDialog::GetLensName ( ) const

Definition at line 411 of file wxLensDB.cpp.

References threshold().

Referenced by OnOk().

◆ GetSaveDistortion()

bool SaveLensDBDialog::GetSaveDistortion ( ) const

Definition at line 454 of file wxLensDB.cpp.

References m_saveDistortion.

◆ GetSaveVignetting()

bool SaveLensDBDialog::GetSaveVignetting ( ) const

Definition at line 459 of file wxLensDB.cpp.

References m_saveVignetting.

◆ GetSubjectDistance()

double SaveLensDBDialog::GetSubjectDistance ( ) const

Definition at line 449 of file wxLensDB.cpp.

References m_distance.

◆ OnCheckChanged()

void SaveLensDBDialog::OnCheckChanged ( wxCommandEvent &  e)
protected

Definition at line 524 of file wxLensDB.cpp.

References m_saveDistortion, m_saveVignetting, and threshold().

Referenced by SaveLensDBDialog().

◆ OnOk()

void SaveLensDBDialog::OnOk ( wxCommandEvent &  e)
protected

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

Definition at line 470 of file wxLensDB.cpp.

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

Referenced by SaveLensDBDialog().

◆ SetAperture()

void SaveLensDBDialog::SetAperture ( double  aperture)

Definition at line 432 of file wxLensDB.cpp.

References hugin_utils::doubleTowxString(), m_aperture, and threshold().

◆ SetCameraMaker()

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

Definition at line 377 of file wxLensDB.cpp.

References threshold().

◆ SetCameraModel()

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

Definition at line 390 of file wxLensDB.cpp.

References threshold().

◆ SetFocalLength()

void SaveLensDBDialog::SetFocalLength ( double  focal)

Definition at line 421 of file wxLensDB.cpp.

References hugin_utils::doubleTowxString(), m_focal, and threshold().

◆ SetLensName()

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

Definition at line 403 of file wxLensDB.cpp.

References threshold().

◆ SetSubjectDistance()

void SaveLensDBDialog::SetSubjectDistance ( double  distance)

Definition at line 443 of file wxLensDB.cpp.

References hugin_utils::doubleTowxString(), m_distance, and threshold().

Member Data Documentation

◆ m_aperture

double SaveLensDBDialog::m_aperture { 0 }
private

Definition at line 352 of file wxLensDB.cpp.

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

◆ m_distance

double SaveLensDBDialog::m_distance { 0 }
private

Definition at line 353 of file wxLensDB.cpp.

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

◆ m_focal

double SaveLensDBDialog::m_focal { 0 }
private

Definition at line 351 of file wxLensDB.cpp.

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

◆ m_saveDistortion

wxCheckBox* SaveLensDBDialog::m_saveDistortion
private

Definition at line 349 of file wxLensDB.cpp.

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

◆ m_saveVignetting

wxCheckBox* SaveLensDBDialog::m_saveVignetting
private

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