mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:20:06 +00:00
Splitting radar logic out of render layer into manager and view classes
This commit is contained in:
parent
59be110c10
commit
30fadcfbb6
12 changed files with 410 additions and 133 deletions
44
scwx-qt/source/scwx/qt/view/radar_view.hpp
Normal file
44
scwx-qt/source/scwx/qt/view/radar_view.hpp
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#pragma once
|
||||
|
||||
#include <scwx/qt/manager/radar_manager.hpp>
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include <QMapboxGL>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace view
|
||||
{
|
||||
|
||||
class RadarViewImpl;
|
||||
|
||||
class RadarView
|
||||
{
|
||||
public:
|
||||
explicit RadarView(std::shared_ptr<manager::RadarManager> radarManager,
|
||||
std::shared_ptr<QMapboxGL> map);
|
||||
~RadarView();
|
||||
|
||||
RadarView(const RadarView&) = delete;
|
||||
RadarView& operator=(const RadarView&) = delete;
|
||||
|
||||
RadarView(RadarView&&) noexcept;
|
||||
RadarView& operator=(RadarView&&) noexcept;
|
||||
|
||||
double bearing() const;
|
||||
double scale() const;
|
||||
const std::vector<float>& vertices() const;
|
||||
|
||||
void Initialize();
|
||||
|
||||
private:
|
||||
std::unique_ptr<RadarViewImpl> p;
|
||||
};
|
||||
|
||||
} // namespace view
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue