QPlaneGeometry Class

class Qt3DExtras::QPlaneGeometry

QPlaneGeometryクラスは、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()

メッシュの解像度、幅、高さのプロパティに基づいて頂点を更新します。

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