QOpcUaXValue Class

The OPC UA XVType. 更多...

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

公共函数

QOpcUaXValue (double x , float value )
QOpcUaXValue (const QOpcUaXValue & rhs )
void setValue (float value )
void setX (double x )
float value () const
double x () const
QVariant operator QVariant () const
QOpcUaXValue & operator= (const QOpcUaXValue & rhs )
bool operator== (const QOpcUaXValue & rhs ) const

详细描述

This is the Qt OPC UA representation for the OPC UA XVType type defined in OPC-UA part 8, 5.6.8. This type is used to position values of float precision on an axis with double precision.

成员函数文档编制

QOpcUaXValue:: QOpcUaXValue ( double x , float value )

Constructs an XValue with position x and value value .

QOpcUaXValue:: QOpcUaXValue (const QOpcUaXValue & rhs )

Constructs an XValue from rhs .

void QOpcUaXValue:: setValue ( float value )

Sets the value for position x to value .

另请参阅 value ().

void QOpcUaXValue:: setX ( double x )

Sets the position of the value on the axis to x .

另请参阅 x ().

float QOpcUaXValue:: value () const

Returns the value for position x.

另请参阅 setValue ().

double QOpcUaXValue:: x () const

Returns the position of the value on the axis.

另请参阅 setX ().

QVariant QOpcUaXValue:: operator QVariant () const

Converts this XValue to QVariant .

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

设置值从 rhs in this XValue.

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

返回 true if this XValue has the same value as rhs .