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, HuginBase::Panorama &pano)
virtual ~NonaOptionsDialog ()
virtual void panoramaChanged (HuginBase::Panorama &pano)
 this is called whenever the panorama has changed.

Private Member Functions

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

Private Attributes

HuginBase::Panoramapano
bool updatesDisabled
HuginBase::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,
HuginBase::Panorama pano 
)

Definition at line 55 of file NonaOptionsDialog.cpp.

References DEBUG_ASSERT, and DEBUG_DEBUG.

NonaOptionsDialog::~NonaOptionsDialog (  )  [virtual]

Definition at line 86 of file NonaOptionsDialog.cpp.

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


Member Function Documentation

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

Definition at line 110 of file NonaOptionsDialog.cpp.

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

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

Definition at line 124 of file NonaOptionsDialog.cpp.

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

void NonaOptionsDialog::panoramaChanged ( HuginBase::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

Implements HuginBase::PanoramaObserver.

Definition at line 94 of file NonaOptionsDialog.cpp.

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

void NonaOptionsDialog::UpdateDisplay ( const HuginBase::PanoramaOptions opt  )  [private]

Definition at line 103 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().

HuginBase::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().

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

Definition at line 73 of file NonaOptionsDialog.h.

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

bool NonaOptionsDialog::updatesDisabled [private]

Definition at line 78 of file NonaOptionsDialog.h.

Referenced by InterpolatorChanged().


The documentation for this class was generated from the following files:
Generated on 1 Aug 2015 for Hugintrunk by  doxygen 1.4.7