QSurfaceDataItem Class

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

頭: #include <QSurfaceDataItem>
Since: QtDataVisualization 1.0

公共函數

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 )

詳細描述

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.

另請參閱 QSurfaceDataProxy and Qt Data Visualization C++ 類 .

成員函數文檔編製

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 )

構造副本為 other .

QSurfaceDataItem:: ~QSurfaceDataItem ()

Deletes a surface data item.

QVector3D QSurfaceDataItem:: position () const

Returns the position of this data item.

另請參閱 setPosition ().

void QSurfaceDataItem:: setPosition (const QVector3D & pos )

Sets the position pos to this data item.

另請參閱 position ().

void QSurfaceDataItem:: setX ( float value )

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

另請參閱 x ().

void QSurfaceDataItem:: setY ( float value )

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

另請參閱 y ().

void QSurfaceDataItem:: setZ ( float value )

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

另請參閱 z ().

float QSurfaceDataItem:: x () const

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

另請參閱 setX ().

float QSurfaceDataItem:: y () const

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

另請參閱 setY ().

float QSurfaceDataItem:: z () const

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

另請參閱 setZ ().

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

賦值副本為 other 到此對象。