initial import
[vym] / animpoint.h
diff --git a/animpoint.h b/animpoint.h
new file mode 100644 (file)
index 0000000..2e29673
--- /dev/null
@@ -0,0 +1,38 @@
+#ifndef ANIMPOINT_H
+#define ANIMPOINT_H
+
+#include <QPointF>
+
+class AnimPoint: public QPointF
+{
+public:
+    AnimPoint();
+       void operator= ( const AnimPoint & );
+       void operator= ( const QPointF & );
+       bool operator== ( const QPointF & );
+       bool operator== ( AnimPoint  );
+       void init();
+       void copy(AnimPoint other);
+       void setStart (const QPointF &);
+       QPointF getStart();
+       void setDest (const QPointF &);
+       QPointF getDest();
+       void setTicks (const uint &t);
+       uint getTicks();
+       void setAnimated(bool);
+       bool isAnimated ();
+       bool animate();
+
+private:
+       void initVector();
+
+       QPointF startPos;
+       QPointF destPos;
+       QPointF vector;
+       qreal n;
+       qreal animTicks;
+    bool animated;
+
+};
+
+#endif