Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
CPDetectorSetting Class Reference

class, which stores all settings of one cp detector More...

#include <CPDetectorConfig.h>

Public Member Functions

 CPDetectorSetting ()
 constructor More...
 
virtual ~CPDetectorSetting ()
 destructor More...
 
bool Read (wxConfigBase *config, wxString path)
 read setting for this generator from config More...
 
void Write (wxConfigBase *config, wxString path)
 writes setting for this generator to config More...
 
const wxString GetCPDetectorDesc ()
 return description of this setting More...
 
void SetCPDetectorDesc (wxString new_desc)
 sets description of this setting More...
 
const CPDetectorType GetType ()
 return type of this setting More...
 
void SetType (CPDetectorType new_type)
 sets type of this setting More...
 
const wxString GetProg ()
 return program for one step detector or feature descriptor More...
 
void SetProg (wxString new_prog)
 sets program for one step detector or feature descriptor More...
 
const wxString GetArgs ()
 return arguments of one step detector or feature descriptor More...
 
void SetArgs (wxString new_args)
 sets arguments of one step detector or feature descriptor More...
 
const wxString GetArgsCleanup ()
 return arguments for the cleanup step More...
 
void SetArgsCleanup (wxString new_args)
 sets arguments for the cleanup step More...
 
const wxString GetProgMatcher ()
 return program for feature matcher More...
 
void SetProgMatcher (wxString new_prog)
 sets program for feature matcher More...
 
const wxString GetArgsMatcher ()
 return arguments for feature matcher More...
 
void SetArgsMatcher (wxString new_args)
 sets arguments for feature matcher More...
 
const wxString GetProgStack ()
 return program name, which works on stacks More...
 
void SetProgStack (wxString new_prog)
 sets program for detecting cp in stacks More...
 
const wxString GetArgsStack ()
 return arguments of program for detection of cp in stacks More...
 
void SetArgsStack (wxString new_args)
 sets arguments of program for detection of cp in stacks More...
 
const bool GetOption ()
 gets options, used in multi-row and prealigned cp detectors More...
 
void SetOption (bool new_option)
 set options, used in multi-row cp and prealigned detectors More...
 
const bool IsTwoStepDetector ()
 returns true, if setting is suitable for two step detector otherwise false More...
 
const bool IsCleanupPossible ()
 
const bool ContainsStacks ()
 

Static Public Member Functions

static const bool IsCleanupPossible (CPDetectorType _type)
 return true, if setting allows a final cleanup run More...
 
static const bool ContainsStacks (CPDetectorType _type)
 return true, if setting contains a stack detector, even it is empty More...
 

Private Member Functions

void CheckValues ()
 

Private Attributes

CPDetectorType type
 
wxString desc
 
wxString prog
 
wxString args
 
wxString args_cleanup
 
wxString prog_matcher
 
wxString args_matcher
 
wxString prog_stack
 
wxString args_stack
 
bool option
 

Detailed Description

class, which stores all settings of one cp detector

Definition at line 47 of file CPDetectorConfig.h.

Constructor & Destructor Documentation

CPDetectorSetting::CPDetectorSetting ( )
virtual CPDetectorSetting::~CPDetectorSetting ( )
inlinevirtual

destructor

Definition at line 53 of file CPDetectorConfig.h.

Member Function Documentation

void CPDetectorSetting::CheckValues ( )
private

Definition at line 186 of file CPDetectorConfig.cpp.

References args_matcher, CPDetector_AutoPano, prog_matcher, and type.

Referenced by CPDetectorSetting(), and Read().

const bool CPDetectorSetting::ContainsStacks ( CPDetectorType  _type)
static

return true, if setting contains a stack detector, even it is empty

Definition at line 205 of file CPDetectorConfig.cpp.

References CPDetector_AutoPanoSiftMultiRowStack, and CPDetector_AutoPanoSiftStack.

const bool CPDetectorSetting::ContainsStacks ( )
inline
const wxString CPDetectorSetting::GetArgs ( )
inline

return arguments of one step detector or feature descriptor

Definition at line 72 of file CPDetectorConfig.h.

Referenced by AutoPanoSift::automatch(), AutoPanoKolor::automatch(), and AutoPanoSiftMultiRow::automatch().

