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);
00064     void OnCheckIgnoreLineCP(wxCommandEvent &e);
00066     void SetIgnoreLineCP(const bool noLineCp);
00067     void SetGuiLevel(GuiLevel newGuiLevel);
00068 
00069 protected:
00070 
00071     void OnClose(wxCloseEvent& e);
00072     void OnReset(wxCommandEvent& e);
00073 
00074     void runOptimizer(const HuginBase::UIntSet & img, const bool ignoreLineCp);
00075 
00076     bool AskApplyResult(wxWindow* activeWindow, const HuginBase::Panorama & pano);
00077 
00078     ImagesTreeCtrl* m_images_tree_list;
00079     ImagesTreeCtrl* m_lens_tree_list;
00080 
00081     wxCheckBox * m_only_active_images_cb;
00082     wxCheckBox * m_ignore_line_cp;
00083     wxCheckBox * m_edit_cb;
00084 
00085     HuginBase::Panorama * m_pano;
00086 private:
00087 
00088     DECLARE_EVENT_TABLE()
00089     DECLARE_DYNAMIC_CLASS(OptimizePanel)
00090 };
00091 
00092 
00094 class OptimizePanelXmlHandler : public wxXmlResourceHandler
00095 {
00096     DECLARE_DYNAMIC_CLASS(OptimizePanelXmlHandler)
00097 
00098 public:
00099     OptimizePanelXmlHandler();
00100     virtual wxObject *DoCreateResource();
00101     virtual bool CanHandle(wxXmlNode *node);
00102 };
00103 
00104 
00105 #endif // _WXPANOCOMMAND_H

Generated on 17 Aug 2017 for Hugintrunk by  doxygen 1.4.7