Qt3DCore::QGeometry Class
class Qt3DCore::QGeometryジオメトリをカプセル化します。詳細...
| ヘッダー: | #include <QGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| QML内: | Geometry |
| 継承元: | Qt3DCore::QNode |
| 継承元: | Qt3DExtras::QConeGeometry、Qt3DExtras::QCuboidGeometry 、Qt3DExtras::QCylinderGeometry 、Qt3DExtras::QExtrudedTextGeometry 、Qt3DExtras::QPlaneGeometry 、Qt3DExtras::QSphereGeometry 、およびQt3DExtras::QTorusGeometry |
| ステータス: | 非推奨 |
このクラスは非推奨です。新しいコードでの使用は強く推奨されません。
プロパティ
- boundingVolumePositionAttribute : Qt3DCore::QAttribute*
- maxExtent : QVector3D
- minExtent : QVector3D
パブリック関数
| QGeometry(Qt3DCore::QNode *parent = nullptr) | |
| void | addAttribute(Qt3DCore::QAttribute *attribute) |
| QList<Qt3DCore::QAttribute *> | attributes() const |
| Qt3DCore::QAttribute * | boundingVolumePositionAttribute() const |
| QVector3D | maxExtent() const |
| QVector3D | minExtent() const |
| void | removeAttribute(Qt3DCore::QAttribute *attribute) |
パブリックスロット
| void | setBoundingVolumePositionAttribute(Qt3DCore::QAttribute *boundingVolumePositionAttribute) |
シグナル
| void | boundingVolumePositionAttributeChanged(Qt3DCore::QAttribute *boundingVolumePositionAttribute) |
| void | maxExtentChanged(const QVector3D &maxExtent) |
| void | minExtentChanged(const QVector3D &minExtent) |
詳細な説明
Qt3DCore::QGeometry クラスは、Qt3DCore::QAttribute オブジェクトのリストをグループ化し、Qt3D が Qt3DCore::QGeometryRenderer を使用してレンダリングできる幾何学的形状を形成するために使用されます。形状のバウンディングボリュームを計算するために、特別な属性を設定することができます。
プロパティのドキュメント
boundingVolumePositionAttribute : Qt3DCore::QAttribute*
バウンディングボリュームの計算に使用される属性を保持します。バウンディングボリュームは、ピック処理やビューフラスタムカリングのために内部的に使用されます。
指定がない場合、システムはQAttribute::defaultPositionAttributeName によって返された名前を使用して、その属性を検索します。
アクセス関数:
| Qt3DCore::QAttribute * | boundingVolumePositionAttribute() const |
| void | setBoundingVolumePositionAttribute(Qt3DCore::QAttribute *boundingVolumePositionAttribute) |
通知シグナル:
| void | boundingVolumePositionAttributeChanged(Qt3DCore::QAttribute *boundingVolumePositionAttribute) |
Qt3DCore::QAttributeも参照してください 。
[read-only] maxExtent : QVector3D
x、y、z 座標の値が最も大きい頂点を保持します。
アクセス関数:
| QVector3D | maxExtent() const |
通知シグナル:
| void | maxExtentChanged(const QVector3D &maxExtent) |
[read-only] minExtent : QVector3D
x、y、z 座標の値が最も小さい頂点を保持します。
アクセス関数:
| QVector3D | minExtent() const |
通知シグナル:
| void | minExtentChanged(const QVector3D &minExtent) |
メンバ関数のドキュメント
[explicit] QGeometry::QGeometry(Qt3DCore::QNode *parent = nullptr)
parent を使用して、新しい QGeometry を生成します。
[invokable] void QGeometry::addAttribute(Qt3DCore::QAttribute *attribute)
このジオメトリにattribute を追加します。
注:この関数は 、メタオブジェクトシステムおよびQMLから呼び出すことができます。Q_INVOKABLE を参照してください。
QList<Qt3DCore::QAttribute *> QGeometry::attributes() const
このジオメトリに含まれる属性のリストを返します。
[invokable] void QGeometry::removeAttribute(Qt3DCore::QAttribute *attribute)
指定されたattribute をこのジオメトリから削除します。
注:この関数は 、メタオブジェクトシステムおよびQMLから呼び出すことができます。Q_INVOKABLE を参照してください。
© 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.