author | insilmaril |
Fri Jul 11 12:36:38 2008 +0000 (2008-07-11) | |
changeset 714 | 3368b54c7946 |
parent 461 | b0d72eb511c9 |
child 826 | e715694b0f47 |
permissions | -rw-r--r-- |
insilmaril@461 | 1 |
#ifndef ANIMPOINT_H |
insilmaril@461 | 2 |
#define ANIMPOINT_H |
insilmaril@461 | 3 |
|
insilmaril@461 | 4 |
#include <QPointF> |
insilmaril@461 | 5 |
|
insilmaril@461 | 6 |
class AnimPoint: public QPointF |
insilmaril@461 | 7 |
{ |
insilmaril@461 | 8 |
public: |
insilmaril@461 | 9 |
AnimPoint(); |
insilmaril@461 | 10 |
void operator= ( const AnimPoint & ); |
insilmaril@461 | 11 |
void operator= ( const QPointF & ); |
insilmaril@461 | 12 |
bool operator== ( const QPointF & ); |
insilmaril@461 | 13 |
bool operator== ( AnimPoint ); |
insilmaril@461 | 14 |
void init(); |
insilmaril@461 | 15 |
void copy(AnimPoint other); |
insilmaril@688 | 16 |
void setStart (const QPointF &); |
insilmaril@688 | 17 |
QPointF getStart(); |
insilmaril@461 | 18 |
void setDest (const QPointF &); |
insilmaril@688 | 19 |
QPointF getDest(); |
insilmaril@688 | 20 |
void setTicks (const uint &t); |
insilmaril@688 | 21 |
uint getTicks(); |
insilmaril@461 | 22 |
void setAnimated(bool); |
insilmaril@461 | 23 |
bool isAnimated (); |
insilmaril@688 | 24 |
bool animate(); |
insilmaril@461 | 25 |
|
insilmaril@461 | 26 |
private: |
insilmaril@688 | 27 |
void initVector(); |
insilmaril@688 | 28 |
|
insilmaril@688 | 29 |
QPointF startPos; |
insilmaril@461 | 30 |
QPointF destPos; |
insilmaril@688 | 31 |
QPointF vector; |
insilmaril@461 | 32 |
qreal n; |
insilmaril@688 | 33 |
qreal animTicks; |
insilmaril@461 | 34 |
bool animated; |
insilmaril@461 | 35 |
|
insilmaril@461 | 36 |
}; |
insilmaril@461 | 37 |
|
insilmaril@461 | 38 |
#endif |