PySide6.QtGraphs.QSurfaceDataItem

class QSurfaceDataItem

The QSurfaceDataItem class provides a container for resolved data to be added to surface graphs. More

Synopsis

Methods

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

A surface data item holds the data for a single vertex in a surface graph. Surface data proxies parse data into QSurfaceDataItem instances for surface graphs.

__init__()

Constructs a surface data item.

__init__(position)
Parameters:

positionQVector3D

Constructs a surface data item at the position position.

__init__(x, y, z)
Parameters:
  • x – float

  • y – float

  • z – float

Constructs a surface data item at the position specified by x, y, and z.

position()
Return type:

QVector3D

Returns the position of this data item.

See also

setPosition()

setPosition(pos)
Parameters:

posQVector3D

Sets the position pos to this data item.

See also

position()

setX(value)
Parameters:

value – float

Sets the x-coordinate of the item position to the value value.

See also

x()

setY(value)
Parameters:

value – float

Sets the y-coordinate of the item position to the value value.

See also

y()

setZ(value)
Parameters:

value – float

Sets the z-coordinate of the item position to the value value.

See also

z()

x()
Return type:

float

Returns the x-coordinate of the position of this data item.

See also

setX()

y()
Return type:

float

Returns the y-coordinate of the position of this data item.

See also

setY()

z()
Return type:

float

Returns the z-coordinate of the position of this data item.

See also

setZ()