Class defining the Plan Position Indicator.
More...
#include <plan_position_indicator.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 Plan Position Indicator.
◆ gva::WidgetPlanPositionIndicator::ThreatType
struct gva::WidgetPlanPositionIndicator::ThreatType |
Data Fields |
uint16_t |
bearing = 0 |
The threat bearing. |
bool |
dotted = false |
Dotted if true. |
bool |
flashing = false |
Flash if true. |
string |
label = "" |
The label of the threat. |
uint32_t |
rgb_value = 0x00FF0000 |
|
uint16_t |
size = 0 |
The azimuth of the threat. |
◆ WidgetPlanPositionIndicator()
gva::WidgetPlanPositionIndicator::WidgetPlanPositionIndicator |
( |
const RendererGva & |
renderer | ) |
|
|
explicit |
Construct a new Widget Plan Position Indicator object.
- Parameters
-
◆ AddThreat()
void gva::WidgetPlanPositionIndicator::AddThreat |
( |
int16_t |
id, |
|
|
ThreatType |
threat |
|
) |
| |
Add a threat onto the PPI.
- Parameters
-
id | Unique ID of the threat |
threat | The threat object |
◆ DeleteThreat()
void gva::WidgetPlanPositionIndicator::DeleteThreat |
( |
int16_t |
id | ) |
|
Delete a threat by ID.
- Parameters
-
id | The ID of the threat to be deletes |
◆ Draw()
void gva::WidgetPlanPositionIndicator::Draw |
( |
| ) |
|
|
finalvirtual |
The base overloaded Draw fuctions to draw this widget type.
Implements gva::WidgetX.
◆ DrawPPI()
void gva::WidgetPlanPositionIndicator::DrawPPI |
( |
widget::ModeEnum |
mode, |
|
|
int32_t |
x, |
|
|
int32_t |
y, |
|
|
int16_t |
degrees, |
|
|
int16_t |
sight_azimuth, |
|
|
int16_t |
weapon_azimuth |
|
) |
| const |
Draw the Plan Position Indicator.
- Parameters
-
mode | The PPI mode, different styles |
x | X pixel position |
y | Y pixel position |
degrees | Compass heading |
sight_azimuth | Camera heading |
weapon_azimuth | Weapon heading |
◆ GetBearing()
int16_t gva::WidgetPlanPositionIndicator::GetBearing |
( |
| ) |
const |
|
inline |
Get the Bearing object.
- Returns
- uint16_t
◆ GetBearingSight()
int16_t gva::WidgetPlanPositionIndicator::GetBearingSight |
( |
| ) |
const |
|
inline |
Get the Bearing Sight object.
- Returns
- uint16_t
◆ GetWidgetName()
std::string gva::WidgetPlanPositionIndicator::GetWidgetName |
( |
| ) |
const |
|
inlinefinalvirtual |
Get the Widget Name attribute.
- Returns
- std::string
Implements gva::WidgetX.
◆ SetBearing()
void gva::WidgetPlanPositionIndicator::SetBearing |
( |
int16_t |
bearing | ) |
|
|
inline |
Set the Bearing object.
- Parameters
-
◆ SetBearingSight()
void gva::WidgetPlanPositionIndicator::SetBearingSight |
( |
int16_t |
bearing_sight | ) |
|
|
inline |
Set the Bearing Sight object.
- Parameters
-
bearing_sight | The bearing sight |
◆ SetMode()
Set the Mode object.
- Parameters
-
◆ SetWeaponAzimuth()
void gva::WidgetPlanPositionIndicator::SetWeaponAzimuth |
( |
int16_t |
weapon_azimuth | ) |
|
|
inline |
Set the Weapon Azimuth attribute.
- Parameters
-
The documentation for this class was generated from the following files: