CPDetectorDialog Class Reference

dialog for input settings of one autopano generator More...

#include <CPDetectorDialog.h>

List of all members.

Public Member Functions

 CPDetectorDialog (wxWindow *parent)
 constructor
virtual ~CPDetectorDialog ()
 destructor, saves position and size
void UpdateFields (CPDetectorConfig *cpdet_config, int index)
 updates edit fields with values from settings
void UpdateSettings (CPDetectorConfig *cpdet_config, int index)
 return inputed settings

Protected Member Functions

void OnOk (wxCommandEvent &e)
 check inputs
void OnSelectPath (wxCommandEvent &e)
 select program with file open dialog
void OnSelectPathDescriptor (wxCommandEvent &e)
 select program for feature descriptor with file open dialog
void OnSelectPathMatcher (wxCommandEvent &e)
 select program for feature matcher with file open dialog
void OnSelectPathStack (wxCommandEvent &e)
 select program for stack with file open dialog
void OnTypeChange (wxCommandEvent &e)
 update dialog, when other cp detector type is changed
void OnStepChanging (wxChoicebookEvent &e)
 block selection of two step detector for autopano setting
bool ShowFileDialog (wxString &prog)
 shows file dialog

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


Detailed Description

dialog for input settings of one autopano generator

Definition at line 37 of file CPDetectorDialog.h.


Constructor & Destructor Documentation

CPDetectorDialog::OnSelectPathDescriptor CPDetectorDialog::OnSelectPathStack CPDetectorDialog::OnStepChanging CPDetectorDialog::CPDetectorDialog wxWindow *  parent  ) 
 

constructor

Definition at line 52 of file CPDetectorDialog.cpp.

References RestoreFramePosition().

CPDetectorDialog::~CPDetectorDialog  )  [virtual]
 

destructor, saves position and size

Definition at line 83 of file CPDetectorDialog.cpp.

References StoreFramePosition().


Member Function Documentation

void CPDetectorDialog::ChangeType  )  [private]
 

Definition at line 198 of file CPDetectorDialog.cpp.

References CPDetector_AutoPanoSiftMultiRow, CPDetector_AutoPanoSiftMultiRowStack, CPDetector_AutoPanoSiftPreAlign, CPDetectorType, 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().

CPDetectorDialog::DECLARE_EVENT_TABLE  )  [private]
 

void CPDetectorDialog::OnOk wxCommandEvent &  e  )  [protected]
 

check inputs

Definition at line 88 of file CPDetectorDialog.cpp.

References CPDetectorSetting::ContainsStacks(), CPDetectorType, 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.

void CPDetectorDialog::OnSelectPath wxCommandEvent &  e  )  [protected]
 

select program with file open dialog

Definition at line 271 of file CPDetectorDialog.cpp.

References m_edit_prog, and ShowFileDialog().

void CPDetectorDialog::OnSelectPathDescriptor wxCommandEvent &  e  )  [protected]
 

select program for feature descriptor with file open dialog

Definition at line 278 of file CPDetectorDialog.cpp.

References m_edit_prog_descriptor, and ShowFileDialog().

void CPDetectorDialog::OnSelectPathMatcher wxCommandEvent &  e  )  [protected]
 

select program for feature matcher with file open dialog

Definition at line 285 of file CPDetectorDialog.cpp.

References m_edit_prog_matcher, and ShowFileDialog().

void CPDetectorDialog::OnSelectPathStack wxCommandEvent &  e  )  [protected]
 

select program for stack with file open dialog

Definition at line 292 of file CPDetectorDialog.cpp.

References m_edit_prog_stack, and ShowFileDialog().

void CPDetectorDialog::OnStepChanging wxChoicebookEvent &  e  )  [protected]
 

block selection of two step detector for autopano setting

Definition at line 299 of file CPDetectorDialog.cpp.

References twoStepAllowed.

void CPDetectorDialog::OnTypeChange wxCommandEvent &  e  )  [protected]
 

update dialog, when other cp detector type is changed

Definition at line 193 of file CPDetectorDialog.cpp.

References ChangeType().

bool CPDetectorDialog::ShowFileDialog wxString &  prog  )  [protected]
 

shows file dialog

