| 109 | } |
| 110 | |
| 111 | void FrameTypeData::addPolygonValue(const Polygon &points, int val) |
| 112 | { |
| 113 | StatsItemPolygonValue value; |
| 114 | value.corners = points; |
| 115 | value.value = val; |
| 116 | |
| 117 | // todo: how to do this nicely? |
| 118 | // // Always keep the biggest block size updated. |
| 119 | // unsigned int wh = w*h; |
| 120 | // if (wh > maxBlockSize) |
| 121 | // maxBlockSize = wh; |
| 122 | |
| 123 | polygonValueData.push_back(value); |
| 124 | } |
| 125 | |
| 126 | void FrameTypeData::addPolygonVector(const Polygon &points, int vecX, int vecY) |
| 127 | { |