QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
InstrumentValueData Class Reference

#include <InstrumentValueData.h>

+ Inheritance diagram for InstrumentValueData:
+ Collaboration diagram for InstrumentValueData:

Public Types

enum  RangeType { NoRangeInfo = 0 , ColorRange , OpacityRange , IconSelectRange }
 

Signals

void factChanged (Fact *fact)
 
void factNameChanged (const QString &factName)
 
void factGroupNameChanged (const QString &factGroup)
 
void textChanged (QString text)
 
void showUnitsChanged (bool showUnits)
 
void iconChanged (const QString &icon)
 
void factGroupNamesChanged (void)
 
void factValueNamesChanged (void)
 
void rangeTypeChanged (RangeType rangeType)
 
void rangeValuesChanged (const QVariantList &rangeValues)
 
void rangeColorsChanged (const QVariantList &rangeColors)
 
void rangeIconsChanged (const QVariantList &rangeIcons)
 
void rangeOpacitiesChanged (const QVariantList &rangeOpacities)
 
void currentColorChanged (const QColor &currentColor)
 
void currentOpacityChanged (double currentOpacity)
 
void currentIconChanged (const QString &currentIcon)
 

Public Member Functions

 InstrumentValueData (FactValueGrid *factValueGrid, QObject *parent)
 If !isEmpty icon will be show instead of label.
 
Q_INVOKABLE void setFact (const QString &factGroupName, const QString &factName)
 
Q_INVOKABLE void clearFact (void)
 
Q_INVOKABLE bool isValidColor (const QColor &color)
 
Q_INVOKABLE QColor invalidColor (void)
 
Q_INVOKABLE void addRangeValue (void)
 
Q_INVOKABLE void removeRangeValue (int index)
 
QStringList factGroupNames (void) const
 
QStringList factValueNames (void) const
 
QString factGroupName (void) const
 
QString factName (void) const
 
Factfact (void) const
 
QString text (void) const
 
bool showUnits (void) const
 
QString icon (void) const
 
RangeType rangeType (void) const
 
QVariantList rangeValues (void) const
 
QVariantList rangeColors (void) const
 
QVariantList rangeIcons (void) const
 
QVariantList rangeOpacities (void) const
 
void setText (const QString &text)
 
void setShowUnits (bool showUnits)
 
void setIcon (const QString &icon)
 
void setRangeType (RangeType rangeType)
 
void setRangeValues (const QVariantList &rangeValues)
 
void setRangeColors (const QVariantList &rangeColors)
 
void setRangeIcons (const QVariantList &rangeIcons)
 
void setRangeOpacities (const QVariantList &rangeOpacities)
 

Static Public Attributes

static constexpr const char * vehicleFactGroupName = "Vehicle"
 

Detailed Description

Definition at line 14 of file InstrumentValueData.h.

Member Enumeration Documentation

◆ RangeType

Enumerator
NoRangeInfo 
ColorRange 
OpacityRange 
IconSelectRange 

Definition at line 22 of file InstrumentValueData.h.

Constructor & Destructor Documentation

◆ InstrumentValueData()

InstrumentValueData::InstrumentValueData ( FactValueGrid factValueGrid,
QObject *  parent 
)
explicit

If !isEmpty icon will be show instead of label.

Definition at line 11 of file InstrumentValueData.cc.

Member Function Documentation

◆ addRangeValue()

◆ clearFact()

void InstrumentValueData::clearFact ( void  )

◆ currentColorChanged

void InstrumentValueData::currentColorChanged ( const QColor &  currentColor)
signal

◆ currentIconChanged

void InstrumentValueData::currentIconChanged ( const QString &  currentIcon)
signal

◆ currentOpacityChanged

void InstrumentValueData::currentOpacityChanged ( double  currentOpacity)
signal

◆ fact()

Fact * InstrumentValueData::fact ( void  ) const
inline

Definition at line 62 of file InstrumentValueData.h.

Referenced by SubtitleWriter::startCapturingTelemetry().

◆ factChanged

void InstrumentValueData::factChanged ( Fact fact)
signal

Referenced by clearFact().

◆ factGroupName()

QString InstrumentValueData::factGroupName ( void  ) const
inline

Definition at line 60 of file InstrumentValueData.h.

Referenced by setFact().

◆ factGroupNameChanged

void InstrumentValueData::factGroupNameChanged ( const QString &  factGroup)
signal

Referenced by clearFact().

◆ factGroupNames()

QStringList InstrumentValueData::factGroupNames ( void  ) const

Definition at line 325 of file InstrumentValueData.cc.

References FactGroup::factGroupNames(), and vehicleFactGroupName.

◆ factGroupNamesChanged

void InstrumentValueData::factGroupNamesChanged ( void  )
signal

◆ factName()

QString InstrumentValueData::factName ( void  ) const
inline

Definition at line 61 of file InstrumentValueData.h.

Referenced by setFact().

◆ factNameChanged

void InstrumentValueData::factNameChanged ( const QString &  factName)
signal

Referenced by clearFact().

◆ factValueNames()

QStringList InstrumentValueData::factValueNames ( void  ) const

◆ factValueNamesChanged

