mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:40:05 +00:00 
			
		
		
		
	Change tick display for past vs. forecast data
This commit is contained in:
		
							parent
							
								
									900267b16f
								
							
						
					
					
						commit
						7de1b1d57d
					
				
					 3 changed files with 86 additions and 13 deletions
				
			
		|  | @ -4,6 +4,7 @@ | |||
| #include <scwx/qt/gl/draw/draw_item.hpp> | ||||
| 
 | ||||
| #include <boost/gil.hpp> | ||||
| #include <units/length.h> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
|  | @ -131,6 +132,36 @@ public: | |||
|    SetVectorHoverText(const std::shared_ptr<LinkedVectorDrawItem>& di, | ||||
|                       const std::string&                           text); | ||||
| 
 | ||||
|    /**
 | ||||
|     * Sets the presence of ticks on the linked vector. | ||||
|     * | ||||
|     * @param [in] di Linked vector draw item | ||||
|     * @param [in] enabled Ticks enabled | ||||
|     */ | ||||
|    static void | ||||
|    SetVectorTicksEnabled(const std::shared_ptr<LinkedVectorDrawItem>& di, | ||||
|                          bool                                         enabled); | ||||
| 
 | ||||
|    /**
 | ||||
|     * Sets the tick radius of the linked vector. | ||||
|     * | ||||
|     * @param [in] di Linked vector draw item | ||||
|     * @param [in] radius Length of the tick extending beyond the linked vector | ||||
|     */ | ||||
|    static void | ||||
|    SetVectorTickRadius(const std::shared_ptr<LinkedVectorDrawItem>& di, | ||||
|                        units::length::meters<double>                radius); | ||||
| 
 | ||||
|    /**
 | ||||
|     * Sets the tick radius increment of the linked vector. | ||||
|     * | ||||
|     * @param [in] di Linked vector draw item | ||||
|     * @param [in] radiusIncrement Length increment of each tick beyond the first | ||||
|     */ | ||||
|    static void | ||||
|    SetVectorTickRadiusIncrement(const std::shared_ptr<LinkedVectorDrawItem>& di, | ||||
|                                 units::length::meters<double> radiusIncrement); | ||||
| 
 | ||||
|    /**
 | ||||
|     * Finalizes the draw item after adding new linked vectors. | ||||
|     */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat