QOpcUaMultiDimensionalArray#
A container class for multidimensional arrays. More…
Synopsis#
Functions#
def
arrayDimensions
()def
arrayIndex
(indices)def
isValid
()def
__eq__
(other)def
setArrayDimensions
(arrayDimensions)def
setValue
(indices, value)def
setValueArray
(valueArray)def
value
(indices)def
valueArray
()def
valueArrayRef
()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
This class manages arrays of Qt OPC UA types with associated array dimensions information. It is returned as value when a multidimensional array is received from the server. It can also be used as a write value or as parameter for filters and method calls.
- class PySide6.QtOpcUa.QOpcUaMultiDimensionalArray#
PySide6.QtOpcUa.QOpcUaMultiDimensionalArray(valueArray, arrayDimensions)
PySide6.QtOpcUa.QOpcUaMultiDimensionalArray(arrayDimensions)
PySide6.QtOpcUa.QOpcUaMultiDimensionalArray(other)
- Parameters:
arrayDimensions – .list of quint32
valueArray – .list of QVariant
Default constructs a multi dimensional array with no parameters set.
Constructs a multidimensional array with value value
and array dimensions arrayDimensions
.
Creates a multidimensional array with preallocated data fitting arrayDimensions
.
Constructs a multidimensional array from other
.
- PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.arrayDimensions()#
- Return type:
.list of quint32
Returns the dimensions of the multidimensional array. The element at position n contains the length of the n-th dimension.
See also
- PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.arrayIndex(indices)#
- Parameters:
indices – .list of quint32
- Return type:
int
Returns the array index in valueArray()
of the element identified by indices
. If indices
is invalid for the array or if the array’s dimensions don’t match the size of valueArray()
, the invalid index -1
is returned.
- PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.isValid()#
- Return type:
bool
Returns true
if the multidimensional array is valid
- PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.__eq__(other)#
- Parameters:
- Return type:
bool
Returns true
if this multidimensional array has the same value as other
.
- PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.setArrayDimensions(arrayDimensions)#
- Parameters:
arrayDimensions – .list of quint32
Sets the dimensions of the multidimensional array to arrayDimensions
.
See also
- PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.setValue(indices, value)#
- Parameters:
indices – .list of quint32
value – object
- Return type:
bool
Sets the value at position indices
to value
. Returns true
if the value has been successfully set.
See also
- PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.setValueArray(valueArray)#
- Parameters:
valueArray – .list of QVariant
Sets the value array of the multidimensional array to value
.
See also
- PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.value(indices)#
- Parameters:
indices – .list of quint32
- Return type:
object
Returns the value of the element identified by indices
. If the indices are invalid for the array, an empty QVariant is returned.
See also
- PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.valueArray()#
- Return type:
.list of QVariant
Returns the value array of the multidimensional array.
See also
- PySide6.QtOpcUa.QOpcUaMultiDimensionalArray.valueArrayRef()#
- Return type:
.list of QVariant
Returns a reference to the value array of the multidimensional array.