Changes between Initial Version and Version 1 of Ticket #4645, comment 16


Ignore:
Timestamp:
2018-01-16T14:04:03+01:00 (7 years ago)
Author:
adeas31
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4645, comment 16

    initial v1  
    11I tried to add the white outline around the connection line, [[Image(ConnectingLinesOMNew.png)]].
    2 Looks pretty fine. However, the original problem reported in the ticket is but tricky. The problem is that the connection is drawn under component. So with the current OMEdit structure we have the following options,
     2Looks pretty fine. However, the original problem reported in the ticket is bit tricky. The problem is that the connection is drawn under component. So with the current OMEdit structure we have the following options,
    33
    441. Draw the connection on top. Looks like this,
     
    99[[Image(ConnectionUnderComponent.png)]]
    1010
    11 3. (Required behavior) Draw the component without ports, draw the connection and then draw the ports. Tricky to implement since we need to set the stacking order. The stacking order is among the sibling items. The connection line and component are sibling items but the ports are children of component. So either I can say put connection on top or put component on top but I can't say put component then put connection and then out ports. I guess dymola is handling it by not making the ports child of component. We can also do that but this requires huge change in the structure of OMEdit e.g., adding/removing ports from the scene, managing transformations etc.
     113. (Required behavior) Draw the component without ports, draw the connection and then draw the ports. Tricky to implement since we need to set the stacking order. The stacking order is among the sibling items. The connection line and component are sibling items but the ports are children of component. So either I can say put connection on top or put component on top but I can't say put component then put connection and then out ports. I guess dymola is handling it by not making the ports children of component. We can also do that but this requires huge change in the structure of OMEdit e.g., adding/removing ports from the scene, managing transformations etc.