LensTools.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00010 /*
00011  *  This is free software; you can redistribute it and/or
00012  *  modify it under the terms of the GNU General Public
00013  *  License as published by the Free Software Foundation; either
00014  *  version 2 of the License, or (at your option) any later version.
00015  *
00016  *  This software is distributed in the hope that it will be useful,
00017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  *  Lesser General Public License for more details.
00020  *
00021  *  You should have received a copy of the GNU General Public
00022  *  License along with this software. If not, see
00023  *  <http://www.gnu.org/licenses/>.
00024  *
00025  */
00026 
00027 #ifndef LENSTOOLS_H
00028 #define LENSTOOLS_H
00029 
00030 #include <hugin_shared.h>
00031 #include "panoinc_WX.h"
00032 #include "panoinc.h"
00033 #include "base_wx/Command.h"
00034 
00037 WXIMPEX void FillLensProjectionList(wxControlWithItems* list);
00040 WXIMPEX void FillBlenderList(wxControlWithItems* list);
00041 
00043 WXIMPEX void SelectListValue(wxControlWithItems* list,size_t newValue);
00045 WXIMPEX size_t GetSelectedValue(wxControlWithItems* list);
00046 
00048 WXIMPEX wxString getProjectionString(const HuginBase::SrcPanoImage& img);
00050 WXIMPEX wxString getResponseString(const HuginBase::SrcPanoImage& img);
00051 
00053 WXIMPEX void SaveLensParameters(const wxString filename, HuginBase::Panorama* pano, unsigned int imgNr);
00055 WXIMPEX void SaveLensParametersToIni(wxWindow * parent, HuginBase::Panorama *pano, const HuginBase::UIntSet images);
00056 
00064 WXIMPEX bool ApplyLensParameters(wxWindow * parent, HuginBase::Panorama *pano, HuginBase::UIntSet images,PanoCommand::PanoCommand*& command);
00073 WXIMPEX bool LoadLensParametersChoose(wxWindow * parent, HuginBase::Lens & lens, 
00074     bool & cropped, bool & autoCenterCrop, vigra::Rect2D & cropRect);
00075 
00081 WXIMPEX bool CheckLensStacks(HuginBase::Panorama* pano, bool allowCancel);
00082 
00083 #endif // LENSTOOLS_H

Generated on 1 Sep 2015 for Hugintrunk by  doxygen 1.4.7