QOpcUaAxisInformation Class

The OPC UA AxisInformation type. 更多...

頭: #include <QOpcUaAxisInformation>
qmake: QT += opcua

公共函數

QOpcUaAxisInformation (const QOpcUaEUInformation & engineeringUnits , const QOpcUaRange & eURange , const QOpcUaLocalizedText & title , const QOpcUa::AxisScale & axisScaleType , const QVector<double> & axisSteps )
QOpcUaAxisInformation (const QOpcUaAxisInformation & rhs )
QOpcUaAxisInformation & operator= (const QOpcUaAxisInformation & rhs )
QOpcUa::AxisScale axisScaleType () const
QVector<double> axisSteps () const
QVector<double> & axisStepsRef ()
QOpcUaRange eURange () const
QOpcUaEUInformation engineeringUnits () const
void setAxisScaleType (QOpcUa::AxisScale axisScaleType )
void setAxisSteps (const QVector<double> & axisSteps )
void setEURange (const QOpcUaRange & eURange )
void setEngineeringUnits (const QOpcUaEUInformation & engineeringUnits )
void setTitle (const QOpcUaLocalizedText & title )
QOpcUaLocalizedText title () const
QVariant operator QVariant () const
bool operator== (const QOpcUaAxisInformation & rhs ) const

詳細描述

This is the Qt OPC UA representation for the OPC UA AxisInformation type defined in OPC-UA part 8, 5.6.6. It contains information about an axis which can be used for multiple purposes. A common use case could involve the plotting of display data. The engineering units and the title are used for the text on the plot, range, axisScaleType and axisSteps provide the scaling and the axis ranges of the plot.

成員函數文檔編製

QOpcUaAxisInformation:: QOpcUaAxisInformation (const QOpcUaEUInformation & engineeringUnits , const QOpcUaRange & eURange , const QOpcUaLocalizedText & title , const QOpcUa::AxisScale & axisScaleType , const QVector < double > & axisSteps )

Constructs axis information with engineering units engineeringUnits , range eURange , title title , scaling axisScaleType and axis steps axisSteps .

QOpcUaAxisInformation:: QOpcUaAxisInformation (const QOpcUaAxisInformation & rhs )

Constructs axis information from rhs .

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

設置值從 rhs in this axis information.

QOpcUa::AxisScale QOpcUaAxisInformation:: axisScaleType () const

Returns the scaling of this axis, defined by QOpcUa::AxisScale .

另請參閱 setAxisScaleType ().

QVector < double > QOpcUaAxisInformation:: axisSteps () const

Returns specific values for each axis step.

This value is empty if the points are equally distributed and the step size can be calculated from the number of steps and the range. If the steps are different for each point but constant over a longer time, there is an entry for each data point.

另請參閱 setAxisSteps ().

QVector < double > &QOpcUaAxisInformation:: axisStepsRef ()

Returns a reference to the axis steps.

QOpcUaRange QOpcUaAxisInformation:: eURange () const

Returns the lower and upper values of this axis.

另請參閱 setEURange ().

QOpcUaEUInformation QOpcUaAxisInformation:: engineeringUnits () const

Returns the engineering units of this axis.

另請參閱 setEngineeringUnits ().

void QOpcUaAxisInformation:: setAxisScaleType ( QOpcUa::AxisScale axisScaleType )

Sets the axis scale type to axisScaleType .

另請參閱 axisScaleType ().

void QOpcUaAxisInformation:: setAxisSteps (const QVector < double > & axisSteps )

Sets the axis steps to axisSteps .

另請參閱 axisSteps ().

void QOpcUaAxisInformation:: setEURange (const QOpcUaRange & eURange )

Sets the lower and upper values of this axis to eURange .

另請參閱 eURange ().

void QOpcUaAxisInformation:: setEngineeringUnits (const QOpcUaEUInformation & engineeringUnits )

Sets the engineering units to engineeringUnits .

另請參閱 engineeringUnits ().

void QOpcUaAxisInformation:: setTitle (const QOpcUaLocalizedText & title )

Sets the title to title .

另請參閱 title ().

QOpcUaLocalizedText QOpcUaAxisInformation:: title () const

Returns the title of this axis.

另請參閱 setTitle ().

QVariant QOpcUaAxisInformation:: operator QVariant () const

Converts this axis information to QVariant .

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

返迴 true if this axis information has the same value as rhs .