Qt3DExtras::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 값이 클수록 텍스트가 더 커지는 것이 아니라 더 매끄러워집니다. pixelSize는 사용해서는 안 됩니다.
액세스 함수:
| QFont | font() const |
| void | setFont(const QFont &font) |
Notifier 신호:
| 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 객체를 생성합니다.
© 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.