const wxString CPDetectorSetting::GetArgsCleanup ( )
inline

return arguments for the cleanup step

Definition at line 76 of file CPDetectorConfig.h.

Referenced by AutoCtrlPointCreator::Cleanup().

const wxString CPDetectorSetting::GetArgsMatcher ( )
inline

return arguments for feature matcher

Definition at line 84 of file CPDetectorConfig.h.

Referenced by AutoPanoSift::automatch(), and AutoPanoSiftMultiRow::automatch().

const wxString CPDetectorSetting::GetArgsStack ( )
inline

return arguments of program for detection of cp in stacks

Definition at line 92 of file CPDetectorConfig.h.

Referenced by AutoPanoSiftStack::automatch(), and AutoPanoSiftMultiRowStack::automatch().

const wxString CPDetectorSetting::GetCPDetectorDesc ( )
inline

return description of this setting

Definition at line 60 of file CPDetectorConfig.h.

const bool CPDetectorSetting::GetOption ( )
inline

gets options, used in multi-row and prealigned cp detectors

Definition at line 96 of file CPDetectorConfig.h.

Referenced by AutoPanoSiftMultiRow::automatch(), and AutoPanoSiftPreAlign::automatch().

const wxString CPDetectorSetting::GetProg ( )
inline

return program for one step detector or feature descriptor

Definition at line 68 of file CPDetectorConfig.h.

Referenced by AutoCtrlPointCreator::automatch(), AutoPanoSift::automatch(), AutoPanoKolor::automatch(), AutoPanoSiftMultiRow::automatch(), and AutoCtrlPointCreator::Cleanup().

const wxString CPDetectorSetting::GetProgMatcher ( )
inline

return program for feature matcher

Definition at line 80 of file CPDetectorConfig.h.

Referenced by AutoCtrlPointCreator::automatch(), AutoPanoSift::automatch(), and AutoPanoSiftMultiRow::automatch().

const wxString CPDetectorSetting::GetProgStack ( )
inline

return program name, which works on stacks

Definition at line 88 of file CPDetectorConfig.h.

Referenced by AutoCtrlPointCreator::automatch(), AutoPanoSiftStack::automatch(), and AutoPanoSiftMultiRowStack::automatch().

const CPDetectorType CPDetectorSetting::GetType ( )
inline

return type of this setting

Definition at line 64 of file CPDetectorConfig.h.

Referenced by AutoCtrlPointCreator::automatch().

const bool CPDetectorSetting::IsCleanupPossible ( CPDetectorType  _type)
static

return true, if setting allows a final cleanup run

Definition at line 198 of file CPDetectorConfig.cpp.

References CPDetector_AutoPanoSiftMultiRow, CPDetector_AutoPanoSiftMultiRowStack, and CPDetector_AutoPanoSiftPreAlign.

Referenced by AutoCtrlPointCreator::Cleanup().

const bool CPDetectorSetting::IsCleanupPossible ( )
inline

Definition at line 103 of file CPDetectorConfig.h.

References IsCleanupPossible().

Referenced by CPDetectorDialog::ChangeType(), IsCleanupPossible(), Read(), and Write().

const bool CPDetectorSetting::IsTwoStepDetector ( )
inline

returns true, if setting is suitable for two step detector otherwise false

Definition at line 100 of file CPDetectorConfig.h.

Referenced by AutoCtrlPointCreator::automatch(), AutoPanoSift::automatch(), AutoPanoSiftMultiRow::automatch(), AutoPanoSiftPreAlign::automatch(), and AutoCtrlPointCreator::Cleanup().

bool CPDetectorSetting::Read ( wxConfigBase *  config,
wxString  path 
)
void CPDetectorSetting::SetArgs ( wxString  new_args)
inline

sets arguments of one step detector or feature descriptor

Definition at line 74 of file CPDetectorConfig.h.

Referenced by AutoPanoSiftStack::automatch(), AutoPanoSiftMultiRow::automatch(), AutoPanoSiftMultiRowStack::automatch(), and CPEditorPanel::OnCreateCPButton().

void CPDetectorSetting::SetArgsCleanup ( wxString  new_args)
inline

