mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:50:05 +00:00
- Volume time to be used for radar product view - Selected time to be used for animated alerts
56 lines
1.1 KiB
C++
56 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <scwx/qt/types/map_types.hpp>
|
|
|
|
#include <chrono>
|
|
#include <memory>
|
|
|
|
#include <QObject>
|
|
|
|
namespace scwx
|
|
{
|
|
namespace qt
|
|
{
|
|
namespace manager
|
|
{
|
|
|
|
class TimelineManager : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TimelineManager();
|
|
~TimelineManager();
|
|
|
|
static std::shared_ptr<TimelineManager> Instance();
|
|
|
|
public slots:
|
|
void SetRadarSite(const std::string& radarSite);
|
|
|
|
void SetDateTime(std::chrono::system_clock::time_point dateTime);
|
|
void SetViewType(types::MapTime viewType);
|
|
|
|
void SetLoopTime(std::chrono::minutes loopTime);
|
|
void SetLoopSpeed(double loopSpeed);
|
|
|
|
void AnimationStepBegin();
|
|
void AnimationStepBack();
|
|
void AnimationPlay();
|
|
void AnimationPause();
|
|
void AnimationStepNext();
|
|
void AnimationStepEnd();
|
|
|
|
signals:
|
|
void SelectedTimeUpdated(std::chrono::system_clock::time_point dateTime);
|
|
void VolumeTimeUpdated(std::chrono::system_clock::time_point dateTime);
|
|
|
|
void ViewTypeUpdated(types::MapTime viewType);
|
|
|
|
private:
|
|
class Impl;
|
|
std::unique_ptr<Impl> p;
|
|
};
|
|
|
|
} // namespace manager
|
|
} // namespace qt
|
|
} // namespace scwx
|