-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple inheritance of graphical annotations #1750
Comments
Modified by beutlich on 2 Mar 2016 10:23 UTC |
Comment by hansolsson on 8 Mar 2016 14:09 UTC
In Dymola Icon2 is displayed in front of Icon1; similarly as later components are displayed in front of earlier ones. Unfortunately we have only stated that the objects are ordered - not that this defines the drawing order, but I assume everyone uses the same order or Inductor would have the wrong icon. (There might also be some other minor issues with the drawing order.) |
Comment by hansolsson on 7 Sep 2016 12:01 UTC The graphics is specified as an ordered sequence of graphical primitives, which are described below. Contents is drawn according to the order such that later objects can cover earlier ones, and base-class contents drawn according to the order of the extends-clauses. |
Comment by hansolsson on 12 Sep 2016 12:40 UTC
Should clarify that base-classes is done first: The graphics is specified as an ordered sequence of graphical primitives, which are described below. First base-class contents is drawn according to the order of the extends-clauses, and then graphical primitives are drawn according to the order such that later objects can cover earlier ones. Favor: 9 |
Comment by hansolsson on 23 Sep 2016 13:09 UTC |
Reported by msasena on 22 Jul 2015 20:28 UTC
I couldn't find anything in the specification that describes how to handle components that inherit graphical annotations from multiple classes. Take a simple example:
What should the icon for model A look like? Should Icon2 be displayed in front of Icon1, or should it be the other way around? Should the order of instantiation matter in any way?
Migrated-From: https://trac.modelica.org/Modelica/ticket/1750
The text was updated successfully, but these errors were encountered: