| 929 | this->imageSetAliases[name] = value; |
| 930 | } |
| 931 | void DataImpl::addPaletteAlias(const UString &name, const UString &value) |
| 932 | { |
| 933 | std::lock_guard<std::recursive_mutex> l(this->paletteCacheLock); |
| 934 | LogAssert(name != value); |
| 935 | auto current = this->paletteAliases.find(name); |
| 936 | if (current != this->paletteAliases.end() && current->second != value) |
| 937 | { |
| 938 | LogWarning("Replacing alias \"%s\" - was \"%s\" now \"%s\"", name, current->second, value); |
| 939 | } |
| 940 | this->paletteAliases[name] = value; |
| 941 | } |
| 942 | void DataImpl::addVoxelSliceAlias(const UString &name, const UString &value) |
| 943 | { |
| 944 | std::lock_guard<std::recursive_mutex> l(this->voxelCacheLock); |