|
QtPdCom
1.5.2
|
Scalar/Vector/Matrix Variant to be used in QML applications. More...
#include <PdVariable.h>


Classes | |
| class | Impl |
Signals | |
| void | valueChanged () |
| Emitted, when the value changes, or the variable is disconnected. | |
| void | valueUpdated (std::chrono::nanoseconds mtime) |
| Emitted also when value does not change but got an update from the msr process. | |
| void | pathChanged (QString) |
| void | connectionChanged () |
| void | dataPresentChanged (bool) |
Public Member Functions | |
| PdVariable (QObject *=Q_NULLPTR) | |
| Constructor. | |
| ~PdVariable () | |
| Destructor. | |
| void | clearVariable () |
| Unsubscribe from a Variable. | |
| bool | hasVariable () const |
| Connected state. | |
| void | clearData () |
| QVariant | getValue () const |
| Q_INVOKABLE void | setValue (QVariant) |
| QString | getValueAsString () const |
| Q_INVOKABLE void | setValueAsString (QString) |
| bool | getDataPresent () |
| std::chrono::nanoseconds | getMTime () const |
| double | getMTimeToDouble () const |
| PdConnection | getConnection () |
| void | setConnection (PdConnection const &) |
| void | updateConnection () |
| (re)connects to variable | |
| Q_INVOKABLE void | inc () |
| Increments the current value and writes it to the process. | |
Properties | |
| QtPdCom::PdConnection | connection |
| Connection property which describes the variable to connect to. | |
| bool | connected |
| Indicates that the process is connected and data is transfered. | |
| QVariant | value |
| Process value. | |
| QString | text |
| Interpret the elements of an process variable array as string. | |
| QVariant | mtime |
| Last modification time of the process variable. | |
Private Attributes | |
| class Q_DECL_HIDDEN | Impl |
| std::unique_ptr< Impl > | impl |
Scalar/Vector/Matrix Variant to be used in QML applications.
| PdVariable::PdVariable | ( | QObject * | parent = Q_NULLPTR | ) |
Constructor.
| PdVariable::~PdVariable | ( | ) |
Destructor.
| void PdVariable::clearData | ( | ) |
| void PdVariable::clearVariable | ( | ) |
Unsubscribe from a Variable.
|
signal |
|
signal |
| QtPdCom::PdConnection PdVariable::getConnection | ( | ) |
| bool PdVariable::getDataPresent | ( | ) |
| std::chrono::nanoseconds PdVariable::getMTime | ( | ) | const |
| double PdVariable::getMTimeToDouble | ( | ) | const |
| QVariant PdVariable::getValue | ( | ) | const |
| QString PdVariable::getValueAsString | ( | ) | const |
| bool PdVariable::hasVariable | ( | ) | const |
Connected state.
| void PdVariable::inc | ( | ) |
|
signal |
| void PdVariable::setConnection | ( | QtPdCom::PdConnection const & | conn | ) |
| void PdVariable::setValue | ( | QVariant | value | ) |
| void PdVariable::setValueAsString | ( | QString | value | ) |
| void PdVariable::updateConnection | ( | ) |
(re)connects to variable
Subscribes to a ProcessVariable.
|
signal |
Emitted, when the value changes, or the variable is disconnected.
|
signal |
Emitted also when value does not change but got an update from the msr process.
|
private |
|
private |
|
read |
Indicates that the process is connected and data is transfered.
|
read |
Connection property which describes the variable to connect to.
The default Process instance is accessible via the DefaultProcess singleton which is instantiated when importing the QtPdCom library.
|
read |
Last modification time of the process variable.
|
readwrite |
Interpret the elements of an process variable array as string.
|
readwrite |
Process value.