OptimizePanel.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00024 #ifndef _OPTIMIZE_PANEL_H
00025 #define _OPTIMIZE_PANEL_H
00026 
00027 #include <panodata/Panorama.h>
00028 #include <wx/xrc/xmlres.h>
00029 #include "GuiLevel.h"
00030 
00031 class ImagesTreeCtrl;
00032 class wxCheckBox;
00033 
00038 class OptimizePanel : public wxPanel, public HuginBase::PanoramaObserver
00039 {
00040 
00041 
00042 public:
00043     OptimizePanel();
00044 
00046     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"));
00047 
00048     virtual ~OptimizePanel();
00049 
00050     void Init(HuginBase::Panorama * pano);
00051 
00053     virtual void panoramaChanged(HuginBase::Panorama & pano);
00055     virtual void panoramaImagesChanged(HuginBase::Panorama &pano, const HuginBase::UIntSet & imgNr);
00056 
00058     void OnOptimizeButton(wxCommandEvent & e);
00060     void OnCheckOnlyActiveImages(wxCommandEvent &e);
00062     void SetOnlyActiveImages(const bool onlyActive);
00063     void SetGuiLevel(GuiLevel newGuiLevel);
00064 
00065 protected:
00066 
00067     void OnClose(wxCloseEvent& e);
00068     void OnReset(wxCommandEvent& e);
00069 
00070     void runOptimizer(const HuginBase::UIntSet & img);
00071 
00072     bool AskApplyResult(wxWindow* activeWindow, const HuginBase::Panorama & pano);
00073 
00074     ImagesTreeCtrl* m_images_tree_list;
00075     ImagesTreeCtrl* m_lens_tree_list;
00076 
00077     wxCheckBox * m_only_active_images_cb;
00078     wxCheckBox * m_edit_cb;
00079 
00080     HuginBase::Panorama * m_pano;
00081 private:
00082 
00083     DECLARE_EVENT_TABLE()
00084     DECLARE_DYNAMIC_CLASS(OptimizePanel)
00085 };
00086 
00087 
00089 class OptimizePanelXmlHandler : public wxXmlResourceHandler
00090 {
00091     DECLARE_DYNAMIC_CLASS(OptimizePanelXmlHandler)
00092 
00093 public:
00094     OptimizePanelXmlHandler();
00095     virtual wxObject *DoCreateResource();
00096     virtual bool CanHandle(wxXmlNode *node);
00097 };
00098 
00099 
00100 #endif // _WXPANOCOMMAND_H

Generated on 23 Jul 2016 for Hugintrunk by  doxygen 1.4.7