Hugin trunk 0.1
Loading...
Searching...
No Matches
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
 
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 ()
 

Private Attributes

wxTextCtrl * m_edit_desc
 
wxTextCtrl * m_edit_prog
 
wxTextCtrl * m_edit_args
 
wxStaticTextm_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
 
wxCheckBoxm_check_option
 
wxChoicem_cpdetector_type
 
wxChoicebookm_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::CPDetectorDialog ( wxWindow *  parent)

◆ ~CPDetectorDialog()

CPDetectorDialog::~CPDetectorDialog ( )
virtual

destructor, saves position and size

Definition at line 85 of file CPDetectorDialog.cpp.

References hugin_utils::StoreFramePosition().

Member Function Documentation

◆ ChangeType()

void CPDetectorDialog::ChangeType ( )
private

◆ OnOk()

void CPDetectorDialog::OnOk ( wxCommandEvent &  e)
protected

◆ OnSelectPath()

void CPDetectorDialog::OnSelectPath ( wxCommandEvent &  e)
protected

select program with file open dialog

Definition at line 273 of file CPDetectorDialog.cpp.

References m_edit_prog, ShowFileDialog(), and threshold().

Referenced by CPDetectorDialog().

◆ OnSelectPathDescriptor()

void CPDetectorDialog::OnSelectPathDescriptor ( wxCommandEvent &  e)
protected

select program for feature descriptor with file open dialog

Definition at line 280 of file CPDetectorDialog.cpp.

References m_edit_prog_descriptor, ShowFileDialog(), and threshold().

Referenced by CPDetectorDialog().

◆ OnSelectPathMatcher()

void CPDetectorDialog::OnSelectPathMatcher ( wxCommandEvent &  e)
protected

select program for feature matcher with file open dialog

Definition at line 287 of file CPDetectorDialog.cpp.

References m_edit_prog_matcher, ShowFileDialog(), and threshold().

Referenced by CPDetectorDialog().

◆ OnSelectPathStack()

void CPDetectorDialog::OnSelectPathStack ( wxCommandEvent &  e)
protected

select program for stack with file open dialog

Definition at line 294 of file CPDetectorDialog.cpp.

References m_edit_prog_stack, ShowFileDialog(), and threshold().

Referenced by CPDetectorDialog().

◆ OnStepChanging()

void CPDetectorDialog::OnStepChanging ( wxChoicebookEvent e)
protected

block selection of two step detector for autopano setting

Definition at line 301 of file CPDetectorDialog.cpp.

References threshold(), and twoStepAllowed.

Referenced by CPDetectorDialog().

◆ OnTypeChange()

void CPDetectorDialog::OnTypeChange ( wxCommandEvent &  e)
protected

update dialog, when other cp detector type is changed

Definition at line 195 of file CPDetectorDialog.cpp.

References ChangeType().

Referenced by CPDetectorDialog().

◆ ShowFileDialog()

bool CPDetectorDialog::ShowFileDialog ( wxString prog)
protected

shows file dialog

Definition at line 245 of file CPDetectorDialog.cpp.

References threshold().

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

◆ UpdateFields()

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 126 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 threshold().

◆ UpdateSettings()

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 158 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 threshold().

Member Data Documentation

◆ m_check_option

wxCheckBox* CPDetectorDialog::m_check_option
private

Definition at line 81 of file CPDetectorDialog.h.

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

◆ m_choice_step

wxChoicebook* CPDetectorDialog::m_choice_step
private

Definition at line 83 of file CPDetectorDialog.h.

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

◆ m_cpdetector_type

wxChoice* CPDetectorDialog::m_cpdetector_type
private

Definition at line 82 of file CPDetectorDialog.h.

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

◆ m_edit_args

wxTextCtrl* CPDetectorDialog::m_edit_args
private

Definition at line 72 of file CPDetectorDialog.h.

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

◆ m_edit_args_cleanup

wxTextCtrl* CPDetectorDialog::m_edit_args_cleanup
private

Definition at line 74 of file CPDetectorDialog.h.

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

◆ m_edit_args_descriptor

wxTextCtrl* CPDetectorDialog::m_edit_args_descriptor
private

Definition at line 76 of file CPDetectorDialog.h.

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

◆ m_edit_args_matcher

wxTextCtrl* CPDetectorDialog::m_edit_args_matcher
private

Definition at line 78 of file CPDetectorDialog.h.

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

◆ m_edit_args_stack

wxTextCtrl* CPDetectorDialog::m_edit_args_stack
private

Definition at line 80 of file CPDetectorDialog.h.

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

◆ m_edit_desc

wxTextCtrl* CPDetectorDialog::m_edit_desc
private

Definition at line 70 of file CPDetectorDialog.h.

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

◆ m_edit_prog

wxTextCtrl* CPDetectorDialog::m_edit_prog
private

Definition at line 71 of file CPDetectorDialog.h.

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

◆ m_edit_prog_descriptor

wxTextCtrl* CPDetectorDialog::m_edit_prog_descriptor
private

◆ m_edit_prog_matcher

wxTextCtrl* CPDetectorDialog::m_edit_prog_matcher
private

◆ m_edit_prog_stack

wxTextCtrl* CPDetectorDialog::m_edit_prog_stack
private

◆ m_label_args_cleanup

wxStaticText* CPDetectorDialog::m_label_args_cleanup
private

Definition at line 73 of file CPDetectorDialog.h.

Referenced by ChangeType(), and CPDetectorDialog().

◆ twoStepAllowed

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: