使用 doxygen 从源代码创建一个大的 UML 图 [英] Create one big UML diagram from source with doxygen

查看:65
本文介绍了使用 doxygen 从源代码创建一个大的 UML 图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Doxygen 和 Dot 来创建 Java 项目的 UML 图.当我运行 Doxygen 时,它会创建许多特定类的 .png uml 文件,但不是一个大"UML 图表,其中显示了所有类 + 成员函数等.

I am using Doxygen with Dot in order to create an UML diagram of a Java project. When I run Doxygen it creates a lot of .png uml files of the specifiy classes but not one "big" UML diagramm where all classes + member functions etc. are shown.

可以生成这个吗?如果是,如何?

Is it possible to generate this? And if yes, how?

推荐答案

要为所有类创建一个大图表,您需要在 Doxyfile 中启用GRAPHICAL_HIERARCHYHAVE_DOT.

To have one big diagram for all classes, you need in your Doxyfile enableGRAPHICAL_HIERARCHY and HAVE_DOT.

# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is 
# available from the path. This tool is part of Graphviz, a graph visualization 
# toolkit from AT&T and Lucent Bell Labs. The other options in this section 
# have no effect if this option is set to NO (the default)

HAVE_DOT               = YES

# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen 
# will generate a graphical hierarchy of all classes instead of a textual one.

GRAPHICAL_HIERARCHY    = YES

另外还有

# If the UML_LOOK tag is set to YES doxygen will generate inheritance and 
# collaboration diagrams in a style similar to the OMG's Unified Modeling 
# Language.

UML_LOOK               = YES

这篇关于使用 doxygen 从源代码创建一个大的 UML 图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