summaryrefslogtreecommitdiff
path: root/src/boundary.cpp
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-01-28 12:42:36 +0000
committerComment <tim@gray.(none)>2013-01-28 12:42:36 +0000
commitf7667bd306b983f8f8daa0b40719aa665bf555b0 (patch)
tree19ba166a2c1bd666471bf16f74e93228d8819f89 /src/boundary.cpp
parent1f8525289c3533805fa235d25804f3413243743a (diff)
drag filenames into areas
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;
+}