-----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
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
boost-statechart-viewer@rtime.felk.cvut.cz