void InstrumentValueData::factValueNamesChanged ( void  )
signal

Referenced by clearFact().

◆ icon()

QString InstrumentValueData::icon ( void  ) const
inline

Definition at line 65 of file InstrumentValueData.h.

Referenced by setIcon().

◆ iconChanged

void InstrumentValueData::iconChanged ( const QString &  icon)
signal

Referenced by clearFact(), and setIcon().

◆ invalidColor()

Q_INVOKABLE QColor InstrumentValueData::invalidColor ( void  )
inline

Definition at line 54 of file InstrumentValueData.h.

◆ isValidColor()

Q_INVOKABLE bool InstrumentValueData::isValidColor ( const QColor &  color)
inline

Definition at line 53 of file InstrumentValueData.h.

◆ rangeColors()

QVariantList InstrumentValueData::rangeColors ( void  ) const
inline

Definition at line 68 of file InstrumentValueData.h.

Referenced by setRangeColors().

◆ rangeColorsChanged

void InstrumentValueData::rangeColorsChanged ( const QVariantList &  rangeColors)
signal

◆ rangeIcons()

QVariantList InstrumentValueData::rangeIcons ( void  ) const
inline

Definition at line 69 of file InstrumentValueData.h.

Referenced by setRangeIcons().

◆ rangeIconsChanged

void InstrumentValueData::rangeIconsChanged ( const QVariantList &  rangeIcons)
signal

◆ rangeOpacities()

QVariantList InstrumentValueData::rangeOpacities ( void  ) const
inline

Definition at line 70 of file InstrumentValueData.h.

Referenced by setRangeOpacities().

◆ rangeOpacitiesChanged

void InstrumentValueData::rangeOpacitiesChanged ( const QVariantList &  rangeOpacities)
signal

◆ rangeType()

RangeType InstrumentValueData::rangeType ( void  ) const
inline

Definition at line 66 of file InstrumentValueData.h.

Referenced by setRangeType().

◆ rangeTypeChanged

void InstrumentValueData::rangeTypeChanged ( RangeType  rangeType)
signal

Referenced by setRangeType().

◆ rangeValues()

QVariantList InstrumentValueData::rangeValues ( void  ) const
inline

Definition at line 67 of file InstrumentValueData.h.

Referenced by setRangeValues().

◆ rangeValuesChanged

void InstrumentValueData::rangeValuesChanged ( const QVariantList &  rangeValues)
signal

◆ removeRangeValue()

void InstrumentValueData::removeRangeValue ( int  index)

◆ setFact()

void InstrumentValueData::setFact ( const QString &  factGroupName,
const QString &  factName 
)

◆ setIcon()

void InstrumentValueData::setIcon ( const QString &  icon)

Definition at line 124 of file InstrumentValueData.cc.

References icon(), and iconChanged().

◆ setRangeColors()

void InstrumentValueData::setRangeColors ( const QVariantList &  rangeColors)

Definition at line 146 of file InstrumentValueData.cc.

References rangeColors(), and rangeColorsChanged().

◆ setRangeIcons()

void InstrumentValueData::setRangeIcons ( const QVariantList &  rangeIcons)

Definition at line 152 of file InstrumentValueData.cc.

References rangeIcons(), and rangeIconsChanged().

◆ setRangeOpacities()

void InstrumentValueData::setRangeOpacities ( const QVariantList &  rangeOpacities)

Definition at line 158 of file InstrumentValueData.cc.

References rangeOpacities(), and rangeOpacitiesChanged().

◆ setRangeType()

void InstrumentValueData::setRangeType ( RangeType  rangeType)

Definition at line 132 of file InstrumentValueData.cc.

References rangeType(), and rangeTypeChanged().

◆ setRangeValues()

void InstrumentValueData::setRangeValues ( const QVariantList &  rangeValues)

Definition at line 140 of file InstrumentValueData.cc.

References rangeValues(), and rangeValuesChanged().

◆ setShowUnits()

void InstrumentValueData::setShowUnits ( bool  showUnits)

Definition at line 116 of file InstrumentValueData.cc.

References showUnits(), and showUnitsChanged().

◆ setText()

void InstrumentValueData::setText ( const QString &  text)

Definition at line 108 of file InstrumentValueData.cc.

References text(), and textChanged().

◆ showUnits()

bool InstrumentValueData::showUnits ( void  ) const
inline

Definition at line 64 of file InstrumentValueData.h.

Referenced by setShowUnits().

◆ showUnitsChanged

void InstrumentValueData::showUnitsChanged ( bool  showUnits)
signal

Referenced by clearFact(), and setShowUnits().

◆ text()

QString InstrumentValueData::text ( void  ) const
inline

Definition at line 63 of file InstrumentValueData.h.

Referenced by setText().

◆ textChanged

void InstrumentValueData::textChanged ( QString  text)
signal

Referenced by clearFact(), and setText().

Member Data Documentation

◆ vehicleFactGroupName

constexpr const char* InstrumentValueData::vehicleFactGroupName = "Vehicle"
staticconstexpr

Definition at line 80 of file InstrumentValueData.h.

Referenced by factGroupNames(), and factValueNames().


The documentation for this class was generated from the following files: