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

Method FindFirstNodeWithName

Common/DataModel/vtkDataAssembly.cxx:1099–1113  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1097
1098//------------------------------------------------------------------------------
1099int vtkDataAssembly::FindFirstNodeWithName(const char* name, int traversal_order) const
1100{
1101 vtkNew<FindNodesWithNameVisitor> visitor;
1102 visitor->FindFirstMatch = true;
1103 visitor->Name = name;
1104 try
1105 {
1106 this->Visit(visitor, traversal_order);
1107 }
1108 catch (FindNodesWithNameVisitor::interrupt&)
1109 {
1110 // catch the interrupt exception.
1111 }
1112 return !visitor->Matches.empty() ? visitor->Matches.front() : -1;
1113}
1114
1115//------------------------------------------------------------------------------
1116std::vector<int> vtkDataAssembly::FindNodesWithName(const char* name, int traversal_order) const

Callers 7

RequestDataMethod · 0.80
TestExampleFileFunction · 0.80
TestFDSReader3Function · 0.80
TestFDSReader2Function · 0.80
getDataElementIndexFunction · 0.80
RequestDataMethod · 0.80
TestDataAssemblyFunction · 0.80

Calls 3

VisitMethod · 0.95
emptyMethod · 0.45
frontMethod · 0.45

Tested by 5

TestExampleFileFunction · 0.64
TestFDSReader3Function · 0.64
TestFDSReader2Function · 0.64
getDataElementIndexFunction · 0.64
TestDataAssemblyFunction · 0.64