| 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); |
| 945 | LogAssert(name != value); |
| 946 | auto current = this->voxelAliases.find(name); |
| 947 | if (current != this->voxelAliases.end() && current->second != value) |
| 948 | { |
| 949 | LogWarning("Replacing alias \"%s\" - was \"%s\" now \"%s\"", name, current->second, value); |
| 950 | } |
| 951 | this->voxelAliases[name] = value; |
| 952 | } |
| 953 | |
| 954 | void DataImpl::readAliases() |
| 955 | { |