Hugintrunk
0.1
|
Dialog for finding panorama in given directory. More...
#include <FindPanoDialog.h>
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 | |
BatchFrame * | m_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 |
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.
FindPanoDialog::FindPanoDialog | ( | BatchFrame * | batchframe, |
wxString | xrcPrefix | ||
) |
Constructor, read from xrc ressource; restore last uses settings, size and position.
Definition at line 73 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, m_thumbsList, OnListMouseMove(), SelectListValue(), and THUMBSIZE.
FindPanoDialog::~FindPanoDialog | ( | ) |
destructor, saves size and position
Definition at line 182 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.
|
private |
Definition at line 213 of file FindPanoDialog.cpp.
References m_panos.
Referenced by OnButtonStart(), and ~FindPanoDialog().
|
private |
Definition at line 346 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().
|
protected |
select directory with dialog
Definition at line 249 of file FindPanoDialog.cpp.
References m_textctrl_dir.
|
protected |
|
protected |
add selected projects to queue
Definition at line 302 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.
|
protected |
start/stops detections
Definition at line 259 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().
|
protected |
prevents closing window when running detection
Definition at line 223 of file FindPanoDialog.cpp.
References m_isRunning.
|
protected |
event handler for context menu
Definition at line 380 of file FindPanoDialog.cpp.
References ID_REMOVE_IMAGE, ID_SPLIT_PANOS, m_list_pano, m_panos, and m_thumbsList.
|
protected |
mouse move handler for tooltips
Definition at line 462 of file FindPanoDialog.cpp.
References flags, m_thumbsList, and m_tooltips.
Referenced by FindPanoDialog().
|
protected |
event handler to remove selected image from list
Definition at line 402 of file FindPanoDialog.cpp.
References m_list_pano, m_panos, m_start_dir, m_thumbsList, and OnSelectPossiblePano().
|
protected |
event to populate information on the right
Definition at line 357 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().
|
protected |
event handler to split into 2 panos
Definition at line 427 of file FindPanoDialog.cpp.
References PossiblePano::GetImageCount(), m_list_pano, m_panos, m_start_dir, m_thumbsList, and OnSelectPossiblePano().
|
private |
Definition at line 485 of file FindPanoDialog.cpp.
References PossiblePano::AddSrcPanoImage(), 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::readEXIF(), and SortWxFilenames().
Referenced by OnButtonStart().
|
private |
Definition at line 81 of file FindPanoDialog.h.
Referenced by FindPanoDialog(), and OnButtonSend().
|
private |
Definition at line 83 of file FindPanoDialog.h.
Referenced by EnableButtons(), and FindPanoDialog().
|
private |
Definition at line 85 of file FindPanoDialog.h.
Referenced by EnableButtons(), and FindPanoDialog().
|
private |
Definition at line 84 of file FindPanoDialog.h.
Referenced by EnableButtons(), FindPanoDialog(), and SearchInDir().
|
private |
Definition at line 82 of file FindPanoDialog.h.
Referenced by FindPanoDialog(), OnButtonStart(), and SearchInDir().
|
private |
Definition at line 91 of file FindPanoDialog.h.
Referenced by EnableButtons(), FindPanoDialog(), OnButtonSend(), and ~FindPanoDialog().
|
private |
Definition at line 92 of file FindPanoDialog.h.
Referenced by FindPanoDialog(), OnButtonStart(), and ~FindPanoDialog().
|
private |
Definition at line 93 of file FindPanoDialog.h.
Referenced by FindPanoDialog(), and OnButtonStart().
|
private |
Definition at line 87 of file FindPanoDialog.h.
Referenced by EnableButtons(), FindPanoDialog(), OnButtonStart(), and ~FindPanoDialog().
|
private |
Definition at line 99 of file FindPanoDialog.h.
Referenced by FindPanoDialog(), OnButtonSend(), and ~FindPanoDialog().
|
private |
Definition at line 90 of file FindPanoDialog.h.
Referenced by EnableButtons(), FindPanoDialog(), OnButtonSend(), and ~FindPanoDialog().
|
private |
Definition at line 103 of file FindPanoDialog.h.
Referenced by FindPanoDialog(), OnButtonStart(), OnClose(), and SearchInDir().
|
private |
Definition at line 89 of file FindPanoDialog.h.
Referenced by FindPanoDialog(), OnButtonSend(), OnButtonStart(), OnListItemRightClick(), OnRemoveImage(), OnSelectPossiblePano(), OnSplitPanos(), and SearchInDir().
|
private |
Definition at line 105 of file FindPanoDialog.h.
Referenced by OnButtonStart(), and SearchInDir().
|
private |
Definition at line 101 of file FindPanoDialog.h.
Referenced by CleanUpPanolist(), OnButtonClose(), OnButtonSend(), OnButtonStart(), OnListItemRightClick(), OnRemoveImage(), OnSelectPossiblePano(), OnSplitPanos(), and SearchInDir().
|
private |
Definition at line 95 of file FindPanoDialog.h.
Referenced by FindPanoDialog(), OnButtonStart(), and ~FindPanoDialog().
|
private |
Definition at line 94 of file FindPanoDialog.h.
Referenced by FindPanoDialog(), OnButtonStart(), and ~FindPanoDialog().
|
private |
Definition at line 102 of file FindPanoDialog.h.
Referenced by OnButtonStart(), OnRemoveImage(), OnSplitPanos(), and SearchInDir().
|
private |
Definition at line 88 of file FindPanoDialog.h.
Referenced by FindPanoDialog(), and SearchInDir().
|
private |
Definition at line 104 of file FindPanoDialog.h.
Referenced by FindPanoDialog(), OnButtonStart(), and SearchInDir().
|
private |
Definition at line 86 of file FindPanoDialog.h.
Referenced by EnableButtons(), FindPanoDialog(), OnButtonChoose(), OnButtonStart(), and ~FindPanoDialog().
|
private |
Definition at line 96 of file FindPanoDialog.h.
Referenced by FindPanoDialog(), OnSelectPossiblePano(), and ~FindPanoDialog().
|
private |
Definition at line 97 of file FindPanoDialog.h.
Referenced by FindPanoDialog(), OnListItemRightClick(), OnListMouseMove(), OnRemoveImage(), OnSelectPossiblePano(), and OnSplitPanos().
|
private |
Definition at line 98 of file FindPanoDialog.h.
Referenced by OnListMouseMove(), and OnSelectPossiblePano().