mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 09:00:05 +00:00 
			
		
		
		
	Highlight active map
This commit is contained in:
		
							parent
							
								
									8b515dd3d2
								
							
						
					
					
						commit
						9ff6eabd2a
					
				
					 6 changed files with 81 additions and 9 deletions
				
			
		|  | @ -24,8 +24,10 @@ static const uint16_t DEFAULT_COLOR_TABLE_MAX = 255u; | |||
| class RadarProductViewImpl | ||||
| { | ||||
| public: | ||||
|    explicit RadarProductViewImpl() = default; | ||||
|    ~RadarProductViewImpl()         = default; | ||||
|    explicit RadarProductViewImpl() : isActive_ {false} {}; | ||||
|    ~RadarProductViewImpl() = default; | ||||
| 
 | ||||
|    bool isActive_; | ||||
| }; | ||||
| 
 | ||||
| RadarProductView::RadarProductView() : | ||||
|  | @ -85,6 +87,16 @@ RadarProductView::GetCfpMomentData() const | |||
|    return std::tie(data, dataSize, componentSize); | ||||
| } | ||||
| 
 | ||||
| bool RadarProductView::IsActive() const | ||||
| { | ||||
|    return p->isActive_; | ||||
| } | ||||
| 
 | ||||
| void RadarProductView::SetActive(bool isActive) | ||||
| { | ||||
|    p->isActive_ = isActive; | ||||
| } | ||||
| 
 | ||||
| void RadarProductView::ComputeSweep() | ||||
| { | ||||
|    BOOST_LOG_TRIVIAL(debug) << logPrefix_ << "ComputeSweep()"; | ||||
|  |  | |||
|  | @ -42,6 +42,10 @@ public: | |||
|    virtual std::tuple<const void*, size_t, size_t> GetMomentData() const = 0; | ||||
|    virtual std::tuple<const void*, size_t, size_t> GetCfpMomentData() const; | ||||
| 
 | ||||
|    bool IsActive() const; | ||||
| 
 | ||||
|    void SetActive(bool isActive); | ||||
| 
 | ||||
| protected: | ||||
|    virtual void UpdateColorTable() = 0; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat