wxLensDB.cpp File Reference

dialogs for loading and saving information from/to lens database More...

#include "panoinc_WX.h"
#include "panoinc.h"
#include "wxLensDB.h"
#include "lensdb/LensDB.h"
#include "platform.h"
#include "base_wx/wxPlatform.h"
#include "panodata/ImageVariableTranslate.h"
#include "panodata/ImageVariableGroup.h"
#include "base_wx/PanoCommand.h"
#include <set>

Include dependency graph for wxLensDB.cpp:

Go to the source code of this file.

Classes

class  LoadLensDBDialog
 dialog for loading lens parameter from lens database More...
class  SaveLensDBDialog
 dialog for saving lens parameter into lens database More...

Functions

 EVT_CHOICE (XRCID("load_lens_lenschoice"), LoadLensDBDialog::OnCheckChanged) EVT_CHECKBOX(XRCID("load_lens_distortion")
LoadLensDBDialog::OnCheckChanged EVT_CHECKBOX (XRCID("load_lens_vignetting"), LoadLensDBDialog::OnCheckChanged) LoadLensDBDialog
bool str2double (wxWindow *parent, wxString s, double &d)
bool ApplyLensDBParameters (wxWindow *parent, HuginBase::Panorama *pano, HuginBase::UIntSet images, PanoCommand::PanoCommand *&cmd)
 loads the lens parameters from lens database and create approbiate PanoCommand::PanoCommand to apply this parameter.
 EVT_CHECKBOX (XRCID("save_lens_distortion"), SaveLensDBDialog::OnCheckChanged) EVT_CHECKBOX(XRCID("save_lens_vignetting")
bool SaveLensParameters (wxWindow *parent, const HuginBase::SrcPanoImage &img, bool includeVignetting)
 saves the lensparameter of the given HuginBase::SrcPanoImage into the lens database


Detailed Description

dialogs for loading and saving information from/to lens database

Author:
T. Modes

Definition in file wxLensDB.cpp.


Function Documentation

bool ApplyLensDBParameters ( wxWindow *  parent,
HuginBase::Panorama pano,
HuginBase::UIntSet  images,
PanoCommand::PanoCommand *&  cmd 
)

loads the lens parameters from lens database and create approbiate PanoCommand::PanoCommand to apply this parameter.

it shows a dialog to select which information should be loaded

Parameters:
parent parent window for display window
pano panorama object from which information should be inside lens database
images images into which parameters should be loaded from database
cmd contains the PanoCommand::PanoCommand to apply
Returns:
true, if right parameters could be loaded from database

Definition at line 277 of file wxLensDB.cpp.

References HuginBase::SrcPanoImage::calcFocalLength(), HuginBase::SrcPanoImage::calcHFOV(), HuginBase::BaseSrcPanoImage::CROP_CIRCLE, HuginBase::BaseSrcPanoImage::CROP_RECTANGLE, LoadLensDBDialog::GetAperture(), HuginBase::SrcPanoImage::getDBLensName(), LoadLensDBDialog::GetFocalLength(), HuginBase::Panorama::getImage(), LoadLensDBDialog::GetLensName(), HuginBase::ConstStandardImageVariableGroups::getLensVariables(), LoadLensDBDialog::GetLoadDistortion(), LoadLensDBDialog::GetLoadVignetting(), HuginBase::LensDB::LensDB::GetSingleton(), LoadLensDBDialog::GetSubjectDistance(), HuginBase::SrcPanoImage::isCircularCrop(), HuginBase::ConstImageVariableGroup::IVE_HFOV, HuginBase::ConstImageVariableGroup::IVE_RadialDistortion, HuginBase::ConstImageVariableGroup::IVE_RadialVigCorrCoeff, LoadLensDBDialog::SetAperture(), LoadLensDBDialog::SetFocalLength(), LoadLensDBDialog::SetLensName(), and LoadLensDBDialog::SetSubjectDistance().

Referenced by PanoOperation::LoadLensOperation::GetInternalCommand().

EVT_CHECKBOX ( XRCID("save_lens_distortion")  ,
SaveLensDBDialog::OnCheckChanged   
)

LoadLensDBDialog::OnCheckChanged EVT_CHECKBOX ( XRCID("load_lens_vignetting")  ,
LoadLensDBDialog::OnCheckChanged   
)

Definition at line 77 of file wxLensDB.cpp.

References vigra_ext::EMoR::h.

EVT_CHOICE ( XRCID("load_lens_lenschoice")  ,
LoadLensDBDialog::OnCheckChanged   
)

bool SaveLensParameters ( wxWindow *  parent,
const HuginBase::SrcPanoImage img,
bool  includeVignetting = true 
)

saves the lensparameter of the given HuginBase::SrcPanoImage into the lens database

Parameters:
parent parent window for display dialog
img HuginBase::SrcPanoImage, which contains the information which should be stored inside lens database
includeVignetting if the vignetting correction can be selected
Returns:
true, if information could be stored into the database

Definition at line 593 of file wxLensDB.cpp.

References HuginBase::SrcPanoImage::calcFocalLength(), HuginBase::SrcPanoImage::calcHFOV(), SaveLensDBDialog::DeactivateSaveVignetting(), SaveLensDBDialog::GetAperture(), SaveLensDBDialog::GetCameraMaker(), SaveLensDBDialog::GetCameraModel(), HuginBase::SrcPanoImage::getDBLensName(), SaveLensDBDialog::GetFocalLength(), SaveLensDBDialog::GetLensName(), SaveLensDBDialog::GetSaveDistortion(), SaveLensDBDialog::GetSaveVignetting(), HuginBase::LensDB::LensDB::GetSingleton(), SaveLensDBDialog::GetSubjectDistance(), HuginBase::LensDB::LensDB::SaveCameraCrop(), HuginBase::LensDB::LensDB::SaveDistortion(), HuginBase::LensDB::LensDB::SaveLensFov(), HuginBase::LensDB::LensDB::SaveVignetting(), SaveLensDBDialog::SetAperture(), SaveLensDBDialog::SetCameraMaker(), SaveLensDBDialog::SetCameraModel(), SaveLensDBDialog::SetFocalLength(), SaveLensDBDialog::SetLensName(), and SaveLensDBDialog::SetSubjectDistance().

bool str2double ( wxWindow *  parent,
wxString  s,
double &  d 
)

Definition at line 205 of file wxLensDB.cpp.

References hugin_utils::stringToDouble().

Referenced by ImageVariableDialog::ApplyNewVariables(), PanoPanel::HFOVChanged(), ImagesPanel::OnCropFactorChanged(), GLPreviewFrame::OnCropFactorChanged(), HFOVDialog::OnCropFactorChanged(), ImagesTreeCtrl::OnEndEdit(), GLPreviewFrame::OnExposureChanged(), ImagesPanel::OnFocalLengthChanged(), GLPreviewFrame::OnFocalLengthChanged(), HFOVDialog::OnFocalLengthChanged(), GLPreviewFrame::OnHFOVChanged(), HFOVDialog::OnHFOVChanged(), ImagesPanel::OnMaxEvDiffChanged(), ImagesPanel::OnMinimumOverlapChanged(), PreviewFrame::OnNumTransform(), SaveLensDBDialog::OnOk(), LoadLensDBDialog::OnOk(), GLPreviewFrame::OnProjParameterChanged(), CPListFrame::OnSelectButton(), ImageVariableDialog::OnShowDistortionGraph(), ImageVariableDialog::OnShowResponseGraph(), ImageVariableDialog::OnShowVignettingGraph(), PreviewFrame::OnTextCtrlChanged(), CPEditorPanel::OnTextPointChange(), GLPreviewFrame::OnVFOVChanged(), LensCalFrame::ReadInputs(), and PanoPanel::VFOVChanged().


Generated on 29 Aug 2015 for Hugintrunk by  doxygen 1.4.7