Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
PreviewFrame Class Reference

The image preview frame. More...

#include <PreviewFrame.h>

Inheritance diagram for PreviewFrame:
Inheritance graph

Public Member Functions

 PreviewFrame (wxFrame *frame, HuginBase::Panorama &pano)
 ctor. More...
 
virtual ~PreviewFrame ()
 dtor. More...
 
void panoramaChanged (HuginBase::Panorama &pano)
 Notification about a Panorama change. More...
 
void panoramaImagesChanged (HuginBase::Panorama &pano, const HuginBase::UIntSet &changed)
 notifies about changes to images More...
 
void OnUpdate (wxCommandEvent &event)
 
void updateProgressDisplay ()
 update the display More...
 
- Public Member Functions inherited from HuginBase::PanoramaObserver
virtual ~PanoramaObserver ()
 
- Public Member Functions inherited from AppBase::ProgressDisplay
virtual ~ProgressDisplay ()
 
void setMessage (const std::string &message, const std::string &filename="")
 sets the message to given string More...
 
void taskFinished ()
 call when a task has finished and the status message should be cleared More...
 
bool updateDisplay ()
 updates the display, return true, if update was successful, false if cancel was pressed More...
 
bool updateDisplay (const std::string &message)
 
bool updateDisplayValue ()
 
void setMaximum (int newMaximum)
 sets the new maximum value of the progress value More...
 
bool wasCancelled ()
 return true, if process should be canceled by user e.g. More...
 

Protected Member Functions

void OnClose (wxCloseEvent &e)
 
void OnChangeDisplayedImgs (wxCommandEvent &e)
 
void OnAutoPreviewToggle (wxCommandEvent &e)
 
void OnCenterHorizontally (wxCommandEvent &e)
 
void OnFitPano (wxCommandEvent &e)
 
void OnStraighten (wxCommandEvent &e)
 
void OnShowAll (wxCommandEvent &e)
 
void OnShowNone (wxCommandEvent &e)
 
void OnNumTransform (wxCommandEvent &e)
 
void OnChangeFOV (wxScrollEvent &e)
 
void OnTextCtrlChanged (wxCommandEvent &e)
 
void OnDefaultExposure (wxCommandEvent &e)
 
void OnDecreaseExposure (wxSpinEvent &e)
 
void OnIncreaseExposure (wxSpinEvent &e)
 
void OnRangeCompressionIncrease (wxSpinEvent &e)
 
void OnRangeCompressionDecrease (wxSpinEvent &e)
 
void OnProjParameterReset (wxCommandEvent &e)
 event handler for reset projection parameters More...
 
void OnBlendChoice (wxCommandEvent &e)
 
void OnProjectionChoice (wxCommandEvent &e)
 
void OnOutputChoice (wxCommandEvent &e)
 
void OnFullScreen (wxCommandEvent &e)
 event handler for full screen More...
 
void OnUndo (wxCommandEvent &e)
 event handler for undo More...
 
void OnRedo (wxCommandEvent &e)
 event handler for redo More...
 
void updatePano ()
 
- Protected Member Functions inherited from AppBase::ProgressDisplay
 ProgressDisplay (int maximum=0)
 constructor More...
 

Private Attributes

HuginBase::Panoramam_pano
 
PreviewPanelm_PreviewPanel
 
wxToolBar * m_ToolBar
 
wxSlider * m_HFOVSlider
 
wxSlider * m_VFOVSlider
 
wxChoice * m_BlendModeChoice
 
wxChoice * m_ProjectionChoice
 
wxChoice * m_outputModeChoice
 
wxTextCtrl * m_exposureTextCtrl
 
wxBitmapButton * m_defaultExposureBut
 
wxSpinButton * m_exposureSpinBut
 
wxTextCtrl * m_rangeCompressionTextCtrl
 
wxSpinButton * m_rangeCompressionSpinBut
 
wxString m_choices [3]
 
int m_oldProjFormat
 
wxScrolledWindow * m_ButtonPanel
 
wxBoxSizer * m_ButtonSizer
 
wxStaticBoxSizer * m_ToggleButtonSizer
 
wxBoxSizer * m_topsizer
 
wxStaticBoxSizer * m_projParamSizer
 
std::vector< wxStaticText * > m_projParamNamesLabel
 
std::vector< wxTextCtrl * > m_projParamTextCtrl
 
std::vector< wxSlider * > m_projParamSlider
 
