| 47 | } |
| 48 | |
| 49 | void 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 | |
| 63 | template <typename T> size_t seedForObject(const T& object, size_t base) { |
| 64 | return base ^ reinterpret_cast<size_t>(&object); |
no outgoing calls
no test coverage detected