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

Method CreateGeometry

libs/routing/index_graph_loader.cpp:173–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173IndexGraphLoaderImpl::GeometryPtrT IndexGraphLoaderImpl::CreateGeometry(NumMwmId numMwmId)
174{
175 MwmSet::MwmHandle const & handle = m_dataSource.GetHandle(numMwmId);
176 MwmValue const * value = handle.GetValue();
177
178 auto vehicleModel = m_vehicleModelFactory->GetVehicleModelForCountry(value->GetCountryFileName());
179 return make_shared<Geometry>(GeometryLoader::Create(handle, std::move(vehicleModel), m_loadAltitudes));
180}
181
182void IndexGraphLoaderImpl::Clear()
183{

Callers

nothing calls this directly

Calls 5

CreateFunction · 0.85
GetHandleMethod · 0.80
GetCountryFileNameMethod · 0.80
GetValueMethod · 0.45

Tested by

no test coverage detected