OptimizePanel Class Reference

run the optimizer. More...

#include <OptimizePanel.h>

Inheritance diagram for OptimizePanel:

Inheritance graph
List of all members.

Public Member Functions

 OptimizePanel ()
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("panel"))
 Delayed creation.
virtual ~OptimizePanel ()
void Init (HuginBase::Panorama *pano)
virtual void panoramaChanged (HuginBase::Panorama &pano)
 receives notification about panorama changes
virtual void panoramaImagesChanged (HuginBase::Panorama &pano, const HuginBase::UIntSet &imgNr)
 receives notification about panorama changes
void OnOptimizeButton (wxCommandEvent &e)
 run the optimizer
void SetGuiLevel (GuiLevel newGuiLevel)

Protected Member Functions

void OnClose (wxCloseEvent &e)
void OnReset (wxCommandEvent &e)
void runOptimizer (const HuginBase::UIntSet &img)
bool AskApplyResult (wxWindow *activeWindow, const HuginBase::Panorama &pano)

Protected Attributes

wxCheckBox * m_only_active_images_cb
wxCheckBox * m_edit_cb

Detailed Description

run the optimizer.

this is tied into the wxWindows hugin

it will emit an event that

Definition at line 38 of file OptimizePanel.h.

Constructor & Destructor Documentation

OptimizePanel::OnReset OptimizePanel::OptimizePanel (  ) 

Definition at line 62 of file OptimizePanel.cpp.

References DEBUG_TRACE.

OptimizePanel::~OptimizePanel (  )  [virtual]

Definition at line 136 of file OptimizePanel.cpp.

References DEBUG_TRACE, m_only_active_images_cb, m_pano, and HuginBase::Panorama::removeObserver().

Member Function Documentation

bool OptimizePanel::AskApplyResult ( wxWindow *  activeWindow,
const HuginBase::Panorama pano 
) [protected]

Definition at line 301 of file OptimizePanel.cpp.

References HuginBase::CalculateCPStatisticsError::calcCtrlPntsErrorStats(), const_map_get(), HuginBase::Panorama::getVariables(), celeste::max(), and celeste::min().

bool OptimizePanel::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxT("panel") 

Delayed creation.

Definition at line 67 of file OptimizePanel.cpp.

References DEBUG_ASSERT, DEBUG_TRACE, m_edit_cb, m_images_tree_list, m_lens_tree_list, and m_only_active_images_cb.

void OptimizePanel::Init ( HuginBase::Panorama pano  ) 

Definition at line 113 of file OptimizePanel.cpp.

References HuginBase::Panorama::addObserver(), DEBUG_TRACE, ImagesTreeCtrl::DISPLAY_LENS, ImagesTreeCtrl::DISPLAY_POSITION, ImagesTreeCtrl::GROUP_LENS, ImagesTreeCtrl::Init(), m_images_tree_list, m_lens_tree_list, m_pano, ImagesTreeCtrl::SetDisplayMode(), ImagesTreeCtrl::SetGroupMode(), and ImagesTreeCtrl::SetOptimizerMode().

void OptimizePanel::OnClose ( wxCloseEvent &  e  )  [protected]

Definition at line 350 of file OptimizePanel.cpp.


void OptimizePanel::OnOptimizeButton ( wxCommandEvent &  e  ) 

run the optimizer

Definition at line 160 of file OptimizePanel.cpp.

References CheckLensStacks(), DEBUG_TRACE, fill_set(), HuginBase::Panorama::getActiveImages(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizerSwitch(), m_only_active_images_cb, m_pano, and runOptimizer().

Referenced by MainFrame::OnOptimize().

void OptimizePanel::OnReset ( wxCommandEvent &  e  )  [protected]

Definition at line 367 of file OptimizePanel.cpp.

References CommandHistory::addCommand(), MainFrame::Get(), PanoOperation::PanoOperation::GetCommand(), MainFrame::GetGuiLevel(), PanoCommand::GlobalCmdHist::getInstance(), ImagesTreeCtrl::GetSelectedImages(), m_images_tree_list, m_pano, and PanoOperation::ResetOperation::RESET_DIALOG_LENS.

void OptimizePanel::panoramaChanged ( HuginBase::Panorama pano  )  [virtual]

receives notification about panorama changes

Implements HuginBase::PanoramaObserver.

Definition at line 145 of file OptimizePanel.cpp.

References HuginBase::Panorama::getOptimizerSwitch(), m_edit_cb, m_images_tree_list, m_lens_tree_list, and m_pano.

void OptimizePanel::panoramaImagesChanged ( HuginBase::Panorama pano,
const HuginBase::UIntSet imgNr 
) [virtual]

receives notification about panorama changes

Implements HuginBase::PanoramaObserver.

Definition at line 153 of file OptimizePanel.cpp.

References HuginBase::Panorama::getNrOfImages().

void OptimizePanel::runOptimizer ( const HuginBase::UIntSet img  )  [protected]

Referenced by OnOptimizeButton().

void OptimizePanel::SetGuiLevel ( GuiLevel  newGuiLevel  ) 

Definition at line 130 of file OptimizePanel.cpp.

References m_images_tree_list, m_lens_tree_list, and ImagesTreeCtrl::SetGuiLevel().

Referenced by MainFrame::SetGuiLevel().

Member Data Documentation

wxCheckBox* OptimizePanel::m_edit_cb [protected]

Definition at line 74 of file OptimizePanel.h.

Referenced by Create(), and panoramaChanged().

ImagesTreeCtrl* OptimizePanel::m_images_tree_list [protected]

Definition at line 70 of file OptimizePanel.h.

Referenced by Create(), Init(), OnReset(), panoramaChanged(), and SetGuiLevel().

ImagesTreeCtrl* OptimizePanel::m_lens_tree_list [protected]

Definition at line 71 of file OptimizePanel.h.

Referenced by Create(), Init(), panoramaChanged(), and SetGuiLevel().

wxCheckBox* OptimizePanel::m_only_active_images_cb [protected]

Definition at line 73 of file OptimizePanel.h.

Referenced by Create(), OnOptimizeButton(), and ~OptimizePanel().

HuginBase::Panorama* OptimizePanel::m_pano [protected]

Definition at line 76 of file OptimizePanel.h.

Referenced by Init(), OnOptimizeButton(), OnReset(), panoramaChanged(), and ~OptimizePanel().

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