Hugin trunk 0.1
Loading...
Searching...
No Matches
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.
 
virtual ~PreviewFrame ()
 dtor.
 
void panoramaChanged (HuginBase::Panorama &pano)
 Notification about a Panorama change.
 
void panoramaImagesChanged (HuginBase::Panorama &pano, const HuginBase::UIntSet &changed)
 notifies about changes to images
 
void OnUpdate (wxCommandEvent &event)
 
void updateProgressDisplay ()
 update the display
 
- 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
 
void taskFinished ()
 call when a task has finished and the status message should be cleared
 
bool updateDisplay ()
 updates the display, return true, if update was successful, false if cancel was pressed
 
bool updateDisplay (const std::string &message)
 
bool updateDisplayValue ()
 
void setMaximum (int newMaximum)
 sets the new maximum value of the progress value
 
bool wasCancelled ()
 return true, if process should be canceled by user e.g.
 

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 OnExposureTextChanged (wxCommandEvent &e)
 
void OnRangeCompressionTextChanged (wxCommandEvent &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
 
void OnBlendChoice (wxCommandEvent &e)
 
void OnProjectionChoice (wxCommandEvent &e)
 
void OnOutputChoice (wxCommandEvent &e)
 
void OnFullScreen (wxCommandEvent &e)
 event handler for full screen
 
void OnUndo (wxCommandEvent &e)
 event handler for undo
 
void OnRedo (wxCommandEvent &e)
 event handler for redo
 
void updatePano ()
 
- Protected Member Functions inherited from AppBase::ProgressDisplay
 ProgressDisplay (int maximum=0)
 constructor
 

Private Attributes

HuginBase::Panoramam_pano
 
PreviewPanelm_PreviewPanel
 
wxToolBarm_ToolBar
 
wxSliderm_HFOVSlider
 
wxSliderm_VFOVSlider
 
wxChoicem_BlendModeChoice
 
wxChoicem_ProjectionChoice
 
wxChoicem_outputModeChoice
 
wxTextCtrl * m_exposureTextCtrl
 
wxBitmapButtonm_defaultExposureBut
 
wxSpinButtonm_exposureSpinBut
 
wxTextCtrl * m_rangeCompressionTextCtrl
 
wxSpinButtonm_rangeCompressionSpinBut
 
wxString m_choices [3]
 
int m_oldProjFormat
 
wxScrolledWindow * m_ButtonPanel
 
wxBoxSizerm_ButtonSizer
 
wxStaticBoxSizerm_ToggleButtonSizer
 
wxBoxSizerm_topsizer
 
wxStaticBoxSizerm_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::PreviewFrame ( wxFrame *  frame,
HuginBase::Panorama pano 
)

◆ ~PreviewFrame()

PreviewFrame::~PreviewFrame ( )
virtual

Member Function Documentation

◆ OnAutoPreviewToggle()

void PreviewFrame::OnAutoPreviewToggle ( wxCommandEvent &  e)
protected

◆ OnBlendChoice()

void PreviewFrame::OnBlendChoice ( wxCommandEvent &  e)
protected

◆ OnCenterHorizontally()

void PreviewFrame::OnCenterHorizontally ( wxCommandEvent &  e)
protected

◆ OnChangeDisplayedImgs()

void PreviewFrame::OnChangeDisplayedImgs ( wxCommandEvent &  e)
protected

◆ OnChangeFOV()

void PreviewFrame::OnChangeFOV ( wxScrollEvent e)
protected

◆ OnClose()

void PreviewFrame::OnClose ( wxCloseEvent e)
protected

Definition at line 583 of file PreviewFrame.cpp.

References DEBUG_DEBUG, DEBUG_TRACE, and threshold().

Referenced by PreviewFrame().

◆ OnDecreaseExposure()

void PreviewFrame::OnDecreaseExposure ( wxSpinEvent e)
protected

◆ OnDefaultExposure()

void PreviewFrame::OnDefaultExposure ( wxCommandEvent &  e)
protected

◆ OnExposureTextChanged()

void PreviewFrame::OnExposureTextChanged ( wxCommandEvent &  e)
protected

◆ OnFitPano()

void PreviewFrame::OnFitPano ( wxCommandEvent &  e)
protected

◆ OnFullScreen()

void PreviewFrame::OnFullScreen ( wxCommandEvent &  e)
protected

event handler for full screen

Definition at line 986 of file PreviewFrame.cpp.

References PreviewPanel::ForceUpdate(), m_PreviewPanel, and threshold().

Referenced by PreviewFrame().

◆ OnIncreaseExposure()

void PreviewFrame::OnIncreaseExposure ( wxSpinEvent e)
protected

◆ OnNumTransform()

void PreviewFrame::OnNumTransform ( wxCommandEvent &  e)
protected

◆ OnOutputChoice()

void PreviewFrame::OnOutputChoice ( wxCommandEvent &  e)
protected

◆ OnProjectionChoice()

void PreviewFrame::OnProjectionChoice ( wxCommandEvent &  e)
protected

◆ OnProjParameterReset()

void PreviewFrame::OnProjParameterReset ( wxCommandEvent &  e)
protected

◆ OnRangeCompressionDecrease()

void PreviewFrame::OnRangeCompressionDecrease ( wxSpinEvent e)
protected

◆ OnRangeCompressionIncrease()

void PreviewFrame::OnRangeCompressionIncrease ( wxSpinEvent e)
protected

◆ OnRangeCompressionTextChanged()

void PreviewFrame::OnRangeCompressionTextChanged ( wxCommandEvent &  e)
protected

◆ OnRedo()

void PreviewFrame::OnRedo ( wxCommandEvent &  e)
protected

event handler for redo

Definition at line 1009 of file PreviewFrame.cpp.

References PanoCommand::GlobalCmdHist::getInstance(), and threshold().

Referenced by PreviewFrame().

◆ OnShowAll()

void PreviewFrame::OnShowAll ( wxCommandEvent &  e)
protected

◆ OnShowNone()

void PreviewFrame::OnShowNone ( wxCommandEvent &  e)
protected

◆ OnStraighten()

void PreviewFrame::OnStraighten ( wxCommandEvent &  e)
protected

◆ OnTextCtrlChanged()

void PreviewFrame::OnTextCtrlChanged ( wxCommandEvent &  e)
protected

◆ OnUndo()

void PreviewFrame::OnUndo ( wxCommandEvent &  e)
protected

event handler for undo

Definition at line 996 of file PreviewFrame.cpp.

References PanoCommand::GlobalCmdHist::getInstance(), and threshold().

Referenced by PreviewFrame().

◆ OnUpdate()

void PreviewFrame::OnUpdate ( wxCommandEvent &  event)

◆ panoramaChanged()

void PreviewFrame::panoramaChanged ( HuginBase::Panorama pano)
virtual

◆ panoramaImagesChanged()

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 522 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, OnChangeDisplayedImgs(), set_contains(), threshold(), and updatePano().

◆ updatePano()

void PreviewFrame::updatePano ( )
protected

◆ updateProgressDisplay()

void PreviewFrame::updateProgressDisplay ( )
virtual

Member Data Documentation

◆ m_BlendModeChoice

wxChoice* PreviewFrame::m_BlendModeChoice
private

Definition at line 101 of file PreviewFrame.h.

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

◆ m_ButtonPanel

wxScrolledWindow* PreviewFrame::m_ButtonPanel
private

Definition at line 116 of file PreviewFrame.h.

Referenced by panoramaImagesChanged(), and PreviewFrame().

◆ m_ButtonSizer

wxBoxSizer* PreviewFrame::m_ButtonSizer
private

Definition at line 117 of file PreviewFrame.h.

Referenced by panoramaImagesChanged(), and PreviewFrame().

◆ m_choices

wxString PreviewFrame::m_choices[3]
private

Definition at line 110 of file PreviewFrame.h.

Referenced by PreviewFrame().

◆ m_defaultExposureBut

wxBitmapButton* PreviewFrame::m_defaultExposureBut
private

Definition at line 105 of file PreviewFrame.h.

Referenced by PreviewFrame().

◆ m_exposureSpinBut

wxSpinButton* PreviewFrame::m_exposureSpinBut
private

Definition at line 106 of file PreviewFrame.h.

Referenced by PreviewFrame().

◆ m_exposureTextCtrl

wxTextCtrl* PreviewFrame::m_exposureTextCtrl
private

Definition at line 104 of file PreviewFrame.h.

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

◆ m_HFOVSlider

wxSlider* PreviewFrame::m_HFOVSlider
private

Definition at line 99 of file PreviewFrame.h.

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

◆ m_oldProjFormat

int PreviewFrame::m_oldProjFormat
private

Definition at line 111 of file PreviewFrame.h.

Referenced by panoramaChanged(), and PreviewFrame().

◆ m_outputModeChoice

wxChoice* PreviewFrame::m_outputModeChoice
private

Definition at line 103 of file PreviewFrame.h.

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

◆ m_pano

HuginBase::Panorama& PreviewFrame::m_pano
private

◆ m_PreviewPanel

PreviewPanel* PreviewFrame::m_PreviewPanel
private

◆ m_ProjectionChoice

wxChoice* PreviewFrame::m_ProjectionChoice
private

Definition at line 102 of file PreviewFrame.h.

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

◆ m_projParamNamesLabel

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

Definition at line 122 of file PreviewFrame.h.

Referenced by panoramaChanged(), and PreviewFrame().

◆ m_projParamSizer

wxStaticBoxSizer* PreviewFrame::m_projParamSizer
private

Definition at line 121 of file PreviewFrame.h.

Referenced by panoramaChanged(), and PreviewFrame().

◆ m_projParamSlider

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

Definition at line 124 of file PreviewFrame.h.

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

◆ m_projParamTextCtrl

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

Definition at line 123 of file PreviewFrame.h.

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

◆ m_rangeCompressionSpinBut

wxSpinButton* PreviewFrame::m_rangeCompressionSpinBut
private

Definition at line 108 of file PreviewFrame.h.

Referenced by PreviewFrame().

◆ m_rangeCompressionTextCtrl

wxTextCtrl* PreviewFrame::m_rangeCompressionTextCtrl
private

Definition at line 107 of file PreviewFrame.h.

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

◆ m_ToggleButtons

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

◆ m_ToggleButtonSizer

wxStaticBoxSizer* PreviewFrame::m_ToggleButtonSizer
private

Definition at line 118 of file PreviewFrame.h.

Referenced by PreviewFrame().

◆ m_ToolBar

wxToolBar* PreviewFrame::m_ToolBar
private

Definition at line 98 of file PreviewFrame.h.

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

◆ m_topsizer

wxBoxSizer* PreviewFrame::m_topsizer
private

Definition at line 120 of file PreviewFrame.h.

Referenced by panoramaChanged(), and PreviewFrame().

◆ m_VFOVSlider

wxSlider* PreviewFrame::m_VFOVSlider
private

Definition at line 100 of file PreviewFrame.h.

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


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