World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Feature Discussion

Feature Discussion Education, discussion and proposals of WWJ features

Reply
 
Thread Tools Display Modes
Old 03-28-2008, 09:25 PM   #1
Joao Fonseca
Junior Member
 
Join Date: Oct 2007
Posts: 9
Joao Fonseca is on a distinguished road
Default RenderableLayer - use a Set instead of ArrayList?

Hi,

Shouldn't RenderableLayer use a Set<Renderable> to hold all its renderables, instead of an ArrayList?

The benefit would be that adding the same Renderable many times wouldn't cause multiple instances to be kept in memory.

With the ArrayList, we have to keep track of which Renderable have been added to the layer, to prevent multiple instances.

In my case, I have shapes that are added or removed in response to certain events. When an "ADD" event arrives, I have to check if the shape is already there.

Regards,
Joao Fonseca
Joao Fonseca 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
ConcurrentModificationException in RenderableLayer jjones Development Help 1 02-21-2008 12:45 PM
Slight bug in RenderableLayer nludkin Development Help 3 01-25-2008 04:47 PM
Refactor RenderableLayer? zerobarrier Development Help 3 01-16-2008 07:09 AM
TerrainProfileLayer set Lat/Long end points shawngano Development Help 12 11-14-2007 09:08 PM
Under layer Properties "RefreshTimer" How can you set this in XML? AlexG Add-ons & Scripts 6 04-27-2007 10:55 PM


All times are GMT +1. The time now is 06:36 AM.


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