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

Method SetGraph

Infovis/Core/vtkMutableGraphHelper.cxx:38–47  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

36
37//------------------------------------------------------------------------------
38void vtkMutableGraphHelper::SetGraph(vtkGraph* g)
39{
40 this->SetInternalGraph(g);
41 this->DirectedGraph = vtkMutableDirectedGraph::SafeDownCast(this->InternalGraph);
42 this->UndirectedGraph = vtkMutableUndirectedGraph::SafeDownCast(this->InternalGraph);
43 if (!this->DirectedGraph && !this->UndirectedGraph)
44 {
45 vtkErrorMacro("The graph must be mutable.");
46 }
47}
48
49//------------------------------------------------------------------------------
50vtkGraph* vtkMutableGraphHelper::GetGraph()

Callers 11

UpdateLayoutMethod · 0.45
~vtkGraphItemMethod · 0.45
mainFunction · 0.45
PipelineToDotMethod · 0.45
RequestDataMethod · 0.45
RequestDataMethod · 0.45
RequestDataMethod · 0.45
CreateMethod · 0.45

Calls

no outgoing calls

Tested by 3