mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 09: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,8 +365,8 @@ 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); | ||||||
|  |  | ||||||
|  | @ -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(); | ||||||
|  | @ -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