Qt 5.11 | Qt Data Visualization | C++ Classes | QSurfaceDataItem

Qt Data Visualization | Commercial or GPLv3

# QSurfaceDataItem Class

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

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

- List of all members, including inherited members

## Public Functions

| QSurfaceDataItem()
| QSurfaceDataItem(const QVector3D &position)
| QSurfaceDataItem(const QSurfaceDataItem &other)
| ~QSurfaceDataItem()
QVector3D | position() const
void | setPosition(const QVector3D &pos)
void | setX(float value)
void | setY(float value)
void | setZ(float value)
float | x() const
float | y() const
float | z() const
QSurfaceDataItem & | operator=(const QSurfaceDataItem &other)

## Detailed Description

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

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

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

## Member Function Documentation

### QSurfaceDataItem::QSurfaceDataItem()

Constructs a surface data item.

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

Constructs a surface data item at the position position.

### QSurfaceDataItem::QSurfaceDataItem(const QSurfaceDataItem &other)

Constructs a copy of other.

### QSurfaceDataItem::~QSurfaceDataItem()

Deletes a surface data item.

### QVector3D QSurfaceDataItem::position() const

See also setPosition().

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

See also position().

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

See also x().

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

See also y().

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

See also z().

### float QSurfaceDataItem::x() const

See also setX().

### float QSurfaceDataItem::y() const

See also setY().

### float QSurfaceDataItem::z() const

See also setZ().

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

Assigns a copy of other to this object.