| 332 | } // namespace |
| 333 | |
| 334 | void VectorRasterizer::drawPoints( |
| 335 | const std::vector<glm::dvec3>& points, |
| 336 | const PointStyle& style) { |
| 337 | if (this->_finalized) { |
| 338 | return; |
| 339 | } |
| 340 | |
| 341 | std::vector<BLPoint> vertices; |
| 342 | vertices.reserve(points.size()); |
| 343 | |
| 344 | std::vector<size_t> seeds; |
| 345 | seeds.reserve(points.size()); |
| 346 | |
| 347 | for (const glm::dvec3& vertex : points) { |
| 348 | BLPoint point = radiansToPoint( |
| 349 | CesiumUtility::Math::degreesToRadians(vertex.x), |
| 350 | CesiumUtility::Math::degreesToRadians(vertex.y), |
| 351 | this->_bounds, |
| 352 | this->_context); |
| 353 | vertices.emplace_back(point); |
| 354 | seeds.emplace_back(seedForObject(vertex, 17)); |
| 355 | } |
| 356 | |
| 357 | drawPointsImpl( |
| 358 | this->_context, |
| 359 | this->_ellipsoid, |
| 360 | this->_bounds, |
| 361 | vertices, |
| 362 | seeds, |
| 363 | style); |
| 364 | } |
| 365 | |
| 366 | void VectorRasterizer::drawPoints( |
| 367 | const std::vector<CesiumGeospatial::Cartographic>& points, |
no test coverage detected