------------------------------------------------------------------------------
| 654 | |
| 655 | //------------------------------------------------------------------------------ |
| 656 | void vtkDataAssembly::SetNodeName(int id, const char* name) |
| 657 | { |
| 658 | if (!vtkDataAssembly::IsNodeNameValid(name)) |
| 659 | { |
| 660 | vtkErrorMacro("Invalid name specified '" << (name ? name : "(nullptr)") << "'."); |
| 661 | return; |
| 662 | } |
| 663 | |
| 664 | auto& internals = (*this->Internals); |
| 665 | if (auto node = internals.FindNode(id)) |
| 666 | { |
| 667 | node.set_name(name); |
| 668 | this->Modified(); |
| 669 | } |
| 670 | else |
| 671 | { |
| 672 | vtkErrorMacro("Invalid id='" << id << "'"); |
| 673 | } |
| 674 | } |
| 675 | |
| 676 | //------------------------------------------------------------------------------ |
| 677 | const char* vtkDataAssembly::GetNodeName(int id) const |