Qt 5.7 | Qt Data Visualization | C++ Classes | QScatterDataItem

Qt 5.7.1 Reference Documentation

# QScatterDataItem Class

The QScatterDataItem class provides a container for resolved data to be added to scatter graphs. More...

Header: | #include <QScatterDataItem>
Since: | QtDataVisualization 1.0

- List of all members, including inherited members

## Public Functions

| QScatterDataItem()
| QScatterDataItem(const QVector3D &position)
| QScatterDataItem(const QVector3D &position, const QQuaternion &rotation)
| QScatterDataItem(const QScatterDataItem &other)
| ~QScatterDataItem()
QVector3D | position() const
QQuaternion | rotation() const
void | setPosition(const QVector3D &pos)
void | setRotation(const QQuaternion &rot)
void | setX(float value)
void | setY(float value)
void | setZ(float value)
float | x() const
float | y() const
float | z() const
QScatterDataItem & | operator=(const QScatterDataItem &other)

## Detailed Description

The QScatterDataItem class provides a container for resolved data to be added to scatter graphs.

A QScatterDataItem holds data for a single rendered item in a scatter graph. Scatter data proxies parse data into QScatterDataItem instances for visualizing.

See also QScatterDataProxy and Qt Data Visualization C++ Classes.

## Member Function Documentation

### QScatterDataItem::QScatterDataItem()

Constructs QScatterDataItem.

### QScatterDataItem::QScatterDataItem(const QVector3D &position)

Constructs QScatterDataItem with position.

### QScatterDataItem::QScatterDataItem(const QVector3D &position, const QQuaternion &rotation)

Constructs QScatterDataItem with position and rotation.

### QScatterDataItem::QScatterDataItem(const QScatterDataItem &other)

Constructs a copy of other.

### QScatterDataItem::~QScatterDataItem()

Destroys QScatterDataItem.

### QVector3D QScatterDataItem::position() const

Returns position of this data item.

See also setPosition().

### QQuaternion QScatterDataItem::rotation() const

Returns rotation of this data item.

See also setRotation().

### void QScatterDataItem::setPosition(const QVector3D &pos)

Sets position pos to this data item.

See also position().

### void QScatterDataItem::setRotation(const QQuaternion &rot)

Sets rotation rot to this data item. The rot should be a normalized QQuaternion. If the series also has rotation, item and series rotations are multiplied together. Defaults to no rotation.

See also rotation().

### void QScatterDataItem::setX(float value)

Sets the X component of the item position to the value.

See also x().

### void QScatterDataItem::setY(float value)

Sets the Y component of the item position to the value.

See also y().

### void QScatterDataItem::setZ(float value)

Sets the Z component of the item position to the value.

See also z().

### float QScatterDataItem::x() const

Returns the X component of the position of this data item.

See also setX().

### float QScatterDataItem::y() const

Returns the Y component of the position of this data item.

See also setY().

### float QScatterDataItem::z() const

Returns the Z component of the position of this data item.

See also setZ().

### QScatterDataItem &QScatterDataItem::operator=(const QScatterDataItem &other)

Assigns a copy of other to this object.