-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrawer.cpp
38 lines (30 loc) · 848 Bytes
/
drawer.cpp
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
#include <string.h>
#include "drawer.h"
Drawer::Drawer(StringConv text, cv::Scalar textColor, cv::Scalar rectColor) {
this -> text = text;
this -> textColor = textColor;
this -> rectColor = rectColor;
}
Drawer::Drawer(const Drawer& drawer) {
this -> text = drawer.getText();
this -> textColor = drawer.getTextColor();
this -> rectColor = drawer.getRectColor();
}
cv::Scalar Drawer::getTextColor() const {
return this -> textColor;
}
cv::Scalar Drawer::getRectColor() const {
return this -> rectColor;
}
StringConv Drawer::getText() const {
return this -> text;
}
void Drawer::setRectColor(cv::Scalar rectColor) {
this -> rectColor = rectColor;
}
void Drawer::setTextColor(cv::Scalar textColor) {
this -> textColor = textColor;
}
void Drawer::setText(StringConv text) {
this -> text = text;
}