In questa pagina

QOpcUaDoubleComplexNumber Class

Il tipo DoubleComplexNumber di OPC UA. Per saperne di più...

Intestazione: #include <QOpcUaDoubleComplexNumber>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

Funzioni pubbliche

QOpcUaDoubleComplexNumber()
QOpcUaDoubleComplexNumber(double real, double imaginary)
double imaginary() const
double real() const
void setImaginary(double imaginary)
void setReal(double real)
operator QVariant() const
QOpcUaDoubleComplexNumber &operator=(const QOpcUaDoubleComplexNumber &rhs)
bool operator==(const QOpcUaDoubleComplexNumber &rhs) const

Descrizione dettagliata

Il tipo DoubleComplexNumberType definito nella specifica OPC UA 1.05, parte 8, sezione 5.6.5. Memorizza un numero complesso a doppia precisione.

Documentazione delle funzioni dei membri

QOpcUaDoubleComplexNumber::QOpcUaDoubleComplexNumber()

La funzione `Default` crea un numero complesso di tipo `double` senza impostare alcun parametro.

QOpcUaDoubleComplexNumber::QOpcUaDoubleComplexNumber(double real, double imaginary)

Crea un numero complesso doppio con parte reale real e parte immaginaria imaginary.

double QOpcUaDoubleComplexNumber::imaginary() const

Restituisce la parte immaginaria del numero complesso.

Vedi anche ` setImaginary()`.

double QOpcUaDoubleComplexNumber::real() const

Restituisce la parte reale del numero complesso.

Vedi anche setReal().

void QOpcUaDoubleComplexNumber::setImaginary(double imaginary)

Imposta la parte immaginaria del numero complesso su imaginary.

Vedi anche imaginary().

void QOpcUaDoubleComplexNumber::setReal(double real)

Imposta la parte reale del numero complesso su real.

Vedi anche real().

QOpcUaDoubleComplexNumber::operator QVariant() const

Converte questo numero complesso di tipo double in un QVariant.

QOpcUaDoubleComplexNumber &QOpcUaDoubleComplexNumber::operator=(const QOpcUaDoubleComplexNumber &rhs)

Imposta i valori da rhs in questo numero complesso di tipo double.

bool QOpcUaDoubleComplexNumber::operator==(const QOpcUaDoubleComplexNumber &rhs) const

Restituisce ` true ` se questo numero complesso di tipo `double` ha lo stesso valore di ` 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.