26 SCORE_SERIALIZE_FRIENDS
31 template <
typename Impl>
32 Model(Impl& vis, QObject* parent)
44 void loadSegments(
const std::vector<SegmentModel*>& models);
49 std::vector<SegmentModel*> sortedSegments()
const;
50 std::vector<SegmentData> toCurveData()
const;
51 void fromCurveData(
const std::vector<SegmentData>& curve);
58 const auto& segments()
const {
return m_segments; }
59 auto& segments() {
return m_segments; }
61 const std::vector<PointModel*>& points()
const;
62 std::vector<PointModel*>& points() {
return m_points; }
64 double lastPointPos()
const;
66 std::optional<double> valueAt(
double x)
const noexcept;
70 E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, segmentAdded, arg_1)
72 SCORE_PLUGIN_CURVE_EXPORT, segmentRemoved,
75 E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, pointAdded, arg_1)
77 SCORE_PLUGIN_CURVE_EXPORT, pointRemoved,
83 void changed() E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, changed)
84 void curveReset() E_SIGNAL(
85 SCORE_PLUGIN_CURVE_EXPORT,
87 void cleared() E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, cleared)
97 std::vector<PointModel*> m_points;
Definition CurveModel.hpp:104