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 () |
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 46 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, m_label_args_cleanup, OnOk(), OnSelectPath(), OnSelectPathDescriptor(), OnSelectPathMatcher(), OnSelectPathStack(), OnStepChanging(), OnTypeChange(), and RestoreFramePosition().
|
virtual |
destructor, saves position and size
Definition at line 84 of file CPDetectorDialog.cpp.
References StoreFramePosition().
|
private |
Definition at line 199 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 CPDetectorDialog(), OnTypeChange(), and UpdateFields().
|
protected |
check inputs
Definition at line 89 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.
Referenced by CPDetectorDialog().
|
protected |
select program with file open dialog
Definition at line 272 of file CPDetectorDialog.cpp.
References m_edit_prog, and ShowFileDialog().
Referenced by CPDetectorDialog().
|
protected |
select program for feature descriptor with file open dialog
Definition at line 279 of file CPDetectorDialog.cpp.
References m_edit_prog_descriptor, and ShowFileDialog().
Referenced by CPDetectorDialog().
|
protected |
select program for feature matcher with file open dialog
Definition at line 286 of file CPDetectorDialog.cpp.
References m_edit_prog_matcher, and ShowFileDialog().
Referenced by CPDetectorDialog().
|
protected |
select program for stack with file open dialog
Definition at line 293 of file CPDetectorDialog.cpp.
References m_edit_prog_stack, and ShowFileDialog().
Referenced by CPDetectorDialog().
|
protected |
block selection of two step detector for autopano setting
Definition at line 300 of file CPDetectorDialog.cpp.
References twoStepAllowed.
Referenced by CPDetectorDialog().
|
protected |
update dialog, when other cp detector type is changed
Definition at line 194 of file CPDetectorDialog.cpp.
References ChangeType().
Referenced by CPDetectorDialog().
|
protected |
shows file dialog
Definition at line 244 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 125 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 157 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(), CPDetectorDialog(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 83 of file CPDetectorDialog.h.
Referenced by ChangeType(), CPDetectorDialog(), OnOk(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 82 of file CPDetectorDialog.h.
Referenced by ChangeType(), CPDetectorDialog(), OnOk(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 72 of file CPDetectorDialog.h.
Referenced by CPDetectorDialog(), OnOk(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 74 of file CPDetectorDialog.h.
Referenced by ChangeType(), CPDetectorDialog(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 76 of file CPDetectorDialog.h.
Referenced by CPDetectorDialog(), OnOk(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 78 of file CPDetectorDialog.h.
Referenced by CPDetectorDialog(), OnOk(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 80 of file CPDetectorDialog.h.
Referenced by CPDetectorDialog(), OnOk(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 70 of file CPDetectorDialog.h.
Referenced by CPDetectorDialog(), OnOk(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 71 of file CPDetectorDialog.h.
Referenced by CPDetectorDialog(), OnOk(), OnSelectPath(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 75 of file CPDetectorDialog.h.
Referenced by CPDetectorDialog(), OnOk(), OnSelectPathDescriptor(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 77 of file CPDetectorDialog.h.
Referenced by CPDetectorDialog(), OnOk(), OnSelectPathMatcher(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 79 of file CPDetectorDialog.h.
Referenced by CPDetectorDialog(), OnOk(), OnSelectPathStack(), UpdateFields(), and UpdateSettings().
|
private |
Definition at line 73 of file CPDetectorDialog.h.
Referenced by ChangeType(), and CPDetectorDialog().
|
private |
Definition at line 84 of file CPDetectorDialog.h.
Referenced by ChangeType(), and OnStepChanging().