| 250 | } |
| 251 | |
| 252 | void VectorRasterizer::drawPolyline( |
| 253 | const std::vector<glm::dvec3>& points, |
| 254 | const LineStyle& style) { |
| 255 | if (this->_finalized) { |
| 256 | return; |
| 257 | } |
| 258 | |
| 259 | std::vector<BLPoint> vertices; |
| 260 | vertices.reserve(points.size()); |
| 261 | |
| 262 | for (const glm::dvec3& vertex : points) { |
| 263 | BLPoint point = radiansToPoint( |
| 264 | CesiumUtility::Math::degreesToRadians(vertex.x), |
| 265 | CesiumUtility::Math::degreesToRadians(vertex.y), |
| 266 | this->_bounds, |
| 267 | this->_context); |
| 268 | vertices.emplace_back(point); |
| 269 | } |
| 270 | |
| 271 | setStrokeWidth(this->_context, style, this->_ellipsoid, this->_bounds); |
| 272 | |
| 273 | this->_context.strokePolyline( |
| 274 | vertices.data(), |
| 275 | vertices.size(), |
| 276 | BLRgba32(style.getColor(seedForObject(points, 31)).toRgba32())); |
| 277 | } |
| 278 | |
| 279 | void VectorRasterizer::drawPolyline( |
| 280 | const std::vector<CesiumGeospatial::Cartographic>& points, |
no test coverage detected