Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hideyukisaito
committed
Mar 12, 2013
1 parent
38a8b13
commit e4380df
Showing
16 changed files
with
811 additions
and
381 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include "ofMain.h" | ||
|
||
|
||
class ArsUIButton | ||
{ | ||
protected: | ||
int status,bcnt,speed,tcnt; //status 0: not selected, 1:selected, 2: broken | ||
ofImage mark,markShadow; | ||
float x,y,radius; | ||
int bid; | ||
ofPoint fuji; | ||
double directionToFuji; //radian | ||
double currentDirection; | ||
double calcDirection(ofPoint *_p1, ofPoint *_p2); | ||
double viewAngle; | ||
double latitude; | ||
double longtitude; | ||
|
||
public: | ||
ArsUIButton(float _x, float _y, int _bid, ofPoint _fuji, float _angle ); | ||
virtual void draw(); | ||
virtual void update(); | ||
virtual int tapped(float _x, float _y); | ||
void setAngle(float _angle); | ||
void setStatus(int _status); | ||
int getStatus(); | ||
int getId(); | ||
void setCameraStatus(double _lat, double _lon); | ||
ofPoint GPStoXY(double _lat,double _lon); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// | ||
// ArsUISharedData.h | ||
// arsUI | ||
// | ||
// Created by Circuit Lab. Mac mini on 3/12/13. | ||
// | ||
// | ||
|
||
#ifndef arsUI_ArsUISharedData_h | ||
#define arsUI_ArsUISharedData_h | ||
|
||
#include "ofxXmlSettings.h" | ||
#include "ofxTuioClient.h" | ||
#include "ArsUITappedPoint.h" | ||
#include "ofxOsc.h" | ||
|
||
class ArsUISharedData | ||
{ | ||
public: | ||
ofxXmlSettings config; | ||
ofxTuioClient tuioClient; | ||
|
||
vector<ArsUITappedPoint> tappedPoints; | ||
|
||
string displayHost; | ||
int displayPort; | ||
|
||
string serverHost; | ||
int serverPort; | ||
|
||
int incomingPort; | ||
|
||
int numRobots; | ||
int camId1, camId2; | ||
|
||
ofxOscSender oscSenderToDisplay; | ||
ofxOscSender oscSenderToServer; | ||
ofxOscReceiver oscReceiverFromServer; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "ofMain.h" | ||
|
||
|
||
class ArsUITappedPoint | ||
{ | ||
private: | ||
float x, y, radius; | ||
float alpha; | ||
int tcnt,cntmax; | ||
int tapid; | ||
|
||
public: | ||
ArsUITappedPoint(float _x, float _y, int tid); | ||
void draw(); | ||
void update(); | ||
bool alive(); | ||
}; |
Oops, something went wrong.