Engauge Digitizer  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TestSplineDrawer.h
Go to the documentation of this file.
1 #ifndef TEST_SPLINE_DRAWER_H
2 #define TEST_SPLINE_DRAWER_H
3 
4 #include <QObject>
5 #include <QString>
6 #include "SplinePair.h"
7 #include <vector>
8 
9 class Spline;
10 
12 class TestSplineDrawer : public QObject
13 {
14  Q_OBJECT
15 public:
17  explicit TestSplineDrawer(QObject *parent = 0);
18 
19 signals:
20 
21 private slots:
22  void cleanupTestCase ();
23  void initTestCase ();
24 
25  void testMultiValuedLeadingOverlap ();
26  void testMultiValuedTrailingOverlap ();
27 
28 private:
29 
30  bool testMultiValuedGeneric (const std::vector<SplinePair> &xy,
31  const std::vector<bool> &isMultiValued) const;
32 };
33 
34 #endif // TEST_SPLINE_DRAWER_H
Cubic interpolation given independent and dependent value vectors.
Definition: Spline.h:29
TestSplineDrawer(QObject *parent=0)
Single constructor.
Unit test of spline drawer, which classifies single- versus multi-valued data.