QOpcUaComplexNumber Class

OPC UA ComplexNumber型。詳細...

ヘッダ #include <QOpcUaComplexNumber>
CMakeの find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

パブリック関数

QOpcUaComplexNumber()
QOpcUaComplexNumber(float real, float imaginary)
float imaginary() const
float real() const
void setImaginary(float imaginary)
void setReal(float real)
QVariant operator QVariant() const
QOpcUaComplexNumber &operator=(const QOpcUaComplexNumber &rhs)
bool operator==(const QOpcUaComplexNumber &rhs) const

詳細説明

OPC UA 1.05 part 8 5.6.4で定義されているComplexNumberType。浮動小数点精度の複素数を格納する。

メンバ関数ドキュメント

QOpcUaComplexNumber::QOpcUaComplexNumber()

デフォルトでは、パラメータを設定せずに複素数を構成する。

QOpcUaComplexNumber::QOpcUaComplexNumber(float real, float imaginary)

実数部real と虚数部imaginary を持つ複素数を構成する。

float QOpcUaComplexNumber::imaginary() const

複素数の虚部を返す。

setImaginary()も参照

float QOpcUaComplexNumber::real() const

複素数の実部を返す。

setReal()も参照

void QOpcUaComplexNumber::setImaginary(float imaginary)

複素数の虚部をimaginary に設定する。

imaginary()も参照のこと

void QOpcUaComplexNumber::setReal(float real)

複素数の実部をreal に設定する。

real()も参照のこと

QVariant QOpcUaComplexNumber::operator QVariant() const

この複素数をQVariant に変換する。

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

この複素数にrhs からの値を設定する。

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

この複素数がrhs と同じ値を持つ場合、true を返す。

© 2025 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.