Hi Jody,

I've started work on it (local sources only at the moment) and it's
going ok so far.

The map pane has a separate BufferedImage for each Layer (not
bothering with VolatileImage at this stage because I don't think it's
worth the trouble). Layers other than DirectLayer instances are sent
to RenderingExecutor which farms out each rendering task on its own
thread. Not up to testing yet so I haven't determined whether separate
renderers are required as per your question on IRC the other day.
DirectLayers draw themselves into their respective images. Then the
whole lot get sandwiched for display.

A call to JMapPane.getBaseImage() will return a single, composited (if
that's a word) image. Thinking about dropping that method name and
having getImage() plus getImage(Layer) / getImage(int index) methods.

Haven't worked out the best scheme for the RenderingExecutor and
MapPane events yet.

Michael

On 10 August 2011 10:01, Jody Garnett <[email protected]> wrote:
> Exciting :-)
> --
> Jody Garnett
>
> On Friday, 5 August 2011 at 7:31 PM, Michael Bedward wrote:
>
> Hi Sergey,
>
> I heard once that there are plans to inroduce DirectDrawLayer (or like),
> i.e. layer allowing drawing of custom objects?
>
> There is some progress towards this (finally) as part of the current
> rewriting of much of the swing module plus Jody's recent addition of
> new Layer classes in the render module.
>
> There is now a minimal DirectLayer class...
> http://svn.osgeo.org/geotools/trunk/modules/library/render/src/main/java/org/geotools/map/DirectLayer.java
>
> This subclass illustrates one simple use of it (although this one only
> uses screen coordinates)...
> http://svn.osgeo.org/geotools/trunk/modules/library/render/src/main/java/org/geotools/map/direct/MessageDirectLayer.java
>
> Next, I am adding an option to JMapPane to use multiple backing images...
> http://jira.codehaus.org/browse/GEOT-3746
>
> Putting these two things together the idea is to draw the feature data
> into one (or more) backing image while custom graphics are drawn by a
> DirectLayer sub-class into a separate backing image. The latter image
> is then displayed over the feature data image(s).
>
> I will be working on this next week. If you could help with data or
> code for testing that would be great.
>
> Michael
>
> PS: here is a link to the Jira issues for the swing module so you can
> see what's been happening...
>
> http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=true&jqlQuery=project+%3D+%22GEOT%22+and+component+%3D+%22swing%22+order+by+created
>
> ------------------------------------------------------------------------------
> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
> The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos & much more. Register early & save!
> http://p.sf.net/sfu/rim-blackberry-1
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to