Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Visualizing package structure
Visualizing package structure [message #31471] Fri, 04 March 2011 21:14 Go to next message
dolik.rce is currently offline  dolik.rce
Messages: 1758
Registered: August 2008
Location: Czech Republic
Senior Contributor

Hi everyone,

Let me introduce you another little toy of mine Smile A simple shell script that visualizes the structure of packages in given project. The only thing you need is to have graphviz installed on your system, as it uses DOT language to render the graphics.

Thanks to the great power of graphviz, it is possible to export pictures in many formats from simple bitmaps like png, gif ot jpg through to html click maps or vrml to advanced formats like pdf or svg. You can even choose pseudoformat "xlib", which will feed the graph directly into simple viewer.

How to use it? Simple example:
uppviz.sh -k -f bmp UWord upp/{uppsrc,examples}
This will render the dependency tree of UWord into file UWord.bmp. All parameters after package name are nests where the script should look for code. The -f argument selects file format. If the -f option is omitted, png is used. For list of available format have a look here. The "-k" says it should keep the graph description in DOT language that was used when rendering as well. It can be found in UWord.gv, so you can play with it a bit and e.g. re-render it or tweak it in graph editor (such as dotty or grappa).

Sorry to all windows users, but since this is a shell script, it won't be that easy to run on windows. Your best chance is cygwin or emulation Wink

Best regards,
Honza
  • Attachment: uppviz.sh
    (Size: 1.78KB, Downloaded 237 times)
Re: Visualizing package structure [message #31472 is a reply to message #31471] Fri, 04 March 2011 21:18 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1758
Registered: August 2008
Location: Czech Republic
Senior Contributor

And here is a graph of the example from previous post (note that I used gif to save forum space): index.php?t=getfile&id=3127&private=0
  • Attachment: UWord.gif
    (Size: 21.74KB, Downloaded 355 times)

[Updated on: Fri, 04 March 2011 22:08]

Report message to a moderator

Re: Visualizing package structure [message #38516 is a reply to message #31471] Fri, 21 December 2012 12:01 Go to previous messageGo to next message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Hi,

Very nice and useful script ! Thanks ! Smile
icon14.gif  Re: Visualizing package structure [message #38519 is a reply to message #38516] Fri, 21 December 2012 14:37 Go to previous message
Didier is currently offline  Didier
Messages: 488
Registered: November 2008
Location: France
Senior Member
This will come handy very quickly Smile
Previous Topic: Help me buy a notebook!
Next Topic: Proof of concept: running Tcl scripts in Skylark
Goto Forum:
  


Current Time: Fri Dec 06 09:55:52 CET 2019

Total time taken to generate the page: 0.02028 seconds