PasDoc supports the GraphViz package for generating simple unit uses and class inheritance graphs.

There are four CommandLine options that can be used:

Options to create graph files

--graphviz-uses and --graphviz-classes will generate GVUses.dot and GVClasses.dot files that can be used as input for the dot program from the GraphViz package like this:

dot -T jpg GVUses.dot > GVUses.jpg
dot -T jpg GVClasses.dot > GVClasses.jpg

This will generate a file GVUses.jpg containing a graph of unit dependencies and GVClasses.jpg containing a graph of class dependencies.

Tip:

The generated graph is usually rather wide which makes it a bit awkward to use. By setting the "rankdir" graph attribute to "LR" the graph will be built left to right rather than the default top to bottom direction resulting in a much more convenient format:

dot -Grankdir=LR -T jpg GVUses.dot > GVUses.jpg

Options to link to graphs in documentation

--link-gv-uses and --link-gv-classes will add a link to the overview frame pointing to the pictures generated with dot. You must pass the file extension of the picture (dot can also generate gif and lots of other formats). So if you generate jpg you must call PasDoc with a CommandLine like this:

pasdoc --link-gv-uses jpg --link-gv-classes jpg --graphviz-uses --graphviz-classes ...

GraphVizSupport (last edited 2007-10-28 22:57:04 by localhost)