QOpcUaComplexNumber Class
O tipo ComplexNumber do OPC UA. Mais...
| Cabeçalho: | #include <QOpcUaComplexNumber> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
Funções 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 |
Descrição detalhada
O ComplexNumberType definido na norma OPC UA 1.05, parte 8, 5.6.4. Ele armazena um número complexo com precisão de tipo float.
Documentação das funções de membro
QOpcUaComplexNumber::QOpcUaComplexNumber()
O `default` cria um número complexo sem parâmetros definidos.
QOpcUaComplexNumber::QOpcUaComplexNumber(float real, float imaginary)
Cria um número complexo com parte real real e parte imaginária imaginary.
float QOpcUaComplexNumber::imaginary() const
Retorna a parte imaginária do número complexo.
Veja também setImaginary().
float QOpcUaComplexNumber::real() const
Retorna a parte real do número complexo.
Veja também setReal().
void QOpcUaComplexNumber::setImaginary(float imaginary)
Define a parte imaginária do número complexo como imaginary.
Veja também imaginary().
void QOpcUaComplexNumber::setReal(float real)
Define a parte real do número complexo como real.
Veja também real().
QOpcUaComplexNumber::operator QVariant() const
Converte esse número complexo em QVariant.
QOpcUaComplexNumber &QOpcUaComplexNumber::operator=(const QOpcUaComplexNumber &rhs)
Define os valores de rhs neste número complexo.
bool QOpcUaComplexNumber::operator==(const QOpcUaComplexNumber &rhs) const
Retorna ` true ` se esse número complexo tiver o mesmo 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.