Class inheritance diagrams using PSTricks?
- From: Peter Davis <pfdavis@xxxxxxxxx>
- Date: Tue, 28 Jul 2009 08:17:38 -0700 (PDT)
I'm trying to generate inheritance diagrams with PSTricks. I use a
'find > grep' command:
find -iname "*.cs" -exec grep -H "class .*:" \{} ";" > myclasses.txt
to get all the class declarations from the .cs source files. (A
similar command should work for C++ also.) This gets me a text file
with lines of the form:
../blah/blah/blah.cs: public void class MyExampleClass: BaseClassOne,
BaseClassTwo
I initially tried using GraphViz to draw the diagrams, but it doesn't
seem to handle the case of multiple disjoint graphs very well. I get
a large image in which many of the graphs overlap, and even nodes
within a graph overlap. Unreadable.
So I thought of modifying my Perl script to generate a LaTeX document
with \pstree and \psframe elements instead. This should be
straightforward enough for trees, but for multiple inheritance
scenarios, I'd have to figure out how to position the nodes, etc.
Anyone know how to solve this? Anyone have a better way to do this
altogether?
Thanks!
-pd
.
- Follow-Ups:
- Re: Class inheritance diagrams using PSTricks?
- From: Andrew
- Re: Class inheritance diagrams using PSTricks?
- Prev by Date: Re: Draw figure in the "picture" environment
- Next by Date: Re: Draw figure in the "picture" environment
- Previous by thread: Draw figure in the "picture" environment
- Next by thread: Re: Class inheritance diagrams using PSTricks?
- Index(es):
Relevant Pages
|