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

Function setStrokeWidth

CesiumVectorData/src/VectorRasterizer.cpp:49–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void setStrokeWidth(
50 BLContext& context,
51 const LineStyle& style,
52 const Ellipsoid& ellipsoid,
53 const GlobeRectangle& bounds) {
54 if (style.widthMode == LineWidthMode::Pixels) {
55 context.setStrokeWidth(style.width);
56 } else if (style.widthMode == LineWidthMode::Meters) {
57 context.setStrokeWidth(
58 (context.targetWidth() * style.width) /
59 (bounds.computeWidth() * ellipsoid.getRadii().x));
60 }
61}
62
63template <typename T> size_t seedForObject(const T& object, size_t base) {
64 return base ^ reinterpret_cast<size_t>(&object);

Callers 3

drawPolygonMethod · 0.85
drawPolylineMethod · 0.85
drawPointsImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected