OptimizePhotometricPanel.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00008 /*  This is free software; you can redistribute it and/or
00009  *  modify it under the terms of the GNU General Public
00010  *  License as published by the Free Software Foundation; either
00011  *  version 2 of the License, or (at your option) any later version.
00012  *
00013  *  This software is distributed in the hope that it will be useful,
00014  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  *  Lesser General Public License for more details.
00017  *
00018  *  You should have received a copy of the GNU General Public
00019  *  License along with this software; if not, write to the Free Software
00020  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  *
00022  */
00023 
00024 #ifndef _OPTIMIZE_PHOTO_PANEL_H
00025 #define _OPTIMIZE_PHOTO_PANEL_H
00026 
00027 #include <PT/Panorama.h>
00028 #include <panodata/StandardImageVariableGroups.h>
00029 #include "GuiLevel.h"
00030 
00031 class ImagesTreeCtrl;
00032 
00037 class OptimizePhotometricPanel : public wxPanel, public PT::PanoramaObserver
00038 {
00039 
00040 
00041 public:
00042     OptimizePhotometricPanel();
00043 
00044     bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = wxT("panel"));
00045 
00046     void Init(PT::Panorama * pano);
00047 
00048     virtual ~OptimizePhotometricPanel();
00049 
00051     virtual void panoramaChanged(PT::Panorama & pano);
00053     virtual void panoramaImagesChanged(PT::Panorama &pano, const PT::UIntSet & imgNr);
00054 
00056     void OnOptimizeButton(wxCommandEvent & e);
00057     void SetGuiLevel(GuiLevel newGuiLevel);
00058 
00059 protected:
00060 
00061     void OnClose(wxCloseEvent& e);
00062     void OnReset(wxCommandEvent& e);
00063 
00064     void runOptimizer(const PT::UIntSet & img);
00065 
00066     wxCheckBox * m_only_active_images_cb;
00067 
00068     ImagesTreeCtrl* m_images_tree;
00069     ImagesTreeCtrl* m_lens_tree;
00070 
00071     PT::Panorama * m_pano;
00072 
00073 private:
00074     DECLARE_EVENT_TABLE()
00075     DECLARE_DYNAMIC_CLASS(OptimizePhotometricPanel)
00076 };
00077 
00079 class OptimizePhotometricPanelXmlHandler : public wxXmlResourceHandler
00080 {
00081     DECLARE_DYNAMIC_CLASS(OptimizePhotometricPanelXmlHandler)
00082 
00083 public:
00084     OptimizePhotometricPanelXmlHandler();
00085     virtual wxObject *DoCreateResource();
00086     virtual bool CanHandle(wxXmlNode *node);
00087 };
00088 
00089 #endif // _WXPANOCOMMAND_H

Generated on 5 Dec 2014 for Hugintrunk by  doxygen 1.4.7