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

Method GetParent

Common/DataModel/vtkTree.cxx:40–50  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

38
39//------------------------------------------------------------------------------
40vtkIdType vtkTree::GetParent(vtkIdType v)
41{
42 const vtkInEdgeType* edges;
43 vtkIdType nedges;
44 this->GetInEdges(v, edges, nedges);
45 if (nedges > 0)
46 {
47 return edges[0].Source;
48 }
49 return -1;
50}
51
52//------------------------------------------------------------------------------
53vtkEdgeType vtkTree::GetParentEdge(vtkIdType v)

Callers 15

GetLevelMethod · 0.95
PopGraphicsStateMethod · 0.45
ReadNewickTreeMethod · 0.45
ReadXMLDataMethod · 0.45
PropagateBranchColorMethod · 0.45
WriteVertexMethod · 0.45
TestNewickTreeWriterFunction · 0.45
CompareDataFunction · 0.45
PaintMethod · 0.45
IsOverHandleMethod · 0.45

Calls 1

GetInEdgesMethod · 0.45

Tested by 3

TestNewickTreeWriterFunction · 0.36
CompareDataFunction · 0.36
TestGroupLeafVerticesFunction · 0.36