/** * @param pEnable * enable filter */ private void setTextureFilter(boolean pEnable) { if (textureCacheService instanceof TextureCacheServiceImpl) { ((TextureCacheServiceImpl) textureCacheService).setTextureFilter(pEnable); textureCacheService.clear(); } else { throw new RuntimeException("unsupported textureCacheService"); } } }
@Override protected void onOpenWindow() { dataConsumersMonitor.addDataConsumer(); /* * OpenGl context is stored per window, if we open new one we need to * clean up old textures. */ textureCacheService.clear(); /* * Data updates ware turn off after window closes. We need to rebuild * whole dataset. */ dataEventListener.add(new NewDataEvent()); }
@Override public void actionPerformed(ActionEvent pE) { modelsLibraryService.clear(); textureLibraryStorageService.reload(); textureCacheService.clear(); modelCacheService.clear(); modelsLibraryLayer.cleanUp(); } }
this.textureCacheService.clear(); this.metadataCacheService.clear(); this.textureLibraryStorageService.reload();