From 5fb03da0c11eb42d425974a145ffa4cf3edc82a7 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 27 Jun 2012 09:41:39 +0100 Subject: fps thing --- src/obtsDevice.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/obtsDevice.h (limited to 'src/obtsDevice.h') diff --git a/src/obtsDevice.h b/src/obtsDevice.h new file mode 100644 index 0000000..884600b --- /dev/null +++ b/src/obtsDevice.h @@ -0,0 +1,48 @@ +#ifndef OBTSDEVICE_H +#define OBTSDEVICE_H + +#include "ofMain.h" + +/* +created with icon, colour, linesize etc +in order to draw need to know: + +time now: in order to draw relatively (this is not actual time as it can draw historically) +scale: fixed (defined at object creation) +or always zoom out? (begin time defined at object creation) + +events: connect(is create) disconnect() call(* obtsDevice) hangup() sms(* obtsDevice) +functions: draw(time) getPosition(time) + +variables: pointer to icon image + +*/ + +struct timeseg{ + timeseg(float _st,float _et){ + startTime=_st; + endTime=_et; + } + float startTime; + float endTime; +}; + + +class obtsDevice +{ + public: + obtsDevice(); + obtsDevice(string &imsi,ofImage *_icon,ofVec2f _coords); + virtual ~obtsDevice(); + void draw(float timeScale); //units per second + void connect(); + void disconnect(); + protected: + private: + string IMSI; + ofVec2f coords; //angular coords + vector connectionHistory; + ofImage *icon; +}; + +#endif // OBTSDEVICE_H -- cgit v1.2.3