std::vector< wxToggleButton * > m_ToggleButtons
 

Additional Inherited Members

- Protected Attributes inherited from AppBase::ProgressDisplay
bool m_canceled
 
std::string m_message
 
std::string m_filename
 
int m_maximum
 
int m_progress
 

Detailed Description

The image preview frame.

Contains the ImagePreviewPanel and various controls for it.

it is not created with XRC, because it is highly dynamic, buttons have to be added etc.

Definition at line 40 of file PreviewFrame.h.

Constructor & Destructor Documentation

PreviewFrame::PreviewFrame ( wxFrame *  frame,
HuginBase::Panorama pano 
)
PreviewFrame::~PreviewFrame ( )
virtual

Member Function Documentation

void PreviewFrame::OnAutoPreviewToggle ( wxCommandEvent &  e)
protected
void PreviewFrame::OnBlendChoice ( wxCommandEvent &  e)
protected
void PreviewFrame::OnCenterHorizontally ( wxCommandEvent &  e)
protected
void PreviewFrame::OnChangeDisplayedImgs ( wxCommandEvent &  e)
protected
void PreviewFrame::OnChangeFOV ( wxScrollEvent &  e)
protected
void PreviewFrame::OnClose ( wxCloseEvent &  e)
protected

Definition at line 581 of file PreviewFrame.cpp.

References DEBUG_DEBUG, and DEBUG_TRACE.

void PreviewFrame::OnDecreaseExposure ( wxSpinEvent &  e)
protected
void PreviewFrame::OnDefaultExposure ( wxCommandEvent &  e)
protected
void PreviewFrame::OnFitPano ( wxCommandEvent &  e)
protected
void PreviewFrame::OnFullScreen ( wxCommandEvent &  e)
protected

event handler for full screen

Definition at line 983 of file PreviewFrame.cpp.

References PreviewPanel::ForceUpdate(), and m_PreviewPanel.

void PreviewFrame::OnIncreaseExposure ( wxSpinEvent &  e)
protected
void PreviewFrame::OnNumTransform ( wxCommandEvent &  e)
protected
void PreviewFrame::OnOutputChoice ( wxCommandEvent &  e)
protected
void PreviewFrame::OnProjectionChoice ( wxCommandEvent &  e)
protected
void PreviewFrame::OnProjParameterReset ( wxCommandEvent &  e)
protected
void PreviewFrame::OnRangeCompressionDecrease ( wxSpinEvent &  e)
protected
void PreviewFrame::OnRangeCompressionIncrease ( wxSpinEvent &  e)
protected
void PreviewFrame::OnRedo ( wxCommandEvent &  e)
protected

event handler for redo

Definition at line 1006 of file PreviewFrame.cpp.

References PanoCommand::GlobalCmdHist::getInstance().

void PreviewFrame::OnShowAll ( wxCommandEvent &  e)
protected
void PreviewFrame::OnShowNone ( wxCommandEvent &  e)
protected
void PreviewFrame::OnStraighten ( wxCommandEvent &  e)
protected
void PreviewFrame::OnTextCtrlChanged ( wxCommandEvent &  e)
protected
void PreviewFrame::OnUndo ( wxCommandEvent &  e)
protected

event handler for undo

Definition at line 993 of file PreviewFrame.cpp.

References PanoCommand::GlobalCmdHist::getInstance().

void PreviewFrame::OnUpdate ( wxCommandEvent &  event)
void PreviewFrame::panoramaChanged ( HuginBase::Panorama pano)
virtual
void PreviewFrame::panoramaImagesChanged ( HuginBase::Panorama pano,
const HuginBase::UIntSet changed 
)
virtual

notifies about changes to images

Images might have been added/removed. to find out how many images are still there, use Panorama::getNrOfImages.

Parameters
panothe panorama object that changed
changedset of changed images

Implements HuginBase::PanoramaObserver.

Definition at line 521 of file PreviewFrame.cpp.

