ImageVariableDialog.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00010 /*  This is free software; you can redistribute it and/or
00011  *  modify it under the terms of the GNU General Public
00012  *  License as published by the Free Software Foundation; either
00013  *  version 2 of the License, or (at your option) any later version.
00014  *
00015  *  This software is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  *  Lesser General Public License for more details.
00019  *
00020  *  You should have received a copy of the GNU General Public
00021  *  License along with this software. If not, see
00022  *  <http://www.gnu.org/licenses/>.
00023  *
00024  */
00025 
00026 #ifndef _IMAGEVARIABLEDIALOG_H
00027 #define _IMAGEVARIABLEDIALOG_H
00028 
00029 #include "panoinc_WX.h"
00030 #include "panoinc.h"
00031 #include "GuiLevel.h"
00032 
00033 // forward declaration
00034 namespace wxGraphTools
00035 {
00036 class GraphPopupWindow;
00037 };
00038 
00040 class ImageVariableDialog : public wxDialog
00041 {
00042 public:
00044     ImageVariableDialog(wxWindow *parent, HuginBase::Panorama* pano, HuginBase::UIntSet imgs);
00046     ~ImageVariableDialog();
00048     void SetGuiLevel(GuiLevel newLevel);
00050     void SelectTab(size_t i);
00051 
00052 protected:
00054     void OnOk(wxCommandEvent & e);
00056     void OnHelp(wxCommandEvent & e);
00058     void OnShowDistortionGraph(wxCommandEvent & e);
00060     void OnShowVignettingGraph(wxCommandEvent & e);
00062     void OnShowResponseGraph(wxCommandEvent & e);
00063 
00064 private:
00065     HuginBase::Panorama* m_pano;
00066     HuginBase::UIntSet m_images;
00067     static const char *m_varNames[];
00068     wxGraphTools::GraphPopupWindow* m_popup;
00070     void InitValues();
00072     bool ApplyNewVariables();
00073 
00074     DECLARE_EVENT_TABLE()
00075 };
00076 
00077 #endif //_IMAGEVARIABLEDIALOG_H

Generated on 21 Sep 2017 for Hugintrunk by  doxygen 1.4.7