MapContext has a GlContext instead of MapContext is a GlContext

This commit is contained in:
Dan Paulat 2025-05-07 22:37:45 -05:00
parent 58f2609fe7
commit 2d4ad2737e
31 changed files with 147 additions and 307 deletions

View file

@ -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