private ExtensionTracker tracker;\r
\r
private List<AppearanceProviderExtension> extensions = new ArrayList<AppearanceProviderExtension>();\r
- private Map<Resource,AppearanceProvider> providers;\r
+ //private Map<Resource,AppearanceProvider> providers;\r
\r
private AppearanceProviderRegistry() {\r
- providers = new HashMap<Resource,AppearanceProvider>();\r
+ //providers = new HashMap<Resource,AppearanceProvider>();\r
\r
tracker = new ExtensionTracker();\r
\r
}\r
}\r
\r
- private Map<Resource,AppearanceProvider> getProviderMap() {\r
- return providers;\r
- }\r
+// private Map<Resource,AppearanceProvider> getProviderMap() {\r
+// return providers;\r
+// }\r
\r
public static Collection<RenderState> getAppearance(IEntity thing, Renderer renderer) {\r
AppearanceProvider provider = getAppearanceProvider(thing);\r
}\r
\r
public static AppearanceProvider getAppearanceProvider(IEntity thing) {\r
- Collection<IEntity> types = thing.getRelatedObjects(thing.getGraph().getBuiltins().InstanceOf);\r
+ //Collection<IEntity> types = thing.getRelatedObjects(thing.getGraph().getBuiltins().InstanceOf);\r
\r
//Resource types[] = OntologyUtils.getTypes(resource);\r
- for (IEntity t : types) {\r
- AppearanceProvider provider = getInstance().getProviderMap().get(t.getResource());\r
- if (provider == null) {\r
+// for (IEntity t : types) {\r
+ //AppearanceProvider provider = getInstance().getProviderMap().get(t.getResource());\r
+ //if (provider == null) {\r
//for (Extension<GeometryProvider> e : getInstance().getExtensions()) {\r
for (AppearanceProviderExtension e : getInstance().getExtensions()) {\r
if (e.provider.canHandle(thing)) {\r
- getInstance().getProviderMap().put(t.getResource(), e.provider);\r
+ //getInstance().getProviderMap().put(t.getResource(), e.provider);\r
return e.provider;\r
}\r
}\r
\r
- } else {\r
- return provider;\r
- }\r
- }\r
+// } else {\r
+// return provider;\r
+// }\r
+// }\r
\r
return null;\r
}\r