QOpcUaAxisInformation Class
OPC UA 的 AxisInformation 类型。更多内容...
| 头文件: | #include <QOpcUaAxisInformation> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
公共函数
| QOpcUaAxisInformation() | |
| QOpcUaAxisInformation(const QOpcUaEUInformation &engineeringUnits, const QOpcUaRange &eURange, const QOpcUaLocalizedText &title, const QOpcUa::AxisScale &axisScaleType, const QList<double> &axisSteps) | |
| QOpcUaAxisInformation(const QOpcUaAxisInformation &rhs) | |
| QOpcUa::AxisScale | axisScaleType() const |
| QList<double> | axisSteps() const |
| QList<double> & | axisStepsRef() |
| QOpcUaRange | eURange() const |
| QOpcUaEUInformation | engineeringUnits() const |
| void | setAxisScaleType(QOpcUa::AxisScale axisScaleType) |
| void | setAxisSteps(const QList<double> &axisSteps) |
| void | setEURange(const QOpcUaRange &eURange) |
| void | setEngineeringUnits(const QOpcUaEUInformation &engineeringUnits) |
| void | setTitle(const QOpcUaLocalizedText &title) |
| QOpcUaLocalizedText | title() const |
| operator QVariant() const | |
| QOpcUaAxisInformation & | operator=(const QOpcUaAxisInformation &rhs) |
| bool | operator==(const QOpcUaAxisInformation &rhs) const |
详细说明
这是对OPC UA 1.05第8部分5.6.6节中定义的OPC UA AxisInformation类型的Qt OPC UA 表示形式。它包含有关某个轴的信息,可用于多种用途。一个常见的用例是绘制显示数据。 工程单位和标题用于图表上的文本,range、axisScaleType 和axisSteps 则用于提供图表的缩放比例和坐标轴范围。
成员函数文档
QOpcUaAxisInformation::QOpcUaAxisInformation()
默认情况下,会构建一个未设置任何参数的轴信息。
QOpcUaAxisInformation::QOpcUaAxisInformation(const QOpcUaEUInformation &engineeringUnits, const QOpcUaRange &eURange, const QOpcUaLocalizedText &title, const QOpcUa::AxisScale &axisScaleType, const QList<double> &axisSteps)
使用工程单位engineeringUnits 、范围eURange 、标题title 、缩放比例axisScaleType 和轴步长axisSteps 构建坐标轴信息。
QOpcUaAxisInformation::QOpcUaAxisInformation(const QOpcUaAxisInformation &rhs)
根据rhs 构建坐标轴信息。
QOpcUa::AxisScale QOpcUaAxisInformation::axisScaleType() const
返回该轴的缩放比例,该比例由QOpcUa::AxisScale 定义。
另请参阅 setAxisScaleType()。
QList<double> QOpcUaAxisInformation::axisSteps() const
返回每个轴步长对应的特定值。
如果数据点均匀分布,且步长可通过步数和范围计算得出,则该值为空。如果各数据点的步长不同,但在较长时间内保持恒定,则每个数据点都会有一个条目。
另请参阅 setAxisSteps()。
QList<double> &QOpcUaAxisInformation::axisStepsRef()
返回对轴步长的引用。
QOpcUaRange QOpcUaAxisInformation::eURange() const
返回该轴的下限值和上限值。
另请参阅 setEURange()。
QOpcUaEUInformation QOpcUaAxisInformation::engineeringUnits() const
返回该轴的工程单位。
另请参阅 setEngineeringUnits()。
void QOpcUaAxisInformation::setAxisScaleType(QOpcUa::AxisScale axisScaleType)
将坐标轴比例类型设置为axisScaleType 。
另请参阅 axisScaleType()。
void QOpcUaAxisInformation::setAxisSteps(const QList<double> &axisSteps)
将坐标轴步长设置为axisSteps 。
另请参阅 axisSteps()。
void QOpcUaAxisInformation::setEURange(const QOpcUaRange &eURange)
将该坐标轴的下限和上限设置为eURange 。
另请参阅 eURange()。
void QOpcUaAxisInformation::setEngineeringUnits(const QOpcUaEUInformation &engineeringUnits)
将工程单位设置为engineeringUnits 。
另请参阅 engineeringUnits()。
void QOpcUaAxisInformation::setTitle(const QOpcUaLocalizedText &title)
将标题设置为title 。
另请参阅 title()。
QOpcUaLocalizedText QOpcUaAxisInformation::title() const
返回该轴的标题。
另请参阅 setTitle()。
QOpcUaAxisInformation::operator QVariant() const
将该轴信息转换为QVariant 。
QOpcUaAxisInformation &QOpcUaAxisInformation::operator=(const QOpcUaAxisInformation &rhs)
将rhs 中的值设置为此轴信息中的值。
bool QOpcUaAxisInformation::operator==(const QOpcUaAxisInformation &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.