OptimizePhotometricPanel Class Reference

run the optimizer. More...

#include <OptimizePhotometricPanel.h>

Inheritance diagram for OptimizePhotometricPanel:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 OptimizePhotometricPanel ()
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"))
void Init (PT::Panorama *pano)
virtual ~OptimizePhotometricPanel ()
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)

Protected Attributes

wxCheckBox * m_only_active_images_cb
ImagesTreeCtrlm_images_tree
ImagesTreeCtrlm_lens_tree
PT::Panoramam_pano

Detailed Description

run the optimizer.

this is tied into the wxWindows hugin

it will emit an event that

Definition at line 37 of file OptimizePhotometricPanel.h.


Constructor & Destructor Documentation

OptimizePhotometricPanel::OnReset OptimizePhotometricPanel::OptimizePhotometricPanel (  ) 

Definition at line 63 of file OptimizePhotometricPanel.cpp.

OptimizePhotometricPanel::~OptimizePhotometricPanel (  )  [virtual]

Definition at line 130 of file OptimizePhotometricPanel.cpp.

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


Member Function Documentation

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

Definition at line 67 of file OptimizePhotometricPanel.cpp.

References DEBUG_ASSERT, DEBUG_TRACE, m_images_tree, m_lens_tree, and m_only_active_images_cb.

void OptimizePhotometricPanel::Init ( PT::Panorama pano  ) 

Definition at line 108 of file OptimizePhotometricPanel.cpp.

References HuginBase::Panorama::addObserver(), ImagesTreeCtrl::DISPLAY_PHOTOMETRICS_IMAGES, ImagesTreeCtrl::DISPLAY_PHOTOMETRICS_LENSES, ImagesTreeCtrl::GROUP_LENS, ImagesTreeCtrl::Init(), m_images_tree, m_lens_tree, m_pano, ImagesTreeCtrl::SetDisplayMode(), ImagesTreeCtrl::SetGroupMode(), and ImagesTreeCtrl::SetOptimizerMode().

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

Definition at line 377 of file OptimizePhotometricPanel.cpp.

References DEBUG_DEBUG, and DEBUG_TRACE.

void OptimizePhotometricPanel::OnOptimizeButton ( wxCommandEvent &  e  ) 

run the optimizer

Definition at line 139 of file OptimizePhotometricPanel.cpp.

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

Referenced by MainFrame::OnPhotometricOptimize().

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

Definition at line 394 of file OptimizePhotometricPanel.cpp.

References CommandHistory::addCommand(), MainFrame::Get(), PanoOperation::PanoOperation::GetCommand(), MainFrame::GetGuiLevel(), GlobalCmdHist::getInstance(), ImagesTreeCtrl::GetSelectedImages(), m_images_tree, and PanoOperation::ResetOperation::RESET_DIALOG_PHOTOMETRICS.

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

receives notification about panorama changes

Reimplemented from PT::PanoramaObserver.

Definition at line 168 of file OptimizePhotometricPanel.cpp.

References HuginBase::Panorama::getPhotometricOptimizerSwitch(), m_images_tree, m_lens_tree, and m_pano.

void OptimizePhotometricPanel::panoramaImagesChanged ( PT::Panorama pano,
const PT::UIntSet imgNr 
) [virtual]

receives notification about panorama changes

Definition at line 174 of file OptimizePhotometricPanel.cpp.

References HuginBase::Panorama::getNrOfImages().

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

Referenced by OnOptimizeButton().

void OptimizePhotometricPanel::SetGuiLevel ( GuiLevel  newGuiLevel  ) 

Definition at line 124 of file OptimizePhotometricPanel.cpp.

References m_images_tree, m_lens_tree, and ImagesTreeCtrl::SetGuiLevel().

Referenced by MainFrame::SetGuiLevel().


Member Data Documentation

ImagesTreeCtrl* OptimizePhotometricPanel::m_images_tree [protected]

Definition at line 68 of file OptimizePhotometricPanel.h.

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

ImagesTreeCtrl* OptimizePhotometricPanel::m_lens_tree [protected]

Definition at line 69 of file OptimizePhotometricPanel.h.

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

wxCheckBox* OptimizePhotometricPanel::m_only_active_images_cb [protected]

Definition at line 66 of file OptimizePhotometricPanel.h.

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

PT::Panorama* OptimizePhotometricPanel::m_pano [protected]

Definition at line 71 of file OptimizePhotometricPanel.h.

Referenced by Init(), OnOptimizeButton(), panoramaChanged(), and ~OptimizePhotometricPanel().


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