QOpcUaDoubleComplexNumber Class

The OPC UA DoubleComplexNumber type. 更多...

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

公共函数

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

详细描述

The DoubleComplexNumberType defined in OPC UA 1.05 part 8, 5.6.5. It stores a complex number with double precision.

成员函数文档编制

QOpcUaDoubleComplexNumber:: QOpcUaDoubleComplexNumber ()

Default constructs a double complex number with no parameters set.

QOpcUaDoubleComplexNumber:: QOpcUaDoubleComplexNumber ( double real , double imaginary )

Constructs a double complex number with real part real and imaginary part imaginary .

double QOpcUaDoubleComplexNumber:: imaginary () const

Returns the imaginary part of the complex number.

另请参阅 setImaginary ().

double QOpcUaDoubleComplexNumber:: real () const

Returns the real part of the complex number.

另请参阅 setReal ().

void QOpcUaDoubleComplexNumber:: setImaginary ( double imaginary )

Sets the imaginary part of the complex number to imaginary .

另请参阅 imaginary ().

void QOpcUaDoubleComplexNumber:: setReal ( double real )

Sets the real part of the complex number to real .

另请参阅 real ().

QVariant QOpcUaDoubleComplexNumber:: operator QVariant () const

Converts this double complex number to QVariant .

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

设置值从 rhs in this double complex number.

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

返回 true if this double complex number has the same value as rhs .