|
Hugin trunk 0.1
|
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 "base_wx/wxutils.h"
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 | |
| 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. | |
| bool | SaveLensParameters (wxWindow *parent, const HuginBase::SrcPanoImage &img, bool includeVignetting) |
| saves the lensparameter of the given HuginBase::SrcPanoImage into the lens database | |
dialogs for loading and saving information from/to lens database
Definition in file wxLensDB.cpp.
| 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
| 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 |
Definition at line 245 of file wxLensDB.cpp.
References HuginBase::SrcPanoImage::calcFocalLength(), HuginBase::SrcPanoImage::calcHFOV(), HuginBase::BaseSrcPanoImage::CROP_CIRCLE, HuginBase::BaseSrcPanoImage::CROP_RECTANGLE, HuginBase::SrcPanoImage::getDBLensName(), HuginBase::Panorama::getImage(), HuginBase::ConstStandardImageVariableGroups::getLensVariables(), HuginBase::LensDB::LensDB::GetSingleton(), HuginBase::SrcPanoImage::isCircularCrop(), and threshold().
Referenced by PanoOperation::LoadLensOperation::GetInternalCommand().
| bool SaveLensParameters | ( | wxWindow * | parent, |
| const HuginBase::SrcPanoImage & | img, | ||
| bool | includeVignetting = true |
||
| ) |
saves the lensparameter of the given HuginBase::SrcPanoImage into the lens database
| 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 |
Definition at line 529 of file wxLensDB.cpp.
References HuginBase::SrcPanoImage::calcFocalLength(), HuginBase::SrcPanoImage::calcHFOV(), HuginBase::SrcPanoImage::getDBLensName(), HuginBase::LensDB::LensDB::GetSingleton(), hugin_utils::HuginMessageBox(), and threshold().
Definition at line 178 of file wxLensDB.cpp.
References hugin_utils::HuginMessageBox(), hugin_utils::stringToDouble(), and threshold().
Referenced by LoadLensDBDialog::OnOk(), and SaveLensDBDialog::OnOk().