Main Page | Class List | File List | Class Members | Related Pages

/home/samy/kbilliards/src/throwvector.h

00001 /*************************************************************************** 00002 throwvector.h - description 00003 ------------------- 00004 begin : Thu Jan 17 2002 00005 copyright : (C) 2002 by Samuele Catuzzi 00006 email : samuele_catuzzi@yahoo.it 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 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: // Public attributes 00050 int angle; 00052 int anim_speed; 00053 private: // Private attributes 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

Generated on Mon Nov 8 22:00:15 2004 for kbilliards.kdevelop by doxygen 1.3.7