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

A Fact is used to hold a single value within the system. More...

#include <Fact.h>

+ Inheritance diagram for Fact:
+ Collaboration diagram for Fact:

Signals

void bitmaskStringsChanged ()
 
void bitmaskValuesChanged ()
 
void enumsChanged ()
 
void sendValueChangedSignalsChanged (bool sendValueChangedSignals)
 
void valueChanged (const QVariant &value)
 This signal is only meant for use by the QT property system. It should not be connected to by client code.
 
void rawValueChanged (const QVariant &value)
 
void vehicleUpdated (const QVariant &value)
 Signalled when the param write ack comes back from the vehicle.
 
void containerRawValueChanged (const QVariant &value)
 This signal is meant for use by Fact container implementations. Used to send changed values to vehicle.
 

Protected Member Functions

QString _variantToString (const QVariant &variant, int decimalPlaces) const
 
void _sendValueChangedSignal (const QVariant &value)
 

Protected Attributes

QString _name
 
int _componentId = -1
 
QVariant _rawValue {0}
 
QRecursiveMutex _rawValueMutex
 
FactMetaData::ValueType_t _type = FactMetaData::valueTypeInt32
 
FactMetaData_metaData = nullptr
 
bool _sendValueChangedSignals = true
 
bool _deferredValueChangeSignal = false
 
FactValueSliderListModel_valueSliderModel = nullptr
 

Static Protected Attributes

static constexpr const char * kMissingMetadata = "Meta data pointer missing"
 

Detailed Description

A Fact is used to hold a single value within the system.

Definition at line 18 of file Fact.h.

Member Function Documentation

◆ _sendValueChangedSignal()

void Fact::_sendValueChangedSignal ( const QVariant &  value)
protected

Definition at line 755 of file Fact.cc.

References _deferredValueChangeSignal, _sendValueChangedSignals, and valueChanged().

◆ _variantToString()

QString Fact::_variantToString ( const QVariant &  variant,
int  decimalPlaces 
) const
protected

◆ bitmaskStringsChanged

void Fact::bitmaskStringsChanged ( )
signal

◆ bitmaskValuesChanged

void Fact::bitmaskValuesChanged ( )
signal

◆ containerRawValueChanged

void Fact::containerRawValueChanged ( const QVariant &  value)
signal

This signal is meant for use by Fact container implementations. Used to send changed values to vehicle.

Referenced by QGCCameraParamIO::QGCCameraParamIO().

◆ enumsChanged

void Fact::enumsChanged ( )
signal

◆ rawValueChanged

◆ sendValueChangedSignalsChanged

void Fact::sendValueChangedSignalsChanged ( bool  sendValueChangedSignals)
signal

◆ valueChanged

◆ vehicleUpdated

void Fact::vehicleUpdated ( const QVariant &  value)
signal

Signalled when the param write ack comes back from the vehicle.

Member Data Documentation

◆ _componentId

int Fact::_componentId = -1
protected

Definition at line 203 of file Fact.h.

◆ _deferredValueChangeSignal

bool Fact::_deferredValueChangeSignal = false
protected

Definition at line 209 of file Fact.h.

Referenced by _sendValueChangedSignal().

◆ _metaData

FactMetaData* Fact::_metaData = nullptr
protected

Definition at line 207 of file Fact.h.

◆ _name

QString Fact::_name
protected

Definition at line 202 of file Fact.h.

Referenced by SettingsFact::SettingsFact().

◆ _rawValue

QVariant Fact::_rawValue {0}
protected

Definition at line 204 of file Fact.h.

Referenced by SettingsFact::SettingsFact().

◆ _rawValueMutex

QRecursiveMutex Fact::_rawValueMutex
mutableprotected

Definition at line 205 of file Fact.h.

Referenced by SettingsFact::SettingsFact().

◆ _sendValueChangedSignals

bool Fact::_sendValueChangedSignals = true
protected

Definition at line 208 of file Fact.h.

Referenced by _sendValueChangedSignal().

◆ _type

Definition at line 206 of file Fact.h.

◆ _valueSliderModel

FactValueSliderListModel* Fact::_valueSliderModel = nullptr
protected

Definition at line 210 of file Fact.h.

◆ kMissingMetadata

constexpr const char* Fact::kMissingMetadata = "Meta data pointer missing"
staticconstexprprotected

Definition at line 212 of file Fact.h.


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