mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 06: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 radarLatitude  = context()->radar_site()->latitude(); | ||||||
|       const double radarLongitude = context()->radar_site()->longitude(); |       const double radarLongitude = context()->radar_site()->longitude(); | ||||||
| 
 | 
 | ||||||
|       const auto distanceMeters = util::GeographicLib::GetDistance( |       const auto distanceMeters = | ||||||
|             mouseGeoCoords.latitude_, |          util::GeographicLib::GetDistance(mouseGeoCoords.latitude_, | ||||||
|             mouseGeoCoords.longitude_, |                                           mouseGeoCoords.longitude_, | ||||||
|             radarLatitude, |                                           radarLatitude, | ||||||
|             radarLongitude); |                                           radarLongitude); | ||||||
| 
 | 
 | ||||||
|       const std::string distanceUnitName = |       const std::string distanceUnitName = | ||||||
|          settings::UnitSettings::Instance().distance_units().GetValue(); |          settings::UnitSettings::Instance().distance_units().GetValue(); | ||||||
|  |  | ||||||
|  | @ -27,8 +27,7 @@ class RadarSiteLayer::Impl | ||||||
| { | { | ||||||
| public: | public: | ||||||
|    explicit Impl(RadarSiteLayer* self, std::shared_ptr<MapContext>& context) : |    explicit Impl(RadarSiteLayer* self, std::shared_ptr<MapContext>& context) : | ||||||
|        self_ {self}, |        self_ {self}, geoLines_ {std::make_shared<gl::draw::GeoLines>(context)} | ||||||
|        geoLines_ {std::make_shared<gl::draw::GeoLines>(context)} |  | ||||||
|    { |    { | ||||||
|       geoLines_->StartLines(); |       geoLines_->StartLines(); | ||||||
|       radarSiteLines_[0] = geoLines_->AddLine(); |       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 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 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_->SetLineModulate(radarSiteLines_[0], color0); | ||||||
|       geoLines_->SetLineWidth(radarSiteLines_[0], width + 2); |       geoLines_->SetLineWidth(radarSiteLines_[0], width + 2); | ||||||
| 
 | 
 | ||||||
|  | @ -71,7 +70,8 @@ public: | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| RadarSiteLayer::RadarSiteLayer(std::shared_ptr<MapContext> context) : | 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::angle::degrees<double> elevation, | ||||||
|                        units::length::meters<double> height) |                        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; |    height += earthRadius; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -135,7 +135,6 @@ GetRadarBeamAltititude(units::length::meters<double> range, | ||||||
|                        units::angle::degrees<double> elevation, |                        units::angle::degrees<double> elevation, | ||||||
|                        units::length::meters<double> height); |                        units::length::meters<double> height); | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| } // namespace GeographicLib
 | } // namespace GeographicLib
 | ||||||
| } // namespace util
 | } // namespace util
 | ||||||
| } // namespace qt
 | } // namespace qt
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak