| 55 | } |
| 56 | |
| 57 | void BaseGrid::flushSamples() |
| 58 | { |
| 59 | if (m_sample.empty()) |
| 60 | throw hexer_error("Can't determine hex size - no points."); |
| 61 | |
| 62 | double height = computeHexSize(); |
| 63 | processHeight(height); |
| 64 | for (Point p : m_sample) { |
| 65 | addPoint(p); |
| 66 | } |
| 67 | m_sample.clear(); |
| 68 | } |
| 69 | |
| 70 | void BaseGrid::handleSamplePoint(Point& p) |
| 71 | { |
no test coverage detected