MCPcopy Create free account
hub / github.com/Kitware/VTK / SetNodeName

Method SetNodeName

Common/DataModel/vtkDataAssembly.cxx:656–674  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

654
655//------------------------------------------------------------------------------
656void 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//------------------------------------------------------------------------------
677const char* vtkDataAssembly::GetNodeName(int id) const

Callers 4

RequestInformationMethod · 0.45
RequestDataMethod · 0.45
SetRootNodeNameFunction · 0.45
TestDataAssemblyFunction · 0.45

Calls 3

FindNodeMethod · 0.80
set_nameMethod · 0.80
ModifiedMethod · 0.45

Tested by 1

TestDataAssemblyFunction · 0.36