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

Function main

Utilities/Maintenance/VisualizeModuleDependencies.py:306–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304 view.GetInteractor().Start()
305
306def main():
307 vtkSourceDir, moduleList, moduleTreeDepth = GetProgramParameters()
308
309 # Parse the module files making a dictionary of each module and its
310 # dependencies or what it implements.
311 moduleDepencencies = dict()
312 moduleFiles = FindModuleFiles(vtkSourceDir + "/")
313 for fname in moduleFiles:
314 m = ParseModuleFile(fname)
315 moduleDepencencies[m[0]] = m[1]
316
317 # Generate a graph from the module list.
318 graph = GenerateGraph(moduleList, moduleDepencencies, moduleTreeDepth)
319
320 # Now build a vtk graph.
321 g = GenerateVTKGraph(graph)
322
323 # Display it.
324 DisplayGraph(g)
325
326if __name__ == '__main__':
327 main()

Callers 1

Calls 6

FindModuleFilesFunction · 0.85
ParseModuleFileFunction · 0.85
GenerateGraphFunction · 0.85
GenerateVTKGraphFunction · 0.85
DisplayGraphFunction · 0.85
GetProgramParametersFunction · 0.70

Tested by

no test coverage detected