Qt3DExtras::QPlaneGeometry Class
class Qt3DExtras::QPlaneGeometryQPlaneGeometry クラスを使用すると、3D 空間に平面を作成することができます。詳細...
| ヘッダー: | #include <Qt3DExtras/QPlaneGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| QML内: | PlaneGeometry |
| 継承元: | Qt3DCore::QGeometry |
| ステータス: | 非推奨 |
このクラスは非推奨です。新しいコードでの使用は強く推奨されません。
プロパティ
|
|
パブリック関数
| QPlaneGeometry(Qt3DCore::QNode *parent = nullptr) | |
| float | height() const |
| Qt3DCore::QAttribute * | indexAttribute() const |
| bool | mirrored() const |
| Qt3DCore::QAttribute * | normalAttribute() const |
| Qt3DCore::QAttribute * | positionAttribute() const |
| QSize | resolution() const |
| Qt3DCore::QAttribute * | tangentAttribute() const |
| Qt3DCore::QAttribute * | texCoordAttribute() const |
| void | updateIndices() |
| void | updateVertices() |
| float | width() const |
パブリックスロット
| void | setHeight(float height) |
| void | setMirrored(bool mirrored) |
| void | setResolution(const QSize &resolution) |
| void | setWidth(float width) |
シグナル
| void | heightChanged(float height) |
| void | mirroredChanged(bool mirrored) |
| void | resolutionChanged(const QSize &resolution) |
| void | widthChanged(float width) |
詳細な説明
QPlaneGeometry クラスは、主にQPlaneMesh の内部で使用されますが、カスタムのQt3DRender::QGeometryRenderer サブクラスでも使用することができます。
プロパティのドキュメント
height : float
機体の高度を維持します。
アクセス関数:
| float | height() const |
| void | setHeight(float height) |
通知信号:
| void | heightChanged(float height) |
[read-only] indexAttribute : Qt3DCore::QAttribute* const
ジオメトリのインデックス属性を保持します。
アクセス関数:
| Qt3DCore::QAttribute * | indexAttribute() const |
mirrored : bool
平面のUV座標を垂直方向に反転させるかどうかを指定します。
アクセス関数:
| bool | mirrored() const |
| void | setMirrored(bool mirrored) |
通知シグナル:
| void | mirroredChanged(bool mirrored) |
[read-only] normalAttribute : Qt3DCore::QAttribute* const
ジオメトリの法線属性を保持します。
アクセス関数:
| Qt3DCore::QAttribute * | normalAttribute() const |
[read-only] positionAttribute : Qt3DCore::QAttribute* const
ジオメトリの位置属性を保持します。
アクセス関数:
| Qt3DCore::QAttribute * | positionAttribute() const |
resolution : QSize
平面の解像度を保持します。
アクセス関数:
| QSize | resolution() const |
| void | setResolution(const QSize &resolution) |
通知信号:
| void | resolutionChanged(const QSize &resolution) |
[read-only] tangentAttribute : Qt3DCore::QAttribute* const
ジオメトリの接線属性を保持します。
アクセス関数:
| Qt3DCore::QAttribute * | tangentAttribute() const |
[read-only] texCoordAttribute : Qt3DCore::QAttribute* const
ジオメトリのテクスチャ座標属性を保持します。
アクセス関数:
| Qt3DCore::QAttribute * | texCoordAttribute() const |
width : float
平面の幅を保持します。
アクセス関数:
| float | width() const |
| void | setWidth(float width) |
通知信号:
| void | widthChanged(float width) |
メンバ関数のドキュメント
[explicit] QPlaneGeometry::QPlaneGeometry(Qt3DCore::QNode *parent = nullptr)
parent を使用して、新しいQPlaneGeometryを構築します。
void QPlaneGeometry::updateIndices()
メッシュの解像度に基づいてインデックスを更新します。
void QPlaneGeometry::updateVertices()
メッシュの解像度、幅、高さの各プロパティに基づいて、頂点を更新します。
© 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.