mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-04 03:43:46 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
35
drape_frontend/poi_symbol_shape.hpp
Normal file
35
drape_frontend/poi_symbol_shape.hpp
Normal file
@@ -0,0 +1,35 @@
|
||||
#pragma once
|
||||
|
||||
#include "drape_frontend/map_shape.hpp"
|
||||
#include "drape_frontend/shape_view_params.hpp"
|
||||
|
||||
#include "drape/constants.hpp"
|
||||
|
||||
namespace dp
|
||||
{
|
||||
class OverlayHandle;
|
||||
} // namespace dp
|
||||
|
||||
namespace df
|
||||
{
|
||||
class PoiSymbolShape : public MapShape
|
||||
{
|
||||
public:
|
||||
PoiSymbolShape(m2::PointD const & mercatorPt, PoiSymbolViewParams const & params,
|
||||
TileKey const & tileKey, uint32_t textIndex);
|
||||
|
||||
void Draw(ref_ptr<dp::GraphicsContext> context, ref_ptr<dp::Batcher> batcher,
|
||||
ref_ptr<dp::TextureManager> textures) const override;
|
||||
MapShapeType GetType() const override { return MapShapeType::OverlayType; }
|
||||
|
||||
private:
|
||||
uint64_t GetOverlayPriority() const;
|
||||
drape_ptr<dp::OverlayHandle> CreateOverlayHandle(m2::RectD const & pixelRect) const;
|
||||
|
||||
m2::PointD const m_pt;
|
||||
PoiSymbolViewParams const m_params;
|
||||
m2::PointI const m_tileCoords;
|
||||
uint32_t const m_textIndex;
|
||||
};
|
||||
} // namespace df
|
||||
|
||||
Reference in New Issue
Block a user