Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
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

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. More...
 
bool SaveLensParameters (wxWindow *parent, const HuginBase::SrcPanoImage &img, bool includeVignetting)
 saves the lensparameter of the given HuginBase::SrcPanoImage into the lens database More...
 

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
parentparent window for display window
panopanorama object from which information should be inside lens database
imagesimages into which parameters should be loaded from database
cmdcontains the PanoCommand::PanoCommand to apply
Returns
true, if right parameters could be loaded from database

Definition at line 275 of file wxLensDB.cpp.

References HuginBase::SrcPanoImage::calcFocalLength(), HuginBase::SrcPanoImage::calcHFOV(), HuginBase::BaseSrcPanoImage::CROP_CIRCLE, HuginBase::BaseSrcPanoImage::CROP_RECTANGLE, LoadLensDBDialog::GetAperture(), HuginBase::LensDB::LensDB::GetCrop(), HuginBase::SrcPanoImage::getDBLensName(), HuginBase::LensDB::LensDB::GetDistortion(), LoadLensDBDialog::GetFocalLength(), HuginBase::LensDB::LensDB::GetFov(), HuginBase::Panorama::getImage(), LoadLensDBDialog::GetLensName(), HuginBase::ConstStandardImageVariableGroups::getLensVariables(), LoadLensDBDialog::GetLoadDistortion(), LoadLensDBDialog::GetLoadVignetting(), HuginBase::LensDB::LensDB::GetProjection(), HuginBase::LensDB::LensDB::GetSingleton(), LoadLensDBDialog::GetSubjectDistance(), HuginBase::LensDB::LensDB::GetVignetting(), HuginBase::SrcPanoImage::isCircularCrop(), LoadLensDBDialog::SetAperture(), LoadLensDBDialog::SetFocalLength(), LoadLensDBDialog::SetLensName(), and LoadLensDBDialog::SetSubjectDistance().

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

bool SaveLensParameters ( wxWindow *  parent,
const HuginBase::SrcPanoImage img,
bool  includeVignetting = true 
)
bool str2double ( wxWindow *  parent,
wxString  s,
double &  d 
)

Definition at line 203 of file wxLensDB.cpp.

References hugin_utils::stringToDouble().

Referenced by LoadLensDBDialog::OnOk(), and SaveLensDBDialog::OnOk().