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
CPDetectorDialog Class Reference

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

#include <CPDetectorDialog.h>

Inheritance diagram for CPDetectorDialog:
Inheritance graph

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
 

Detailed Description

dialog for input settings of one autopano generator

Definition at line 37 of file CPDetectorDialog.h.

Constructor & Destructor Documentation

CPDetectorDialog::CPDetectorDialog ( wxWindow *  parent)

constructor

Definition at line 57 of file CPDetectorDialog.cpp.

References huginApp::Get(), and RestoreFramePosition().

CPDetectorDialog::~CPDetectorDialog ( )
virtual

destructor, saves position and size

Definition at line 95 of file CPDetectorDialog.cpp.

References StoreFramePosition().

Member Function Documentation

void CPDetectorDialog::ChangeType ( )
private
CPDetectorDialog::DECLARE_EVENT_TABLE ( )
private
void CPDetectorDialog::OnOk ( wxCommandEvent &  e)
protected
void CPDetectorDialog::OnSelectPath ( wxCommandEvent &  e)
protected

select program with file open dialog

Definition at line 283 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 290 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 297 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 304 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 311 of file CPDetectorDialog.cpp.

References twoStepAllowed.

void CPDetectorDialog::OnTypeChange ( wxCommandEvent &  e)
protected

update dialog, when other cp detector type is changed

Definition at line 205 of file CPDetectorDialog.cpp.

References ChangeType().

bool CPDetectorDialog::ShowFileDialog ( wxString &  prog)
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

Parameters
cpdet_configCPDetectorConfig class, which stores the settings
indexindex, 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

Parameters
cpdet_configCPDetectorConfig class, which stores the settings
indexindex, 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().

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: