16 #ifndef BORNAGAIN_PARAM_BASE_IPARAMETRICCOMPONENT_H
17 #define BORNAGAIN_PARAM_BASE_IPARAMETRICCOMPONENT_H
50 const std::string& units =
"nm");
74 std::unique_ptr<ParameterPool>
m_pool;
Defines interface IComponent.
Defines basic vectors in Z^3, R^3, C^3.
Root of class hierarchy for sample and instrument model.
Manages a local parameter pool, and a tree of child pools.
const std::string & getName() const
void setVectorValue(const std::string &base_name, kvector_t value)
virtual ParameterPool * createParameterTree() const
Creates new parameter pool, with all local parameters and those of its children.
void registerVector(const std::string &base_name, kvector_t *p_vec, const std::string &units="nm")
void setParameterValue(const std::string &name, double value)
std::string parametersToString() const
Returns multiline string representing available parameters.
ParameterPool * parameterPool() const
Returns pointer to the parameter pool.
static std::string XComponentName(const std::string &base_name)
void removeVector(const std::string &base_name)
static std::string ZComponentName(const std::string &base_name)
void removeParameter(const std::string &name)
RealParameter * parameter(const std::string &name) const
Returns parameter with given 'name'.
virtual void onChange()
Action to be taken in inherited class when a parameter has changed.
IParametricComponent & operator=(const IParametricComponent &other)=delete
void setName(const std::string &name)
std::unique_ptr< ParameterPool > m_pool
parameter pool (kind of pointer-to-implementation)
IParametricComponent(const std::string &name="")
RealParameter & registerParameter(const std::string &name, double *parpointer)
virtual ~IParametricComponent()
static std::string YComponentName(const std::string &base_name)
Container with parameters for IParametricComponent object.
Limits for a real fit parameter.
Wraps a parameter of type double.
MVVM_MODEL_EXPORT std::string base_name(const std::string &path)
Provide the filename of a file path.
QString const & name(EShape k)