World Wind Forums

Go Back   World Wind Forums > WorldWind .Net Development > Developers' Corner

Developers' Corner General World Wind development.

Reply
 
Thread Tools Display Modes
Old 05-07-2007, 07:15 AM   #1
nigel_ht
Senior Member
 
Join Date: Aug 2005
Posts: 317
Default Icons and Icon Updated Please Test!

I refactored Icons and Icon so that Icon can be subclassed in trunk.

Most of the functions performed in Icons has been moved down into Icon while preserving the ability to batch render within one Sprite.Begin/End block.

Calling Icon.Render should work but much more slowly. Worked in my test rig.

I believe we can create a KMLIcon from Icon and move all the KMLIcon specific code there...I put in enough hooks that we can modify most pieces of the render.

We can also create a "fast" icon that skips a lot of the new features to render as quickly as it can.

Please verify that I didn't break anything. I tested with the EarthQuake plugin so I didn't test:

Moving Icons
Icons that get their image from over the net
Icons with an overlay (key)
Icons that are KMLIcons
Icons that update themselves after some time period

Thanks!

Nigel
nigel_ht is offline   Reply With Quote
Old 05-07-2007, 05:36 PM   #2
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,446
Default

Where are your changes?
James_In_Utah is offline   Reply With Quote
Old 05-07-2007, 05:40 PM   #3
m_k
Bored Explorer
 
m_k's Avatar
 
Join Date: Nov 2004
Location: Warsaw, Poland
Posts: 1,737
Default

In the SVN (/trunk) rev. 3798
__________________
Hot stuff: FAQ, forum search, DirectX, .NET, Video Card Compatibility list
m_k is online now   Reply With Quote
Old 05-07-2007, 08:33 PM   #4
nigel_ht
Senior Member
 
Join Date: Aug 2005
Posts: 317
Default

Updated to have pre and post render calls to Icon so you can have specialized behavior even if the icon itself doesn't render (for example overlays).

Also added TrackIcon as an example of how to extend the Icon class.
nigel_ht is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin: My favorite Icons - Add Icons/Favorite canosso Add-ons & Scripts 26 03-02-2010 04:06 AM
WW1.3.2-Plugin: Layer Edit canosso Add-ons & Scripts 21 02-27-2010 05:37 AM
Remove icon in object Icons brasio Developers' Corner 1 02-14-2007 02:31 AM
Adding RIght Mouse Click to Icons nigel_ht Developers' Corner 0 04-12-2006 03:39 PM
add Urban Area mode as an icon on the toolbar! Phil T Add-ons & Scripts 10 02-25-2005 05:48 PM


All times are GMT +1. The time now is 04:38 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.