10class TCalibrationSets;
11class CalibrationVariablesPropertyPage;
72 const std::string& GetName()
77 void SetName(
const std::string& name)
83 InformationIds* GetIds()
89 void HandleIdsChange(
void* sender);
91 void SetExports(
bool var_export);
93 TCalibrationSets* FOwner;
101 friend TCalibrationSets;
102 friend CalibrationVariablesPropertyPage;
134 return (*
this)[index];
139 return (*
this)[index];
161 void SetExports(
const std::string& set_name)
const;
185 std::string FNamePrefix;
194 friend CalibrationVariablesPropertyPage;
199 return FSets.count();
204 if (index >= FSets.count())
211 if (index >= FSets.count())
221 return FSets.get(index);
Holds a single calibration set of parameters.
Definition CalibrationSets.h:30
void ReadWriteConfig(bool rd)
Reads or writes the calibration set.
void ClearType(ECalibrationType cal_type, const InformationIds *ids=nullptr)
bool AssignComplete(ECalibrationType ct) const
bool AssignType(ECalibrationType cal_type, const InformationIds *ids=nullptr)
const Variable::PtrVector & Get(ECalibrationType ct=ctCAL_NONE) const
Gets the calibration variable array.
Definition CalibrationSets.h:105
bool AssignComplete() const
void ReadWriteConfig(IniProfile *inifile, bool rd)
~CalibrationSet()
Destructor.
CalibrationSet(TCalibrationSets *owner)
Protected constructor.
Class for reading and writing ini-profiles.
Definition IniProfile.h:17
Definition PartInspection.h:11
Definition PartProject.h:10
Object for scripts to interact with the inspection project.
Definition ProjectScriptObject.h:14
Definition CalibrationSets.h:116
void ClearType(ECalibrationType cal_type, const std::string &set_name, InformationIds *ids=nullptr)
Definition CalibrationSets.h:244
bool ReadWriteAssignValues(PartProject *part_proj, bool rd)
void ClearType(ECalibrationType cal_type, int index=-1, const InformationIds *ids=nullptr)
void SetDirty(bool dirty=false)
Definition CalibrationSets.h:234
const CalibrationSet * operator[](int index) const
Definition CalibrationSets.h:202
int Size() const
Definition CalibrationSets.h:197
bool IsDirty() const
Definition CalibrationSets.h:229
bool AssignComplete(int index=-1) const
void SetExports(int index=-1) const
void ReadWriteConfig(IniProfile *inifile, bool rd)
CalibrationSet * Get(int index)
Definition CalibrationSets.h:137
bool AssignType(ECalibrationType cal_type, const std::string &set_name, const InformationIds *ids=nullptr)
int IndexOf(const std::string &name) const
~TCalibrationSets() override
bool AssignComplete(const std::string &set_name) const
Definition CalibrationSets.h:251
void variableEventHandler(EEvent event, const Variable &caller, Variable &link, bool same_inst) override
Pure virtual function which must be implemented when used in a polymorphic setting.
void GetNames(string_list &names) const
TCalibrationSets(const std::string &prefix, id_type id_offset, id_type id_range)
void SetExports(const std::string &set_name) const
Definition CalibrationSets.h:239
const CalibrationSet * Get(int index) const
Definition CalibrationSets.h:132
bool ReadWriteAssignValues(PartInspection *part_insp, bool rd)
std::string GetNamePrefix(ECalibrationType cal_type)
Base class used for giving a Variable instance access to a member functions of a derived class....
Definition VariableHandler.h:14
TVector< Variable * > PtrVector
Vector for pointers to variables.
Definition VariableTypes.h:31
EEvent
Events send to the handler set with sf::Variable::setHandler.
Definition VariableTypes.h:130
Class for creating and referencing global or local created parameters or settings called variables....
Definition Variable.h:16
Definition Application.h:10
IniProfile::KeyValueMap KeyValues
Definition ipj/iface/Namespace.h:123
constexpr int ctCAL_LASTENTRY(ctCAL_POST+1)
Used as size and as last value to iterate towards.
ECalibrationValueState
State of the calibration value.
Definition CalibrationSets.h:17
@ cvsINITIALIZED
Has been calibrated.
Definition CalibrationSets.h:21
@ cvsASSIGNED
Definition CalibrationSets.h:23
@ cvsEMPTY
Has no value assigned by initialization or calibration.
Definition CalibrationSets.h:19
TStrings< std::string > string_list
Vector of std::strings with additional functionality.
Definition TStrings.h:97
ECalibrationType
Type to identify a scan area type.
Definition ipj/iface/Namespace.h:187
@ ctCAL_NONE
Normal no calibration selected.
Definition ipj/iface/Namespace.h:189