References DEBUG_INFO, DEBUG_TRACE, HuginBase::Panorama::getActiveImages(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HUGIN_CONV_FILENAME, ID_TOGGLE_BUT, m_ButtonPanel, m_ButtonSizer, m_pano, m_ToggleButtons, set_contains(), and updatePano().

void PreviewFrame::updatePano ( )
protected
void PreviewFrame::updateProgressDisplay ( )
virtual

Member Data Documentation

wxChoice* PreviewFrame::m_BlendModeChoice
private

Definition at line 99 of file PreviewFrame.h.

Referenced by OnBlendChoice(), PreviewFrame(), and ~PreviewFrame().

wxScrolledWindow* PreviewFrame::m_ButtonPanel
private

Definition at line 114 of file PreviewFrame.h.

Referenced by panoramaImagesChanged(), and PreviewFrame().

wxBoxSizer* PreviewFrame::m_ButtonSizer
private

Definition at line 115 of file PreviewFrame.h.

Referenced by panoramaImagesChanged(), and PreviewFrame().

wxString PreviewFrame::m_choices[3]
private

Definition at line 108 of file PreviewFrame.h.

Referenced by PreviewFrame().

wxBitmapButton* PreviewFrame::m_defaultExposureBut
private

Definition at line 103 of file PreviewFrame.h.

Referenced by PreviewFrame().

wxSpinButton* PreviewFrame::m_exposureSpinBut
private

Definition at line 104 of file PreviewFrame.h.

Referenced by PreviewFrame().

wxTextCtrl* PreviewFrame::m_exposureTextCtrl
private

Definition at line 102 of file PreviewFrame.h.

Referenced by OnTextCtrlChanged(), panoramaChanged(), and PreviewFrame().

wxSlider* PreviewFrame::m_HFOVSlider
private

Definition at line 97 of file PreviewFrame.h.

Referenced by OnChangeFOV(), panoramaChanged(), and PreviewFrame().

int PreviewFrame::m_oldProjFormat
private

Definition at line 109 of file PreviewFrame.h.

Referenced by panoramaChanged(), and PreviewFrame().

wxChoice* PreviewFrame::m_outputModeChoice
private

Definition at line 101 of file PreviewFrame.h.

Referenced by OnOutputChoice(), panoramaChanged(), and PreviewFrame().

HuginBase::Panorama& PreviewFrame::m_pano
private
PreviewPanel* PreviewFrame::m_PreviewPanel
private
wxChoice* PreviewFrame::m_ProjectionChoice
private

Definition at line 100 of file PreviewFrame.h.

Referenced by OnProjectionChoice(), panoramaChanged(), and PreviewFrame().

std::vector<wxStaticText *> PreviewFrame::m_projParamNamesLabel
private

Definition at line 120 of file PreviewFrame.h.

Referenced by panoramaChanged(), and PreviewFrame().

wxStaticBoxSizer* PreviewFrame::m_projParamSizer
private

Definition at line 119 of file PreviewFrame.h.

Referenced by panoramaChanged(), and PreviewFrame().

std::vector<wxSlider *> PreviewFrame::m_projParamSlider
private

Definition at line 122 of file PreviewFrame.h.

Referenced by OnChangeFOV(), panoramaChanged(), and PreviewFrame().

std::vector<wxTextCtrl *> PreviewFrame::m_projParamTextCtrl
private

Definition at line 121 of file PreviewFrame.h.

Referenced by OnTextCtrlChanged(), panoramaChanged(), PreviewFrame(), and ~PreviewFrame().

wxSpinButton* PreviewFrame::m_rangeCompressionSpinBut
private

Definition at line 106 of file PreviewFrame.h.

Referenced by PreviewFrame().

wxTextCtrl* PreviewFrame::m_rangeCompressionTextCtrl
private

Definition at line 105 of file PreviewFrame.h.

Referenced by OnTextCtrlChanged(), panoramaChanged(), and PreviewFrame().

std::vector<wxToggleButton *> PreviewFrame::m_ToggleButtons
private
wxStaticBoxSizer* PreviewFrame::m_ToggleButtonSizer
private

Definition at line 116 of file PreviewFrame.h.

Referenced by PreviewFrame().

wxToolBar* PreviewFrame::m_ToolBar
private

Definition at line 96 of file PreviewFrame.h.

Referenced by panoramaChanged(), PreviewFrame(), updatePano(), and ~PreviewFrame().

wxBoxSizer* PreviewFrame::m_topsizer
private

Definition at line 118 of file PreviewFrame.h.

Referenced by panoramaChanged(), and PreviewFrame().

wxSlider* PreviewFrame::m_VFOVSlider
private

Definition at line 98 of file PreviewFrame.h.

Referenced by OnChangeFOV(), panoramaChanged(), and PreviewFrame().


The documentation for this class was generated from the following files: