Skip to content
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

Proposal to add the attribute "rotation" to <TerminalGraphicalRepresentation> #1960

Open
TorstenBlochwitz opened this issue Jun 26, 2024 · 0 comments
Assignees

Comments

@TorstenBlochwitz
Copy link

TorstenBlochwitz commented Jun 26, 2024

There is currently no way to define the rotation of the icon of a Terminal. According to section 2.4.9.1.2 CoordinateSystem we allow flipping only:

Flipping of the FMU icon or a terminal can be realized by setting its attributes x2 < x1 or y2 < y1 without changing the coordinate system.

This makes it hard to have Terminals at the upper or lower side of an FMU icon.

A workaround would be to provide rotated bitmaps, but this makes it hard for an importer with a GUI to define a direction into a connection line should go first. And it disables the re-usage of icon-bitmaps.

For that reason we propose the introduction of the new attribute "rotation". We propose a similar semantics as it is used in Modelica language: The rotation attribute specifies the rotation of the graphical item counter-clockwise in degrees around the center of the rectangle spanned by x1, y1 and x2, y2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants