summaryrefslogtreecommitdiff
path: root/src/boundary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/boundary.cpp')
-rwxr-xr-xsrc/boundary.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/boundary.cpp b/src/boundary.cpp
index c30f676..64957ed 100755
--- a/src/boundary.cpp
+++ b/src/boundary.cpp
@@ -2,12 +2,12 @@
boundary::boundary()
{
- note=40; //middle C
+ filename="";
}
-boundary::boundary(int _note)
+boundary::boundary(string file)
{
- note=_note;
+ filename=file;
}
boundary::~boundary()
@@ -20,7 +20,7 @@ void boundary::draw(){
for (int i=0;i<points.size();i++) {
ofLine(points[i],points[(i+1)%points.size()]);
}
- ofDrawBitmapString(ofToString(note),centroid);
+ ofDrawBitmapString(filename,centroid);
}
}
@@ -77,3 +77,7 @@ bool boundary::contains(ofPoint p)
else
return true;
}
+
+void boundary::checkfile(ofPoint pos,string file) {
+ if (contains(pos)) filename=file;
+}