animpoint.h
changeset 461 b0d72eb511c9
child 688 d0086df58648
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/animpoint.h	Wed Apr 25 16:02:54 2007 +0000
     1.3 @@ -0,0 +1,29 @@
     1.4 +#ifndef ANIMPOINT_H
     1.5 +#define ANIMPOINT_H
     1.6 +
     1.7 +#include <QPointF>
     1.8 +
     1.9 +class AnimPoint: public QPointF
    1.10 +{
    1.11 +public:
    1.12 +    AnimPoint();
    1.13 +	void operator= ( const AnimPoint & );
    1.14 +	void operator= ( const QPointF & );
    1.15 +	bool operator== ( const QPointF & );
    1.16 +	bool operator== ( AnimPoint  );
    1.17 +	void init();
    1.18 +	void copy(AnimPoint other);
    1.19 +	void setDest (const QPointF &);
    1.20 +	void setAnimated(bool);
    1.21 +	bool isAnimated ();
    1.22 +	void animate();
    1.23 +
    1.24 +private:
    1.25 +	QPointF currentPos;
    1.26 +	QPointF destPos;
    1.27 +	qreal n;
    1.28 +    bool animated;
    1.29 +
    1.30 +};
    1.31 +
    1.32 +#endif