more classical and visually appealing statecharts?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi people, I've been always slightly discontented with how my statecharts are vizualized with graphviz and that they do not look quite like classical UML statecharts, I mean the oval form of the states and how the compound states are displayed and visual marking of entry/exit states. What do you people use to make output statechart to be more classical UML alike and be generally more appealing? As for me, so far I tried the easiest way, i.e. output to plantuml uml instead of dot. It looks like classical uml without tuning, but I reckon dot is much more customizable and I probably miss some its obvious features. Regards, Slava -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJTICspAAoJEMqmnBSIOo9REG8QAIpSKdb2+K+6nJOeWQuVw0PP AGaDFiKZQmzh3zoVRlazHG5nNLljzIvdpFllth9hO18I8DjZfRz/B79WqktkAz3S hYhf+Ws9aGSfEgiDUJjCMwVym5FYjAxbatw3hz2KSo4ri3zvvf/F329EeDY2f0Lp YwXKkE65JPwqwjigQeIweaLgG9ztmxjW1xKEJFixAQI7kjOMgnpuo3ip1YFqJjNv /tavZOU5Tw36l+bNVlsUQLwhMBk0ytKPpP9fG+l5qzYPnTy3XbT3bd5xKu3kw2dw WETiqEL4O+I5WrBKUdJfzk5Vk56SEmLfEVS6y+Cf8tRNqouBrbFn6QBKxV09+AE7 pDqpKPzBdtRBKvu33KS43IkWp4qPVZdSbHZ/Akr1b8S4BnJE0YhpkKnrN1PE9Nxg Q/uzqXejKjR/Ha+opp0Il9db1JPmsXigEOoBhtvlihft3fTwzWDKXtmMOZxRtker AxFahOx6EDal5xst7jbZN5TJL+T89cYKd7Nzo4CjrbwcHDDFs8vYXeo7VmcOMcYn dXQO+svzcvF5QHMPRdGLZZ3KK7obMiQjmzN2OIaY+vZdKY4HDCb/SjXpu/2Ga2ug ySXd9GfiW/1b/NUF8qdjinTe0BnddB3KVqXu0y3VFI7l01wx+Hy6GehB7Z4OFCIu rKuLzJo0tZnNNfUsQmlM =f4hA -----END PGP SIGNATURE-----
Hi Viatcheslav, On Wed, Mar 12 2014, Viatcheslav.Sysoltsev wrote:
Hi people,
I've been always slightly discontented with how my statecharts are vizualized with graphviz and that they do not look quite like classical UML statecharts, I mean the oval form of the states
I'm not that much familiar with UML so I do not care whether states are displayed as ovals or as ellipses.
and how the compound states are displayed and visual marking of entry/exit states.
Visualization of compound states is something that I'm also not satisfied with. I have not found a better way how to automatically visualize them with dot.
What do you people use to make output statechart to be more classical UML alike and be generally more appealing?
Nothing :-)
As for me, so far I tried the easiest way, i.e. output to plantuml uml instead of dot. It looks like classical uml without tuning, but I reckon dot is much more customizable and I probably miss some its obvious features.
I didn't know about plantuml. It looks quite nice. If you have some code that works with plantuml, it would be great if you can share it. Cheers, -Michal
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Michal,
I didn't know about plantuml. It looks quite nice. If you have some code that works with plantuml, it would be great if you can share it. Okidokie, the patch is attached (based on commit 3307717050e30165fe3f6464a5228aec3a7e74d7).
Apart from some slight changes in makefiles and .gitignore it refactors out the model into visualizer.h and printers in printer.h. The makefile in examples directory gives an example how to pass the option to use plantuml printer (%.o %.uml : %cpp rule). The plantuml jar is expected to be /opt/plantuml/plantuml.jar. In example directory the dot and pdf are output from dot printer, uml and svg are output from plantuml printer. Do with the code whatever you wish. The outputs for StopWatch example are attached. Regards, Slava -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJTJtDEAAoJEMqmnBSIOo9RodQQAIPIYsJBtzcaEhf8Zo8OWiQI EJ6SjNMc41aNfTGP6L4NjcbqfzUnTXMT2pDRlzu8y7Ps7sEMFrwot6jyClOvnGki veP5w+L9t75Raz+E+THR8ZZ7uHzHsm6Tig0HU1nu3870e285b2A0GkxDvxOPLbDr 02cNhuOPAz+ekzDuyCaCjOJDEd3fzbRLtNKsaC2Xd7MqiMHcTPtXKZW208KNyhtp Ja1eytDmj9XapDKzHWY+phpsUZKEFIAl7SKaBXCuZo/J2TTtAfXmkufsK5/zrI6o DVSKNQOUCYBlIprVYUuA1JEQiCzW9Dg5DotqoAKtThInyHzmMU7impWpnpRbc5wj yooIoBCQCEHwFT5jhLlaF/+fQLSv5i+t/qrzohHCu3Nwas55b7X8WdLM8dmaJ0h6 S3q1rvviv4oSjYmrIqQyLI8Lw8pI4Uo7IuOWKq+Tq6cCdN3GKz2EpU9SraeG4YFc CAx4lYtmJQpAPKHzCp/1OoQECdtfJihr54/7k4jItlsaTat8a1WnijFtriefG9/z l03aOyuLVIvpbmIPml1kXc4w/2qk1fzHCKiM2A+cY6abaiUKGUZH/n4sQKv/iBAU 81MonTMXjWKuIV9xqOjnbed1a6aP3dyZ5R3ltiP2dAcy4vbyjxd+rSApUad90Qzs x2XS5xeZ1GSwB/wGl9N2 =98DD -----END PGP SIGNATURE-----
participants (2)
-
Michal Sojka
-
Viatcheslav.Sysoltsev