27 #ifndef _CPDETECTORCONFIG_H
28 #define _CPDETECTORCONFIG_H
34 #include <wx/dynarray.h>
56 bool Read(wxConfigBase* config, wxString path);
58 void Write(wxConfigBase* config, wxString path);
70 void SetProg(wxString new_prog) { prog=new_prog; };
74 void SetArgs(wxString new_args) { args=new_args; };
98 void SetOption(
bool new_option) { option=new_option; };
121 #if defined _WIN32 && defined Hugin_shared
139 void Read(wxConfigBase* config=wxConfigBase::Get(),wxString loadFromFile=wxEmptyString);
141 void Write(wxConfigBase* config=wxConfigBase::Get());
143 void ReadFromFile(wxString filename);
145 void WriteToFile(wxString filename);
147 void ResetToDefault();
152 void FillControl(wxControlWithItems *control,
bool select_default =
false,
bool show_default =
false);
154 unsigned int GetCount() {
return settings.GetCount(); };
156 void Swap(
int index);
160 void SetDefaultGenerator(
unsigned int new_default_generator);
165 void ReadIndex(wxConfigBase* config,
int i);
166 void WriteIndex(wxConfigBase* config,
int i);
virtual ~CPDetectorSetting()
destructor
const bool IsCleanupPossible()
const wxString GetCPDetectorDesc()
return description of this setting
const CPDetectorType GetType()
return type of this setting
void SetType(CPDetectorType new_type)
sets type of this setting
unsigned int GetCount()
return counts of cp detector settings
unsigned int default_generator
void SetArgs(wxString new_args)
sets arguments of one step detector or feature descriptor
include file for the hugin project
void SetProgStack(wxString new_prog)
sets program for detecting cp in stacks
ArraySettings settings
array which stores the different autopano settings
const wxString GetProgMatcher()
return program for feature matcher
void SetArgsMatcher(wxString new_args)
sets arguments for feature matcher
virtual ~CPDetectorConfig()
destructor
class, which stores all settings of one cp detector
const wxString GetArgsMatcher()
return arguments for feature matcher
void SetProg(wxString new_prog)
sets program for one step detector or feature descriptor
CPDetectorConfig()
constructor
const wxString GetArgs()
return arguments of one step detector or feature descriptor
WX_DECLARE_OBJARRAY(wxTreeListColumnInfo, wxArrayTreeListColumnInfo)
const wxString GetArgsCleanup()
return arguments for the cleanup step
const wxString GetProgStack()
return program name, which works on stacks
void SetArgsCleanup(wxString new_args)
sets arguments for the cleanup step
const wxString GetArgsStack()
return arguments of program for detection of cp in stacks
const bool GetOption()
gets options, used in multi-row and prealigned cp detectors
void SetCPDetectorDesc(wxString new_desc)
sets description of this setting
void SetProgMatcher(wxString new_prog)
sets program for feature matcher
const bool IsTwoStepDetector()
returns true, if setting is suitable for two step detector otherwise false
include file for the hugin project
unsigned int GetDefaultGenerator()
return index of default generator (this one is used for assistent)
void SetArgsStack(wxString new_args)
sets arguments of program for detection of cp in stacks
void SetOption(bool new_option)
set options, used in multi-row cp and prealigned detectors
class for storing settings of different control point generators
const bool ContainsStacks()
const wxString GetProg()
return program for one step detector or feature descriptor