[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

hugin1/hugin/OptimizePhotometricPanel.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00024 #ifndef _OPTIMIZE_PHOTO_PANEL_H
00025 #define _OPTIMIZE_PHOTO_PANEL_H
00026 
00027 #include <PT/Panorama.h>
00028 #include <panodata/StandardImageVariableGroups.h>
00029 
00030 class wxCheckListBox;
00031 
00036 class OptimizePhotometricPanel : public wxPanel, public PT::PanoramaObserver
00037 {
00038 
00039 
00040 public:
00041     OptimizePhotometricPanel();
00042 
00043     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"));
00044 
00045     void Init(PT::Panorama * pano);
00046 
00047     virtual ~OptimizePhotometricPanel();
00048 
00050     virtual void panoramaChanged(PT::Panorama & pano);
00052     virtual void panoramaImagesChanged(PT::Panorama &pano, const PT::UIntSet & imgNr);
00053 
00059     PT::OptimizeVector getOptimizeVector();
00060 
00062     void setOptimizeVector(const PT::OptimizeVector & optvec);
00063 
00065     void OnOptimizeButton(wxCommandEvent & e);
00066 
00067 protected:
00068 
00069     void OnClose(wxCloseEvent& e);
00070 
00071     // shortcuts to check/uncheck
00072     void OnSelExposure(wxCommandEvent & e);
00073     void OnDelExposure(wxCommandEvent & e);
00074     void OnSelWB(wxCommandEvent & e);
00075     void OnDelWB(wxCommandEvent & e);
00076 
00077     // helper function for wxCheckListBox
00078     void SetCheckMark(wxCheckListBox * l, int check, int anchor = -1);
00079 
00080     // called whenever the optimize mode changes
00081     void OnChangeMode(wxCommandEvent & e);
00082 
00083     void runOptimizer(const PT::UIntSet & img);
00084 
00085     wxCheckBox * m_only_active_images_cb;
00086 
00087     wxCheckListBox * m_vig_list;
00088     wxCheckListBox * m_vigc_list;
00089     wxCheckListBox * m_exp_list;
00090     wxCheckListBox * m_wb_list;
00091     wxCheckListBox * m_resp_list;
00092 
00093     wxChoice * m_mode_cb;
00094 
00095     wxScrolledWindow *m_opt_ctrls;
00096 
00097     PT::Panorama * m_pano;
00098     HuginBase::ConstStandardImageVariableGroups *variable_groups;
00099 private:
00100         
00101     DECLARE_EVENT_TABLE()
00102     DECLARE_DYNAMIC_CLASS(OptimizePhotometricPanel)
00103 };
00104 
00106 class OptimizePhotometricPanelXmlHandler : public wxXmlResourceHandler
00107 {
00108     DECLARE_DYNAMIC_CLASS(OptimizePhotometricPanelXmlHandler)
00109 
00110 public:
00111     OptimizePhotometricPanelXmlHandler();
00112     virtual wxObject *DoCreateResource();
00113     virtual bool CanHandle(wxXmlNode *node);
00114 };
00115 
00116 #endif // _WXPANOCOMMAND_H

Generated on Mon Sep 20 01:01:26 2010 for Hugintrunk by doxygen 1.3.9.1