void SegmentRange::Clear() { m_featureId = FeatureID(); m_startSegId = 0; m_endSegId = 0; m_forward = true; m_start = m2::PointD::Zero(); m_end = m2::PointD::Zero(); }
void LayerRenderer::OnTouchCancel(m2::RectD const & touchArea) { UNUSED_VALUE(touchArea); if (m_activeOverlay != nullptr) { m_activeOverlay->OnTapEnd(); m_activeOverlay = nullptr; m_activeOverlayId = FeatureID(); } }
void LayerRenderer::OnTouchUp(m2::RectD const & touchArea) { if (m_activeOverlay != nullptr) { if (m_activeOverlay->IsTapped(touchArea)) m_activeOverlay->OnTap(); m_activeOverlay->OnTapEnd(); m_activeOverlay = nullptr; m_activeOverlayId = FeatureID(); } }
template <class ToDo> void ForEach(ToDo && toDo) const { uint32_t index = 0; m_recordReader.ForEachRecord([&](uint32_t pos, char const * data, uint32_t /*size*/) { FeatureType ft(&m_loadInfo, data); // We can't properly set MwmId here, because FeaturesVector // works with FileContainerR, not with MwmId/MwmHandle/MwmValue. // But it's OK to set at least feature's index, because it can // be used later for Metadata loading. ft.SetID(FeatureID(MwmSet::MwmId(), index)); toDo(ft, m_table ? index++ : pos); }); }