-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDrop.cpp
More file actions
51 lines (37 loc) · 757 Bytes
/
Drop.cpp
File metadata and controls
51 lines (37 loc) · 757 Bytes
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Drop::Drop(void)
{
Drop::have_drop = false;
}
Drop::~Drop(void)
{
}
int Drop::getXPos(){
return Drop::xPos;
}
int Drop::getYPos(){
return Drop::yPos;
}
Point Drop::getPos(){
return Drop::pos;
}
double Drop::getArea(){
return Drop::area;
}
double Drop::getPeri(){
return Drop::peri;
}
vector<Point> Drop::getContour(){
return Drop::contour;
}
Rect Drop::getRect(){
return Drop::objBoundingRect;
}
void Drop::setPara(Point pos, int x, int y, double area, double perimeter, vector<Point> contour, Rect objBoundingRect){
Drop::xPos = x;
Drop::yPos = y;
Drop::area = area;
Drop::peri = perimeter;
Drop::contour = contour;
Drop::pos = pos;
Drop::objBoundingRect = objBoundingRect;
}