Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Draw RenderedImage

OK, thank you very much!!!


From:  Jesse Eichar <jeichar@xxxxxxxxxxxxxxx>
Reply-To:  User-friendly Desktop Internet GIS <udig-devel@xxxxxxxxxxxxxxxxxxxxx>
To:  User-friendly Desktop Internet GIS <udig-devel@xxxxxxxxxxxxxxxxxxxxx>
Subject:  Re: [udig-devel] Draw RenderedImage
Date:  Tue, 10 Jan 2006 08:48:13 -0800
>RenderUpdate and renderDone both have the side effect of causing the
>default mapdisplay to update.  So when rendering is actively taking
>place, renderUpdate is called to notify the map display to update.  
>When render done is called to update the mapdisplay when no
>rendering is required.  For example a layer's visibility is changed.
>  I'm not surprised that renderUpdate is called 3 times but I'm not
>so sure why renderDone is called twice.  I'd have to check that.  
>Could be a bug.
>
>Jesse
>
>Iñigo Telleria Elola wrote:
>
>>Thank you very much for your plugin!!!!
>>
>>But finally I'm going to use AWT, because I need to use the Java3D
>>api and I think Java3D can't work on SWT. Even so, thanks for your
>>plugin, surely I will need next time.
>>
>>Now I have obtained the frame shows the map which is opened in
>>uDig. The plugin updates automatically if I add a layer, or I make
>>zoom, ... To achieve this I have used:
>>
>>  - ContextModelListenerAdapter: it notifies me if a layer is
>>removed
>>
>>  - RenderListenerAdapter: it notifies if the user has zoomed, or
>>move the map, ...
>>
>>I don't know if these are the most suitable classes, but it works!!
>>
>>I have a question: If I debug the plugin, I don't understand why
>>RenderListenerAdapter.renderUpdate is called 3 times and
>>RenderListenerAdapter.renderDone 2 times when I have made only one
>>operation, for example Zoom-In. Maybe I haven't explain correctly,
>>but I don't know how to explain.
>>
>>
>>
>>    
>>------------------------------------------------------------------------
>>     From:  /Jesse Eichar <jeichar@xxxxxxxxxxxxxxx>/
>>     Reply-To:  /User-friendly Desktop Internet GIS
>>     <udig-devel@xxxxxxxxxxxxxxxxxxxxx>/
>>     To:  /User-friendly Desktop Internet GIS
>>     <udig-devel@xxxxxxxxxxxxxxxxxxxxx>/
>>     Subject:  /Re: [udig-devel] Draw RenderedImage/
>>     Date:  /Mon, 09 Jan 2006 11:06:44 -0800/
>>     >Hi,
>>     >
>>     >I've attached a plugin that opens a dialog showing the
>>currently
>>     >active map.  I hope this helps you.
>>     >
>>     >Jesse
>>     >
>>     >Iñigo Telleria Elola wrote:
>>     >
>>     >>I want to draw an RenderedImage (obtained from udig's map)
>>in a SWT
>>     >>shell. I have tried differents possibilties:
>>     >>  1) with GC, but this object doesn't have any method to
>>draw
>>     >>RenderedImage (only Image).
>>     >>2) with SWTGraphics, It doesn't work.
>>     >>3) with Graphics2D, I don't know how to use.
>>     >>  anybody has an idea how I can achieve?
>>     >>  Thanks in advance
>>     >>
>>    
>> >>------------------------------------------------------------------------
>>     >>
>>     >>_______________________________________________
>>     >>User-friendly Desktop Internet GIS (uDig)
>>     >>http://udig.refractions.net
>>     >>http://lists.refractions.net/mailman/listinfo/udig-devel
>>     >>
>>     >>
>>     >
>>
>>     ><< swtDialog.zip >>
>>
>>     >_______________________________________________
>>     >User-friendly Desktop Internet GIS (uDig)
>>     >http://udig.refractions.net
>>     >http://lists.refractions.net/mailman/listinfo/udig-devel
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>User-friendly Desktop Internet GIS (uDig)
>>http://udig.refractions.net
>>http://lists.refractions.net/mailman/listinfo/udig-devel
>>
>>
>
>_______________________________________________
>User-friendly Desktop Internet GIS (uDig)
>http://udig.refractions.net
>http://lists.refractions.net/mailman/listinfo/udig-devel

Back to the top