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

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

#include <FindPanoDialog.h>

Inheritance diagram for FindPanoDialog:
Inheritance graph

Public Member Functions

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

Protected Member Functions

void OnButtonClose (wxCommandEvent &e)
 closes window More...
 
void OnButtonChoose (wxCommandEvent &e)
 select directory with dialog More...
 
void OnButtonStart (wxCommandEvent &e)
 start/stops detections More...
 
void OnButtonSend (wxCommandEvent &e)
 add selected projects to queue More...
 
void OnClose (wxCloseEvent &e)
 prevents closing window when running detection More...
 
void OnSelectPossiblePano (wxCommandEvent &e)
 event to populate information on the right More...
 
void OnListItemRightClick (wxListEvent &e)
 event handler for context menu More...
 
void OnRemoveImage (wxCommandEvent &e)
 event handler to remove selected image from list More...
 
void OnSplitPanos (wxCommandEvent &e)
 event handler to split into 2 panos More...
 
void OnListMouseMove (wxMouseEvent &e)
 mouse move handler for tooltips More...
 

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
 
wxListCtrl * m_thumbsList
 
wxArrayString m_tooltips
 
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 
)
FindPanoDialog::~FindPanoDialog ( )

Member Function Documentation

void FindPanoDialog::CleanUpPanolist ( )
private

Definition at line 212 of file FindPanoDialog.cpp.

References m_panos.

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

void FindPanoDialog::EnableButtons ( const bool  state)
private
void FindPanoDialog::OnButtonChoose ( wxCommandEvent &  e)
protected

select directory with dialog

Definition at line 248 of file FindPanoDialog.cpp.

References m_textctrl_dir.

void FindPanoDialog::OnButtonClose ( wxCommandEvent &  e)
protected

closes window

Definition at line 235 of file FindPanoDialog.cpp.

References m_panos.

void FindPanoDialog::OnButtonSend ( wxCommandEvent &  e)
protected
void FindPanoDialog::OnButtonStart ( wxCommandEvent &  e)
protected
void FindPanoDialog::OnClose ( wxCloseEvent &  e)
protected

prevents closing window when running detection

Definition at line 222 of file FindPanoDialog.cpp.

References m_isRunning.

void FindPanoDialog::OnListItemRightClick ( wxListEvent &  e)
protected

event handler for context menu

Definition at line 379 of file FindPanoDialog.cpp.

References ID_REMOVE_IMAGE, ID_SPLIT_PANOS, m_list_pano, m_panos, and m_thumbsList.

void FindPanoDialog::OnListMouseMove ( wxMouseEvent &  e)
protected

mouse move handler for tooltips

Definition at line 461 of file FindPanoDialog.cpp.

References flags, m_thumbsList, and m_tooltips.

Referenced by FindPanoDialog().

void FindPanoDialog::OnRemoveImage ( wxCommandEvent &  e)
protected

event handler to remove selected image from list

Definition at line 401 of file FindPanoDialog.cpp.

References m_list_pano, m_panos, m_start_dir, m_thumbsList, and OnSelectPossiblePano().

void FindPanoDialog::OnSelectPossiblePano ( wxCommandEvent &  e)
protected

event to populate information on the right

Definition at line 356 of file FindPanoDialog.cpp.

References FormatString::GetFocalLength(), m_list_pano, m_panos, m_thumbs, m_thumbsList, and m_tooltips.

Referenced by OnButtonStart(), OnRemoveImage(), and OnSplitPanos().

void FindPanoDialog::OnSplitPanos ( wxCommandEvent &  e)
protected

event handler to split into 2 panos

Definition at line 426 of file FindPanoDialog.cpp.

References PossiblePano::GetImageCount(), m_list_pano, m_panos, m_start_dir, m_thumbsList, and OnSelectPossiblePano().

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

Member Data Documentation

BatchFrame* FindPanoDialog::m_batchframe
private

Definition at line 81 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), and OnButtonSend().

wxButton* FindPanoDialog::m_button_choose
private

Definition at line 83 of file FindPanoDialog.h.

Referenced by EnableButtons(), and FindPanoDialog().

wxButton* FindPanoDialog::m_button_close
private

Definition at line 85 of file FindPanoDialog.h.

Referenced by EnableButtons(), and FindPanoDialog().

wxButton* FindPanoDialog::m_button_send
private

Definition at line 84 of file FindPanoDialog.h.

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

wxButton* FindPanoDialog::m_button_start
private

Definition at line 82 of file FindPanoDialog.h.

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

wxCheckBox* FindPanoDialog::m_cb_createLinks
private

Definition at line 91 of file FindPanoDialog.h.

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

wxCheckBox* FindPanoDialog::m_cb_loadDistortion
private

Definition at line 92 of file FindPanoDialog.h.

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

wxCheckBox* FindPanoDialog::m_cb_loadVignetting
private

Definition at line 93 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), and OnButtonStart().

wxCheckBox* FindPanoDialog::m_cb_subdir
private

Definition at line 87 of file FindPanoDialog.h.

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

wxChoice* FindPanoDialog::m_ch_blender
private

Definition at line 99 of file FindPanoDialog.h.

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

wxChoice* FindPanoDialog::m_ch_naming
private

Definition at line 90 of file FindPanoDialog.h.

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

bool FindPanoDialog::m_isRunning
private

Definition at line 103 of file FindPanoDialog.h.

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

wxCheckListBox* FindPanoDialog::m_list_pano
private
TIFFErrorHandler FindPanoDialog::m_oldtiffwarning
private

Definition at line 105 of file FindPanoDialog.h.

Referenced by OnButtonStart(), and SearchInDir().

std::vector<PossiblePano*> FindPanoDialog::m_panos
private
wxSpinCtrl* FindPanoDialog::m_sc_maxTimeDiff
private

Definition at line 95 of file FindPanoDialog.h.

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

wxSpinCtrl* FindPanoDialog::m_sc_minNumberImages
private

Definition at line 94 of file FindPanoDialog.h.

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

wxString FindPanoDialog::m_start_dir
private

Definition at line 102 of file FindPanoDialog.h.

Referenced by OnButtonStart(), OnRemoveImage(), OnSplitPanos(), and SearchInDir().

wxStaticText* FindPanoDialog::m_statustext
private

Definition at line 88 of file FindPanoDialog.h.

Referenced by FindPanoDialog(), and SearchInDir().

bool FindPanoDialog::m_stopped
private

Definition at line 104 of file FindPanoDialog.h.

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

wxTextCtrl* FindPanoDialog::m_textctrl_dir
private
wxImageList* FindPanoDialog::m_thumbs
private

Definition at line 96 of file FindPanoDialog.h.

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

wxListCtrl* FindPanoDialog::m_thumbsList
private
wxArrayString FindPanoDialog::m_tooltips
private

Definition at line 98 of file FindPanoDialog.h.

Referenced by OnListMouseMove(), and OnSelectPossiblePano().


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