QOpcUaComplexNumber Class
Le type OPC UA ComplexNumber. Plus...
| En-tête : | #include <QOpcUaComplexNumber> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS OpcUa)target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake : | QT += opcua |
Fonctions publiques
| QOpcUaComplexNumber() | |
| QOpcUaComplexNumber(float real, float imaginary) | |
| float | imaginary() const |
| float | real() const |
| void | setImaginary(float imaginary) |
| void | setReal(float real) |
| operator QVariant() const | |
| QOpcUaComplexNumber & | operator=(const QOpcUaComplexNumber &rhs) |
| bool | operator==(const QOpcUaComplexNumber &rhs) const |
Description détaillée
Le type ComplexNumberType est défini dans OPC UA 1.05 partie 8, 5.6.4. Il stocke un nombre complexe avec une précision flottante.
Documentation des fonctions membres
QOpcUaComplexNumber::QOpcUaComplexNumber()
Par défaut, un nombre complexe est construit sans aucun paramètre.
QOpcUaComplexNumber::QOpcUaComplexNumber(float real, float imaginary)
Construit un nombre complexe avec la partie réelle real et la partie imaginaire imaginary.
float QOpcUaComplexNumber::imaginary() const
Renvoie la partie imaginaire du nombre complexe.
Voir aussi setImaginary().
float QOpcUaComplexNumber::real() const
Renvoie la partie réelle du nombre complexe.
Voir aussi setReal().
void QOpcUaComplexNumber::setImaginary(float imaginary)
Fixe la partie imaginaire du nombre complexe à imaginary.
Voir aussi imaginary().
void QOpcUaComplexNumber::setReal(float real)
Fixe la partie réelle du nombre complexe à real.
Voir aussi real().
QOpcUaComplexNumber::operator QVariant() const
Convertit ce nombre complexe en QVariant.
QOpcUaComplexNumber &QOpcUaComplexNumber::operator=(const QOpcUaComplexNumber &rhs)
Définit les valeurs de rhs dans ce nombre complexe.
bool QOpcUaComplexNumber::operator==(const QOpcUaComplexNumber &rhs) const
Renvoie true si ce nombre complexe a la même valeur que rhs.
© 2026 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.