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

Method AddStyle

libs/drape_frontend/route_shape.cpp:143–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141} // namespace rs
142
143void Subroute::AddStyle(SubrouteStyle const & style)
144{
145 if (!m_style.empty() && m_style.back() == style)
146 m_style.back().m_endIndex = style.m_endIndex;
147 else
148 m_style.push_back(style);
149}
150
151void RouteShape::PrepareGeometry(std::vector<m2::PointD> const & path, m2::PointD const & pivot,
152 std::vector<glsl::vec4> const & segmentsColors, float baseDepth,

Callers 4

InsertRouteMethod · 0.80
AddTransitGateSegmentFunction · 0.80
AddTransitShapesFunction · 0.80

Calls 3

backMethod · 0.80
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected