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

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 QSurfaceDataItem holds data for a single vertex in surface graph. Surface data proxies parse data into QSurfaceDataItem instances for visualizing.

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

Member Function Documentation

QSurfaceDataItem::QSurfaceDataItem()

Constructs QSurfaceDataItem.

QSurfaceDataItem::QSurfaceDataItem(const QVector3D &position)

Constructs QSurfaceDataItem with position.

QSurfaceDataItem::QSurfaceDataItem(const QSurfaceDataItem &other)

Constructs a copy of other.

QSurfaceDataItem::~QSurfaceDataItem()

Destroys QSurfaceDataItem.

QVector3D QSurfaceDataItem::position() const

Returns position of this data item.

See also setPosition().

void QSurfaceDataItem::setPosition(const QVector3D &pos)

Sets position pos to this data item.

See also position().

void QSurfaceDataItem::setX(float value)

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

See also x().

void QSurfaceDataItem::setY(float value)

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

See also y().

void QSurfaceDataItem::setZ(float value)

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

See also z().

float QSurfaceDataItem::x() const

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

See also setX().

float QSurfaceDataItem::y() const

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

See also setY().

float QSurfaceDataItem::z() const

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

See also setZ().

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

Assigns a copy of other to this object.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.