Hugintrunk
0.1
|
run the optimizer. More...
#include <OptimizePanel.h>
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. More... | |
virtual | ~OptimizePanel () |
void | Init (HuginBase::Panorama *pano) |
virtual void | panoramaChanged (HuginBase::Panorama &pano) |
receives notification about panorama changes More... | |
virtual void | panoramaImagesChanged (HuginBase::Panorama &pano, const HuginBase::UIntSet &imgNr) |
receives notification about panorama changes More... | |
void | OnOptimizeButton (wxCommandEvent &e) |
run the optimizer More... | |
void | OnCheckOnlyActiveImages (wxCommandEvent &e) |
handle "only active images" checkbox More... | |
void | SetOnlyActiveImages (const bool onlyActive) |
for external setting of "only active image" checkbox More... | |
void | OnCheckIgnoreLineCP (wxCommandEvent &e) |
handle "ignore line cp" checkbox More... | |
void | SetIgnoreLineCP (const bool noLineCp) |
for external setting of "ignore line cp" checkbox More... | |
void | SetGuiLevel (GuiLevel newGuiLevel) |
Public Member Functions inherited from HuginBase::PanoramaObserver | |
virtual | ~PanoramaObserver () |
Protected Member Functions | |
void | OnClose (wxCloseEvent &e) |
void | OnReset (wxCommandEvent &e) |
void | runOptimizer (const HuginBase::UIntSet &img, const bool ignoreLineCp) |
bool | AskApplyResult (wxWindow *activeWindow, const HuginBase::Panorama &pano) |
Protected Attributes | |
ImagesTreeCtrl * | m_images_tree_list |
ImagesTreeCtrl * | m_lens_tree_list |
wxCheckBox * | m_only_active_images_cb |
wxCheckBox * | m_ignore_line_cp |
wxCheckBox * | m_edit_cb |
HuginBase::Panorama * | m_pano |
run the optimizer.
this is tied into the wxWindows hugin
it will emit an event that
Definition at line 38 of file OptimizePanel.h.
OptimizePanel::OptimizePanel | ( | ) |
Definition at line 61 of file OptimizePanel.cpp.
References DEBUG_TRACE.
|
virtual |
Definition at line 128 of file OptimizePanel.cpp.
References DEBUG_TRACE, m_pano, and HuginBase::Panorama::removeObserver().
|
protected |
Definition at line 337 of file OptimizePanel.cpp.
References HuginBase::CalculateCPStatisticsError::calcCtrlPntsErrorStats(), const_map_get(), HuginBase::Panorama::getVariables(), celeste::max(), and celeste::min().
Referenced by runOptimizer().
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 66 of file OptimizePanel.cpp.
References DEBUG_ASSERT, DEBUG_TRACE, m_edit_cb, m_ignore_line_cp, m_images_tree_list, m_lens_tree_list, m_only_active_images_cb, and SetOnlyActiveImages().
void OptimizePanel::Init | ( | HuginBase::Panorama * | pano | ) |
Definition at line 105 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().
Referenced by MainFrame::MainFrame().
void OptimizePanel::OnCheckIgnoreLineCP | ( | wxCommandEvent & | e | ) |
handle "ignore line cp" checkbox
Definition at line 426 of file OptimizePanel.cpp.
References MainFrame::Get(), m_ignore_line_cp, and MainFrame::SetOptimizeIgnoreLineCp().
void OptimizePanel::OnCheckOnlyActiveImages | ( | wxCommandEvent & | e | ) |
handle "only active images" checkbox
Definition at line 414 of file OptimizePanel.cpp.
References MainFrame::Get(), m_only_active_images_cb, and MainFrame::SetOptimizeOnlyActiveImages().
|
protected |
Definition at line 386 of file OptimizePanel.cpp.
References DEBUG_DEBUG, and DEBUG_TRACE.
void OptimizePanel::OnOptimizeButton | ( | wxCommandEvent & | e | ) |
run the optimizer
Definition at line 149 of file OptimizePanel.cpp.
References CheckLensStacks(), DEBUG_TRACE, fill_set(), HuginBase::Panorama::getActiveImages(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizerSwitch(), m_ignore_line_cp, m_only_active_images_cb, m_pano, and runOptimizer().
Referenced by MainFrame::OnOptimize().
|
protected |
Definition at line 403 of file OptimizePanel.cpp.
References PanoCommand::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.
|
virtual |
receives notification about panorama changes
Implements HuginBase::PanoramaObserver.
Definition at line 134 of file OptimizePanel.cpp.
References HuginBase::Panorama::getOptimizerSwitch(), m_edit_cb, m_images_tree_list, m_lens_tree_list, and m_pano.
|
virtual |
receives notification about panorama changes
Implements HuginBase::PanoramaObserver.
Definition at line 142 of file OptimizePanel.cpp.
References HuginBase::Panorama::getNrOfImages().
|
protected |
Definition at line 182 of file OptimizePanel.cpp.
References PanoCommand::CommandHistory::addCommand(), AskApplyResult(), HuginBase::PTools::calcCtrlPointErrors(), HuginBase::PanoramaOptions::CYLINDRICAL, DEBUG_DEBUG, DEBUG_TRACE, deregisterPTWXDlgFcn(), HuginBase::PanoramaOptions::EQUIRECTANGULAR, fill_set(), HuginBase::Panorama::getCtrlPoints(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getNrOfCtrlPoints(), HuginBase::Panorama::getOptimizerSwitch(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), HuginBase::PanoramaOptions::getProjection(), HuginBase::Panorama::getSubset(), HuginBase::Panorama::getVariables(), m_edit_cb, m_pano, HuginBase::OPT_PAIR, HuginBase::PTools::optimize(), HuginBase::Panorama::printPanoramaScript(), HuginBase::PanoramaOptions::RECTILINEAR, registerPTWXDlgFcn(), HuginBase::PanoramaAlgorithm::run(), HuginBase::Panorama::setCtrlPoints(), HuginBase::Panorama::setOptions(), HuginBase::PanoramaOptions::setProjection(), and HuginBase::ControlPoint::X_Y.
Referenced by OnOptimizeButton().
void OptimizePanel::SetGuiLevel | ( | GuiLevel | newGuiLevel | ) |
Definition at line 122 of file OptimizePanel.cpp.
References m_images_tree_list, m_lens_tree_list, and ImagesTreeCtrl::SetGuiLevel().
Referenced by MainFrame::SetGuiLevel().
void OptimizePanel::SetIgnoreLineCP | ( | const bool | noLineCp | ) |
for external setting of "ignore line cp" checkbox
Definition at line 431 of file OptimizePanel.cpp.
References m_ignore_line_cp.
Referenced by MainFrame::OnIgnoreLineCp().
void OptimizePanel::SetOnlyActiveImages | ( | const bool | onlyActive | ) |
for external setting of "only active image" checkbox
Definition at line 419 of file OptimizePanel.cpp.
References m_images_tree_list, m_lens_tree_list, m_only_active_images_cb, and ImagesTreeCtrl::MarkActiveImages().
Referenced by Create(), and MainFrame::SetOptimizeOnlyActiveImages().
|
protected |
Definition at line 83 of file OptimizePanel.h.
Referenced by Create(), panoramaChanged(), and runOptimizer().
|
protected |
Definition at line 82 of file OptimizePanel.h.
Referenced by Create(), OnCheckIgnoreLineCP(), OnOptimizeButton(), and SetIgnoreLineCP().
|
protected |
Definition at line 78 of file OptimizePanel.h.
Referenced by Create(), Init(), OnReset(), panoramaChanged(), SetGuiLevel(), and SetOnlyActiveImages().
|
protected |
Definition at line 79 of file OptimizePanel.h.
Referenced by Create(), Init(), panoramaChanged(), SetGuiLevel(), and SetOnlyActiveImages().
|
protected |
Definition at line 81 of file OptimizePanel.h.
Referenced by Create(), OnCheckOnlyActiveImages(), OnOptimizeButton(), and SetOnlyActiveImages().
|
protected |
Definition at line 85 of file OptimizePanel.h.
Referenced by Init(), OnOptimizeButton(), OnReset(), panoramaChanged(), runOptimizer(), and ~OptimizePanel().