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

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
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 48 of file FindPanoDialog.cpp.

References 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_naming, m_isRunning, m_list_pano, m_sc_maxTimeDiff, m_sc_minNumberImages, m_statustext, m_stopped, and m_textctrl_dir.

FindPanoDialog::~FindPanoDialog (  ) 

destructor, saves size and position

Definition at line 137 of file FindPanoDialog.cpp.

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


Member Function Documentation

void FindPanoDialog::CleanUpPanolist (  )  [private]

Definition at line 165 of file FindPanoDialog.cpp.

References m_panos.

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

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

Definition at line 298 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 204 of file FindPanoDialog.cpp.

References m_textctrl_dir.

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

closes window

Definition at line 191 of file FindPanoDialog.cpp.

References m_panos.

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

add selected projects to queue

Definition at line 255 of file FindPanoDialog.cpp.

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

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

start/stops detections

Definition at line 214 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, and SearchInDir().

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

prevents closing window when running detection

Definition at line 178 of file FindPanoDialog.cpp.

References m_isRunning.

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 314 of file FindPanoDialog.cpp.

References PossiblePano::AddSrcPanoImage(), EnableButtons(), HuginBase::SrcPanoImage::hasEXIFread(), 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::readProjectionFromDB(), HuginBase::SrcPanoImage::readVignettingFromDB(), and SortWxFilenames().

Referenced by OnButtonStart().


Member Data Documentation

BatchFrame* FindPanoDialog::m_batchframe [private]

Definition at line 71 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), and OnButtonSend().

wxButton* FindPanoDialog::m_button_choose [private]

Definition at line 73 of file FindPanoDialog.h.

Referenced by EnableButtons(), and FindPanoDialog().

wxButton* FindPanoDialog::m_button_close [private]

Definition at line 75 of file FindPanoDialog.h.

Referenced by EnableButtons(), and FindPanoDialog().

wxButton* FindPanoDialog::m_button_send [private]

Definition at line 74 of file FindPanoDialog.h.

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

wxButton* FindPanoDialog::m_button_start [private]

Definition at line 72 of file FindPanoDialog.h.

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

wxCheckBox* FindPanoDialog::m_cb_createLinks [private]

Definition at line 81 of file FindPanoDialog.h.

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

wxCheckBox* FindPanoDialog::m_cb_loadDistortion [private]

Definition at line 82 of file FindPanoDialog.h.

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

wxCheckBox* FindPanoDialog::m_cb_loadVignetting [private]

Definition at line 83 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), and OnButtonStart().

wxCheckBox* FindPanoDialog::m_cb_subdir [private]

Definition at line 77 of file FindPanoDialog.h.

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

wxChoice* FindPanoDialog::m_ch_naming [private]

Definition at line 80 of file FindPanoDialog.h.

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

bool FindPanoDialog::m_isRunning [private]

Definition at line 89 of file FindPanoDialog.h.

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

wxCheckListBox* FindPanoDialog::m_list_pano [private]

Definition at line 79 of file FindPanoDialog.h.

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

TIFFErrorHandler FindPanoDialog::m_oldtiffwarning [private]

Definition at line 91 of file FindPanoDialog.h.

Referenced by OnButtonStart(), and SearchInDir().

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

Definition at line 87 of file FindPanoDialog.h.

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

wxSpinCtrl* FindPanoDialog::m_sc_maxTimeDiff [private]

Definition at line 85 of file FindPanoDialog.h.

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

wxSpinCtrl* FindPanoDialog::m_sc_minNumberImages [private]

Definition at line 84 of file FindPanoDialog.h.

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

wxString FindPanoDialog::m_start_dir [private]

Definition at line 88 of file FindPanoDialog.h.

Referenced by OnButtonStart(), and SearchInDir().

wxStaticText* FindPanoDialog::m_statustext [private]

Definition at line 78 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), and SearchInDir().

bool FindPanoDialog::m_stopped [private]

Definition at line 90 of file FindPanoDialog.h.

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

wxTextCtrl* FindPanoDialog::m_textctrl_dir [private]

Definition at line 76 of file FindPanoDialog.h.

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


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