| 89 | } |
| 90 | |
| 91 | void FrameTypeData::addLine(unsigned short x, |
| 92 | unsigned short y, |
| 93 | unsigned short w, |
| 94 | unsigned short h, |
| 95 | int x1, |
| 96 | int y1, |
| 97 | int x2, |
| 98 | int y2) |
| 99 | { |
| 100 | StatsItemVector vec; |
| 101 | vec.pos[0] = x; |
| 102 | vec.pos[1] = y; |
| 103 | vec.size[0] = w; |
| 104 | vec.size[1] = h; |
| 105 | vec.point[0] = Point(x1, y1); |
| 106 | vec.point[1] = Point(x2, y2); |
| 107 | vec.isLine = true; |
| 108 | vectorData.push_back(vec); |
| 109 | } |
| 110 | |
| 111 | void FrameTypeData::addPolygonValue(const Polygon &points, int val) |
| 112 | { |
no test coverage detected