mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:30:05 +00:00
Clang format/tidy fixes for radar_site_line
This commit is contained in:
parent
33f92bcda5
commit
ef197bf578
4 changed files with 10 additions and 11 deletions
|
|
@ -365,11 +365,11 @@ bool RadarProductLayer::RunMousePicking(
|
|||
const double radarLatitude = context()->radar_site()->latitude();
|
||||
const double radarLongitude = context()->radar_site()->longitude();
|
||||
|
||||
const auto distanceMeters = util::GeographicLib::GetDistance(
|
||||
mouseGeoCoords.latitude_,
|
||||
mouseGeoCoords.longitude_,
|
||||
radarLatitude,
|
||||
radarLongitude);
|
||||
const auto distanceMeters =
|
||||
util::GeographicLib::GetDistance(mouseGeoCoords.latitude_,
|
||||
mouseGeoCoords.longitude_,
|
||||
radarLatitude,
|
||||
radarLongitude);
|
||||
|
||||
const std::string distanceUnitName =
|
||||
settings::UnitSettings::Instance().distance_units().GetValue();
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@ class RadarSiteLayer::Impl
|
|||
{
|
||||
public:
|
||||
explicit Impl(RadarSiteLayer* self, std::shared_ptr<MapContext>& context) :
|
||||
self_ {self},
|
||||
geoLines_ {std::make_shared<gl::draw::GeoLines>(context)}
|
||||
self_ {self}, geoLines_ {std::make_shared<gl::draw::GeoLines>(context)}
|
||||
{
|
||||
geoLines_->StartLines();
|
||||
radarSiteLines_[0] = geoLines_->AddLine();
|
||||
|
|
@ -37,7 +36,7 @@ public:
|
|||
|
||||
static const boost::gil::rgba32f_pixel_t color0 {0.0f, 0.0f, 0.0f, 1.0f};
|
||||
static const boost::gil::rgba32f_pixel_t color1 {1.0f, 1.0f, 1.0f, 1.0f};
|
||||
static const float width = 1;
|
||||
static const float width = 1;
|
||||
geoLines_->SetLineModulate(radarSiteLines_[0], color0);
|
||||
geoLines_->SetLineWidth(radarSiteLines_[0], width + 2);
|
||||
|
||||
|
|
@ -71,7 +70,8 @@ public:
|
|||
};
|
||||
|
||||
RadarSiteLayer::RadarSiteLayer(std::shared_ptr<MapContext> context) :
|
||||
DrawLayer(context, "RadarSiteLayer"), p(std::make_unique<Impl>(this, context))
|
||||
DrawLayer(context, "RadarSiteLayer"),
|
||||
p(std::make_unique<Impl>(this, context))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -295,7 +295,7 @@ GetRadarBeamAltititude(units::length::meters<double> range,
|
|||
units::angle::degrees<double> elevation,
|
||||
units::length::meters<double> height)
|
||||
{
|
||||
static const units::length::meters<double> earthRadius {6367444 * 4/3};
|
||||
static const units::length::meters<double> earthRadius {6367444 * 4 / 3};
|
||||
|
||||
height += earthRadius;
|
||||
|
||||
|
|
|
|||
|
|
@ -135,7 +135,6 @@ GetRadarBeamAltititude(units::length::meters<double> range,
|
|||
units::angle::degrees<double> elevation,
|
||||
units::length::meters<double> height);
|
||||
|
||||
|
||||
} // namespace GeographicLib
|
||||
} // namespace util
|
||||
} // namespace qt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue