summaryrefslogtreecommitdiffstats
path: root/src/curveeditor/animationcurve.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/curveeditor/animationcurve.h')
-rw-r--r--src/curveeditor/animationcurve.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/curveeditor/animationcurve.h b/src/curveeditor/animationcurve.h
index 0533e47..7e483cf 100644
--- a/src/curveeditor/animationcurve.h
+++ b/src/curveeditor/animationcurve.h
@@ -31,6 +31,8 @@
namespace DesignTools {
+class CurveSegment;
+
class AnimationCurve
{
public:
@@ -48,6 +50,8 @@ public:
double maximumValue() const;
+ CurveSegment segment(double time) const;
+
std::vector<Keyframe> keyframes() const;
std::vector<QPointF> extrema() const;
@@ -56,7 +60,9 @@ public:
std::vector<double> xForY(double y, uint segment) const;
- bool intersects(const QPointF &coord, double radius);
+ bool intersects(const QPointF &coord, double radius) const;
+
+ void insert(double time);
private:
std::vector<Keyframe> m_frames;