QOpcUaComplexNumber Class
El tipo ComplexNumber de OPC UA. Más...
| Cabecera: | #include <QOpcUaComplexNumber> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa)target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
Funciones públicas
| 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 |
Descripción detallada
El ComplexNumberType definido en OPC UA 1.05 parte 8, 5.6.4. Almacena un número complejo con precisión flotante.
Documentación de la función miembro
QOpcUaComplexNumber::QOpcUaComplexNumber()
Por defecto construye un número complejo sin parámetros establecidos.
QOpcUaComplexNumber::QOpcUaComplexNumber(float real, float imaginary)
Construye un número complejo con parte real real y parte imaginaria imaginary.
float QOpcUaComplexNumber::imaginary() const
Devuelve la parte imaginaria del número complejo.
Véase también setImaginary().
float QOpcUaComplexNumber::real() const
Devuelve la parte real del número complejo.
Véase también setReal().
void QOpcUaComplexNumber::setImaginary(float imaginary)
Establece la parte imaginaria del número complejo en imaginary.
Véase también imaginary().
void QOpcUaComplexNumber::setReal(float real)
Establece la parte real del número complejo en real.
Véase también real().
QOpcUaComplexNumber::operator QVariant() const
Convierte este número complejo a QVariant.
QOpcUaComplexNumber &QOpcUaComplexNumber::operator=(const QOpcUaComplexNumber &rhs)
Establece los valores de rhs en este número complejo.
bool QOpcUaComplexNumber::operator==(const QOpcUaComplexNumber &rhs) const
Devuelve true si este número complejo tiene el mismo valor 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.