diff options
| author | Comment <tim@gray.(none)> | 2013-01-28 12:42:36 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-01-28 12:42:36 +0000 |
| commit | f7667bd306b983f8f8daa0b40719aa665bf555b0 (patch) | |
| tree | 19ba166a2c1bd666471bf16f74e93228d8819f89 /src/testApp.h | |
| parent | 1f8525289c3533805fa235d25804f3413243743a (diff) | |
drag filenames into areas
Diffstat (limited to 'src/testApp.h')
| -rwxr-xr-x | src/testApp.h | 30 |
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; - + }; |