Definition at line 243 of file CPDetectorDialog.cpp.

References MAC_SELF_CONTAINED_BUNDLE.

Referenced by OnSelectPath(), OnSelectPathDescriptor(), OnSelectPathMatcher(), and OnSelectPathStack().

void CPDetectorDialog::UpdateFields CPDetectorConfig cpdet_config,
int  index
 

updates edit fields with values from settings

Parameters:
cpdet_config CPDetectorConfig class, which stores the settings
index index, from which the settings should be read

Definition at line 124 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

Parameters:
cpdet_config CPDetectorConfig class, which stores the settings
index index, to which the changed settings should be written

Definition at line 156 of file CPDetectorDialog.cpp.

References CPDetectorType, 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().


Member Data Documentation

wxCheckBox* CPDetectorDialog::m_check_option [private]
 

Definition at line 81 of file CPDetectorDialog.h.

Referenced by ChangeType(), UpdateFields(), and UpdateSettings().

wxChoicebook* CPDetectorDialog::m_choice_step [private]
 

Definition at line 83 of file CPDetectorDialog.h.

Referenced by ChangeType(), OnOk(), UpdateFields(), and UpdateSettings().

wxChoice* CPDetectorDialog::m_cpdetector_type [private]
 

Definition at line 82 of file CPDetectorDialog.h.

Referenced by ChangeType(), OnOk(), UpdateFields(), and UpdateSettings().

wxTextCtrl* CPDetectorDialog::m_edit_args [private]
 

Definition at line 72 of file CPDetectorDialog.h.

Referenced by OnOk(), UpdateFields(), and UpdateSettings().

wxTextCtrl* CPDetectorDialog::m_edit_args_cleanup [private]
 

Definition at line 74 of file CPDetectorDialog.h.

Referenced by ChangeType(), UpdateFields(), and UpdateSettings().

wxTextCtrl* CPDetectorDialog::m_edit_args_descriptor [private]
 

Definition at line 76 of file CPDetectorDialog.h.

Referenced by OnOk(), UpdateFields(), and UpdateSettings().

wxTextCtrl* CPDetectorDialog::m_edit_args_matcher [private]
 

Definition at line 78 of file CPDetectorDialog.h.

Referenced by OnOk(), UpdateFields(), and UpdateSettings().

wxTextCtrl* CPDetectorDialog::m_edit_args_stack [private]
 

Definition at line 80 of file CPDetectorDialog.h.

Referenced by OnOk(), UpdateFields(), and UpdateSettings().

wxTextCtrl* CPDetectorDialog::m_edit_desc [private]
 

Definition at line 70 of file CPDetectorDialog.h.

Referenced by OnOk(), UpdateFields(), and UpdateSettings().

wxTextCtrl* CPDetectorDialog::m_edit_prog [private]
 

Definition at line 71 of file CPDetectorDialog.h.

Referenced by OnOk(), OnSelectPath(), UpdateFields(), and UpdateSettings().

wxTextCtrl* CPDetectorDialog::m_edit_prog_descriptor [private]
 

Definition at line 75 of file CPDetectorDialog.h.

Referenced by OnOk(), OnSelectPathDescriptor(), UpdateFields(), and UpdateSettings().

wxTextCtrl* CPDetectorDialog::m_edit_prog_matcher [private]
 

Definition at line 77 of file CPDetectorDialog.h.

Referenced by OnOk(), OnSelectPathMatcher(), UpdateFields(), and UpdateSettings().

wxTextCtrl* CPDetectorDialog::m_edit_prog_stack [private]
 

Definition at line 79 of file CPDetectorDialog.h.

Referenced by OnOk(), OnSelectPathStack(), UpdateFields(), and UpdateSettings().

wxStaticText* CPDetectorDialog::m_label_args_cleanup [private]
 

Definition at line 73 of file CPDetectorDialog.h.

Referenced by ChangeType().

bool CPDetectorDialog::twoStepAllowed [private]
 

Definition at line 84 of file CPDetectorDialog.h.

Referenced by ChangeType(), and OnStepChanging().


The documentation for this class was generated from the following files:
Generated on Sat Aug 30 01:25:44 2014 for Hugintrunk by  doxygen 1.3.9.1