blob: bf0b780729f42ffb77764b6c0f34145635f81af3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef BOUNDARY_H
#define BOUNDARY_H
#include "ofMain.h"
class boundary
{
public:
boundary();
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;
bool checkClick(ofPoint pos);
bool checkFile(ofPoint pos,string file);
void openFile(string file);
void setVolume(float vol);
string filename;
ofSoundPlayer sound;
};
#endif // BOUNDARY_H
|