summaryrefslogtreecommitdiff
path: root/src/boundary.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/boundary.h')
-rwxr-xr-xsrc/boundary.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/boundary.h b/src/boundary.h
index e28b278..bf0b780 100755
--- a/src/boundary.h
+++ b/src/boundary.h
@@ -9,19 +9,22 @@ class boundary
{
public:
boundary();
- boundary(string file);
+ boundary(string file,float vol=1.0f);
virtual ~boundary();
- bool contains(ofPoint p);
- void draw();
- void add(ofPoint p);
- void undo();
- void getCentroid();
- vector<ofPoint> points;
- ofPoint centroid;
-
- void checkfile(ofPoint pos,string file);
-
- string filename;
+ bool contains(ofPoint p);
+ void draw();
+ void add(ofPoint p);
+ void undo();
+ void getCentroid();
+ vector<ofPoint> points;
+ ofPoint centroid;
+ bool checkClick(ofPoint pos);
+ bool checkFile(ofPoint pos,string file);
+ void openFile(string file);
+ void setVolume(float vol);
+
+ string filename;
+ ofSoundPlayer sound;
};