Sur cette page

QOpcUaComplexNumber Class

Le type « ComplexNumber » d'OPC UA. En savoir 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 défini dans la norme OPC UA 1.05, partie 8, section 5.6.4. Il stocke un nombre complexe avec une précision de type float.

Documentation des fonctions membres

QOpcUaComplexNumber::QOpcUaComplexNumber()

La fonction `default` construit un nombre complexe sans définir de paramètres.

QOpcUaComplexNumber::QOpcUaComplexNumber(float real, float imaginary)

Construit un nombre complexe dont la partie réelle est 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)

Définit la partie imaginaire du nombre complexe sur imaginary.

Voir aussi imaginary().

void QOpcUaComplexNumber::setReal(float real)

Définit la partie réelle du nombre complexe comme suit : 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.