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 OnExposureTextChanged(wxCommandEvent& e);
70  void OnRangeCompressionTextChanged(wxCommandEvent& e);
71  void OnTextCtrlChanged(wxCommandEvent & e);
72 
73  void OnDefaultExposure( wxCommandEvent & e );
74  void OnDecreaseExposure( wxSpinEvent & e );
75  void OnIncreaseExposure( wxSpinEvent & e );
76  void OnRangeCompressionIncrease(wxSpinEvent & e);
77  void OnRangeCompressionDecrease(wxSpinEvent & e);
79  void OnProjParameterReset(wxCommandEvent & e);
80 
81  void OnBlendChoice(wxCommandEvent & e);
82  void OnProjectionChoice(wxCommandEvent & e);
83  void OnOutputChoice(wxCommandEvent & e);
85  void OnFullScreen(wxCommandEvent &e);
87  void OnUndo(wxCommandEvent &e);
89  void OnRedo(wxCommandEvent &e);
90 
91  // update the panorama display
92  void updatePano();
93 private:
94 
96 
98  wxToolBar * m_ToolBar;
99  wxSlider * m_HFOVSlider;
100  wxSlider * m_VFOVSlider;
101  wxChoice * m_BlendModeChoice;
102  wxChoice * m_ProjectionChoice;
103  wxChoice * m_outputModeChoice;
104  wxTextCtrl * m_exposureTextCtrl;
105  wxBitmapButton * m_defaultExposureBut;
106  wxSpinButton * m_exposureSpinBut;
109 
110  wxString m_choices[3];
112 
113 // wxButton * m_updatePreview;
114 // wxCheckBox * m_autoCB;
115 
116  wxScrolledWindow * m_ButtonPanel;
117  wxBoxSizer * m_ButtonSizer;
118  wxStaticBoxSizer * m_ToggleButtonSizer;
119 
120  wxBoxSizer * m_topsizer;
121  wxStaticBoxSizer * m_projParamSizer;
122  std::vector<wxStaticText *> m_projParamNamesLabel;
123  std::vector<wxTextCtrl *> m_projParamTextCtrl;
124  std::vector<wxSlider *> m_projParamSlider;
125  std::vector<wxToggleButton *> m_ToggleButtons;
126 };
127 
128 
129 
130 #endif // _PREVIEWFRAME_H
void OnShowAll(wxCommandEvent &e)
HuginBase::Panorama & m_pano
Definition: PreviewFrame.h:95
void OnUpdate(wxCommandEvent &event)
wxBoxSizer * m_topsizer
Definition: PreviewFrame.h:120
wxString m_choices[3]
Definition: PreviewFrame.h:110
void OnBlendChoice(wxCommandEvent &e)
wxSlider * m_VFOVSlider
Definition: PreviewFrame.h:100
void OnNumTransform(wxCommandEvent &e)
void OnTextCtrlChanged(wxCommandEvent &e)
std::vector< wxStaticText * > m_projParamNamesLabel
Definition: PreviewFrame.h:122
virtual ~PreviewFrame()
dtor.
wxSpinButton * m_exposureSpinBut
Definition: PreviewFrame.h:106
std::vector< wxSlider * > m_projParamSlider
Definition: PreviewFrame.h:124
wxChoice * m_ProjectionChoice
Definition: PreviewFrame.h:102
wxToolBar * m_ToolBar
Definition: PreviewFrame.h:98
void panoramaImagesChanged(HuginBase::Panorama &pano, const HuginBase::UIntSet &changed)
notifies about changes to images
void OnRangeCompressionTextChanged(wxCommandEvent &e)
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:99
void OnRedo(wxCommandEvent &e)
event handler for redo
void OnExposureTextChanged(wxCommandEvent &e)
void OnProjectionChoice(wxCommandEvent &e)
void OnShowNone(wxCommandEvent &e)
wxBitmapButton * m_defaultExposureBut
Definition: PreviewFrame.h:105
std::vector< wxToggleButton * > m_ToggleButtons
Definition: PreviewFrame.h:125
std::vector< wxTextCtrl * > m_projParamTextCtrl
Definition: PreviewFrame.h:123
void OnChangeFOV(wxScrollEvent &e)
wxBoxSizer * m_ButtonSizer
Definition: PreviewFrame.h:117
wxScrolledWindow * m_ButtonPanel
Definition: PreviewFrame.h:116
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:108
void OnFitPano(wxCommandEvent &e)
void OnProjParameterReset(wxCommandEvent &e)
event handler for reset projection parameters
void OnOutputChoice(wxCommandEvent &e)
wxStaticBoxSizer * m_projParamSizer
Definition: PreviewFrame.h:121
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:97
wxTextCtrl * m_exposureTextCtrl
Definition: PreviewFrame.h:104
wxStaticBoxSizer * m_ToggleButtonSizer
Definition: PreviewFrame.h:118
void OnAutoPreviewToggle(wxCommandEvent &e)
wxTextCtrl * m_rangeCompressionTextCtrl
Definition: PreviewFrame.h:107
void updateProgressDisplay()
update the display
void OnDecreaseExposure(wxSpinEvent &e)
wxChoice * m_BlendModeChoice
Definition: PreviewFrame.h:101
void OnFullScreen(wxCommandEvent &e)
event handler for full screen
wxChoice * m_outputModeChoice
Definition: PreviewFrame.h:103