OMSimulatorLib
The OMSimulator project is a FMI-based co-simulation environment that supports ordinary (i.e., non-delayed) and TLM connections.
|
5.2.2 ssd:ElementGeometry More...
#include <Types.h>
Public Attributes | |
double | x1 |
double | y1 |
double | x2 |
double | y2 |
double | rotation |
char * | iconSource |
double | iconRotation |
bool | iconFlip |
bool | iconFixedAspectRatio |
5.2.2 ssd:ElementGeometry
This optional XML element defines the geometry information of the model element, where (x1,y1) and (x2,y2) define the positions of the lower-left and upper-right corners of the model element in the coordinate system of its parent system. If x1>x2 this indicates horizontal flipping, y1>y2 indicates vertical flipping. The optional attribute rotation (in degrees) defines an additional rotation (applied after flipping), where positive numbers indicate left rotation (x->y). The coordinate system is oriented: x -> right, y -> up. The optional attribute iconSource defines an icon URI with the same semantics as for the source attribute of the Component element. If defined, this icon overrides any icon that may be defined e.g. in an .fmu file (as defined in the relevant FMI standards). The optional attribute iconRotation defines the rotation (in degrees) of the icon. The optional attribute iconFixedAspectRatio defines whether the icon shall be fit into the extent defined by (x1,y1), (x2,y2) and iconRotation with fixed aspect ratio. The optional attribute iconFlip defines whether any flipping indicated by (x1,y1), (x2,y2) shall be applied to the icon graphics, too.
bool ssd_element_geometry_t::iconFixedAspectRatio |
Optional attribute defines whether the icon shall be fit into the extent defined by (x1,y1), (x2,y2) with a fixed aspect ratio, or without keeping the aspect ratio fixed.
bool ssd_element_geometry_t::iconFlip |
Optional attribute defines whether any flipping indicated by (x1,y1), (x2,y2) shall be applied to the icon graphics, too, or not.
double ssd_element_geometry_t::iconRotation |
Optional attribute defines the rotation (in degrees) of the icon, where positive numbers indicate left rotation (x->y).
char* ssd_element_geometry_t::iconSource |
Optional attribute defines an icon URI with the same semantics as for the source attribute of the Component element. If defined, this icon overrides any icon that may be defined e.g. in an .fmu file (as specified in the relevant FMI standards).
double ssd_element_geometry_t::rotation |
Optional attribute defines an additional rotation in degrees that is to be applied after any flipping, where positive numbers indicate left rotation (x->y).
double ssd_element_geometry_t::x1 |
Required attribute giving the x coordinate of the lower left corner of the model element inside the coordinate system of its parent system.
double ssd_element_geometry_t::x2 |
Required attribute giving the x coordinate of the upper right corner of the model element inside the coordinate system of its parent system.
double ssd_element_geometry_t::y1 |
Required attribute giving the y coordinate of the lower left corner of the model element inside the coordinate system of its parent system.
double ssd_element_geometry_t::y2 |
Required attribute giving the y coordinate of the upper right corner of the model element inside the coordinate system of its parent system.