#include <vformula.h>
Public Member Functions | |
| VFormula () | |
| VFormula (const QString &formula, const VContainer *container) | |
| VFormula & | operator= (const VFormula &formula) |
| VFormula (const VFormula &formula) | |
| bool | operator== (const VFormula &formula) const |
| bool | operator!= (const VFormula &formula) const |
| QString | GetFormula (FormulaType type=FormulaType::ToUser) const |
| void | SetFormula (const QString &value, FormulaType type=FormulaType::ToUser) |
| QString | getStringValue () const |
| qreal | getDoubleValue () const |
| bool | getCheckZero () const |
| void | setCheckZero (bool value) |
| const VContainer * | getData () const |
| void | setData (const VContainer *value) |
| quint32 | getToolId () const |
| void | setToolId (const quint32 &value) |
| QString | getPostfix () const |
| void | setPostfix (const QString &value) |
| bool | error () const |
| void | Eval () |
Static Public Member Functions | |
| static int | FormulaTypeId () |
Private Attributes | |
| QString | formula |
| QString | value |
| bool | checkZero |
| const VContainer * | data |
| quint32 | toolId |
| QString | postfix |
| bool | _error |
| qreal | dValue |
Definition at line 64 of file vformula.h.
| VFormula::VFormula | ( | ) |
Definition at line 70 of file vformula.cpp.
| VFormula::VFormula | ( | const QString & | formula, |
| const VContainer * | container | ||
| ) |
Definition at line 76 of file vformula.cpp.
References Eval().
| VFormula::VFormula | ( | const VFormula & | formula | ) |
Definition at line 109 of file vformula.cpp.
| bool VFormula::error | ( | ) | const |
Definition at line 238 of file vformula.cpp.
References _error.
Referenced by VToolOptionsPropertyBrowser::changeDataToolSpline(), operator=(), VToolPointOfContact::setArcRadius(), IntersectCircleTangentTool::SetCircleRadius(), IntersectCirclesTool::SetFirstCircleRadius(), VToolCut::SetFormula(), VToolMove::SetFormulaAngle(), VToolRotation::SetFormulaAngle(), VToolCurveIntersectAxis::SetFormulaAngle(), VToolEndLine::SetFormulaAngle(), VToolLineIntersectAxis::SetFormulaAngle(), VToolArc::SetFormulaF1(), VToolArcWithLength::SetFormulaF1(), VToolEllipticalArc::SetFormulaF1(), VToolArc::SetFormulaF2(), VToolEllipticalArc::SetFormulaF2(), VToolMove::SetFormulaLength(), VToolArcWithLength::SetFormulaLength(), VToolLinePoint::SetFormulaLength(), VToolArc::SetFormulaRadius(), VToolArcWithLength::SetFormulaRadius(), VToolEllipticalArc::SetFormulaRadius1(), VToolEllipticalArc::SetFormulaRadius2(), VToolMove::setFormulaRotation(), VToolEllipticalArc::SetFormulaRotationAngle(), and IntersectCirclesTool::SetSecondCircleRadius().
| void VFormula::Eval | ( | ) |
Definition at line 250 of file vformula.cpp.
References _error, checkZero, data, VContainer::DataVariables(), dValue, formula, qmu::QmuParserError::GetExpr(), qmu::QmuParserError::GetMsg(), postfix, qApp, and value.
Referenced by VToolMove::GetFormulaAngle(), VToolMove::GetFormulaLength(), VToolMove::getFormulaRotation(), setCheckZero(), setData(), SetFormula(), setPostfix(), and VFormula().
|
static |
Definition at line 244 of file vformula.cpp.
Referenced by VFormulaProperty::SetFormula().
| bool VFormula::getCheckZero | ( | ) | const |
Definition at line 178 of file vformula.cpp.
References checkZero.
Referenced by VFormulaPropertyEditor::onToolButtonClicked(), and operator=().
| const VContainer * VFormula::getData | ( | ) | const |
Definition at line 194 of file vformula.cpp.
References data.
Referenced by VFormulaPropertyEditor::onToolButtonClicked(), and operator=().
| qreal VFormula::getDoubleValue | ( | ) | const |
Definition at line 172 of file vformula.cpp.
References dValue.
Referenced by VToolOptionsPropertyBrowser::changeDataToolSpline(), operator=(), operator==(), IntersectCircleTangentTool::SetCircleRadius(), IntersectCirclesTool::SetFirstCircleRadius(), VToolArc::SetFormulaF1(), VToolArcWithLength::SetFormulaF1(), VToolEllipticalArc::SetFormulaF1(), VToolArc::SetFormulaF2(), VToolEllipticalArc::SetFormulaF2(), VToolArcWithLength::SetFormulaLength(), VToolArc::SetFormulaRadius(), VToolArcWithLength::SetFormulaRadius(), VToolEllipticalArc::SetFormulaRadius1(), VToolEllipticalArc::SetFormulaRadius2(), VToolEllipticalArc::SetFormulaRotationAngle(), and IntersectCirclesTool::SetSecondCircleRadius().
| QString VFormula::GetFormula | ( | FormulaType | type = FormulaType::ToUser | ) | const |
Definition at line 135 of file vformula.cpp.
References formula, qApp, and ToUser.
Referenced by VToolOptionsPropertyBrowser::changeDataToolSpline(), VFormulaPropertyEditor::onToolButtonClicked(), VToolPointOfContact::setArcRadius(), IntersectCircleTangentTool::SetCircleRadius(), IntersectCirclesTool::SetFirstCircleRadius(), VFormulaProperty::SetFormula(), VToolCut::SetFormula(), VToolMove::SetFormulaAngle(), VToolRotation::SetFormulaAngle(), VToolCurveIntersectAxis::SetFormulaAngle(), VToolEndLine::SetFormulaAngle(), VToolLineIntersectAxis::SetFormulaAngle(), VToolArc::SetFormulaF1(), VToolArcWithLength::SetFormulaF1(), VToolEllipticalArc::SetFormulaF1(), VToolArc::SetFormulaF2(), VToolEllipticalArc::SetFormulaF2(), VToolMove::SetFormulaLength(), VToolArcWithLength::SetFormulaLength(), VToolLinePoint::SetFormulaLength(), VToolArc::SetFormulaRadius(), VToolArcWithLength::SetFormulaRadius(), VToolEllipticalArc::SetFormulaRadius1(), VToolEllipticalArc::SetFormulaRadius2(), VToolMove::setFormulaRotation(), VToolEllipticalArc::SetFormulaRotationAngle(), and IntersectCirclesTool::SetSecondCircleRadius().
| QString VFormula::getPostfix | ( | ) | const |
Definition at line 222 of file vformula.cpp.
References postfix.
Referenced by VFormulaPropertyEditor::onToolButtonClicked(), and operator=().
| QString VFormula::getStringValue | ( | ) | const |
Definition at line 166 of file vformula.cpp.
References value.
Referenced by VFormulaPropertyEditor::onToolButtonClicked(), operator=(), VFormulaPropertyEditor::SetFormula(), and VFormulaPropertyEditor::VFormulaPropertyEditor().
| quint32 VFormula::getToolId | ( | ) | const |
Definition at line 210 of file vformula.cpp.
References toolId.
Referenced by VFormulaPropertyEditor::onToolButtonClicked(), and operator=().
| bool VFormula::operator!= | ( | const VFormula & | formula | ) | const |
Definition at line 129 of file vformula.cpp.
References formula, and operator==().
Definition at line 91 of file vformula.cpp.
References _error, checkZero, data, dValue, error(), formula, getCheckZero(), getData(), getDoubleValue(), getPostfix(), getStringValue(), getToolId(), postfix, toolId, and value.
| bool VFormula::operator== | ( | const VFormula & | formula | ) | const |
Definition at line 116 of file vformula.cpp.
References dValue, formula, getDoubleValue(), and VFuzzyComparePossibleNulls().
Referenced by operator!=().
| void VFormula::setCheckZero | ( | bool | value | ) |
Definition at line 184 of file vformula.cpp.
References checkZero, Eval(), and value.
Referenced by VToolPointOfContact::getArcRadius(), IntersectCircleTangentTool::GetCircleRadius(), IntersectCirclesTool::GetFirstCircleRadius(), VToolCut::GetFormula(), VToolMove::GetFormulaAngle(), VToolRotation::GetFormulaAngle(), VToolCurveIntersectAxis::GetFormulaAngle(), VToolEndLine::GetFormulaAngle(), VToolLineIntersectAxis::GetFormulaAngle(), VToolMove::GetFormulaLength(), VToolLinePoint::GetFormulaLength(), VToolMove::getFormulaRotation(), IntersectCirclesTool::GetSecondCircleRadius(), VToolOptionsPropertyBrowser::showOptionsToolSpline(), and VToolOptionsPropertyBrowser::updateOptionsToolSpline().
| void VFormula::setData | ( | const VContainer * | value | ) |
Definition at line 200 of file vformula.cpp.
| void VFormula::SetFormula | ( | const QString & | value, |
| FormulaType | type = FormulaType::ToUser |
||
| ) |
Definition at line 148 of file vformula.cpp.
References Eval(), formula, qApp, ToUser, and value.
Referenced by VFormulaProperty::childValueChanged(), and VFormulaPropertyEditor::onToolButtonClicked().
| void VFormula::setPostfix | ( | const QString & | value | ) |
Definition at line 228 of file vformula.cpp.
References Eval(), postfix, and value.
Referenced by VToolPointOfContact::getArcRadius(), IntersectCircleTangentTool::GetCircleRadius(), IntersectCirclesTool::GetFirstCircleRadius(), VToolCut::GetFormula(), VToolMove::GetFormulaAngle(), VToolRotation::GetFormulaAngle(), VToolCurveIntersectAxis::GetFormulaAngle(), VToolEndLine::GetFormulaAngle(), VToolLineIntersectAxis::GetFormulaAngle(), VToolMove::GetFormulaLength(), VToolLinePoint::GetFormulaLength(), VToolMove::getFormulaRotation(), IntersectCirclesTool::GetSecondCircleRadius(), VToolOptionsPropertyBrowser::showOptionsToolSpline(), and VToolOptionsPropertyBrowser::updateOptionsToolSpline().
| void VFormula::setToolId | ( | const quint32 & | value | ) |
Definition at line 216 of file vformula.cpp.
Referenced by VToolPointOfContact::getArcRadius(), IntersectCircleTangentTool::GetCircleRadius(), IntersectCirclesTool::GetFirstCircleRadius(), VToolCut::GetFormula(), VToolMove::GetFormulaAngle(), VToolRotation::GetFormulaAngle(), VToolCurveIntersectAxis::GetFormulaAngle(), VToolEndLine::GetFormulaAngle(), VToolLineIntersectAxis::GetFormulaAngle(), VToolMove::GetFormulaLength(), VToolLinePoint::GetFormulaLength(), VToolMove::getFormulaRotation(), IntersectCirclesTool::GetSecondCircleRadius(), VToolOptionsPropertyBrowser::showOptionsToolSpline(), and VToolOptionsPropertyBrowser::updateOptionsToolSpline().
|
private |
Definition at line 105 of file vformula.h.
Referenced by error(), Eval(), and operator=().
|
private |
Definition at line 101 of file vformula.h.
Referenced by Eval(), getCheckZero(), operator=(), and setCheckZero().
|
private |
Definition at line 102 of file vformula.h.
Referenced by Eval(), getData(), operator=(), and setData().
|
private |
Definition at line 106 of file vformula.h.
Referenced by Eval(), getDoubleValue(), operator=(), and operator==().
|
private |
Definition at line 99 of file vformula.h.
Referenced by Eval(), GetFormula(), operator!=(), operator=(), operator==(), and SetFormula().
|
private |
Definition at line 104 of file vformula.h.
Referenced by Eval(), getPostfix(), operator=(), and setPostfix().
|
private |
Definition at line 103 of file vformula.h.
Referenced by getToolId(), operator=(), and setToolId().
|
private |
Definition at line 100 of file vformula.h.
Referenced by VToolOptionsPropertyBrowser::changeDataToolSpline(), VFormulaProperty::createEditor(), Eval(), VFormulaProperty::GetFormula(), getStringValue(), operator=(), setCheckZero(), setData(), VFormulaProperty::setEditorData(), SetFormula(), setPostfix(), setToolId(), and VFormulaProperty::setValue().