| 874 | } |
| 875 | |
| 876 | ApplyLineFeatureGeometry::ApplyLineFeatureGeometry(TileKey const & tileKey, TInsertShapeFn const & insertShape, |
| 877 | FeatureType & f, double currentScaleGtoP) |
| 878 | : TBase(tileKey, insertShape, f, CaptionDescription()) |
| 879 | , m_currentScaleGtoP(currentScaleGtoP) |
| 880 | // TODO(pastk) : calculate just once in the RuleDrawer. |
| 881 | , m_minSegmentSqrLength(math::Pow2(4.0 * df::VisualParams::Instance().GetVisualScale() / currentScaleGtoP)) |
| 882 | , m_simplify(tileKey.m_zoomLevel >= 10 && tileKey.m_zoomLevel <= 12) |
| 883 | { |
| 884 | m_spline.Reset(new m2::Spline(f.GetPointsCount())); |
| 885 | } |
| 886 | |
| 887 | void ApplyLineFeatureGeometry::operator()(m2::PointD const & point) |
| 888 | { |
nothing calls this directly
no test coverage detected