mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:20:04 +00:00
Generate hover text for storm tracking information
This commit is contained in:
parent
b4b1706587
commit
29e87fc11e
3 changed files with 158 additions and 63 deletions
|
|
@ -21,8 +21,9 @@ static const boost::gil::rgba32f_pixel_t kBlack {0.0f, 0.0f, 0.0f, 1.0f};
|
|||
struct LinkedVectorDrawItem
|
||||
{
|
||||
LinkedVectorDrawItem(
|
||||
const common::Coordinate& center,
|
||||
const std::shared_ptr<wsr88d::rpg::LinkedVectorPacket>& vectorPacket)
|
||||
const common::Coordinate& center,
|
||||
const std::shared_ptr<const wsr88d::rpg::LinkedVectorPacket>&
|
||||
vectorPacket)
|
||||
{
|
||||
coordinates_.push_back(util::GeographicLib::GetCoordinate(
|
||||
center, vectorPacket->start_i_km(), vectorPacket->start_j_km()));
|
||||
|
|
@ -136,8 +137,8 @@ void LinkedVectors::StartVectors()
|
|||
}
|
||||
|
||||
std::shared_ptr<LinkedVectorDrawItem> LinkedVectors::AddVector(
|
||||
const common::Coordinate& center,
|
||||
const std::shared_ptr<wsr88d::rpg::LinkedVectorPacket>& vectorPacket)
|
||||
const common::Coordinate& center,
|
||||
const std::shared_ptr<const wsr88d::rpg::LinkedVectorPacket>& vectorPacket)
|
||||
{
|
||||
return p->vectorList_.emplace_back(
|
||||
std::make_shared<LinkedVectorDrawItem>(center, vectorPacket));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue