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, , , , , andQt3DExtras::QCylinderGeometry Qt3DExtras::QExtrudedTextGeometry Qt3DExtras::QPlaneGeometry Qt3DExtras::QSphereGeometry Qt3DExtras::QTorusGeometry

ステータス非推奨

プロパティ

パブリック機能

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::QGeometryRenderer を使用して Qt3D がレンダリングできる幾何学的形状を形成するために、Qt3DCore::QAttribute オブジェクトのリストをグループ化するために使用されます。特別な属性は、形状の外接ボリュームを計算するために設定することができます。

プロパティのドキュメント

boundingVolumePositionAttribute : Qt3DCore::QAttribute*

バウンディングボリュームの計算に使用される属性を保持します。バウンディングボリュームは、ピッキングとビューのフラストラムカリングに内部的に使用されます。

未指定の場合、システムはQAttribute::defaultPositionAttributeName が返す名前を使用して属性を探します。

アクセス関数:

Qt3DCore::QAttribute *boundingVolumePositionAttribute() const
void setBoundingVolumePositionAttribute(Qt3DCore::QAttribute *boundingVolumePositionAttribute)

通知シグナル:

void boundingVolumePositionAttributeChanged(Qt3DCore::QAttribute *boundingVolumePositionAttribute)

Qt3DCore::QAttributeも参照

[read-only] maxExtent : const QVector3D

x,y,z位置の値が最も大きい頂点を保持します。

アクセス関数:

QVector3D maxExtent() const

通知シグナル:

void maxExtentChanged(const QVector3D &maxExtent)

[read-only] minExtent : const QVector3D

x, y, z 位置の値が最も小さい頂点を保持する。

アクセス関数:

QVector3D minExtent() const

通知シグナル:

void minExtentChanged(const QVector3D &minExtent)

メンバ関数ドキュメント

[explicit] QGeometry::QGeometry(Qt3DCore::QNode *parent = nullptr)

新しい QGeometry をparent で構築します。

[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 を参照してください。

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