NonaOptionsDialog Class Reference

Define the nona stitcher options panel. More...

#include <NonaOptionsDialog.h>

Inheritance diagram for NonaOptionsDialog:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 NonaOptionsDialog (wxWindow *parent, PT::Panorama &pano)
virtual ~NonaOptionsDialog ()
virtual void panoramaChanged (PT::Panorama &pano)
 this is called whenever the panorama has changed.

Private Member Functions

void UpdateDisplay (const PT::PanoramaOptions &opt)
void InterpolatorChanged (wxCommandEvent &e)
void OnSaveCropped (wxCommandEvent &e)

Private Attributes

PT::Panoramapano
bool updatesDisabled
PT::PanoramaOptions m_oldOpt
wxChoice * m_InterpolatorChoice
wxCheckBox * m_SaveCroppedCB

Detailed Description

Define the nona stitcher options panel.

Definition at line 38 of file NonaOptionsDialog.h.


Constructor & Destructor Documentation

NonaOptionsDialog::OnSaveCropped NonaOptionsDialog::NonaOptionsDialog wxWindow *  parent,
PT::Panorama pano
 

Definition at line 54 of file NonaOptionsDialog.cpp.

References DEBUG_ASSERT, and DEBUG_DEBUG.

NonaOptionsDialog::~NonaOptionsDialog  )  [virtual]
 

Definition at line 85 of file NonaOptionsDialog.cpp.

References DEBUG_TRACE, pano, and HuginBase::Panorama::removeObserver().


Member Function Documentation

void NonaOptionsDialog::InterpolatorChanged wxCommandEvent &  e  )  [private]
 

Definition at line 109 of file NonaOptionsDialog.cpp.

References CommandHistory::addCommand(), DEBUG_DEBUG, GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), HuginBase::PanoramaOptions::interpolator, m_InterpolatorChoice, and pano.

void NonaOptionsDialog::OnSaveCropped wxCommandEvent &  e  )  [private]
 

Definition at line 123 of file NonaOptionsDialog.cpp.

References CommandHistory::addCommand(), GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), m_SaveCroppedCB, pano, and HuginBase::PanoramaOptions::tiff_saveROI.

void NonaOptionsDialog::panoramaChanged PT::Panorama pano  )  [virtual]
 

this is called whenever the panorama has changed.

This function must now update all the gui representations of the panorama to display the new state.

Functions that change the panororama must not update the GUI directly. The GUI should always be updated to reflect the current panorama state in this function.

This avoids unnessecary close coupling between the controller and the view (even if they sometimes are in the same object). See model view controller pattern.

Todo:
react on different update signals more special

Definition at line 93 of file NonaOptionsDialog.cpp.

References DEBUG_TRACE, HuginBase::Panorama::getOptions(), m_oldOpt, and UpdateDisplay().

void NonaOptionsDialog::UpdateDisplay const PT::PanoramaOptions &  opt  )  [private]
 

Definition at line 102 of file NonaOptionsDialog.cpp.

References HuginBase::PanoramaOptions::interpolator, m_InterpolatorChoice, m_SaveCroppedCB, and HuginBase::PanoramaOptions::tiff_saveROI.

Referenced by panoramaChanged().


Member Data Documentation

wxChoice* NonaOptionsDialog::m_InterpolatorChoice [private]
 

Definition at line 81 of file NonaOptionsDialog.h.

Referenced by InterpolatorChanged(), and UpdateDisplay().

PT::PanoramaOptions NonaOptionsDialog::m_oldOpt [private]
 

Definition at line 79 of file NonaOptionsDialog.h.

Referenced by panoramaChanged().

wxCheckBox* NonaOptionsDialog::m_SaveCroppedCB [private]
 

Definition at line 83 of file NonaOptionsDialog.h.

Referenced by OnSaveCropped(), and UpdateDisplay().

PT::Panorama& NonaOptionsDialog::pano [private]
 

Definition at line 73 of file NonaOptionsDialog.h.

Referenced by InterpolatorChanged(), OnSaveCropped(), and ~NonaOptionsDialog().

bool NonaOptionsDialog::updatesDisabled [private]
 

Definition at line 78 of file NonaOptionsDialog.h.


The documentation for this class was generated from the following files:
Generated on Fri Aug 22 01:25:55 2014 for Hugintrunk by  doxygen 1.3.9.1