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解像度を保持する。このプロパティのwidthとheightの値は、メッシュのx-y面に生成される頂点の数を指定する。

アクセス関数:

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

通知シグナル

void xyMeshResolutionChanged(const QSize &xyMeshResolution)

xzMeshResolution : QSize

x-z解像度を保持する。このプロパティのwidthとheightの値は、メッシュの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解像度を保持する。このプロパティの width と height の値は、メッシュの 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()

メッシュの解像度に基づいて頂点を更新する。

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