From f7667bd306b983f8f8daa0b40719aa665bf555b0 Mon Sep 17 00:00:00 2001 From: Comment Date: Mon, 28 Jan 2013 12:42:36 +0000 Subject: drag filenames into areas --- src/testApp.h | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'src/testApp.h') 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 boundaries; int selectedBoundary; - + }; -- cgit v1.2.3