Improving ECC transition routing #2228
vikash1703
started this conversation in
General
Replies: 3 comments 36 replies
-
This is the 200% zoomed image I hope it will help to understand |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@vikash1703 there are two things that I want to point out in your investigation on this.
|
Beta Was this translation helpful? Give feedback.
31 replies
-
|
I have a hakathon and and interview at infosys on 21 april thats why i am busy in that i will continue after 21 april. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment





Uh oh!
There was an error while loading. Please reload this page.
-
Hi @azoitl and 4diac-ide Community
As suggested to there is a problem in transition when drawn between two states it bends ,The currently applied spline has a strange trajectory at the start and end which need improvement and Also source and end location calculation will need some improvements.
I have been looking into the transition routing issue. I found two problems:
First in CreateTransitionCommand the sourceLocation and destLocation are set using toScreenPoint() which gives the top-left corner of the state instead of the center. I think this bendpoint is calculated from the wrong position. and the second is
in SplineConnection.getPath(), the control points for the cubic spline are calculated using startMid and midEnd vectors. When the destination state are drawn directly below these vectors cause a strange hook at the start of the transition.
For the location fix, I think the center can be obtained from ECStateEditPart using nameLabel.getBounds().getCenter(). But the viewer is only available in ECCEditorEditDomain, not in CreateTransitionCommand. Would it be correct to pass the viewer to CreateTransitionCommand to get the figure bounds?
For the spline fix, I am not sure about the best approach. Could you give some guidance?"
This is the finding which on which i start work when the existing PR's will get merged.
Beta Was this translation helpful? Give feedback.
All reactions