()
| 304 | view.GetInteractor().Start() |
| 305 | |
| 306 | def 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 | |
| 326 | if __name__ == '__main__': |
| 327 | main() |
no test coverage detected