|
Krita Source Code Documentation
|
#include <KisCubicCurveQMLWrapper.h>
Inheritance diagram for KisCubicCurveQml:Public Slots | |
| int | addPoint (const QPointF &point) |
| void | removePoint (int idx) |
| void | setName (const QString &name) |
| void | setPoint (int idx, const QPointF &point) |
| void | setPoints (const QList< QPointF > points) |
Signals | |
| void | nameChanged (const QString &) |
| void | pointsChanged (const QList< QPointF > &) |
Public Member Functions | |
| Q_INVOKABLE QList< qreal > | floatTransfer (int size) const |
| Q_INVOKABLE void | fromString (const QString &) |
| Q_INVOKABLE qreal | interpolateLinear (qreal normalizedValue, const QList< qreal > &transfer) const |
| Q_INVOKABLE bool | isConstant (qreal c) const |
| Q_INVOKABLE bool | isIdentity () const |
| KisCubicCurveQml (QObject *parent=nullptr) | |
| const QString & | name () const |
| const QList< QPointF > | points () const |
| Q_INVOKABLE QString | toString () const |
| Q_INVOKABLE qreal | value (qreal x) const |
Properties | |
| QString | name |
| QList< QPointF > | points |
Private Attributes | |
| KisCubicCurve | m_curve |
Definition at line 14 of file KisCubicCurveQMLWrapper.h.
| KisCubicCurveQml::KisCubicCurveQml | ( | QObject * | parent = nullptr | ) |
Definition at line 8 of file KisCubicCurveQMLWrapper.cpp.
|
slot |
Definition at line 70 of file KisCubicCurveQMLWrapper.cpp.
References KisCubicCurve::addPoint(), m_curve, KisCubicCurve::points, and pointsChanged().
| QList< qreal > KisCubicCurveQml::floatTransfer | ( | int | size | ) | const |
Definition at line 42 of file KisCubicCurveQMLWrapper.cpp.
References KisCubicCurve::floatTransfer(), and m_curve.
| void KisCubicCurveQml::fromString | ( | const QString & | str | ) |
Definition at line 52 of file KisCubicCurveQMLWrapper.cpp.
References KisCubicCurve::fromString(), and m_curve.
| qreal KisCubicCurveQml::interpolateLinear | ( | qreal | normalizedValue, |
| const QList< qreal > & | transfer ) const |
Definition at line 37 of file KisCubicCurveQMLWrapper.cpp.
References KisCubicCurve::interpolateLinear(), and m_curve.
| bool KisCubicCurveQml::isConstant | ( | qreal | c | ) | const |
Definition at line 32 of file KisCubicCurveQMLWrapper.cpp.
References KisCubicCurve::isConstant(), and m_curve.
| bool KisCubicCurveQml::isIdentity | ( | ) | const |
Definition at line 27 of file KisCubicCurveQMLWrapper.cpp.
References KisCubicCurve::isIdentity(), and m_curve.
| const QString & KisCubicCurveQml::name | ( | ) | const |
Definition at line 17 of file KisCubicCurveQMLWrapper.cpp.
References m_curve, and KisCubicCurve::name.
|
signal |
| const QList< QPointF > KisCubicCurveQml::points | ( | ) | const |
Definition at line 12 of file KisCubicCurveQMLWrapper.cpp.
References m_curve, and KisCubicCurve::points.
|
slot |
Definition at line 77 of file KisCubicCurveQMLWrapper.cpp.
References m_curve, KisCubicCurve::points, pointsChanged(), and KisCubicCurve::removePoint().
|
slot |
Definition at line 83 of file KisCubicCurveQMLWrapper.cpp.
References m_curve, name, nameChanged(), and KisCubicCurve::setName().
|
slot |
Definition at line 64 of file KisCubicCurveQMLWrapper.cpp.
References m_curve, KisCubicCurve::points, pointsChanged(), and KisCubicCurve::setPoint().
Definition at line 58 of file KisCubicCurveQMLWrapper.cpp.
References m_curve, KisCubicCurve::points, points, pointsChanged(), and KisCubicCurve::setPoints().
| QString KisCubicCurveQml::toString | ( | ) | const |
Definition at line 47 of file KisCubicCurveQMLWrapper.cpp.
References m_curve, and KisCubicCurve::toString().
| qreal KisCubicCurveQml::value | ( | qreal | x | ) | const |
Definition at line 22 of file KisCubicCurveQMLWrapper.cpp.
References m_curve, and KisCubicCurve::value().
|
private |
Definition at line 48 of file KisCubicCurveQMLWrapper.h.
|
readwrite |
Definition at line 20 of file KisCubicCurveQMLWrapper.h.
|
readwrite |
Definition at line 19 of file KisCubicCurveQMLWrapper.h.