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
Fact * fact (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 15 of file InstrumentValueData.h.

Member Enumeration Documentation

◆ RangeType

Enumerator
NoRangeInfo 
ColorRange 
OpacityRange 
IconSelectRange 

Definition at line 23 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()

void InstrumentValueData::addRangeValue ( void )

◆ clearFact()

void InstrumentValueData::clearFact ( void )

◆ currentColorChanged

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

◆ currentIconChanged

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

References NoRangeInfo.

◆ currentOpacityChanged

void InstrumentValueData::currentOpacityChanged ( double currentOpacity)
signal

◆ fact()

Fact * InstrumentValueData::fact ( void ) const
inline

Definition at line 63 of file InstrumentValueData.h.

Referenced by factChanged(), and FactValueGrid::layoutFacts().

◆ factChanged

void InstrumentValueData::factChanged ( Fact * fact)
signal

References fact().

Referenced by clearFact().

◆ factGroupName()

QString InstrumentValueData::factGroupName ( void ) const
inline

Definition at line 61 of file InstrumentValueData.h.

Referenced by FactValueGrid::layoutFacts(), and 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 vehicleFactGroupName.

◆ factGroupNamesChanged

void InstrumentValueData::factGroupNamesChanged ( void )
signal

◆ factName()

QString InstrumentValueData::factName ( void ) const
inline

Definition at line 62 of file InstrumentValueData.h.

Referenced by factNameChanged(), FactValueGrid::layoutFacts(), and setFact().

◆ factNameChanged

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

References factName().

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 66 of file InstrumentValueData.h.

Referenced by iconChanged(), and setIcon().

◆ iconChanged

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

References icon().

Referenced by clearFact(), and setIcon().

◆ invalidColor()

Q_INVOKABLE QColor InstrumentValueData::invalidColor ( void )
inline

Definition at line 55 of file InstrumentValueData.h.

◆ isValidColor()

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

Definition at line 54 of file InstrumentValueData.h.

◆ rangeColors()

QVariantList InstrumentValueData::rangeColors ( void ) const
inline

Definition at line 69 of file InstrumentValueData.h.

Referenced by rangeColorsChanged(), and setRangeColors().

◆ rangeColorsChanged

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

◆ rangeIcons()

QVariantList InstrumentValueData::rangeIcons ( void ) const
inline

Definition at line 70 of file InstrumentValueData.h.

Referenced by rangeIconsChanged(), and setRangeIcons().

◆ rangeIconsChanged

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

◆ rangeOpacities()

QVariantList InstrumentValueData::rangeOpacities ( void ) const
inline

Definition at line 71 of file InstrumentValueData.h.

Referenced by rangeOpacitiesChanged(), and setRangeOpacities().

◆ rangeOpacitiesChanged

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

◆ rangeType()

RangeType InstrumentValueData::rangeType ( void ) const
inline

Definition at line 67 of file InstrumentValueData.h.

Referenced by rangeTypeChanged(), and setRangeType().

◆ rangeTypeChanged

void InstrumentValueData::rangeTypeChanged ( RangeType rangeType)
signal

References rangeType().

Referenced by setRangeType().

◆ rangeValues()

QVariantList InstrumentValueData::rangeValues ( void ) const
inline

Definition at line 68 of file InstrumentValueData.h.

Referenced by rangeValuesChanged(), and 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 65 of file InstrumentValueData.h.

Referenced by setShowUnits(), and showUnitsChanged().

◆ showUnitsChanged

void InstrumentValueData::showUnitsChanged ( bool showUnits)
signal

References showUnits().

Referenced by clearFact(), and setShowUnits().

◆ text()

QString InstrumentValueData::text ( void ) const
inline

Definition at line 64 of file InstrumentValueData.h.

Referenced by setText(), and textChanged().

◆ textChanged

void InstrumentValueData::textChanged ( QString text)
signal

References text().

Referenced by clearFact(), and setText().

Member Data Documentation

◆ vehicleFactGroupName

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

Definition at line 81 of file InstrumentValueData.h.

Referenced by factGroupNames(), factValueNames(), and TelemetryBarValues::read().


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