animpoint.h
author insilmaril
Thu, 08 Nov 2007 15:28:03 +0000
changeset 620 24bfecc949a0
parent 461 b0d72eb511c9
child 688 d0086df58648
permissions -rw-r--r--
1.11.2 split up of xml helper functions. started to work on attributes
     1 #ifndef ANIMPOINT_H
     2 #define ANIMPOINT_H
     3 
     4 #include <QPointF>
     5 
     6 class AnimPoint: public QPointF
     7 {
     8 public:
     9     AnimPoint();
    10 	void operator= ( const AnimPoint & );
    11 	void operator= ( const QPointF & );
    12 	bool operator== ( const QPointF & );
    13 	bool operator== ( AnimPoint  );
    14 	void init();
    15 	void copy(AnimPoint other);
    16 	void setDest (const QPointF &);
    17 	void setAnimated(bool);
    18 	bool isAnimated ();
    19 	void animate();
    20 
    21 private:
    22 	QPointF currentPos;
    23 	QPointF destPos;
    24 	qreal n;
    25     bool animated;
    26 
    27 };
    28 
    29 #endif