Thursday, June 7, 2007

Loading WW layersets structure into WWJ

Following on my previous steps at loading World Wind existing layersets into WWJ, i moved one step further with more generic WWConfigLoader and LayerSet classes. Together they can read whole layersets hierarchy from WW XML config files and produce the appropriate objects to feed a JTree.


Download WWJ_WWConfigLoader_01.zip (50k) and follow instructions in the readme.txt.

In addition, the new LayerSet object can compute the list of 'active' layers to set the current Model LayerList each time a layer state changes in the tree.

Selection and deselection of layers in the JTree is not done yet. Some checkboxes are needed here... this is a work in progress and some part of this code may become obsolete with future release of the WWJ SDK.

See this thread in the WWJ forum for discussion.

No comments: