我使用 Doxygen 和 Dot 来创建 Java 项目的 UML 图。当我运行 Doxygen 时,它会创建许多特定类的 .png uml 文件,而不是一个“大”UML 图表,其中显示了所有类 + 成员函数等。
有没有可能产生这个?如果是,如何?
要为所有类创建一个大图,您需要在Doxyfile 中启用GRAPHICAL_HIERARCHY
和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
Run Code Online (Sandbox Code Playgroud)
此外,还有
# 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
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1887 次 |
最近记录: |