QOpcUaComplexNumber Class

OPC UA 복소수 유형입니다. 더 보기...

헤더: #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 파트 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.