SpherePackingScenarioGenerator
|
00001 #ifndef SPHERE_H 00002 #define SPHERE_H 00003 00004 00005 #include "Vector.h" 00006 namespace algorithms{ 00007 namespace ls{ 00008 class Sphere; 00009 } 00010 } 00014 class algorithms::ls::Sphere { 00015 00016 public: 00017 00018 00022 Sphere(); 00026 Sphere(const Sphere& s); 00030 Sphere(int i_i, Vector<DIM> x, Vector<DIM, int> cell_i, double lutime_i); 00034 ~Sphere(); 00035 //friend class Box; 00036 Event getNextEvent(); 00037 void setNextEvent(Event e); 00038 Vector<DIM, double> getPosition(); 00039 void setPosition(Vector<DIM, double> x); 00040 double getPosition(int k); 00041 void setPosition(int k,double size); 00042 Vector<DIM, int> getCell(); 00043 double getCell(int k); 00044 void setCell(Vector<DIM, int> cell); 00045 double getLastUpdateTime(); 00046 void setLastUpdateTime(double time); 00047 Vector<DIM, double> getVelocity(); 00048 void setVelocity(Vector<DIM, double> v); 00049 void setVelocity(int k,double velocity); 00053 Event nextEvent; 00054 private: 00059 int i; 00060 00064 Event nextcollision; 00065 00069 Vector<DIM, double> x; 00073 Vector<DIM, int> cell; 00077 double lutime; 00081 Vector<DIM, double> v; 00082 // make sure efficent in memory 00083 00084 00085 00086 }; 00087 00088 #endif