animpoint.h
changeset 714 3368b54c7946
parent 461 b0d72eb511c9
child 826 e715694b0f47
     1.1 --- a/animpoint.h	Wed Apr 25 16:02:54 2007 +0000
     1.2 +++ b/animpoint.h	Fri Jul 11 12:36:38 2008 +0000
     1.3 @@ -13,15 +13,24 @@
     1.4  	bool operator== ( AnimPoint  );
     1.5  	void init();
     1.6  	void copy(AnimPoint other);
     1.7 +	void setStart (const QPointF &);
     1.8 +	QPointF getStart();
     1.9  	void setDest (const QPointF &);
    1.10 +	QPointF getDest();
    1.11 +	void setTicks (const uint &t);
    1.12 +	uint getTicks();
    1.13  	void setAnimated(bool);
    1.14  	bool isAnimated ();
    1.15 -	void animate();
    1.16 +	bool animate();
    1.17  
    1.18  private:
    1.19 -	QPointF currentPos;
    1.20 +	void initVector();
    1.21 +
    1.22 +	QPointF startPos;
    1.23  	QPointF destPos;
    1.24 +	QPointF vector;
    1.25  	qreal n;
    1.26 +	qreal animTicks;
    1.27      bool animated;
    1.28  
    1.29  };