------------------------------------------------------------------------------
| 671 | |
| 672 | //------------------------------------------------------------------------------ |
| 673 | void vtkSelectionSource::SetAssemblyName(unsigned int nodeId, const char* name) |
| 674 | { |
| 675 | if (nodeId >= this->NodesInfo.size()) |
| 676 | { |
| 677 | vtkErrorMacro("Invalid node id: " << nodeId); |
| 678 | return; |
| 679 | } |
| 680 | const std::string safeAssemblyName = name ? name : ""; |
| 681 | if (safeAssemblyName.empty()) |
| 682 | { |
| 683 | return; |
| 684 | } |
| 685 | if (this->NodesInfo[nodeId]->AssemblyName != safeAssemblyName) |
| 686 | { |
| 687 | this->NodesInfo[nodeId]->AssemblyName = safeAssemblyName; |
| 688 | this->Modified(); |
| 689 | } |
| 690 | } |
| 691 | |
| 692 | //------------------------------------------------------------------------------ |
| 693 | const char* vtkSelectionSource::GetAssemblyName(unsigned int nodeId) |