00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
#ifndef THROWVECTOR_H
00019
#define THROWVECTOR_H
00020
00021
#include <qcanvas.h>
00022
00027 class ThrowVector :
public QCanvasLine {
00028
public:
00029
ThrowVector(QCanvas *);
00030 ~
ThrowVector();
00032
void setdirection(
double,
double,
int degree=0);
00034
int getResolution();
00036
void setResolution(
int);
00038
double getalpha();
00040
void advance(
int);
00047
void setfromCanvasPeriod(
int);
00048
public:
00050
int angle;
00052
int anim_speed;
00053
private:
00055
double alpha;
00057
int resolution;
00059
int length;
00061
static const double Pi=3.14159265358979323846;
00063
int count;
00065
int speed;
00067
int xstrt_pos;
00069
int ystrt_pos;
00071
int len;
00072 };
00073
00074
#endif