25#ifndef __CAMITK_EXTENSION_MODEL__
26#define __CAMITK_EXTENSION_MODEL__
77 bool load(
const QString& filePath);
83 bool save(
const QString& filePath = QString());
This class manages a CamiTK Extension model (stored as a VariantDataModel).
Definition CamiTKExtensionModel.h:67
bool load(const QString &filePath)
read the given file and creates the corresponding configuration
Definition CamiTKExtensionModel.cpp:96
bool save(const QString &filePath=QString())
save the current config to the current filePath or given filePath and update camitkFile if needed War...
Definition CamiTKExtensionModel.cpp:165
bool isModified()
was the data model modified since last read
Definition CamiTKExtensionModel.cpp:91
void resetModel(QString name)
reset the model with empty extension arrays.
Definition CamiTKExtensionModel.cpp:74
void clear()
reset the model from scratch (the model will then be empty)
Definition CamiTKExtensionModel.cpp:44
void setModel(VariantDataModel &)
modify the model
Definition CamiTKExtensionModel.cpp:55
VariantDataModel & getModel()
get access to the VariantDataModel
Definition CamiTKExtensionModel.cpp:50
QString toJSON()
the camitk extension data model as a JSON string
Definition CamiTKExtensionModel.cpp:60
VariantDataModel encapsulates QVariant and can be used as a model for any type of QVariant supported ...
Definition VariantDataModel.h:124