QSurfaceDataItem Class

QSurfaceDataItem クラスは、サーフェスグラフに追加する解決済みデータのコンテナを提供します。詳細...

ヘッダー #include <QSurfaceDataItem>
CMake: find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs)
qmake: QT += graphs

パブリック関数

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

詳細説明

サーフェス データ アイテムは、サーフェス グラフの 1 つの頂点のデータを保持します。サーフェス データ プロキシは、サーフェス グラフの QSurfaceDataItem インスタンスにデータを解析します。

QSurfaceDataProxy およびQt Graphs C++ Classes for 3Dも参照してください

メンバ関数のドキュメント

[constexpr noexcept] QSurfaceDataItem::QSurfaceDataItem()

サーフェスデータを構築する。

[explicit constexpr noexcept] QSurfaceDataItem::QSurfaceDataItem(QVector3D position)

位置position にサーフェスデータアイテムを構築する。

[constexpr noexcept] QSurfaceDataItem::QSurfaceDataItem(float x, float y, float z)

xyz で指定された位置にサーフェスデータアイテムを構築する。

[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()も参照

© 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.