PdQmlWidgets  2.0.0
Signals | Public Member Functions | Properties | List of all members
PdQmlWidgets::ScalarVariant Class Reference

Scalar Variant to be used in QML applications which is aware of the process to detect connections/or reconnect. More...

#include <ScalarVariant.h>

Inheritance diagram for PdQmlWidgets::ScalarVariant:
Inheritance graph
[legend]
Collaboration diagram for PdQmlWidgets::ScalarVariant:
Collaboration graph
[legend]

Signals

void valueChanged (QVariant)
 Emitted, when the value changes, or the variable is disconnected. More...
 
void valueUpdated (double)
 Emitted also when value does not change but got an update from the msr process. More...
 
void pathChanged (QString &)
 
void dataPresentChanged (bool)
 
void connectionUpdated ()
 

Public Member Functions

 ScalarVariant (QObject *parent=nullptr)
 
virtual ~ScalarVariant ()
 
QString getPath () const
 
Q_INVOKABLE bool getDataPresent () const
 
QVariant getConnection () const
 
void clearData ()
 
Q_INVOKABLE bool hasData () const
 
QtPdCom::Process * getProcess () const
 
void setPath (QString)
 
void setConnection (QVariant)
 
void setProcess (QtPdCom::Process *)
 
QVariant getValue () const
 
Q_INVOKABLE void setValue (QVariant)
 
std::chrono::nanoseconds getMTime () const
 
double getMTimeToDouble () const
 
Q_INVOKABLE void inc ()
 

Properties

QString path
 
QVariant connection
 if one want's to update the variable connection values in one call supply a map with {"path":path(string), "period":sampleTime(double), "offset":offset(double), "scale":scale(double), "tau":tau(double) PT1-Filter 0: if no filter .... More...
 
bool connected
 
QVariant value
 
double mtime
 

Detailed Description

Scalar Variant to be used in QML applications which is aware of the process to detect connections/or reconnect.

Constructor & Destructor Documentation

◆ ScalarVariant()

PdQmlWidgets::ScalarVariant::ScalarVariant ( QObject *  parent = nullptr)

◆ ~ScalarVariant()

virtual PdQmlWidgets::ScalarVariant::~ScalarVariant ( )
virtual

Member Function Documentation

◆ clearData()

void PdQmlWidgets::ScalarVariant::clearData ( )

◆ connectionUpdated

void PdQmlWidgets::ScalarVariant::connectionUpdated ( )
signal

◆ dataPresentChanged

void PdQmlWidgets::ScalarVariant::dataPresentChanged ( bool  )
signal

◆ getConnection()

QVariant PdQmlWidgets::ScalarVariant::getConnection ( ) const

◆ getDataPresent()

Q_INVOKABLE bool PdQmlWidgets::ScalarVariant::getDataPresent ( ) const

◆ getMTime()

std::chrono::nanoseconds PdQmlWidgets::ScalarVariant::getMTime ( ) const

◆ getMTimeToDouble()

double PdQmlWidgets::ScalarVariant::getMTimeToDouble ( ) const

◆ getPath()

QString PdQmlWidgets::ScalarVariant::getPath ( ) const

◆ getProcess()

QtPdCom::Process* PdQmlWidgets::ScalarVariant::getProcess ( ) const

◆ getValue()

QVariant PdQmlWidgets::ScalarVariant::getValue ( ) const

◆ hasData()

Q_INVOKABLE bool PdQmlWidgets::ScalarVariant::hasData ( ) const

◆ inc()

Q_INVOKABLE void PdQmlWidgets::ScalarVariant::inc ( )

◆ pathChanged

void PdQmlWidgets::ScalarVariant::pathChanged ( QString &  )
signal

◆ setConnection()

void PdQmlWidgets::ScalarVariant::setConnection ( QVariant  )

◆ setPath()

void PdQmlWidgets::ScalarVariant::setPath ( QString  )

◆ setProcess()

void PdQmlWidgets::ScalarVariant::setProcess ( QtPdCom::Process *  )

◆ setValue()

Q_INVOKABLE void PdQmlWidgets::ScalarVariant::setValue ( QVariant  )

◆ valueChanged

void PdQmlWidgets::ScalarVariant::valueChanged ( QVariant  )
signal

Emitted, when the value changes, or the variable is disconnected.

◆ valueUpdated

void PdQmlWidgets::ScalarVariant::valueUpdated ( double  )
signal

Emitted also when value does not change but got an update from the msr process.

Property Documentation

◆ connected

bool PdQmlWidgets::ScalarVariant::connected
read

◆ connection

QVariant PdQmlWidgets::ScalarVariant::connection
readwrite

if one want's to update the variable connection values in one call supply a map with {"path":path(string), "period":sampleTime(double), "offset":offset(double), "scale":scale(double), "tau":tau(double) PT1-Filter 0: if no filter ....

}

◆ mtime

double PdQmlWidgets::ScalarVariant::mtime
read

◆ path

QString PdQmlWidgets::ScalarVariant::path
readwrite

◆ value

QVariant PdQmlWidgets::ScalarVariant::value
readwrite

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