Flip doxigenic charts from top to bottom left-right

The doxygen graph for “enable” and “on” is created with a nesting depth increasing from top to bottom (using 1.8.5).

Since we have mostly small graphs with many nodes, this leads to very wide graphs with ugly horizontal scrollbars. Is there a way to teach doxygen to create these graphs from left to right, how does it create caller / call graphs?

I know I graphviz/dotsupport this, but cannot find a way to tell doxygen my preferences.

+4
source share
1 answer

, : Doxygen: ?

, , , rankdir.

1) , Doxygen . DOT_CLEANUP = NO .

2) , Doxygen. * __ incl.dot. <source>.dot

3a) , dot rankdir ( TB) ), .

dot -Grankdir="LR" -Tpng -o<source>.png -Tcmapx -o<source>.map <source>.dot 

3b) - rankdir , rankdir="LR" ( rankdir "TB").

digraph "AppMain"
{
  rankdir="LR";
...

:

dot -Tpng -o<source>.png -Tcmapx -o<source>.map <source>.dot 

Doxygen. , . 3b :). , , :

Windows?

+2

Source: https://habr.com/ru/post/1536733/


All Articles