Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PreviewFrame.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
24 #ifndef _PREVIEWFRAME_H
25 #define _PREVIEWFRAME_H
26 
27 class PreviewPanel;
28 class wxToolBar;
29 class wxToggleButton;
30 class wxCheckBox;
32 
41 {
42 public:
43 
46  PreviewFrame(wxFrame * frame, HuginBase::Panorama &pano);
47 
50  virtual ~PreviewFrame();
51 
54  void OnUpdate(wxCommandEvent& event);
55 
56  void updateProgressDisplay();
57 protected:
58  void OnClose(wxCloseEvent& e);
59 
60  void OnChangeDisplayedImgs(wxCommandEvent & e);
61  void OnAutoPreviewToggle(wxCommandEvent & e);
62  void OnCenterHorizontally(wxCommandEvent & e);
63  void OnFitPano(wxCommandEvent& e);
64  void OnStraighten(wxCommandEvent & e);
65  void OnShowAll(wxCommandEvent & e);
66  void OnShowNone(wxCommandEvent & e);
67  void OnNumTransform(wxCommandEvent & e);
68  void OnChangeFOV(wxScrollEvent & e);
69  void OnTextCtrlChanged(wxCommandEvent & e);
70 
71  void OnDefaultExposure( wxCommandEvent & e );
72  void OnDecreaseExposure( wxSpinEvent & e );
73  void OnIncreaseExposure( wxSpinEvent & e );
74  void OnRangeCompressionIncrease(wxSpinEvent & e);
75  void OnRangeCompressionDecrease(wxSpinEvent & e);
77  void OnProjParameterReset(wxCommandEvent & e);
78 
79  void OnBlendChoice(wxCommandEvent & e);
80  void OnProjectionChoice(wxCommandEvent & e);
81  void OnOutputChoice(wxCommandEvent & e);
83  void OnFullScreen(wxCommandEvent &e);
85  void OnUndo(wxCommandEvent &e);
87  void OnRedo(wxCommandEvent &e);
88 
89  // update the panorama display
90  void updatePano();
91 private:
92 
94 
96  wxToolBar * m_ToolBar;
97  wxSlider * m_HFOVSlider;
98  wxSlider * m_VFOVSlider;
99  wxChoice * m_BlendModeChoice;
100  wxChoice * m_ProjectionChoice;
101  wxChoice * m_outputModeChoice;
102  wxTextCtrl * m_exposureTextCtrl;
103  wxBitmapButton * m_defaultExposureBut;
104  wxSpinButton * m_exposureSpinBut;
107 
108  wxString m_choices[3];
110 
111 // wxButton * m_updatePreview;
112 // wxCheckBox * m_autoCB;
113 
114  wxScrolledWindow * m_ButtonPanel;
115  wxBoxSizer * m_ButtonSizer;
116  wxStaticBoxSizer * m_ToggleButtonSizer;
117 
118  wxBoxSizer * m_topsizer;
119  wxStaticBoxSizer * m_projParamSizer;
120  std::vector<wxStaticText *> m_projParamNamesLabel;
121  std::vector<wxTextCtrl *> m_projParamTextCtrl;
122  std::vector<wxSlider *> m_projParamSlider;
123  std::vector<wxToggleButton *> m_ToggleButtons;
124 
125  DECLARE_EVENT_TABLE()
126 };
127 
128 
129 
130 #endif // _PREVIEWFRAME_H
void OnShowAll(wxCommandEvent &e)
HuginBase::Panorama & m_pano
Definition: PreviewFrame.h:93
void OnUpdate(wxCommandEvent &event)
wxBoxSizer * m_topsizer
Definition: PreviewFrame.h:118
wxString m_choices[3]
Definition: PreviewFrame.h:108
void OnBlendChoice(wxCommandEvent &e)
wxSlider * m_VFOVSlider
Definition: PreviewFrame.h:98
void OnNumTransform(wxCommandEvent &e)
void OnTextCtrlChanged(wxCommandEvent &e)
std::vector< wxStaticText * > m_projParamNamesLabel
Definition: PreviewFrame.h:120
virtual ~PreviewFrame()
dtor.
wxSpinButton * m_exposureSpinBut
Definition: PreviewFrame.h:104
std::vector< wxSlider * > m_projParamSlider
Definition: PreviewFrame.h:122
wxChoice * m_ProjectionChoice
Definition: PreviewFrame.h:100
wxToolBar * m_ToolBar
Definition: PreviewFrame.h:96
void panoramaImagesChanged(HuginBase::Panorama &pano, const HuginBase::UIntSet &changed)
notifies about changes to images
std::set< unsigned int > UIntSet
Definition: PanoramaData.h:51
void OnCenterHorizontally(wxCommandEvent &e)
void OnIncreaseExposure(wxSpinEvent &e)
Model for a panorama.
Definition: Panorama.h:152
void OnUndo(wxCommandEvent &e)
event handler for undo
wxSlider * m_HFOVSlider
Definition: PreviewFrame.h:97
void OnRedo(wxCommandEvent &e)
event handler for redo
void OnProjectionChoice(wxCommandEvent &e)
void OnShowNone(wxCommandEvent &e)
wxBitmapButton * m_defaultExposureBut
Definition: PreviewFrame.h:103
std::vector< wxToggleButton * > m_ToggleButtons
Definition: PreviewFrame.h:123
std::vector< wxTextCtrl * > m_projParamTextCtrl
Definition: PreviewFrame.h:121
void OnChangeFOV(wxScrollEvent &e)
wxBoxSizer * m_ButtonSizer
Definition: PreviewFrame.h:115
wxScrolledWindow * m_ButtonPanel
Definition: PreviewFrame.h:114
The image preview frame.
Definition: PreviewFrame.h:40
void panoramaChanged(HuginBase::Panorama &pano)
Notification about a Panorama change.
void OnStraighten(wxCommandEvent &e)
this handler class will receive change events from the Panorama.
Definition: PanoramaData.h:401
void OnClose(wxCloseEvent &e)
PreviewFrame(wxFrame *frame, HuginBase::Panorama &pano)
ctor.
void OnChangeDisplayedImgs(wxCommandEvent &e)
wxSpinButton * m_rangeCompressionSpinBut
Definition: PreviewFrame.h:106
void OnFitPano(wxCommandEvent &e)
void OnProjParameterReset(wxCommandEvent &e)
event handler for reset projection parameters
void OnOutputChoice(wxCommandEvent &e)
wxStaticBoxSizer * m_projParamSizer
Definition: PreviewFrame.h:119
void OnRangeCompressionIncrease(wxSpinEvent &e)
void OnRangeCompressionDecrease(wxSpinEvent &e)
A preview panel that renders the pictures using the panotools library.
Definition: PreviewPanel.h:40
void OnDefaultExposure(wxCommandEvent &e)
PreviewPanel * m_PreviewPanel
Definition: PreviewFrame.h:95
wxTextCtrl * m_exposureTextCtrl
Definition: PreviewFrame.h:102
wxStaticBoxSizer * m_ToggleButtonSizer
Definition: PreviewFrame.h:116
void OnAutoPreviewToggle(wxCommandEvent &e)
wxTextCtrl * m_rangeCompressionTextCtrl
Definition: PreviewFrame.h:105
void updateProgressDisplay()
update the display
void OnDecreaseExposure(wxSpinEvent &e)
wxChoice * m_BlendModeChoice
Definition: PreviewFrame.h:99
void OnFullScreen(wxCommandEvent &e)
event handler for full screen
wxChoice * m_outputModeChoice
Definition: PreviewFrame.h:101