diff options
Diffstat (limited to 'fly-tools/FlyObject.h')
-rw-r--r-- | fly-tools/FlyObject.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/fly-tools/FlyObject.h b/fly-tools/FlyObject.h new file mode 100644 index 0000000..10dbd4f --- /dev/null +++ b/fly-tools/FlyObject.h @@ -0,0 +1,49 @@ +/* + * FlyObject.h + * + * + * Created by Md. Alimoor Reza on 6/26/10. + * Copyright 2010 Drexel University. All rights reserved. + * + */ +#include<iostream> +#include<vector> +#include<list> +#include<cmath> +using namespace std; + +class FlyObject { +public: + //FlyObject(int area, pair<int, int> centroid, pair<double,double> majorAxisEV, pair<double,double> velocityV, vector<pair<int, int> > areaCoord); + FlyObject(int area, pair<int, int> centroid, pair<double,double> majorAxisEV, pair<double,double> velocityV,bool headIsInDirectionMAEV, pair<double, double> head, double speed); + FlyObject(const FlyObject &f); + int getArea() const; + pair<int, int> getCentroid() const; + pair<double,double> getMajorAxisEV() const; + pair<double,double> getVelocityV() const; + bool getHeadIsInDirectionMAEV() const; + pair<double,double> getHead() const; + double getSpeed() const; + //vector<pair<int, int> > getAreaCoord() const; + void setArea(int area); + void setCentroid(pair<int, int>); + void setMajorAxisEV(pair<double,double>); + void setVelocityV(pair<double,double>); + void normalizeVelocity(); + void setHeadIsInDirectionMAEV(bool); + void setHead(pair<double, double> head); + void setSpeed(double speed); + //void setAreaCoord(vector<pair<int , int> >); + void output(ostream &out); + + +private: + int area; + //vector<pair<int , int> > areaCoord; + pair<int, int> centroid; + pair<double,double> majorAxisEV; + pair<double,double> velocityV; + bool headIsInDirectionMAEV; + pair<double, double> head; + double speed; +}; |