QExtrudedTextGeometry Class
class Qt3DExtras::QExtrudedTextGeometryQExtrudedTextGeometry クラスは、3D 空間で 3D 押し出しテキストを作成できます。詳細...
ヘッダー | #include <Qt3DExtras/QExtrudedTextGeometry> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
qmake | QT += 3dextras |
QML で | ExtrudedTextGeometry |
を継承しています: | Qt3DCore::QGeometry |
ステータス | 非推奨 |
プロパティ
|
|
パブリック機能
QExtrudedTextGeometry(Qt3DCore::QNode *parent = nullptr) | |
float | extrusionLength() const |
QFont | font() const |
Qt3DCore::QAttribute * | indexAttribute() const |
Qt3DCore::QAttribute * | normalAttribute() const |
Qt3DCore::QAttribute * | positionAttribute() const |
QString | text() const |
パブリックスロット
void | setDepth(float extrusionLength) |
void | setFont(const QFont &font) |
void | setText(const QString &text) |
シグナル
void | depthChanged(float extrusionLength) |
void | fontChanged(const QFont &font) |
void | textChanged(const QString &text) |
詳細な説明
QExtrudedTextGeometry クラスは、QText3DMesh で内部的に最もよく使用されますが、カスタムQt3DRender::QGeometryRenderer サブクラスでも使用できます。
ジオメトリの原点は、テキストのベースラインの左端です。
プロパティのドキュメント
extrusionLength : float
テキストの押し出し長さを保持します。
アクセス関数:
float | extrusionLength() const |
void | setDepth(float extrusionLength) |
通知シグナル:
void | depthChanged(float extrusionLength) |
font : QFont
テキストのフォントを保持する。
ジオメトリはフォントのpointSizeで正規化されるため、pointSizeを大きくするとテキストが大きくなるのではなく、滑らかになる。
アクセス関数:
QFont | font() const |
void | setFont(const QFont &font) |
通知シグナル:
void | fontChanged(const QFont &font) |
[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 |
text : QString
メッシュに使用されるテキストを保持します。
アクセス関数:
QString | text() const |
void | setText(const QString &text) |
通知シグナル
void | textChanged(const QString &text) |
メンバ関数ドキュメント
[explicit]
QExtrudedTextGeometry::QExtrudedTextGeometry(Qt3DCore::QNode *parent = nullptr)
parent を持つ新しい QExtrudedTextGeometry を作成します。
© 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.