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::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 m_pano.

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

receives notification about panorama changes

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]
 

Definition at line 181 of file OptimizePhotometricPanel.cpp.

References CommandHistory::addCommand(), PT::calcMeanExposure(), HuginBase::PanoramaOptions::colorReferenceImage, DEBUG_DEBUG, DEBUG_TRACE, PT::extractPoints(), HuginBase::Panorama::getImage(), GlobalCmdHist::getInstance(), HuginBase::ConstStandardImageVariableGroups::getLenses(), HuginBase::Panorama::getNrOfImages(), HuginBase::ConstImageVariableGroup::getNumberOfParts(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), HuginBase::Panorama::getPhotometricOptimizerSwitch(), HuginBase::Panorama::getSubset(), HuginBase::Panorama::getVariables(), HuginBase::ConstImageVariableGroup::getVarLinkedInPart(), HUGIN_PHOTOMETRIC_OPTIMIZER_NRPOINTS, m_pano, PT::optimizePhotometric(), HuginBase::PanoramaOptions::outputExposureValue, PT::PhotometricOptimizeMode, vigra_ext::reduceToNextLevel(), set_contains(), HuginBase::Panorama::setOptions(), PT::smartOptimizePhotometric(), and vigra_ext::transformImage().

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(), OnReset(), panoramaChanged(), runOptimizer(), and ~OptimizePhotometricPanel().


The documentation for this class was generated from the following files:
Generated on Wed Jul 16 01:25:48 2014 for Hugintrunk by  doxygen 1.3.9.1