mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:20:05 +00:00 
			
		
		
		
	Refactor QMapLibreGL to QMapLibre
This commit is contained in:
		
							parent
							
								
									db0d26a4ad
								
							
						
					
					
						commit
						1fd52f771c
					
				
					 55 changed files with 305 additions and 313 deletions
				
			
		|  | @ -7,8 +7,8 @@ | |||
| #include <memory> | ||||
| 
 | ||||
| #include <QObject> | ||||
| #include <QMapLibreGL/QMapLibreGL> | ||||
| #include <glm/gtc/type_ptr.hpp> | ||||
| #include <qmaplibre.hpp> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
|  | @ -27,9 +27,9 @@ public: | |||
|    explicit GenericLayer(std::shared_ptr<MapContext> context); | ||||
|    virtual ~GenericLayer(); | ||||
| 
 | ||||
|    virtual void Initialize()                                            = 0; | ||||
|    virtual void Render(const QMapLibreGL::CustomLayerRenderParameters&) = 0; | ||||
|    virtual void Deinitialize()                                          = 0; | ||||
|    virtual void Initialize()                                          = 0; | ||||
|    virtual void Render(const QMapLibre::CustomLayerRenderParameters&) = 0; | ||||
|    virtual void Deinitialize()                                        = 0; | ||||
| 
 | ||||
|    /**
 | ||||
|     * @brief Run mouse picking on the layer. | ||||
|  | @ -44,12 +44,12 @@ public: | |||
|     * @return true if a draw item was picked, otherwise false | ||||
|     */ | ||||
|    virtual bool | ||||
|    RunMousePicking(const QMapLibreGL::CustomLayerRenderParameters& params, | ||||
|                    const QPointF&                        mouseLocalPos, | ||||
|                    const QPointF&                        mouseGlobalPos, | ||||
|                    const glm::vec2&                      mouseCoords, | ||||
|                    const common::Coordinate&             mouseGeoCoords, | ||||
|                    std::shared_ptr<types::EventHandler>& eventHandler); | ||||
|    RunMousePicking(const QMapLibre::CustomLayerRenderParameters& params, | ||||
|                    const QPointF&                                mouseLocalPos, | ||||
|                    const QPointF&                                mouseGlobalPos, | ||||
|                    const glm::vec2&                              mouseCoords, | ||||
|                    const common::Coordinate&                     mouseGeoCoords, | ||||
|                    std::shared_ptr<types::EventHandler>&         eventHandler); | ||||
| 
 | ||||
| signals: | ||||
|    void NeedsRendering(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat