OptimizePanel Class Reference

run the optimizer. More...

#include <OptimizePanel.h>

Inheritance diagram for OptimizePanel:

Inheritance graph
[legend]
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 (PT::Panorama *pano)
virtual void panoramaChanged (PT::Panorama &pano)
 receives notification about panorama changes
virtual void panoramaImagesChanged (PT::Panorama &pano, const PT::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 PT::UIntSet &img)
bool AskApplyResult (const PT::Panorama &pano)

Protected Attributes

ImagesTreeCtrlm_images_tree_list
ImagesTreeCtrlm_lens_tree_list
wxCheckBox * m_only_active_images_cb
wxCheckBox * m_edit_cb
PT::Panoramam_pano

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 59 of file OptimizePanel.cpp.

References DEBUG_TRACE.

OptimizePanel::~OptimizePanel (  )  [virtual]

Definition at line 133 of file OptimizePanel.cpp.

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


Member Function Documentation

bool OptimizePanel::AskApplyResult ( const PT::Panorama pano  )  [protected]

Definition at line 304 of file OptimizePanel.cpp.

References PT::Panorama::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 64 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 ( PT::Panorama pano  ) 

Definition at line 110 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 352 of file OptimizePanel.cpp.

References DEBUG_DEBUG, and DEBUG_TRACE.

void OptimizePanel::OnOptimizeButton ( wxCommandEvent &  e  ) 

run the optimizer

Definition at line 157 of file OptimizePanel.cpp.

References 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 369 of file OptimizePanel.cpp.

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

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

receives notification about panorama changes

Reimplemented from PT::PanoramaObserver.

Definition at line 142 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 ( PT::Panorama pano,
const PT::UIntSet imgNr 
) [virtual]

receives notification about panorama changes

Definition at line 150 of file OptimizePanel.cpp.

References HuginBase::Panorama::getNrOfImages().

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

Referenced by OnOptimizeButton().

void OptimizePanel::SetGuiLevel ( GuiLevel  newGuiLevel  ) 

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

PT::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 21 Oct 2014 for Hugintrunk by  doxygen 1.4.7