[Marble-devel] Review Request: Support adding paint layers internally

Dennis Nienhüser earthwings at gentoo.org
Sun Feb 21 10:07:24 CET 2010



> On 2010-02-20 10:03:49, Michael Hansen wrote:
> > I was also looking for a way to paint on different layers so I wrote this patch some time ago: http://reviewboard.kde.org/r/2227/
> > But I think your approach is much easier to work with.
> > 
> > Michael
> 
> Torsten Rahn wrote:
>     Aren't those separate issues? I think your patch would make sense even with Dennis' patch included. Didn't your patch end up in trunk? :-/ I think it should have gone into trunk.

For painting it should be equal. If adding a RenderPlugin in memory affects the user interface (user can enable/disable it for example), then these are separate issues indeed. From looking at Michaels patch I don't think that would happen -- correct me if I'm mistaken. It should work when passing the RenderPlugin instance to the PluginManager instead of the LayerManager though and doing it early enough before the UI is created.


- Dennis


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/3017/#review4223
-----------------------------------------------------------


On 2010-02-19 20:20:45, Dennis Nienhüser wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/3017/
> -----------------------------------------------------------
> 
> (Updated 2010-02-19 20:20:45)
> 
> 
> Review request for marble.
> 
> 
> Summary
> -------
> 
> Currently RenderPlugins can add layers which are then rendered according to their preference. This patch makes it possible to also create such layers internally (i.e. one does not need to create a plugin to create a paint layer). This is useful as a more powerful customPaint() alternative for people using MarbleWidget in their application (benefits: no need to derive from MarbleWidget, convenient access to ViewportParams). Additionally I'm using it to create the layer showing a route between two points (patch for that coming soon).
> 
> I wasn't sure about the copyright header for the new class. Any hints?
> 
> 
> Diffs
> -----
> 
>   /src/lib/LayerInterface.h PRE-CREATION 
>   /trunk/KDE/kdeedu/marble/src/lib/LayerManager.h 1092331 
>   /trunk/KDE/kdeedu/marble/src/lib/LayerManager.cpp 1092331 
>   /trunk/KDE/kdeedu/marble/src/lib/MarbleModel.h 1092331 
>   /trunk/KDE/kdeedu/marble/src/lib/MarbleModel.cpp 1092331 
>   /trunk/KDE/kdeedu/marble/src/lib/RenderPluginInterface.h 1092331 
> 
> Diff: http://reviewboard.kde.org/r/3017/diff
> 
> 
> Testing
> -------
> 
> Patch is based on my local branch where I'm using it to add an interactive layer for routing
> 
> 
> Thanks,
> 
> Dennis
> 
>



More information about the Marble-devel mailing list