このページでは

Qt3DExtras::QCuboidGeometry Class

class Qt3DExtras::QCuboidGeometry

QCuboidGeometry クラスを使用すると、3D 空間に直方体を作成することができます。詳細...

ヘッダー: #include <Qt3DExtras/QCuboidGeometry>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
QML内: CuboidGeometry
継承元: Qt3DCore::QGeometry
ステータス: 非推奨

このクラスは非推奨です。新しいコードでの使用は強く推奨しません。

プロパティ

パブリック関数

QCuboidGeometry(Qt3DCore::QNode *parent = nullptr)
Qt3DCore::QAttribute *indexAttribute() const
Qt3DCore::QAttribute *normalAttribute() const
Qt3DCore::QAttribute *positionAttribute() const
Qt3DCore::QAttribute *tangentAttribute() const
Qt3DCore::QAttribute *texCoordAttribute() const
void updateIndices()
void updateVertices()
float xExtent() const
QSize xyMeshResolution() const
QSize xzMeshResolution() const
float yExtent() const
QSize yzMeshResolution() const
float zExtent() const

パブリックスロット

void setXExtent(float xExtent)
void setXYMeshResolution(const QSize &resolution)
void setXZMeshResolution(const QSize &resolution)
void setYExtent(float yExtent)
void setYZMeshResolution(const QSize &resolution)
void setZExtent(float zExtent)

シグナル

void xExtentChanged(float xExtent)
void xyMeshResolutionChanged(const QSize &xyMeshResolution)
void xzMeshResolutionChanged(const QSize &xzMeshResolution)
void yExtentChanged(float yExtent)
void yzMeshResolutionChanged(const QSize &yzMeshResolution)
void zExtentChanged(float zExtent)

詳細な説明

QCuboidGeometry クラスは、主にQCuboidMesh 内部で使用されますが、カスタムQt3DRender::QGeometryRenderer サブクラスでも使用できます。

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

[read-only] indexAttribute : Qt3DCore::QAttribute* const

ジオメトリ・インデックス属性を保持します。

アクセス関数:

Qt3DCore::QAttribute *indexAttribute() const

[read-only] normalAttribute : Qt3DCore::QAttribute* const

ジオメトリの法線属性を保持します。

アクセス関数:

Qt3DCore::QAttribute *normalAttribute() const

[read-only] positionAttribute : Qt3DCore::QAttribute* const

ジオメトリの位置属性を保持します。

アクセス関数:

Qt3DCore::QAttribute *positionAttribute() const

[read-only] tangentAttribute : Qt3DCore::QAttribute* const

ジオメトリの接線属性を保持します。

アクセス関数:

Qt3DCore::QAttribute *tangentAttribute() const

[read-only] texCoordAttribute : Qt3DCore::QAttribute* const

ジオメトリのテクスチャ座標属性を保持します。

アクセス関数:

Qt3DCore::QAttribute *texCoordAttribute() const

xExtent : float

ジオメトリの x 方向の範囲を保持します。

アクセス関数:

float xExtent() const
void setXExtent(float xExtent)

通知シグナル:

void xExtentChanged(float xExtent)

xyMeshResolution : QSize

x-y 方向の解像度を指定します。このプロパティの幅と高さの値は、メッシュの x-y 面に対して生成される頂点数を指定します。

アクセス関数:

QSize xyMeshResolution() const
void setXYMeshResolution(const QSize &resolution)

通知シグナル:

void xyMeshResolutionChanged(const QSize &xyMeshResolution)

xzMeshResolution : QSize

x-z方向の解像度を指定します。このプロパティの幅と高さの値は、メッシュのx-z面の生成される頂点数を指定します。

アクセス関数:

QSize xzMeshResolution() const
void setXZMeshResolution(const QSize &resolution)

通知シグナル:

void xzMeshResolutionChanged(const QSize &xzMeshResolution)

yExtent : float

ジオメトリの y 方向の広がりを保持します。

アクセス関数:

float yExtent() const
void setYExtent(float yExtent)

通知シグナル:

void yExtentChanged(float yExtent)

yzMeshResolution : QSize

y-z方向の解像度を保持します。このプロパティの幅と高さの値は、メッシュのy-z面に対して生成される頂点数を指定します。

アクセス関数:

QSize yzMeshResolution() const
void setYZMeshResolution(const QSize &resolution)

通知シグナル:

void yzMeshResolutionChanged(const QSize &yzMeshResolution)

zExtent : float

ジオメトリの z 方向の範囲を保持します。

アクセス関数:

float zExtent() const
void setZExtent(float zExtent)

通知シグナル:

void zExtentChanged(float zExtent)

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

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

parent を使用して、新しいQCuboidGeometryを生成します。

void QCuboidGeometry::updateIndices()

メッシュの解像度に基づいてインデックスを更新します。

void QCuboidGeometry::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.