QSurfaceDataItem Class
QSurfaceDataItem 类提供了一个容器,用于将已解析的数据添加到曲面图中。更多
Header: | #include <QSurfaceDataItem> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS DataVisualization) target_link_libraries(mytarget PRIVATE Qt6::DataVisualization) |
qmake: | QT += datavisualization |
自 | 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) |
另请参阅 QSurfaceDataProxy 和 Qt Data Visualization C++ Classes.
成员函数文档
QSurfaceDataItem::QSurfaceDataItem()
构造一个曲面数据项。
QSurfaceDataItem::QSurfaceDataItem(const QVector3D &position)
在位置position 上构建一个曲面数据项。
QSurfaceDataItem::QSurfaceDataItem(const QSurfaceDataItem &other)
构造other 的副本。
[noexcept]
QSurfaceDataItem::~QSurfaceDataItem()
删除表面数据项。
QVector3D QSurfaceDataItem::position() const
返回此数据项的位置。
另请参阅 setPosition()。
void QSurfaceDataItem::setPosition(const QVector3D &pos)
为该数据项设置位置pos 。
另请参阅 position()。
void QSurfaceDataItem::setX(float value)
将项目位置的 x 坐标设置为value 。
另请参阅 x() 。
void QSurfaceDataItem::setY(float value)
将项目位置的 y 坐标设置为value 。
另请参阅 y() 。
void QSurfaceDataItem::setZ(float value)
将项目位置的 Z 坐标设置为value 。
另请参阅 z() 。
float QSurfaceDataItem::x() const
返回此数据项位置的 x 坐标。
另请参见 setX()。
float QSurfaceDataItem::y() const
返回此数据项位置的 Y 坐标。
另请参见 setY()。
float QSurfaceDataItem::z() const
返回此数据项位置的 Z 坐标。
另请参见 setZ()。
QSurfaceDataItem &QSurfaceDataItem::operator=(const QSurfaceDataItem &other)
将other 的副本分配给此对象。
© 2025 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.