|
Mantid
|
Attribute visitor to set an attribute from a QtProperty. More...
Public Member Functions | |
| SetAttributeFromProperty (FunctionTreeView *browser, QtProperty *prop) | |
Public Member Functions inherited from Mantid::API::IFunction::AttributeVisitor< T > | |
| T | operator() (bool &b) const |
| implements static_visitor's operator() for bool | |
| T | operator() (double &d) const |
| implements static_visitor's operator() for double | |
| T | operator() (int &i) const |
| implements static_visitor's operator() for int | |
| T | operator() (std::string &str) const |
| implements static_visitor's operator() for std::string | |
| T | operator() (std::vector< double > &v) const |
| implements static_visitor's operator() for vector | |
| virtual | ~AttributeVisitor ()=default |
| Virtual destructor. | |
Protected Member Functions | |
| void | apply (bool &b) const override |
| Set bool attribute. | |
| void | apply (double &d) const override |
| Set double attribute. | |
| void | apply (int &i) const override |
| Set int attribute. | |
| void | apply (std::string &str) const override |
| Set string attribute. | |
| void | apply (std::vector< double > &v) const override |
| Set vector attribute. | |
Protected Member Functions inherited from Mantid::API::IFunction::AttributeVisitor< T > | |
| template<typename T1 > | |
| void | evaluateValidator (T1 &inputData) const |
| Evaluates the validator associated with attribute this visitor is to visit. | |
Private Attributes | |
| FunctionTreeView * | m_browser |
| QtProperty * | m_prop |
Additional Inherited Members | |
Protected Attributes inherited from Mantid::API::IFunction::AttributeVisitor< T > | |
| Mantid::Kernel::IValidator_sptr | m_validator = Mantid::Kernel::IValidator_sptr() |
| Validator against which to evaluate attribute value to set. | |
Attribute visitor to set an attribute from a QtProperty.
Depending on the attribute type the appropriate apply() method is used.
Definition at line 575 of file FunctionTreeView.cpp.
|
inline |
Definition at line 577 of file FunctionTreeView.cpp.
|
inlineoverrideprotectedvirtual |
Set bool attribute.
Implements Mantid::API::IFunction::AttributeVisitor< T >.
Definition at line 598 of file FunctionTreeView.cpp.
References MantidQt::MantidWidgets::FunctionTreeView::m_attributeBoolManager, m_browser, and m_prop.
|
inlineoverrideprotectedvirtual |
Set double attribute.
Implements Mantid::API::IFunction::AttributeVisitor< T >.
Definition at line 594 of file FunctionTreeView.cpp.
References Mantid::Geometry::d, MantidQt::MantidWidgets::FunctionTreeView::m_attributeDoubleManager, m_browser, and m_prop.
|
inlineoverrideprotectedvirtual |
Set int attribute.
Implements Mantid::API::IFunction::AttributeVisitor< T >.
Definition at line 596 of file FunctionTreeView.cpp.
References MantidQt::MantidWidgets::FunctionTreeView::m_attributeIntManager, m_browser, and m_prop.
|
inlineoverrideprotectedvirtual |
Set string attribute.
Implements Mantid::API::IFunction::AttributeVisitor< T >.
Definition at line 581 of file FunctionTreeView.cpp.
References MantidQt::MantidWidgets::FunctionTreeView::m_attributeStringManager, m_browser, MantidQt::MantidWidgets::FunctionTreeView::m_filenameManager, MantidQt::MantidWidgets::FunctionTreeView::m_formulaManager, m_prop, and MantidQt::MantidWidgets::FunctionTreeView::m_workspaceManager.
|
inlineoverrideprotectedvirtual |
Set vector attribute.
Implements Mantid::API::IFunction::AttributeVisitor< T >.
Definition at line 600 of file FunctionTreeView.cpp.
References MantidQt::MantidWidgets::FunctionTreeView::m_attributeVectorDoubleManager, m_browser, m_prop, and n.
|
private |
|
private |