MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / drawPoints

Method drawPoints

CesiumVectorData/src/VectorRasterizer.cpp:334–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332} // namespace
333
334void 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
366void VectorRasterizer::drawPoints(
367 const std::vector<CesiumGeospatial::Cartographic>& points,

Callers 3

operator()Method · 0.80

Calls 5

radiansToPointFunction · 0.85
degreesToRadiansFunction · 0.85
seedForObjectFunction · 0.85
drawPointsImplFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected