FindPanoDialog Class Reference

Dialog for finding panorama in given directory. More...

#include <FindPanoDialog.h>

List of all members.

Public Member Functions

 FindPanoDialog (BatchFrame *batchframe, wxString xrcPrefix)
 Constructor, read from xrc ressource; restore last uses settings, size and position.
 ~FindPanoDialog ()
 destructor, saves size and position

Protected Member Functions

void OnButtonClose (wxCommandEvent &e)
 closes window
void OnButtonChoose (wxCommandEvent &e)
 select directory with dialog
void OnButtonStart (wxCommandEvent &e)
 start/stops detections
void OnButtonSend (wxCommandEvent &e)
 add selected projects to queue
void OnClose (wxCloseEvent &e)
 prevents closing window when running detection
void OnSelectPossiblePano (wxCommandEvent &e)
 event to populate information on the right

Private Member Functions

void EnableButtons (const bool state)
void SearchInDir (wxString dirstring, const bool includeSubdir, const bool loadDistortion, const bool loadVignetting, const size_t minNumberImages, const size_t maxTimeDiff)
void CleanUpPanolist ()

Private Attributes

BatchFramem_batchframe
wxButton * m_button_start
wxButton * m_button_choose
wxButton * m_button_send
wxButton * m_button_close
wxTextCtrl * m_textctrl_dir
wxCheckBox * m_cb_subdir
wxStaticText * m_statustext
wxCheckListBox * m_list_pano
wxChoice * m_ch_naming
wxCheckBox * m_cb_createLinks
wxCheckBox * m_cb_loadDistortion
wxCheckBox * m_cb_loadVignetting
wxSpinCtrl * m_sc_minNumberImages
wxSpinCtrl * m_sc_maxTimeDiff
wxImageList * m_thumbs
wxChoice * m_ch_blender
std::vector< PossiblePano * > m_panos
wxString m_start_dir
bool m_isRunning
bool m_stopped
TIFFErrorHandler m_oldtiffwarning


Detailed Description

Dialog for finding panorama in given directory.

The algorithm transverse all directories for suitable image files (currently only jpeg and tiff) If it found images, it compares EXIF information to deduce which images could belong to a panorama. After it the user can select which panoramas should created and added to detection queue

Definition at line 50 of file FindPanoDialog.h.


Constructor & Destructor Documentation

FindPanoDialog::FindPanoDialog ( BatchFrame batchframe,
wxString  xrcPrefix 
)

Constructor, read from xrc ressource; restore last uses settings, size and position.

Definition at line 60 of file FindPanoDialog.cpp.

References HuginBase::PanoramaOptions::ENBLEND_BLEND, FillBlenderList(), vigra_ext::EMoR::h, m_batchframe, m_button_choose, m_button_close, m_button_send, m_button_start, m_cb_createLinks, m_cb_loadDistortion, m_cb_loadVignetting, m_cb_subdir, m_ch_blender, m_ch_naming, m_isRunning, m_list_pano, m_sc_maxTimeDiff, m_sc_minNumberImages, m_statustext, m_stopped, m_textctrl_dir, m_thumbs, SelectListValue(), and THUMBSIZE.

FindPanoDialog::~FindPanoDialog (  ) 

destructor, saves size and position

Definition at line 169 of file FindPanoDialog.cpp.

References CleanUpPanolist(), GetSelectedValue(), m_cb_createLinks, m_cb_loadDistortion, m_cb_subdir, m_ch_blender, m_ch_naming, m_sc_maxTimeDiff, m_sc_minNumberImages, m_textctrl_dir, and m_thumbs.


Member Function Documentation

void FindPanoDialog::CleanUpPanolist (  )  [private]

Definition at line 200 of file FindPanoDialog.cpp.

References m_panos.

Referenced by OnButtonStart(), and ~FindPanoDialog().

void FindPanoDialog::EnableButtons ( const bool  state  )  [private]

Definition at line 336 of file FindPanoDialog.cpp.

References m_button_choose, m_button_close, m_button_send, m_cb_createLinks, m_cb_subdir, m_ch_naming, and m_textctrl_dir.

Referenced by OnButtonStart(), and SearchInDir().

void FindPanoDialog::OnButtonChoose ( wxCommandEvent &  e  )  [protected]

select directory with dialog

Definition at line 239 of file FindPanoDialog.cpp.

References m_textctrl_dir.

void FindPanoDialog::OnButtonClose ( wxCommandEvent &  e  )  [protected]

closes window

Definition at line 226 of file FindPanoDialog.cpp.

References m_panos.

void FindPanoDialog::OnButtonSend ( wxCommandEvent &  e  )  [protected]

add selected projects to queue

Definition at line 292 of file FindPanoDialog.cpp.

References BatchFrame::AddToList(), Project::DETECTING, GetSelectedValue(), m_batchframe, m_cb_createLinks, m_ch_blender, m_ch_naming, m_list_pano, and m_panos.

void FindPanoDialog::OnButtonStart ( wxCommandEvent &  e  )  [protected]

start/stops detections

Definition at line 249 of file FindPanoDialog.cpp.

References CleanUpPanolist(), EnableButtons(), m_button_start, m_cb_loadDistortion, m_cb_loadVignetting, m_cb_subdir, m_isRunning, m_list_pano, m_oldtiffwarning, m_panos, m_sc_maxTimeDiff, m_sc_minNumberImages, m_start_dir, m_stopped, m_textctrl_dir, OnSelectPossiblePano(), and SearchInDir().

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

