MCPcopy Create free account
hub / github.com/comaps/comaps / ApplyLineFeatureGeometry

Method ApplyLineFeatureGeometry

libs/drape_frontend/apply_feature_functors.cpp:876–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

874}
875
876ApplyLineFeatureGeometry::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
887void ApplyLineFeatureGeometry::operator()(m2::PointD const & point)
888{

Callers

nothing calls this directly

Calls 5

CaptionDescriptionClass · 0.85
Pow2Function · 0.85
GetVisualScaleMethod · 0.80
ResetMethod · 0.45
GetPointsCountMethod · 0.45

Tested by

no test coverage detected