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

Method SetAssemblyName

Filters/Sources/vtkSelectionSource.cxx:673–690  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

671
672//------------------------------------------------------------------------------
673void 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//------------------------------------------------------------------------------
693const char* vtkSelectionSource::GetAssemblyName(unsigned int nodeId)

Callers 8

vtkIOSSWriterMethod · 0.80
~vtkIOSSWriterMethod · 0.80
SetAssemblyNameFunction · 0.80
TestPDCFunction · 0.80
TestAMRFunction · 0.80
TestPDCFunction · 0.80
TestAMRFunction · 0.80

Calls 3

sizeMethod · 0.45
emptyMethod · 0.45
ModifiedMethod · 0.45

Tested by 4

TestPDCFunction · 0.64
TestAMRFunction · 0.64
TestPDCFunction · 0.64
TestAMRFunction · 0.64