Thread: [Pas-dev] drawing diagrams?
Status: Beta
Brought to you by:
mortis
From: Kyle R . B. <mo...@vo...> - 2002-05-24 18:11:32
|
As part of the documentation push I'm getting to the piont where I want to start drawing some diagrams. The output format will need to probably be PNG, or PS, as the diagrams will be linked from the sgml documents. Anyone have any suggestions for what I should use? I've thought about Dia, but it's not exactly what I'm after. The kinds of diagramming I'm talking about are of the type you would typicly find in printed manuals or books: - system, and netwrok diagrams - UML - class diagrams, etc. Should I just use GIMP? If I do, I'm afraid that the source image files will be large enough that I won't want to have them as part of the CVS archive -- I'm still running dial-up at home. That does rasie the question of wether we want to have the documentation as a seperate CVS archive/project. Any advice or feedback would be appreciated. Thanks, Kyle -- ------------------------------------------------------------------------------ Wisdom and Compassion are inseparable. -- Christmas Humphreys mo...@vo... http://www.voicenet.com/~mortis ------------------------------------------------------------------------------ |
From: Mental <me...@ne...> - 2002-05-24 18:33:18
|
On Fri, 2002-05-24 at 14:11, Kyle R . Burton wrote: > As part of the documentation push I'm getting to the piont where I want t= o > start drawing some diagrams. The output format will need to probably be = PNG, > or PS, as the diagrams will be linked from the sgml documents. >=20 > Anyone have any suggestions for what I should use? I've thought about Di= a, > but it's not exactly what I'm after. The kinds of diagramming I'm talkin= g > about are of the type you would typicly find in printed manuals or books: > You could look into neato or dot. I'm not quite sure what you want stuff to look like, but it might be useful. The syntax is easy, and you can output your diagrams in a variety of formats. diagraph "Org::Bgw::Pas" { "something" -> "somethingelse" [dir=3Dboth len=3D2]; } The diagram files would be small enough to check into cvs, and you shouldnt have a hard time then generating images or whatever. From the dot man page: DESCRIPTION dot draws directed graphs. It works well on DAGs and other graphs that can be drawn as hierarchies. It reads attributed graph files and writes drawings. By default, the output format dot is the input file with layout coor=AD dinates appended. To generate PostScript, use the -Tps option. Other choices are -Tmif (FrameMaker graphics), -Thpgl (HP pen plotters), and -Tpcl (Laserjet printers), -Tgif (pixel graphics), -Timap, and -Tismap (imagemap files for httpd servers that mark out rectangles for each node that has a non-null URL attribute.). --=20 Mental (Me...@Ne...) |
From: Kyle R . B. <mo...@vo...> - 2002-05-24 19:14:57
|
> You could look into neato or dot. I'm not quite sure what you want stuff > to look like, but it might be useful. > > The syntax is easy, and you can output your diagrams in a variety of > formats. > > diagraph "Org::Bgw::Pas" > { > "something" -> "somethingelse" [dir=both len=2]; > } OMG! Why didn't you tell me about that before! http://pas.sourceforge.net/docs/pas-hierarchy.png :o Thanks! It's huge and ugly, but then again, It's my first autogenerated inheritence hierarchy from Perl code. :) I'll check in the program that created that from the sources...the code is a quick hack, but it does the job...we'll have to clean it up later. I wonder how hard it'll be to build actual UML out of it...it should be easy to figure out methods (private starting with an '_'), so we could easily add those to the object diagrams... Any advice on usign DOT to do more than just the simple boxes? Awesome dude, absolutely awesome. Thanks for pointing that out. Kyle -- ------------------------------------------------------------------------------ Wisdom and Compassion are inseparable. -- Christmas Humphreys mo...@vo... http://www.voicenet.com/~mortis ------------------------------------------------------------------------------ |
From: Kyle R . B. <mo...@vo...> - 2002-05-24 19:36:39
|
http://pas.sourceforge.net/docs/pas-hierarchy.png I had some trouble with not follwing all the parts of the inheritence tree before. Now the graph is more representative of how things really are. Kyle -- ------------------------------------------------------------------------------ Wisdom and Compassion are inseparable. -- Christmas Humphreys mo...@vo... http://www.voicenet.com/~mortis ------------------------------------------------------------------------------ |
From: Kaare R. <ka...@ka...> - 2002-05-24 19:09:19
|
> - system, and netwrok diagrams > - UML - class diagrams, etc. Maybe argo-UML? http://argouml.tigris.org/ http://www.gentleware.com/products/poseidonDE.php3 -- Kaare Rasmussen --Linux, spil,-- Tlf: 3816 2582 Kaki Data tshirts, merchandize Fax: 3816 2501 Howitzvej 75 Åben 12.00-18.00 Web: www.suse.dk 2000 Frederiksberg Lørdag 11.00-17.00 Email: ka...@ka... |