mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:30:05 +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)); | ||||
|  |  | |||
|  | @ -82,9 +82,10 @@ public: | |||
|     * | ||||
|     * @return Linked vector draw item | ||||
|     */ | ||||
|    std::shared_ptr<LinkedVectorDrawItem> AddVector( | ||||
|       const common::Coordinate&                               center, | ||||
|       const std::shared_ptr<wsr88d::rpg::LinkedVectorPacket>& vectorPacket); | ||||
|    std::shared_ptr<LinkedVectorDrawItem> | ||||
|    AddVector(const common::Coordinate& center, | ||||
|              const std::shared_ptr<const wsr88d::rpg::LinkedVectorPacket>& | ||||
|                 vectorPacket); | ||||
| 
 | ||||
|    /**
 | ||||
|     * Sets the modulate color of a linked vector. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat