QOpcUaComplexNumber Class
Der OPC UA ComplexNumber Typ. Mehr...
Kopfzeile: | #include <QOpcUaComplexNumber> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
Öffentliche Funktionen
QOpcUaComplexNumber() | |
QOpcUaComplexNumber(float real, float imaginary) | |
float | imaginary() const |
float | real() const |
void | setImaginary(float imaginary) |
void | setReal(float real) |
QVariant | operator QVariant() const |
QOpcUaComplexNumber & | operator=(const QOpcUaComplexNumber &rhs) |
bool | operator==(const QOpcUaComplexNumber &rhs) const |
Detaillierte Beschreibung
Der ComplexNumberType definiert in OPC UA 1.05 Teil 8, 5.6.4. Er speichert eine komplexe Zahl mit Float-Präzision.
Dokumentation der Mitgliedsfunktionen
QOpcUaComplexNumber::QOpcUaComplexNumber()
Standard konstruiert eine komplexe Zahl ohne gesetzte Parameter.
QOpcUaComplexNumber::QOpcUaComplexNumber(float real, float imaginary)
Konstruiert eine komplexe Zahl mit Realteil real und Imaginärteil imaginary.
float QOpcUaComplexNumber::imaginary() const
Gibt den Imaginärteil der komplexen Zahl zurück.
Siehe auch setImaginary().
float QOpcUaComplexNumber::real() const
Gibt den Realteil der komplexen Zahl zurück.
Siehe auch setReal().
void QOpcUaComplexNumber::setImaginary(float imaginary)
Setzt den Imaginärteil der komplexen Zahl auf imaginary.
Siehe auch imaginary().
void QOpcUaComplexNumber::setReal(float real)
Setzt den Realteil der komplexen Zahl auf real.
Siehe auch real().
QVariant QOpcUaComplexNumber::operator QVariant() const
Wandelt diese komplexe Zahl in QVariant um.
QOpcUaComplexNumber &QOpcUaComplexNumber::operator=(const QOpcUaComplexNumber &rhs)
Legt die Werte von rhs in dieser komplexen Zahl fest.
bool QOpcUaComplexNumber::operator==(const QOpcUaComplexNumber &rhs) const
Gibt true
zurück, wenn diese komplexe Zahl denselben Wert hat wie rhs.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.