Hugintrunk
0.1
|
some helper classes for graphes More...
Go to the source code of this file.
Classes | |
struct | HuginLensTools::LensInfo |
structure to name of lens projections and their ids More... | |
Namespaces | |
HuginLensTools | |
FormatString | |
Typedefs | |
typedef std::vector< LensInfo > | HuginLensTools::LensInfoVector |
vector of LensInfo to hold all available lens types More... | |
Functions | |
WXIMPEX void | FillLensProjectionList (wxControlWithItems *list) |
Fills a wxControlWithItem with all input projection formats, the client data contains the associated projection number. More... | |
WXIMPEX HuginLensTools::LensInfoVector | GetLensProjectionList () |
return a vector with all available projections More... | |
WXIMPEX void | FillBlenderList (wxControlWithItems *list) |
Fills a wxControlWithItem with all possible blender options, the client data contains the associated blender mod from PanoramaOptions. More... | |
WXIMPEX void | SelectListValue (wxControlWithItems *list, size_t newValue) |
Selects the given value (stored in the client data) in the given list item. More... | |
WXIMPEX size_t | GetSelectedValue (wxControlWithItems *list) |
Returns the client value of the selected item from list. More... | |
WXIMPEX wxString | getProjectionString (const HuginBase::SrcPanoImage &img) |
Returns translated projection for given image. More... | |
WXIMPEX wxString | getResponseString (const HuginBase::SrcPanoImage &img) |
Returns translated response type for given SrcPanoImage. More... | |
WXIMPEX void | SaveLensParameters (const wxString filename, HuginBase::Panorama *pano, unsigned int imgNr) |
save the lens parameters of the image to a lens file named filename More... | |
WXIMPEX void | SaveLensParametersToIni (wxWindow *parent, HuginBase::Panorama *pano, const HuginBase::UIntSet images) |
saves the lens parameters to ini files, provides all necessary dialogs More... | |
WXIMPEX bool | ApplyLensParameters (wxWindow *parent, HuginBase::Panorama *pano, HuginBase::UIntSet images, PanoCommand::PanoCommand *&command) |
applies lens parameter from user selected file to pano using GlobalCmdHist More... | |
WXIMPEX bool | LoadLensParametersChoose (wxWindow *parent, HuginBase::Lens &lens, bool &cropped, bool &autoCenterCrop, vigra::Rect2D &cropRect) |
load lens parameters from lens ini file More... | |
WXIMPEX bool | CheckLensStacks (HuginBase::Panorama *pano, bool allowCancel) |
check, if lens and stacks are correctly linked shows message box with short information if not More... | |
wxString | FormatString::GetExifDateTime (const HuginBase::SrcPanoImage *img) |
returns Exif DateTimeOriginal as formatted wxString More... | |
wxString | FormatString::GetFocalLength (const HuginBase::SrcPanoImage *img) |
return focallength and focallength 35 mm as wxString More... | |
wxString | FormatString::GetAperture (const HuginBase::SrcPanoImage *img) |
returns formatted aperture value More... | |
wxString | FormatString::GetExposureTime (const HuginBase::SrcPanoImage *img) |
returns formatted exposure time More... | |
wxString | FormatString::GetIso (const HuginBase::SrcPanoImage *img) |
returns formatted iso value More... | |
some helper classes for graphes
some helper classes for working with lenses
Definition in file LensTools.h.
WXIMPEX bool ApplyLensParameters | ( | wxWindow * | parent, |
HuginBase::Panorama * | pano, | ||
HuginBase::UIntSet | images, | ||
PanoCommand::PanoCommand *& | command | ||
) |
applies lens parameter from user selected file to pano using GlobalCmdHist
parent | parent window for showing message boxes |
pano | Panorama in which the lens data should read |
images | images for which the lens parameters should be set, check image sizes before running this function |
command | pointer to PanoCommand::PanoCommand for insertion into command history |
Referenced by PanoOperation::LoadLensOperation::GetInternalCommand().
WXIMPEX bool CheckLensStacks | ( | HuginBase::Panorama * | pano, |
bool | allowCancel | ||
) |
check, if lens and stacks are correctly linked shows message box with short information if not
pano | Panorama which should be checked |
allowCancel | if true the message box contains also a Cancel button, if false there is only ok button |
Definition at line 446 of file LensTools.cpp.
References flags, HuginBase::Panorama::getImage(), and HuginBase::Panorama::getNrOfImages().
Referenced by OptimizePanel::OnOptimizeButton(), and PanoCommand::wxLoadPTProjectCmd::processPanorama().
WXIMPEX void FillBlenderList | ( | wxControlWithItems * | list | ) |
Fills a wxControlWithItem with all possible blender options, the client data contains the associated blender mod from PanoramaOptions.
Definition at line 81 of file LensTools.cpp.
References HuginBase::PanoramaOptions::ENBLEND_BLEND, and HuginBase::PanoramaOptions::INTERNAL_BLEND.
Referenced by PanoPanel::Create(), FindPanoDialog::FindPanoDialog(), and PreferencesDialog::PreferencesDialog().
WXIMPEX void FillLensProjectionList | ( | wxControlWithItems * | list | ) |
Fills a wxControlWithItem with all input projection formats, the client data contains the associated projection number.
Definition at line 35 of file LensTools.cpp.
References GetLensProjectionList().
Referenced by ImagesPanel::Create(), HFOVDialog::HFOVDialog(), and LensCalFrame::LensCalFrame().
WXIMPEX HuginLensTools::LensInfoVector GetLensProjectionList | ( | ) |
return a vector with all available projections
Definition at line 45 of file LensTools.cpp.
References HuginBase::BaseSrcPanoImage::CIRCULAR_FISHEYE, HuginBase::BaseSrcPanoImage::EQUIRECTANGULAR, HuginBase::BaseSrcPanoImage::FISHEYE_EQUISOLID, HuginBase::BaseSrcPanoImage::FISHEYE_ORTHOGRAPHIC, HuginBase::BaseSrcPanoImage::FISHEYE_STEREOGRAPHIC, HuginBase::BaseSrcPanoImage::FISHEYE_THOBY, HuginBase::BaseSrcPanoImage::FULL_FRAME_FISHEYE, HuginLensTools::LensInfo::id, HuginLensTools::LensInfo::name, HuginBase::BaseSrcPanoImage::PANORAMIC, and HuginBase::BaseSrcPanoImage::RECTILINEAR.
Referenced by FillLensProjectionList(), and GLPreviewFrame::GLPreviewFrame().
WXIMPEX wxString getProjectionString | ( | const HuginBase::SrcPanoImage & | img | ) |
Returns translated projection for given image.
Definition at line 107 of file LensTools.cpp.
References HuginBase::BaseSrcPanoImage::CIRCULAR_FISHEYE, HuginBase::BaseSrcPanoImage::EQUIRECTANGULAR, HuginBase::BaseSrcPanoImage::FISHEYE_EQUISOLID, HuginBase::BaseSrcPanoImage::FISHEYE_ORTHOGRAPHIC, HuginBase::BaseSrcPanoImage::FISHEYE_STEREOGRAPHIC, HuginBase::BaseSrcPanoImage::FISHEYE_THOBY, HuginBase::BaseSrcPanoImage::FULL_FRAME_FISHEYE, HuginBase::BaseSrcPanoImage::PANORAMIC, and HuginBase::BaseSrcPanoImage::RECTILINEAR.
Referenced by HuginQueue::detail::PrintDetailInfo(), ImagesTreeCtrl::UpdateGroupText(), and ImagesTreeCtrl::UpdateImageText().
WXIMPEX wxString getResponseString | ( | const HuginBase::SrcPanoImage & | img | ) |
Returns translated response type for given SrcPanoImage.
Definition at line 125 of file LensTools.cpp.
References HuginBase::BaseSrcPanoImage::RESPONSE_EMOR, and HuginBase::BaseSrcPanoImage::RESPONSE_LINEAR.
Referenced by HuginQueue::detail::PrintDetailInfo(), ImagesTreeCtrl::UpdateGroupText(), and ImagesTreeCtrl::UpdateImageText().
WXIMPEX size_t GetSelectedValue | ( | wxControlWithItems * | list | ) |
Returns the client value of the selected item from list.
Definition at line 102 of file LensTools.cpp.
Referenced by PanoPanel::BlenderChanged(), FindPanoDialog::OnButtonSend(), ImagesPanel::OnLensTypeChanged(), HFOVDialog::OnTypeChanged(), LensCalFrame::ReadInputs(), PreferencesDialog::UpdateConfigData(), and FindPanoDialog::~FindPanoDialog().
WXIMPEX bool LoadLensParametersChoose | ( | wxWindow * | parent, |
HuginBase::Lens & | lens, | ||
bool & | cropped, | ||
bool & | autoCenterCrop, | ||
vigra::Rect2D & | cropRect | ||
) |
load lens parameters from lens ini file
parent | parent window, for showing messageboxes |
lens | lens, for reading projection and lensparameters |
cropped | read if cropped enabled |
autoCenterCrop | read if automatic center crop |
cropRect | read crop rect |
Definition at line 290 of file LensTools.cpp.
References DEBUG_DEBUG, HuginBase::Lens::getImageSize(), vigra_ext::EMoR::h, map_get(), HuginBase::Lens::setCropFactor(), HuginBase::Lens::setProjection(), HuginBase::Lens::variableNames, and HuginBase::Lens::variables.
Referenced by HFOVDialog::OnLoadLensParameters().
WXIMPEX void SaveLensParameters | ( | const wxString | filename, |
HuginBase::Panorama * | pano, | ||
unsigned int | imgNr | ||
) |
save the lens parameters of the image to a lens file named filename
Definition at line 143 of file LensTools.cpp.
References const_map_get(), HuginBase::Lens::getCropFactor(), HuginBase::Panorama::getImage(), HuginBase::Lens::getImageSize(), HuginBase::Panorama::getImageVariables(), HuginBase::ConstStandardImageVariableGroups::getLensForImage(), HuginBase::Lens::getProjection(), HuginBase::BaseSrcPanoImage::NO_CROP, HuginBase::Lens::variableNames, and HuginBase::Lens::variables.
Referenced by PanoOperation::SaveLensOperation::GetInternalCommand(), LensCalFrame::OnSaveLens(), SaveLensParametersToIni(), and LensCalFrame::SaveLensToIni().
WXIMPEX void SaveLensParametersToIni | ( | wxWindow * | parent, |
HuginBase::Panorama * | pano, | ||
const HuginBase::UIntSet | images | ||
) |
saves the lens parameters to ini files, provides all necessary dialogs
Definition at line 410 of file LensTools.cpp.
References SaveLensParameters().
Referenced by PanoOperation::SaveLensOperation::GetInternalCommand().
WXIMPEX void SelectListValue | ( | wxControlWithItems * | list, |
size_t | newValue | ||
) |
Selects the given value (stored in the client data) in the given list item.
Definition at line 89 of file LensTools.cpp.
Referenced by LensCalFrame::AddImages(), FindPanoDialog::FindPanoDialog(), HFOVDialog::HFOVDialog(), HFOVDialog::OnLoadLensParameters(), ImagesPanel::OnSelectionChanged(), PanoPanel::UpdateDisplay(), and PreferencesDialog::UpdateDisplayData().