World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Symbology and Tactical Graphics

Reply
 
Thread Tools Display Modes
Old 07-23-2012, 10:09 PM   #1
sapello
Guest
 
Posts: n/a
Default Switching loaded icons for a symbol at runtime

I am currently trying to make an overloaded version of MilStd2525TacticalSymbol which allows the user to switch between the standard symbol set and non-military user friendly icons. With what I have now I can load an alternate icon (I also overload MilStd2525IconRetriever) when a symbol for a particular SIDC is first loaded. However, any subsequent icons generated from the same SIDC will have that same icon regardless of the parameters passed to the overloaded constructor. It seems that the system keeps some cache mapping SIDC's to previously loaded icons. However, I have been unable to locate this cache. Does anyone know where this cache exists and how to clear it so a new icon is loaded rather than referencing the previously loaded one? I read a related thread that suggested overloading the assembleIconRetrieverParameters but this did not seem to work for the icons.

Thanks in advance for any help.
  Reply With Quote
Old 08-02-2012, 05:37 PM   #2
pabercrombie
WW Dev. Team
 
Join Date: Sep 2010
Location: Boston, MA, USA
Posts: 325
pabercrombie is on a distinguished road
Default

You need to override assembleIconRetrieverParameters and create a different parameter list when you want the alternate icon (you could just add an "Alternate" = true key/value pair to the list). The icon loader looks at the SIDC, icon retriever, and parameter list to determine if it should fetch a new icon or reuse the one that it already has.
pabercrombie is offline   Reply With Quote
Reply

Tags
cache, icon, milstd2525


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
Bug with BasicDragger? scottseeker Development Help 7 01-04-2011 09:39 PM
Plugin: My favorite Icons - Add Icons/Favorite canosso Add-ons & Scripts 26 03-02-2010 03:06 AM
My Favorite Icons plug-in/add-on Brynn4 Technical Support 0 05-07-2008 03:07 AM
Symbol Sets for Icons nicholeuf Feature Discussion 5 05-22-2007 05:01 PM
Icons and Icon Updated Please Test! nigel_ht Developers' Corner 3 05-07-2007 08:33 PM


All times are GMT +1. The time now is 08:59 AM.


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