optris_sdk_region_style
How a region is drawn in the overlay. Mirrors optris::sdk::RegionStyle.
Initialise with optris_sdk_region_style_init(), which fills in struct_size and the same defaults the C++ struct carries: a 2 px red outline, a white label, a 5 px crosshair, and neither the label nor the aperture drawn. Set it on a region builder with optris_sdk_region_set_style() and read it back with optris_sdk_region_get_style().
New in version 33.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_region_style).
color
float color[4]
The outline's red, green, blue and alpha, each 0 to 1. While an alarm rule on the region rings, the overlay draws the outline pure red instead, whatever is set here; the stored colour is untouched and returns when the alarm clears.
text_color
float text_color[4]
The label's red, green, blue and alpha, each 0 to 1. Used only while show_label is non-zero.
line_width
float line_width
Outline width in pixels of the surface being drawn on.
marker_style
optris_sdk_marker_style marker_style
How a point region is marked: one of the optris_sdk_marker_style values.
marker_size
float marker_size
Marker size in pixels: a circle's radius, or half a crosshair's arm length.
show_label
int32_t show_label
Non-zero to draw the region's name and reading beside it. The reading is the hottest pixel for a hot spot, the coldest for a cold spot, and the mean for every other measuring kind; an annotation region shows its name alone. Drawn with the SDK's own upper-case bitmap font in text_color, placed by label_anchor and label_margin.
show_aperture
int32_t show_aperture
Non-zero to outline the pixels a point region's aperture actually sampled. A debug aid, off by default: what it shows is the clipped set, the pixels that survived both the owning region's geometry and the image bounds. Requires the region to record samples (optris_sdk_region_set_want_samples()), because the sampled set is what the samples hold and nothing records it otherwise; without them this draws nothing rather than guessing at the nominal window. Ignored by every kind that is not a point.
label_anchor
optris_sdk_label_anchor label_anchor
Which side of the region the label sits on: one of the optris_sdk_label_anchor values.
label_margin
float label_margin
Gap between the region and its label, in pixels.
font_size
float font_size
Label height in pixels; 0 lets the renderer choose one that suits the frame.