Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Lines and polygons are defined by the points which are set in the structure data as well. In both cases, lines are drawn between subsequent points in the array. The first and the last point are also connected by a line if you want to draw a polygon.

If you choose a string, you need to specify a single point as anchor. The drawn string will be attached to this anchor as specified the field string_String Message Anchormessage_anchor. A string message will only be displayed, if you set the field _String Message_.

...

Defines where a string message will be aligned, relative to the anchor point (the first entry of _points_). You only have to specify this field manually, if it should be different from the __default__: `BottomLeft` corner BottomLeft corner.


TopCenter
TopLeft +--------+--------+ TopRight
| |
CenterLeft + String Content + CenterRight
| |
BottomLeft (default) +--------+--------+ BottomRight
BottomCenter

...

Color is a custom IDL data type which is a struct Color {octeta; octetr; octetg; octetb}. Color values are just regular RGB values. The transparency value should be ignored.

Usage example

https://github.com/embedded-software-laboratory/cpm_lab/blob/master/lab_control_center/test/VisualizationTest.cpp