Class defining the bounding box object.
More...
#include <object_localisation.h>
|
uint32_t | x_ = 0 |
| The widget x location in pixels.
|
|
uint32_t | y_ = 0 |
| The widget y location in pixels.
|
|
uint32_t | width_ = 0 |
| The widget width in pixels.
|
|
uint32_t | height_ = 0 |
| The widget height in pixels.
|
|
Class defining the bounding box object.
◆ gva::WidgetObjectLocalisation::BoxType
struct gva::WidgetObjectLocalisation::BoxType |
Data Fields |
bool |
dotted = false |
Dotted if true. |
bool |
flashing = false |
Flashing if true. |
uint32_t |
height = 0 |
The object height. |
string |
label = "" |
The object label. |
uint32_t |
rgb_value = 0x00FF0000 |
The object RGB colour. |
uint32_t |
width = 0 |
The object width. |
uint32_t |
xpos = 0 |
The object x position. |
uint32_t |
ypos = 0 |
The object y position. |
◆ WidgetObjectLocalisation()
gva::WidgetObjectLocalisation::WidgetObjectLocalisation |
( |
const RendererGva & |
renderer, |
|
|
TouchGva * |
touch |
|
) |
| |
|
explicit |
Construct a new Widget Keyboard object, this widget is interactive and requires the touch events.
- Parameters
-
renderer | the renderer |
touch | the touch object |
◆ AddBoundingBox()
void gva::WidgetObjectLocalisation::AddBoundingBox |
( |
int16_t |
id, |
|
|
const BoxType & |
box |
|
) |
| |
Add a box onto the object localisation overlay.
- Parameters
-
id | Unique ID of the box |
box | The box object |
◆ DeleteBoundingBox()
void gva::WidgetObjectLocalisation::DeleteBoundingBox |
( |
int16_t |
id | ) |
|
Delete a box by ID.
- Parameters
-
id | The ID of the box to be deletes |
◆ Draw()
void gva::WidgetObjectLocalisation::Draw |
( |
| ) |
|
|
finalvirtual |
◆ GetWidgetName()
std::string gva::WidgetObjectLocalisation::GetWidgetName |
( |
| ) |
const |
|
inlinefinalvirtual |
Get the Widget Name attribute.
- Returns
- std::string
Implements gva::WidgetX.
The documentation for this class was generated from the following files: