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

Method GetFirstNodeByPath

Common/DataModel/vtkDataAssembly.cxx:704–709  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

702
703//------------------------------------------------------------------------------
704int vtkDataAssembly::GetFirstNodeByPath(const char* path) const
705{
706 const auto& internals = (*this->Internals);
707 auto node = internals.FindNode(vtkDataAssembly::GetRootNode()).first_element_by_path(path);
708 return node ? node.attribute("id").as_int() : -1;
709}
710
711//------------------------------------------------------------------------------
712int vtkDataAssembly::FindOrCreateNodeAtPath(const char* path, int parent)

Callers 1

GetDatasetIndicesFunction · 0.80

Calls 5

GetRootNodeFunction · 0.85
first_element_by_pathMethod · 0.80
FindNodeMethod · 0.80
as_intMethod · 0.80
attributeMethod · 0.80

Tested by

no test coverage detected