このページでは

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)
operator QVariant() const
QOpcUaComplexNumber &operator=(const QOpcUaComplexNumber &rhs)
bool operator==(const QOpcUaComplexNumber &rhs) const

詳細な説明

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

メンバ関数のドキュメント

QOpcUaComplexNumber::QOpcUaComplexNumber()

default は、パラメータを一切指定せずに複素数を生成します。

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()も参照してください 。

QOpcUaComplexNumber::operator QVariant() const

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

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

rhs の値を、この複素数に設定します。

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

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

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