class QScatterDataItem

The QScatterDataItem class provides a container for resolved data to be added to scatter 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 scatter data item holds the data for a single rendered item in a scatter graph. Scatter data proxies parse data into QScatterDataItem instances for scatter graphs.

__init__()

Default constructor for scatter data item.

__init__(position)
Parameters:

positionQVector3D

Constructs scatter data item with position position.

__init__(position, rotation)
Parameters:

Constructs scatter data item with position position and rotation rotation.

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

  • y – float

  • z – float

Constructs a scatter 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()

rotation()
Return type:

QQuaternion

Returns the rotation of this data item.

See also

setRotation()

setPosition(pos)
Parameters:

posQVector3D

Sets the position pos for this data item.

See also

position()

setRotation(rot)
Parameters:

rotQQuaternion

Sets the rotation rot for this data item. The value of rot should be a normalized QQuaternion. If the series also has rotation, item rotation is multiplied by it. Defaults to no rotation.

See also

rotation()

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()