[Qt-creator] Adding a map into Qt Creator
dydx
549088764 at qq.com
Wed Dec 4 03:51:50 CET 2013
Hello all, thanks for your help, now I can extract a partial call graph(just include opened files) of the project. Now I want to ask for some advises for my following work :-)
As I have mentioned previously, instead of showing the call graph by a stupid node-link diagram, I want to use a more interesting way, that is, using a map just like the Code Map. The image below is my imagination.
Different from code map, I want to represent each class as a country, function as a city and the invocation as a road between functions. The altitude of a "function city" indicate its invocation level. That is, if function A invoke function B, then "function city B" 's altitude is higher than A. Of course this isn't a strict rule, but I help this will help the user to get more information.
Also, I want to add more details to the map. For example, if a function occupy many lines, it's a big city, otherwise it's small. And the rivers can represent something else useful(For example: data flow?). Just like the image below:
In addition, a user can explore the map by following the definition by ctrl+LMB or other UI operations, just like sending a scout to explore the map in some RTS games.
I think visualizing the code as a map is interesting and helpful, and I sincerely want to get more creative ideas to improve it. Thanks!
dydx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20131204/ffe629ce/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: C8291B2A at ACF3AC38.C6989E52.jpg
Type: image/jpeg
Size: 119778 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20131204/ffe629ce/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5A14E08C at ACF3AC38.C6989E52.jpg
Type: image/jpeg
Size: 196581 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20131204/ffe629ce/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: result.jpg
Type: application/octet-stream
Size: 196581 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20131204/ffe629ce/attachment.obj>
More information about the Qt-creator
mailing list