#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