QSurfaceDataItem Class
QSurfaceDataItem 类提供了一个容器,用于将已解析的数据添加到表面图中。更多内容...
| 头文件: | #include <QSurfaceDataItem> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Graphs) target_link_libraries(mytarget PRIVATE Qt6::Graphs) |
| qmake: | QT += graphs |
- 所有成员的列表,包括继承的成员
- QSurfaceDataItem 属于Qt Graphs 的3D C++类库。
公共函数
| QSurfaceDataItem() | |
| QSurfaceDataItem(QVector3D position) | |
| QSurfaceDataItem(float x, float y, float z) | |
| QVector3D | position() const |
| void | setPosition(QVector3D pos) |
| void | setX(float value) |
| void | setY(float value) |
| void | setZ(float value) |
| float | x() const |
| float | y() const |
| float | z() const |
另请参阅 QSurfaceDataProxy 和Qt Graphs C++ 3D 类。
成员函数文档
[constexpr noexcept default] QSurfaceDataItem::QSurfaceDataItem()
创建一个曲面数据项。
[explicit constexpr noexcept] QSurfaceDataItem::QSurfaceDataItem(QVector3D position)
在坐标位置position 处构建一个曲面数据项。
[constexpr noexcept] QSurfaceDataItem::QSurfaceDataItem(float x, float y, float z)
在由x 、y 和z 指定的位置创建一个曲面数据项。
[constexpr noexcept] QVector3D QSurfaceDataItem::position() const
返回该数据项的位置。
另请参阅 setPosition()。
[constexpr noexcept] void QSurfaceDataItem::setPosition(QVector3D pos)
将pos 的值设置为该数据项。
另请参阅 position()。
[constexpr noexcept] void QSurfaceDataItem::setX(float value)
将项目位置的 x 坐标设置为值value 。
另请参阅 x()。
[constexpr noexcept] void QSurfaceDataItem::setY(float value)
将项目位置的 y 坐标设置为值value 。
另请参阅 y()。
[constexpr noexcept] void QSurfaceDataItem::setZ(float value)
将项目位置的 z 坐标设置为value 。
另请参阅 z()。
[constexpr noexcept] float QSurfaceDataItem::x() const
返回该数据项位置的 x 坐标。
另请参阅 setX()。
[constexpr noexcept] float QSurfaceDataItem::y() const
返回该数据项位置的 y 坐标。
另请参阅 setY()。
[constexpr noexcept] float QSurfaceDataItem::z() const
返回该数据项位置的 z 坐标。
另请参阅 setZ()。
© 2026 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.