mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:10:04 +00:00
MapContext has a GlContext instead of MapContext is a GlContext
This commit is contained in:
parent
58f2609fe7
commit
2d4ad2737e
31 changed files with 147 additions and 307 deletions
|
|
@ -9,27 +9,25 @@
|
|||
#include <qmaplibre.hpp>
|
||||
#include <QMargins>
|
||||
|
||||
namespace scwx::qt
|
||||
{
|
||||
namespace view
|
||||
namespace scwx::qt::view
|
||||
{
|
||||
|
||||
class OverlayProductView;
|
||||
class RadarProductView;
|
||||
|
||||
} // namespace view
|
||||
} // namespace scwx::qt::view
|
||||
|
||||
namespace map
|
||||
namespace scwx::qt::map
|
||||
{
|
||||
|
||||
struct MapSettings;
|
||||
|
||||
class MapContext : public gl::GlContext
|
||||
class MapContext
|
||||
{
|
||||
public:
|
||||
explicit MapContext(
|
||||
std::shared_ptr<view::RadarProductView> radarProductView = nullptr);
|
||||
~MapContext() override;
|
||||
~MapContext();
|
||||
|
||||
MapContext(const MapContext&) = delete;
|
||||
MapContext& operator=(const MapContext&) = delete;
|
||||
|
|
@ -37,6 +35,8 @@ public:
|
|||
MapContext(MapContext&&) noexcept;
|
||||
MapContext& operator=(MapContext&&) noexcept;
|
||||
|
||||
[[nodiscard]] std::shared_ptr<gl::GlContext> gl_context() const;
|
||||
|
||||
[[nodiscard]] std::weak_ptr<QMapLibre::Map> map() const;
|
||||
[[nodiscard]] std::string map_copyrights() const;
|
||||
[[nodiscard]] MapProvider map_provider() const;
|
||||
|
|
@ -76,5 +76,4 @@ private:
|
|||
std::unique_ptr<Impl> p;
|
||||
};
|
||||
|
||||
} // namespace map
|
||||
} // namespace scwx::qt
|
||||
} // namespace scwx::qt::map
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue