MaterialEditor: improve the name of the textures when writing / reading buffer and rawData
When we load from a buffer written by vtkOSPRayMaterialLibrary::WriteBuffer, all the textures are stored in a rawData format (using a vtkXMLImageWriter). We should add an entry in the json file to store the name of a texture, independantly of the filename, to be able to know a texture name even if its data is raw-stored
For example, instead of :
"textures" :
{
"map_edgeColor" : "/path/to/filename.png" (or XML value directly here in case of a rawData)
},
Add a "name" entry:
"textures" :
{
"map_edgeColor" :
{
"name": "NameOfTheTexture",
"data": "/path/to/filename.png" (or XML value directly here in case of a rawData)
}
},