sets arguments for the cleanup step

Definition at line 78 of file CPDetectorConfig.h.

void CPDetectorSetting::SetArgsMatcher ( wxString  new_args)
inline

sets arguments for feature matcher

Definition at line 86 of file CPDetectorConfig.h.

Referenced by AutoPanoSiftMultiRow::automatch().

void CPDetectorSetting::SetArgsStack ( wxString  new_args)
inline

sets arguments of program for detection of cp in stacks

Definition at line 94 of file CPDetectorConfig.h.

void CPDetectorSetting::SetCPDetectorDesc ( wxString  new_desc)
inline

sets description of this setting

Definition at line 62 of file CPDetectorConfig.h.

void CPDetectorSetting::SetOption ( bool  new_option)
inline

set options, used in multi-row cp and prealigned detectors

Definition at line 98 of file CPDetectorConfig.h.

Referenced by AutoPanoSiftMultiRow::automatch().

void CPDetectorSetting::SetProg ( wxString  new_prog)
inline

sets program for one step detector or feature descriptor

Definition at line 70 of file CPDetectorConfig.h.

Referenced by AutoPanoSiftStack::automatch(), AutoPanoSiftMultiRow::automatch(), AutoPanoSiftMultiRowStack::automatch(), and CPEditorPanel::OnCreateCPButton().

void CPDetectorSetting::SetProgMatcher ( wxString  new_prog)
inline

sets program for feature matcher

Definition at line 82 of file CPDetectorConfig.h.

Referenced by AutoPanoSiftMultiRow::automatch().

void CPDetectorSetting::SetProgStack ( wxString  new_prog)
inline

sets program for detecting cp in stacks

Definition at line 90 of file CPDetectorConfig.h.

void CPDetectorSetting::SetType ( CPDetectorType  new_type)
inline

sets type of this setting

Definition at line 66 of file CPDetectorConfig.h.

Referenced by AutoPanoSiftStack::automatch(), and AutoPanoSiftMultiRowStack::automatch().

void CPDetectorSetting::Write ( wxConfigBase *  config,
wxString  path 
)

writes setting for this generator to config

Definition at line 245 of file CPDetectorConfig.cpp.

References args, args_cleanup, args_matcher, args_stack, ContainsStacks(), desc, IsCleanupPossible(), option, prog, prog_matcher, prog_stack, and type.

Member Data Documentation

wxString CPDetectorSetting::args
private

Definition at line 112 of file CPDetectorConfig.h.

Referenced by CPDetectorSetting(), Read(), and Write().

wxString CPDetectorSetting::args_cleanup
private

Definition at line 113 of file CPDetectorConfig.h.

Referenced by CPDetectorSetting(), Read(), and Write().

wxString CPDetectorSetting::args_matcher
private

Definition at line 115 of file CPDetectorConfig.h.

Referenced by CheckValues(), CPDetectorSetting(), Read(), and Write().

wxString CPDetectorSetting::args_stack
private

Definition at line 117 of file CPDetectorConfig.h.

Referenced by CPDetectorSetting(), Read(), and Write().

wxString CPDetectorSetting::desc
private

Definition at line 110 of file CPDetectorConfig.h.

Referenced by CPDetectorSetting(), Read(), and Write().

bool CPDetectorSetting::option
private

Definition at line 118 of file CPDetectorConfig.h.

Referenced by CPDetectorSetting(), Read(), and Write().

wxString CPDetectorSetting::prog
private

Definition at line 111 of file CPDetectorConfig.h.

Referenced by CPDetectorSetting(), Read(), and Write().

wxString CPDetectorSetting::prog_matcher
private

Definition at line 114 of file CPDetectorConfig.h.

Referenced by CheckValues(), CPDetectorSetting(), Read(), and Write().

wxString CPDetectorSetting::prog_stack
private

Definition at line 116 of file CPDetectorConfig.h.

Referenced by CPDetectorSetting(), Read(), and Write().

CPDetectorType CPDetectorSetting::type
private

Definition at line 109 of file CPDetectorConfig.h.

Referenced by CheckValues(), CPDetectorSetting(), Read(), and Write().


The documentation for this class was generated from the following files: