| 389 | } |
| 390 | |
| 391 | bool vtkStatisticalModel::SetTableName(int type, int index, const std::string& name) |
| 392 | { |
| 393 | if (auto* table = this->GetTable(type, index)) |
| 394 | { |
| 395 | if (auto* info = table->GetInformation()) |
| 396 | { |
| 397 | std::string existingName = info->Get(vtkCompositeDataSet::NAME()); |
| 398 | if (existingName != name) |
| 399 | { |
| 400 | info->Set(vtkCompositeDataSet::NAME(), name.c_str()); |
| 401 | this->Modified(); |
| 402 | return true; |
| 403 | } |
| 404 | } |
| 405 | } |
| 406 | return false; |
| 407 | } |
| 408 | |
| 409 | VTK_ABI_NAMESPACE_END |