public TextureData getWaterTextureData() { String keyStr = textureLibraryStorageService.getKey(TextureLibraryKey.WATER, (String) null); return textureLibraryStorageService.getTextureDefault(keyStr); }
/** * Gets facade texture. * * @param facadeMaterialName facade material name * @param textureLibraryStorageService texture library storage service * @return facade texture data */ public static TextureData parseFacadeTexture(String facadeMaterialName, TextureLibraryStorageService textureLibraryStorageService) { String facadeMaterial = facadeMaterialName; if (!StringUtil.isBlankOrNull(facadeMaterial)) { String textureKey = textureLibraryStorageService.getKey(TextureLibraryKey.BUILDING_FACADE, facadeMaterial); return textureLibraryStorageService.getTextureDefault(textureKey); } return null; }
/** * Gets wall texture data. * * @param wallType * wall type * @param wallColor * wall color * @param osmPrimitive * primitive * @param TextureLibraryStorageService * texture library service * @return texture data */ public static TextureData takeWallTexture(String wallType, Color wallColor, OsmPrimitive osmPrimitive, TextureLibraryStorageService TextureLibraryStorageService) { String textureKey = TextureLibraryStorageService.getKey(TextureLibraryKey.BARRIER_WALL, wallType); TextureData textureData = TextureLibraryStorageService.getTextureDefault(textureKey); if (!Boolean.FALSE.equals(textureData.isColorable()) && wallColor != null) { return OsmBuildingElementsTextureMenager.colorableTextureData(textureData); } return textureData; }
String textureKey = TextureLibraryStorageService.getKey(TextureLibraryKey.BARRIER_FENCE, fenceType); return TextureLibraryStorageService.getTextureDefault(textureKey);
String keyStr = this.textureLibraryStorageService.getKey(key, pTextureFindCriteria.getTypeName()/*, pTextureFindCriteria.getSubTypeName()*/);