QT GUI Graphic Overlay Sample Source

From GNU Radio
Jump to navigation Jump to search

This block is an example of how to feed an overlay to a graphic item. The graphic item overlay is expecting a dictionary with the following keys: 'filename','x','y', and optionally a 'scalefactor'. A list of dictionaries can also be supplied to support multiple items.

Any file can be added to the graphic item as an overlay and the particular item indexed by its filename can be updated by passing in new x/y coordinates. To remove an overlay, use coordinates -1,-1 for the x,y coordinates.

This sample block sends either a dictionary or list of dictionaries to the graphicitem block. To test updating a single overlay item, you can use a list with the same file but different coordinates and use the update delay > 0.0 to animate it.
Added in 3.9

Parameters

(R): Run-time adjustable

Overlay Dict or List(dict)
a dictionary or list - see above
If List Send With Delay (sec)
delay between items
If List Repeat
repeat (default: True)

Example Flowgraph

This flowgraph can be found at [1]

Test graphicitem overlay fg.png

Example Output

Test graphicitem overlay out.png

Source Files

C++ files
TODO
Header files
TODO
Public header files
TODO
Block definition
TODO