summaryrefslogtreecommitdiff
path: root/src/testApp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/testApp.h')
-rwxr-xr-xsrc/testApp.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/src/testApp.h b/src/testApp.h
index 9bcf15e..e154493 100755
--- a/src/testApp.h
+++ b/src/testApp.h
@@ -5,14 +5,18 @@
#include "boundary.h"
#include "ofxXmlSettings.h"
-
+#include "ofxFensterManager.h"
#include "ofxOsc.h"
#define COLOUR 1
#define GREY 2
#define DIFF 3
-class testApp : public ofBaseApp{
+//12-10-12
+//each area will trigger once and once only
+
+
+class testApp : public ofxFensterListener{
public:
void setup();
@@ -28,23 +32,24 @@ class testApp : public ofBaseApp{
void mouseReleased(int x, int y, int button);
void windowResized(int w, int h);
void dragEvent(ofDragInfo dragInfo);
+ void dragEvent(ofDragInfo dragInfo, ofxFenster* win);
void gotMessage(ofMessage msg);
-
+
ofxXmlSettings XML;
void loadSettings(string filename);
void saveSettings(string filename);
-
+
//destination for OSC
std::string host;
int port,channel;
ofxOscSender sender;
-
+
void sendNote(int note);
-
+
ofVideoGrabber vidGrabber;
-
+
int gw,gh;
-
+
ofxCvColorImage colorImg;
ofxCvGrayscaleImage grayImage;
@@ -52,16 +57,17 @@ class testApp : public ofBaseApp{
ofxCvGrayscaleImage grayDiff;
ofxCvContourFinder contourFinder;
-
+
int mode;
int threshold;
bool bLearnBakground;
-
+
+ bool bGrab;
bool bFlip;
bool bInvert;
-
+
vector<boundary> boundaries;
int selectedBoundary;
-
+
};