prevents closing window when running detection

Definition at line 213 of file FindPanoDialog.cpp.

References m_isRunning.

void FindPanoDialog::OnSelectPossiblePano ( wxCommandEvent &  e  )  [protected]

event to populate information on the right

Definition at line 347 of file FindPanoDialog.cpp.

References m_list_pano, m_panos, and m_thumbs.

Referenced by OnButtonStart().

void FindPanoDialog::SearchInDir ( wxString  dirstring,
const bool  includeSubdir,
const bool  loadDistortion,
const bool  loadVignetting,
const size_t  minNumberImages,
const size_t  maxTimeDiff 
) [private]

Definition at line 374 of file FindPanoDialog.cpp.

References PossiblePano::AddSrcPanoImage(), HuginBase::SrcPanoImage::applyEXIFValues(), EnableButtons(), HUGIN_CONV_FILENAME, m_button_send, m_button_start, m_isRunning, m_list_pano, m_oldtiffwarning, m_panos, m_start_dir, m_statustext, m_stopped, HuginBase::SrcPanoImage::readDistortionFromDB(), HuginBase::SrcPanoImage::readEXIF(), HuginBase::SrcPanoImage::readProjectionFromDB(), HuginBase::SrcPanoImage::readVignettingFromDB(), HuginBase::BaseSrcPanoImage::setFilename(), and SortWxFilenames().

Referenced by OnButtonStart().


Member Data Documentation

BatchFrame* FindPanoDialog::m_batchframe [private]

Definition at line 73 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), and OnButtonSend().

wxButton* FindPanoDialog::m_button_choose [private]

Definition at line 75 of file FindPanoDialog.h.

Referenced by EnableButtons(), and FindPanoDialog().

wxButton* FindPanoDialog::m_button_close [private]

Definition at line 77 of file FindPanoDialog.h.

Referenced by EnableButtons(), and FindPanoDialog().

wxButton* FindPanoDialog::m_button_send [private]

Definition at line 76 of file FindPanoDialog.h.

Referenced by EnableButtons(), FindPanoDialog(), and SearchInDir().

wxButton* FindPanoDialog::m_button_start [private]

Definition at line 74 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), OnButtonStart(), and SearchInDir().

wxCheckBox* FindPanoDialog::m_cb_createLinks [private]

Definition at line 83 of file FindPanoDialog.h.

Referenced by EnableButtons(), FindPanoDialog(), OnButtonSend(), and ~FindPanoDialog().

wxCheckBox* FindPanoDialog::m_cb_loadDistortion [private]

Definition at line 84 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), OnButtonStart(), and ~FindPanoDialog().

wxCheckBox* FindPanoDialog::m_cb_loadVignetting [private]

Definition at line 85 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), and OnButtonStart().

wxCheckBox* FindPanoDialog::m_cb_subdir [private]

Definition at line 79 of file FindPanoDialog.h.

Referenced by EnableButtons(), FindPanoDialog(), OnButtonStart(), and ~FindPanoDialog().

wxChoice* FindPanoDialog::m_ch_blender [private]

Definition at line 89 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), OnButtonSend(), and ~FindPanoDialog().

wxChoice* FindPanoDialog::m_ch_naming [private]

Definition at line 82 of file FindPanoDialog.h.

Referenced by EnableButtons(), FindPanoDialog(), OnButtonSend(), and ~FindPanoDialog().

bool FindPanoDialog::m_isRunning [private]

Definition at line 93 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), OnButtonStart(), OnClose(), and SearchInDir().

wxCheckListBox* FindPanoDialog::m_list_pano [private]

Definition at line 81 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), OnButtonSend(), OnButtonStart(), OnSelectPossiblePano(), and SearchInDir().

TIFFErrorHandler FindPanoDialog::m_oldtiffwarning [private]

Definition at line 95 of file FindPanoDialog.h.

Referenced by OnButtonStart(), and SearchInDir().

std::vector<PossiblePano*> FindPanoDialog::m_panos [private]

Definition at line 91 of file FindPanoDialog.h.

Referenced by CleanUpPanolist(), OnButtonClose(), OnButtonSend(), OnButtonStart(), OnSelectPossiblePano(), and SearchInDir().

wxSpinCtrl* FindPanoDialog::m_sc_maxTimeDiff [private]

Definition at line 87 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), OnButtonStart(), and ~FindPanoDialog().

wxSpinCtrl* FindPanoDialog::m_sc_minNumberImages [private]

Definition at line 86 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), OnButtonStart(), and ~FindPanoDialog().

wxString FindPanoDialog::m_start_dir [private]

Definition at line 92 of file FindPanoDialog.h.

Referenced by OnButtonStart(), and SearchInDir().

wxStaticText* FindPanoDialog::m_statustext [private]

Definition at line 80 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), and SearchInDir().

bool FindPanoDialog::m_stopped [private]

Definition at line 94 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), OnButtonStart(), and SearchInDir().

wxTextCtrl* FindPanoDialog::m_textctrl_dir [private]

Definition at line 78 of file FindPanoDialog.h.

Referenced by EnableButtons(), FindPanoDialog(), OnButtonChoose(), OnButtonStart(), and ~FindPanoDialog().

wxImageList* FindPanoDialog::m_thumbs [private]

Definition at line 88 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), OnSelectPossiblePano(), and ~FindPanoDialog().


The documentation for this class was generated from the following files:
Generated on 29 Jul 2015 for Hugintrunk by  doxygen 1.4.7