Hugintrunk
0.1
|
dialog for input settings of one autopano generator More...
#include <CPDetectorDialog.h>
Public Member Functions | |
CPDetectorDialog (wxWindow *parent) | |
constructor More... | |
virtual | ~CPDetectorDialog () |
destructor, saves position and size More... | |
void | UpdateFields (CPDetectorConfig *cpdet_config, int index) |
updates edit fields with values from settings More... | |
void | UpdateSettings (CPDetectorConfig *cpdet_config, int index) |
return inputed settings More... | |
Protected Member Functions | |
void | OnOk (wxCommandEvent &e) |
check inputs More... | |
void | OnSelectPath (wxCommandEvent &e) |
select program with file open dialog More... | |
void | OnSelectPathDescriptor (wxCommandEvent &e) |
select program for feature descriptor with file open dialog More... | |
void | OnSelectPathMatcher (wxCommandEvent &e) |
select program for feature matcher with file open dialog More... | |
void | OnSelectPathStack (wxCommandEvent &e) |
select program for stack with file open dialog More... | |
void | OnTypeChange (wxCommandEvent &e) |
update dialog, when other cp detector type is changed More... | |
void | OnStepChanging (wxChoicebookEvent &e) |
block selection of two step detector for autopano setting More... | |
bool | ShowFileDialog (wxString &prog) |
shows file dialog More... | |
Private Member Functions | |
void | ChangeType () |
DECLARE_EVENT_TABLE () | |
Private Attributes | |
wxTextCtrl * | m_edit_desc |
wxTextCtrl * | m_edit_prog |
wxTextCtrl * | m_edit_args |
wxStaticText * | m_label_args_cleanup |
wxTextCtrl * | m_edit_args_cleanup |
wxTextCtrl * | m_edit_prog_descriptor |
wxTextCtrl * | m_edit_args_descriptor |
wxTextCtrl * | m_edit_prog_matcher |
wxTextCtrl * | m_edit_args_matcher |
wxTextCtrl * | m_edit_prog_stack |
wxTextCtrl * | m_edit_args_stack |
wxCheckBox * | m_check_option |
wxChoice * | m_cpdetector_type |
wxChoicebook * | m_choice_step |
bool | twoStepAllowed |
dialog for input settings of one autopano generator
Definition at line 37 of file CPDetectorDialog.h.
CPDetectorDialog::CPDetectorDialog | ( | wxWindow * | parent | ) |
constructor
Definition at line 57 of file CPDetectorDialog.cpp.
References huginApp::Get(), and RestoreFramePosition().
|
virtual |
destructor, saves position and size
Definition at line 95 of file CPDetectorDialog.cpp.
References StoreFramePosition().
|
private |
Definition at line 210 of file CPDetectorDialog.cpp.
References CPDetectorSetting::ContainsStacks(), CPDetector_AutoPano, CPDetector_AutoPanoSiftMultiRow, CPDetector_AutoPanoSiftMultiRowStack, CPDetector_AutoPanoSiftPreAlign, CPDetectorSetting::IsCleanupPossible(), m_check_option, m_choice_step, m_cpdetector_type, m_edit_args_cleanup, m_label_args_cleanup, and twoStepAllowed.
Referenced by OnTypeChange(), and UpdateFields().
|
private |
|
protected |
check inputs
Definition at line 100 of file CPDetectorDialog.cpp.
References CPDetectorSetting::ContainsStacks(), m_choice_step, m_cpdetector_type, m_edit_args, m_edit_args_descriptor, m_edit_args_matcher, m_edit_args_stack, m_edit_desc, m_edit_prog, m_edit_prog_descriptor, m_edit_prog_matcher, and m_edit_prog_stack.
|
protected |
select program with file open dialog
Definition at line 283 of file CPDetectorDialog.cpp.
References m_edit_prog, and ShowFileDialog().
|
protected |
select program for feature descriptor with file open dialog
Definition at line 290 of file CPDetectorDialog.cpp.
References m_edit_prog_descriptor, and ShowFileDialog().
|
protected |
select program for feature matcher with file open dialog
Definition at line 297 of file CPDetectorDialog.cpp.
References m_edit_prog_matcher, and ShowFileDialog().
|
protected |
select program for stack with file open dialog
Definition at line 304 of file CPDetectorDialog.cpp.
References m_edit_prog_stack, and ShowFileDialog().
|
protected |
block selection of two step detector for autopano setting
Definition at line 311 of file CPDetectorDialog.cpp.
References twoStepAllowed.
|
protected |
update dialog, when other cp detector type is changed
Definition at line 205 of file CPDetectorDialog.cpp.
References ChangeType().
|
protected |
shows file dialog
Definition at line 255 of file CPDetectorDialog.cpp.
Referenced by OnSelectPath(), OnSelectPathDescriptor(), OnSelectPathMatcher(), and OnSelectPathStack().
void CPDetectorDialog::UpdateFields | ( | CPDetectorConfig * | cpdet_config, |
int | index | ||
) |
updates edit fields with values from settings
cpdet_config | CPDetectorConfig class, which stores the settings |
index | index, from which the settings should be read |
Definition at line 136 of file CPDetectorDialog.cpp.
References ChangeType(), m_check_option, m_choice_step, m_cpdetector_type, m_edit_args, m_edit_args_cleanup, m_edit_args_descriptor, m_edit_args_matcher, m_edit_args_stack, m_edit_desc, m_edit_prog, m_edit_prog_descriptor, m_edit_prog_matcher, m_edit_prog_stack, and CPDetectorConfig::settings.
Referenced by PreferencesDialog::OnCPDetectorEdit().
void CPDetectorDialog::UpdateSettings | ( | CPDetectorConfig * | cpdet_config, |
int | index | ||
) |
return inputed settings
cpdet_config | CPDetectorConfig class, which stores the settings |
index | index, to which the changed settings should be written |
Definition at line 168 of file CPDetectorDialog.cpp.
References m_check_option, m_choice_step, m_cpdetector_type, m_edit_args, m_edit_args_cleanup, m_edit_args_descriptor, m_edit_args_matcher, m_edit_args_stack, m_edit_desc, m_edit_prog, m_edit_prog_descriptor, m_edit_prog_matcher, m_edit_prog_stack, and CPDetectorConfig::settings.
Referenced by PreferencesDialog::OnCPDetectorAdd(), and PreferencesDialog::OnCPDetectorEdit().
|
private |
Definition at line 81 of file CPDetectorDialog.h.
Referenced by ChangeType(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 83 of file CPDetectorDialog.h.
Referenced by ChangeType(), OnOk(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 82 of file CPDetectorDialog.h.
Referenced by ChangeType(), OnOk(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 72 of file CPDetectorDialog.h.
Referenced by OnOk(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 74 of file CPDetectorDialog.h.
Referenced by ChangeType(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 76 of file CPDetectorDialog.h.
Referenced by OnOk(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 78 of file CPDetectorDialog.h.
Referenced by OnOk(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 80 of file CPDetectorDialog.h.
Referenced by OnOk(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 70 of file CPDetectorDialog.h.
Referenced by OnOk(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 71 of file CPDetectorDialog.h.
Referenced by OnOk(), OnSelectPath(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 75 of file CPDetectorDialog.h.
Referenced by OnOk(), OnSelectPathDescriptor(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 77 of file CPDetectorDialog.h.
Referenced by OnOk(), OnSelectPathMatcher(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 79 of file CPDetectorDialog.h.
Referenced by OnOk(), OnSelectPathStack(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 73 of file CPDetectorDialog.h.
Referenced by ChangeType().
|
private |
Definition at line 84 of file CPDetectorDialog.h.
Referenced by ChangeType(), and OnStepChanging().