Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OptimizePanel Class Reference

run the optimizer. More...

#include <OptimizePanel.h>

Inheritance diagram for OptimizePanel:
Inheritance graph

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

ImagesTreeCtrlm_images_tree_list
 
ImagesTreeCtrlm_lens_tree_list
 
wxCheckBox * m_only_active_images_cb
 
wxCheckBox * m_ignore_line_cp
 
wxCheckBox * m_edit_cb
 
HuginBase::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::OptimizePanel ( )

Definition at line 61 of file OptimizePanel.cpp.

References DEBUG_TRACE.

OptimizePanel::~OptimizePanel ( )
virtual

Definition at line 128 of file OptimizePanel.cpp.

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

Member Function Documentation

bool OptimizePanel::AskApplyResult ( wxWindow *  activeWindow,
const HuginBase::Panorama pano 
)
protected
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") 
)
void OptimizePanel::Init ( HuginBase::Panorama pano)
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().

void OptimizePanel::OnClose ( wxCloseEvent &  e)
protected

Definition at line 386 of file OptimizePanel.cpp.

References DEBUG_DEBUG, and DEBUG_TRACE.

void OptimizePanel::OnOptimizeButton ( wxCommandEvent &  e)
void OptimizePanel::OnReset ( wxCommandEvent &  e)
protected
void OptimizePanel::panoramaChanged ( HuginBase::Panorama pano)
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.

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

receives notification about panorama changes

Implements HuginBase::PanoramaObserver.

Definition at line 142 of file OptimizePanel.cpp.

References HuginBase::Panorama::getNrOfImages().

void OptimizePanel::runOptimizer ( const HuginBase::UIntSet img,
const bool  ignoreLineCp 
)
protected
void OptimizePanel::SetGuiLevel ( GuiLevel  newGuiLevel)
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().

Member Data Documentation

wxCheckBox* OptimizePanel::m_edit_cb
protected

Definition at line 83 of file OptimizePanel.h.

Referenced by Create(), panoramaChanged(), and runOptimizer().

wxCheckBox* OptimizePanel::m_ignore_line_cp
protected

Definition at line 82 of file OptimizePanel.h.

Referenced by Create(), OnCheckIgnoreLineCP(), OnOptimizeButton(), and SetIgnoreLineCP().

ImagesTreeCtrl* OptimizePanel::m_images_tree_list
protected

Definition at line 78 of file OptimizePanel.h.

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

ImagesTreeCtrl* OptimizePanel::m_lens_tree_list
protected

Definition at line 79 of file OptimizePanel.h.

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

wxCheckBox* OptimizePanel::m_only_active_images_cb
protected
HuginBase::Panorama* OptimizePanel::m_pano
protected

The documentation for this class was generated from the following files: