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 02-22-2008, 09:42 AM   #1
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
James_In_Utah
Default Parsing XML and reloading

Hi,
I'm loading a set of image layers with an XML file in config\earth. Is there some way to add these layers "on the fly"? It would be great if there was a way to dynamically add and remove these layers.

Also, I have three child layers, which should be "ShowOnlyOneLayer", and each child layer has bout 6 addition child layers under them that should also be "ShowOnlyOneLayer", and each of these layers can have from 1 to 3 actual images under them which should all be show at the same time. The problem is, at the first child layer, if I move the selection using Layer Manager from one child layer to the next, all of the sub layers get unchecked. When they first load, I set them all to true, but when I change the top child layer from one to the next, everything under the newly selected layer gets unchecked. I didn't see any logic in configurationloader.cs that should do that. I know I can right click on the layer and pick "check all children", but I don't want to have to explain that one to our users.
Thanks,
James

Last edited by James_In_Utah; 02-22-2008 at 10:46 AM.
James_In_Utah is offline   Reply With Quote
Old 02-22-2008, 10:16 AM   #2
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
James_In_Utah
Default

Well, I found the code that is unchecking all of the sub layer childeren. It is:
m_renderableObject.ParentList.TurnOffAll Children();
at line 930 in Menu.cs in PluginSDK. Apparently there is no way to only turn off all the entries at the current layer, and then reselect the one that was just picked. So the solution is to turn off everything from the current layer down, then turn on the selected item. I guess I won't be using this. It's better to not use "ShowOnlyOneLayer" and just train the use to not select more than one at a time. If anyone can think of a way to leave the sublayers checked, when the selection is moved from one to the next in a "ShowOnlyOneLayer" layer, please let me know.
Thanks,
James

James_In_Utah 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
Reloading an XML coloradokid WorldWind XML 3 12-03-2007 09:28 PM
Reloading xml files vasco Developers' Corner 1 01-03-2007 05:07 PM


All times are GMT +1. The time now is 11:41 PM.


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